:root {
  --atu-red: #C8102E;
  --atu-red-dark: #A00C24;
  --atu-white: #FFFFFF;
  --atu-gray: #F4F4F5;
  --atu-text: #2B2B2B;
}

html, body {
  height: 100%;
}
.iframe-panel > iframe {
  display: block;
  width: 100%;
  height: 638px;
  border: 0;
}
.content-body {
  background: url(/content/images/boxed-bg.png);
  background-attachment: fixed;
  background-repeat: repeat;
  background-size: 350px 200px;
}
.iframe-panel {
  border: 1px solid rgba(128, 128, 128, 0.52);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  text-align: center;
  background: #fff;
  margin-bottom: 1.5rem;
}
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--atu-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .brand-name {
  font-family: 'Jost', sans-serif;
}

main {
  flex: 1 0 auto;
}

/* ===== Navbar ===== */
.navbar {
  border-bottom: 3px solid var(--atu-red);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.brand-logo img {
  height: 54px;
  width: auto;
}

.brand-name h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--atu-red);
  margin: 0;
  line-height: 1.15;
}

.brand-name span {
  font-size: 0.78rem;
  color: #6b6b6b;
  letter-spacing: .02em;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--atu-text);
  padding: 0.6rem 1rem !important;
  position: relative;
}

  .navbar-nav .nav-link.active,
  .navbar-nav .nav-link:hover {
    color: var(--atu-red);
  }

    .navbar-nav .nav-link.active::after {
      content: "";
      position: absolute;
      left: 1rem;
      right: 1rem;
      bottom: 0.15rem;
      height: 2px;
      background: var(--atu-red);
    }

.btn-atu {
  background-color: var(--atu-red);
  border-color: var(--atu-red);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  padding: 0.55rem 1.4rem;
}

  .btn-atu:hover {
    background-color: var(--atu-red-dark);
    border-color: var(--atu-red-dark);
    color: #fff;
  }

/* ===== Hero / Search ===== */
.hero {
  background: linear-gradient(135deg, var(--atu-red) 0%, var(--atu-red-dark) 100%);
  padding: 4.5rem 0;
  position: relative;
  overflow: visible;
}

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.08) 0, transparent 40%), radial-gradient(circle at 10% 80%, rgba(255,255,255,0.06) 0, transparent 35%);
  }

  .hero h2 {
    color: #fff;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.75rem;
    position: relative;
  }

.search-wrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  z-index: 10000;
}

  .search-wrap input {
    border-radius: 50px;
    padding: 0.9rem 1.5rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }

    .search-wrap input:focus {
      box-shadow: 0 10px 30px rgba(0,0,0,0.2), 0 0 0 3px rgba(255,255,255,0.5);
    }

  .search-wrap .search-icon {
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--atu-red);
  }

#searchResults {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 9999;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}


/* ===== Stat cards ===== */
.stats-section {
  margin-top: -2.75rem;
  position: relative;
  z-index: 2;
}

.stat-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 1.5rem 1rem;
  text-align: center;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
  border-bottom: 3px solid var(--atu-red);
  text-decoration: none;
  color: inherit;
  display: block;
}

  .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
    color: inherit;
  }

  .stat-card i {
    font-size: 1.9rem;
    color: var(--atu-red);
    margin-bottom: 0.6rem;
  }

  .stat-card h4 {
    font-weight: 700;
    margin-bottom: 0.15rem;
  }

  .stat-card span {
    font-size: 0.8rem;
    letter-spacing: .05em;
    color: #6b6b6b;
    text-transform: uppercase;
  }

/* ===== Publications ===== */
.pub-section {
  background: var(--atu-gray);
  padding: 4rem 0;
}

.pub-heading {
  font-weight: 700;
  color: var(--atu-red);
  border-left: 4px solid var(--atu-red);
  padding-left: 0.75rem;
  margin-bottom: 1.5rem;
}

.pub-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
  border-top: 3px solid transparent;
  transition: border-color .2s ease;
}

  .pub-card:hover {
    border-top-color: var(--atu-red);
  }

  .pub-card h6 {
    font-weight: 600;
    color: var(--atu-text);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
  }

  .pub-card p {
    font-size: 0.92rem;
    color: #444;
    margin-bottom: 0.6rem;
  }

  .pub-card a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--atu-red);
    text-decoration: none;
  }

    .pub-card a:hover {
      text-decoration: underline;
    }

/* ===== Footer ===== */
footer {
  flex-shrink: 0;
  background: var(--atu-red);
  color: #fff;
  padding: 1.1rem 0;
}

  footer a {
    color: #fff;
    text-decoration: none;
  }

    footer a:hover {
      text-decoration: underline;
    }

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--atu-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  z-index: 99;
}

  .back-to-top:hover {
    background: var(--atu-red-dark);
    color: #fff;
  }

/* Desktop pill menu */
.statistic-menu #portfolio-flters {
  margin: 0;
  padding: 0;
 
}

  .statistic-menu #portfolio-flters li {
    display: inline-block;
    list-style: none;
    margin-top: 10px;
  }

    .statistic-menu #portfolio-flters li a {
      display: inline-block;
      padding: 0.55rem 1.35rem;
      border-radius: 50px;
      font-weight: 600;
      font-size: 0.85rem;
      color: var(--atu-text);
      background: #fff;
      border: 1px solid #e2e2e2;
      text-decoration: none;
      transition: all .2s ease;
    }

      .statistic-menu #portfolio-flters li a:hover {
        color: var(--atu-red);
        border-color: var(--atu-red);
      }

    .statistic-menu #portfolio-flters li.active a {
      background: var(--atu-red);
      border-color: var(--atu-red);
      color: #fff;
      box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
    }

/* Mobile dropdown */
.dropdown-statistic-menu {
  z-index: 1019;
}

  .dropdown-statistic-menu .dropdown {
    display: inline-block;
    width: 100%;
    max-width: 420px;
  }

  .dropdown-statistic-menu .btn-atu-dropdown {
    width: 100%;
    margin: 10px 0;
    white-space: normal;
    background: var(--atu-red);
    border-color: var(--atu-red);
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    padding: 0.6rem 1rem;
  }

    .dropdown-statistic-menu .btn-atu-dropdown:hover,
    .dropdown-statistic-menu .btn-atu-dropdown:focus {
      background: var(--atu-red-dark);
      border-color: var(--atu-red-dark);
      color: #fff;
      box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.25);
    }

  .dropdown-statistic-menu .dropdown-menu {
    width: 100%;
    max-width: 420px;
    z-index: 1019;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
    border: none;
    padding: 0.35rem;
  }

  .dropdown-statistic-menu .dropdown-menu-item {
    white-space: normal;
    border-radius: 6px;
    font-weight: 500;
    padding: 0.55rem 0.9rem;
  }

    .dropdown-statistic-menu .dropdown-menu-item:hover {
      background: var(--atu-gray);
      color: var(--atu-red);
    }

    .dropdown-statistic-menu .dropdown-menu-item.active {
      background: var(--atu-red);
      color: #fff;
    }

@media (max-width: 768px) {
  .statistic-menu {
    display: none;
  }
}

@media (min-width: 769px) {
  .dropdown-statistic-menu {
    display: none;
  }
}
.page-title {
  font-weight: 700;
  color: var(--atu-text);
  margin-bottom: 0.15rem;
}

.page-subtitle {
  color: #6b6b6b;
  font-size: 0.92rem;
}

/* ===== Chart panel (Grafana-style card, ATU themed) ===== */
.chart-panel {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ebebeb;
  border-top: 3px solid var(--atu-red);
  box-shadow: 0 3px 14px rgba(0,0,0,0.05);
  overflow: hidden;
}

.chart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid #f0f0f0;
}

.chart-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--atu-red);
  margin: 0;
}

.chart-panel-menu-btn {
  background: transparent;
  border: none;
  color: #9a9a9a;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}

  .chart-panel-menu-btn:hover {
    background: var(--atu-gray);
    color: var(--atu-red);
  }

.chart-panel-body {
  padding: 1.5rem;
  height: 480px;
}

@@media (max-width: 576px) {
  .chart-panel-body {
    height: 360px;
    padding: 1rem;
  }
}
