:root {
  --primary-navy: #1b365d;
  --primary-navy-dark: #10223d;
  --primary-orange: #d9531e;
  --primary-orange-hover: #b84113;
  --accent-orange-light: #fef3ed;
  --accent-blue-light: #edf4fa;
  --header-bg: #15263f;
  --nav-gradient-start: #e06028;
  --nav-gradient-end: #b34316;
  --text-main: #24292f;
  --text-muted: #57606a;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-orange);
}

/* TOP ANNOUNCEMENT BAR */
.top-notice-bar {
  background: #0f1c2e;
  color: #d1d5db;
  font-size: 13px;
  padding: 6px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-notice-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e06028;
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-notice-links a {
  color: #93c5fd;
  margin-left: 12px;
  font-size: 12px;
}

.top-notice-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* MAIN HEADER */
.site-header {
  background: #ffffff;
  border-bottom: 3px solid var(--primary-orange);
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.brand-text .sub-title {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.institutional-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.inst-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 11px;
  color: var(--text-muted);
  border-left: 2px solid #e2e8f0;
  padding-left: 12px;
}

.inst-badge strong {
  color: var(--primary-navy);
  font-size: 12px;
}

/* NAVIGATION TABS (TERRACOTTA THEME) */
.main-nav {
  background: linear-gradient(180deg, var(--nav-gradient-start) 0%, var(--nav-gradient-end) 100%);
  border-top: 1px solid #f68c5b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.nav-tabs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-tabs li a {
  display: block;
  color: #ffffff;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
  border-right: 1px solid rgba(0,0,0,0.15);
  border-left: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s ease;
}

.nav-tabs li:first-child a {
  border-left: none;
}

.nav-tabs li a:hover,
.nav-tabs li a.active {
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.nav-drive-btn {
  background: #ffffff;
  color: var(--primary-orange);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.nav-drive-btn:hover {
  background: #fff7ed;
  color: var(--primary-orange-hover);
  transform: translateY(-1px);
}

/* HISTORICAL HERO */
.hero-section {
  background: linear-gradient(135deg, #193153 0%, #294770 100%);
  color: #ffffff;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-text h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.3;
  color: #ffffff;
}

.hero-text p {
  font-size: 16px;
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 20px;
}

.hero-badge-quote {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--primary-orange);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: #f1f5f9;
  backdrop-filter: blur(4px);
}

.hero-stats-card {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 16px;
  border-bottom: 2px solid var(--accent-orange-light);
  padding-bottom: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-orange);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* MAIN CONTENT WRAPPER */
.main-layout {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 28px;
}

@media (max-width: 960px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* SEARCH & FILTER CONTROLS */
.controls-card {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.search-bar-wrap {
  position: relative;
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  font-size: 15px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.search-input:focus {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(217, 83, 30, 0.15);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: none;
}

.clear-search-btn:hover {
  color: var(--text-main);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-pill {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background: #edf2f7;
  color: var(--primary-navy);
}

.filter-pill.active {
  background: var(--primary-navy);
  border-color: var(--primary-navy);
  color: #ffffff;
}

.filter-pill.highlight-pill {
  border-color: #f59e0b;
  color: #b45309;
  background: #fef3c7;
}

.filter-pill.highlight-pill.active {
  background: #b45309;
  color: #ffffff;
}

/* STUDIES SECTION HEADER */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.results-count {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.results-count strong {
  color: var(--primary-navy);
}

.view-toggles {
  display: flex;
  gap: 6px;
}

.view-btn {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.view-btn.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

/* STUDY CARD */
.studies-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.study-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.study-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.study-card.is-eellak-highlight {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(90deg, #fffbeb 0%, #ffffff 15%);
}

.study-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.code-and-cycle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.study-code {
  background: var(--primary-navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.study-cycle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.format-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.format-badge.format-docx {
  background: #dbeafe;
  color: #1e40af;
}

.format-badge.format-pdf {
  background: #fee2e2;
  color: #b91c1c;
}

.format-badge.format-zip {
  background: #fef3c7;
  color: #92400e;
}

.format-badge.format-xlsx {
  background: #dcfce7;
  color: #166534;
}

.study-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.4;
  margin-bottom: 8px;
}

.study-group {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

.eellak-highlight-banner {
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.study-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.btn-download-primary {
  background: var(--primary-orange);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s ease;
}

.btn-download-primary:hover {
  background: var(--primary-orange-hover);
  color: #ffffff;
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s ease;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.supplementary-badge {
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  text-decoration: underline;
  margin-left: auto;
}

/* TABLE VIEW */
.studies-table-wrap {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow-x: auto;
}

.studies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.studies-table th {
  background: #f8fafc;
  color: var(--primary-navy);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}

.studies-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.studies-table tr:hover td {
  background: #f8fafc;
}

/* SIDEBAR MODULES */
.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.sidebar-header {
  background: #f1f5f9;
  border-bottom: 2px solid var(--primary-orange);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-body {
  padding: 16px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 13.5px;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--text-main);
}

.sidebar-list a:hover {
  color: var(--primary-orange);
}

.sidebar-list a::before {
  content: '▸';
  color: var(--primary-orange);
  font-weight: bold;
}

.banner-drive-card {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.banner-drive-card h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.banner-drive-card p {
  font-size: 13px;
  color: #ffedd5;
  margin-bottom: 16px;
  line-height: 1.5;
}

.banner-drive-card a.drive-btn {
  display: block;
  text-align: center;
  background: #ffffff;
  color: #c2410c;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.15s ease;
}

.banner-drive-card a.drive-btn:hover {
  background: #fff7ed;
}

/* HISTORICAL CONTEXT ACCORDION / ABOUT */
.archive-details-section {
  max-width: 1200px;
  margin: 40px auto 20px auto;
  padding: 0 16px;
}

.context-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.context-box h3 {
  font-size: 20px;
  color: var(--primary-navy);
  margin-bottom: 12px;
  font-weight: 800;
}

.context-box p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* FOOTER */
.site-footer {
  background: #0f1c2e;
  color: #94a3b8;
  padding: 40px 20px 20px 20px;
  margin-top: 60px;
  border-top: 4px solid var(--primary-orange);
  font-size: 13px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-about h4,
.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-about p {
  line-height: 1.6;
  color: #cbd5e1;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
}

.footer-bottom a {
  color: #cbd5e1;
}

/* MODAL FOR STUDY DETAILS */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 28, 46, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: #f8fafc;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-header h3 {
  font-size: 18px;
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.4;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-row {
  margin-bottom: 14px;
}

.modal-row label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.modal-row .value {
  font-size: 14.5px;
  color: var(--text-main);
}

.modal-file-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
}

.modal-file-list li {
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-footer {
  background: #f8fafc;
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* RESPONSIVE DESIGN ENHANCEMENTS */
@media (max-width: 768px) {
  .header-container {
    padding: 14px 16px;
    gap: 16px;
  }

  /* Place text under image on mobile */
  .brand-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand-logo-img {
    height: 44px;
  }

  .brand-text h1 {
    font-size: 22px;
  }

  .brand-text .sub-title {
    font-size: 12.5px;
    line-height: 1.4;
  }

  .institutional-badges {
    width: 100%;
    justify-content: flex-start;
    gap: 10px 18px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-light);
  }

  .inst-badge {
    align-items: flex-start;
  }

  .inst-badge strong {
    font-size: 12px;
  }

  .inst-badge span {
    font-size: 11px;
  }

  .nav-container {
    padding: 8px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav-tabs {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tabs li {
    flex-shrink: 0;
  }

  .nav-tabs li a {
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    border: none;
  }

  .nav-drive-btn {
    justify-content: center;
    width: 100%;
    padding: 8px 14px;
    font-size: 13px;
  }

  .hero-section {
    padding: 28px 16px;
  }

  .hero-text h2 {
    font-size: 22px;
  }

  .hero-text p {
    font-size: 14.5px;
  }

  .controls-card {
    padding: 16px;
  }

  .filter-pills {
    gap: 6px;
  }

  .filter-pill {
    padding: 5px 10px;
    font-size: 12px;
  }

  .study-card {
    padding: 16px;
  }

  .study-title {
    font-size: 16px;
  }

  .study-actions {
    gap: 8px;
  }

  .modal-dialog {
    margin: 12px;
    max-height: 92vh;
  }

  .modal-header {
    padding: 14px 18px;
  }

  .modal-body {
    padding: 16px 18px;
  }

  .modal-file-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .modal-file-list li .btn-download-primary,
  .modal-file-list li .btn-secondary {
    align-self: flex-start;
  }

  .modal-footer {
    padding: 14px 18px;
    flex-direction: column-reverse;
  }

  .modal-footer button,
  .modal-footer a {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .top-notice-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-notice-links {
    margin-top: 4px;
  }

  .top-notice-links a {
    margin-left: 0;
    margin-right: 12px;
    display: inline-block;
  }

  .brand-text h1 {
    font-size: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .study-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .study-actions .btn-download-primary,
  .study-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

