/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #050a14;
  --gold: #d4af37;
  --gold-hover: #f59e0b;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --text: #0b1c30;
  --text-light: #64748b;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --radius: 8px;
}

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* === Navigation === */
.main-nav {
  background: transparent;
  color: #fff;
  padding: 1rem 1.5rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
.main-nav .nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.main-nav .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.main-nav .logo-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.main-nav .logo-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.main-nav .logo-text h1 { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.main-nav .logo-text p { font-size: 0.7rem; opacity: 0.75; }
.main-nav .nav-links { display: flex; gap: 1.5rem; list-style: none; }
.main-nav .nav-links a {
  color: #fff;
  opacity: 0.85;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.main-nav .nav-links li.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
}
.main-nav .nav-links a:hover,
.main-nav .nav-links a.active { opacity: 1; color: var(--gold); text-decoration: none; }

/* === Nav Dropdown === */
.main-nav .nav-links li.has-dropdown { position: relative; }
.main-nav .nav-links li.has-dropdown > a::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
}
.main-nav .nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.main-nav .nav-links li.has-dropdown:hover > .dropdown-menu { display: block; }
.main-nav .nav-links .dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  opacity: 0.85;
  white-space: nowrap;
}
.main-nav .nav-links .dropdown-menu a:hover {
  background: rgba(255,255,255,0.08);
  opacity: 1;
  color: var(--gold);
  text-decoration: none;
}

/* === Hero Section === */
.hero {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.hero .hero-content { position: relative; z-index: 1; max-width: 700px; padding: 2rem; }
.hero h2 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.1; }
.hero .subtitle { color: var(--gold); font-weight: 600; margin-bottom: 0.5rem; }
.hero .desc { font-size: 1.1rem; color: #e2e8f0; margin-bottom: 2rem; max-width: 500px; }
.hero .btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 2rem; font-weight: 700; font-size: 0.8rem; border-radius: var(--radius); text-transform: uppercase; letter-spacing: 0.05em; transition: all 0.2s; border: none; cursor: pointer; }
.hero .btn-primary { background: var(--gold); color: #000; }
.hero .btn-primary:hover { background: #e5a820; text-decoration: none; }
.hero .btn-outline { background: transparent; color: #fff; border: 1px solid #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

/* === Page Hero (inner pages) === */
.page-hero {
  background: linear-gradient(rgba(5,10,20,0.85), rgba(5,10,20,0.9));
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 21rem 2rem 3rem;
}
.page-hero h1 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
.page-hero .breadcrumb { font-size: 0.875rem; color: #94a3b8; margin-bottom: 1.5rem; }
.page-hero .breadcrumb a { color: #94a3b8; }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb .sep { margin: 0 0.5rem; color: #64748b; }
.page-hero .breadcrumb .current { color: var(--gold); }
.page-hero p { font-size: 1.1rem; color: #cbd5e1; max-width: 600px; }

/* === Section === */
.section { padding: 4rem 1.5rem; }
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--gold);
}
.section-title.gold-border { border-left-color: var(--gold); }
.section-title.amber-border { border-left-color: #f59e0b; }

/* === Card Grid === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.card-grid > * {
  height: 100%;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.card p { color: var(--text-light); font-size: 0.9rem; }

/* === Research Theme Cards === */
.theme-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
  height: 100%;
  box-sizing: border-box;
}
.theme-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
a:hover .theme-card { box-shadow: 0 4px 16px rgba(0,0,0,0.12); transform: translateY(-2px); transition: box-shadow 0.2s, transform 0.2s; }
.theme-card .icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-card .icon img { width: 72px; height: 72px; border-radius: 8px; }
.theme-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.theme-card ul { list-style: disc; padding-left: 1.25rem; color: var(--text-light); font-size: 0.9rem; }
.theme-card li { margin-bottom: 0.25rem; }
.theme-card ul li:nth-child(n+4) { display: none; }
.theme-card .more-topics { font-size: 0.8rem; color: var(--gold); font-weight: 600; margin-top: 0.25rem; }

/* === Team Card === */
.team-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.team-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.team-card img { width: 100%; height: 250px; object-fit: contain; background: #f1f5f9; flex-shrink: 0; }
.team-card .info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.team-card .info h4 { font-weight: 700; }
.team-card .info .role { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.5rem; }
.team-card .info .research { font-size: 0.8rem; font-style: italic; color: #475569; }
.team-card .info .email { display: flex; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--blue-700); }

/* === PI Card === */
.pi-card {
  background: #f8fafc;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.pi-card img { width: 33%; height: 420px; object-fit: contain; background: #f1f5f9; }
.pi-card .pi-info { padding: 2rem; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.pi-card .pi-info h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.pi-card .pi-info .title { font-size: 1rem; color: var(--text-light); margin-bottom: 1rem; }
.pi-card .pi-info .bio { color: #475569; margin-bottom: 1.5rem; }
.pi-card .links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.pi-card .links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.85rem;
  transition: box-shadow 0.2s;
}
.pi-card .links a:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); text-decoration: none; }

/* === Facility Card === */
.facility-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.facility-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.facility-card .card-img img { width: 100%; display: block; }
.facility-card .card-body { padding: 1.5rem; }
.facility-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.facility-card ul { list-style: none; }
.facility-card li { padding: 0.25rem 0; font-size: 0.9rem; color: var(--text-light); display: flex; align-items: flex-start; gap: 0.5rem; }
.facility-card li::before { content: '•'; color: var(--blue-700); font-weight: bold; }

/* === Facility Carousel === */
.facility-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f8fafc;
  border: 1px solid var(--border);
}

.facility-carousel .carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.facility-carousel .carousel-item {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
}

.facility-carousel .carousel-item img {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  background: #f8fafc;
  display: block;
}

.facility-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 10;
  opacity: 1;
}
.facility-carousel .carousel-btn:hover { background: #fff; }
.facility-carousel .carousel-btn.prev { left: 0.5rem; }
.facility-carousel .carousel-btn.next { right: 0.5rem; }

.facility-carousel .carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0 0.5rem;
}
.facility-carousel .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.facility-carousel .carousel-indicators button:hover { background: var(--gold-hover); }
.facility-carousel .carousel-indicators button.active {
  background: var(--gold);
  transform: scale(1.25);
}
.facility-carousel:hover .carousel-btn,
.facility-carousel:focus-within .carousel-btn { opacity: 1; }
.facility-carousel .carousel-btn:hover { background: rgba(0,0,0,0.8); }
.facility-carousel .carousel-btn.prev { left: 8px; }
.facility-carousel .carousel-btn.next { right: 8px; }

.facility-carousel .carousel-indicators {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.facility-carousel .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.facility-carousel .carousel-indicators button:hover { background: rgba(255,255,255,0.8); }
.facility-carousel .carousel-indicators button.active {
  background: var(--gold);
  transform: scale(1.2);
}

/* Touch devices - always show indicators, hide buttons */
@media (hover: none) and (pointer: coarse) {
  .facility-carousel .carousel-btn { display: none; }
  .facility-carousel .carousel-indicators { bottom: 4px; }
}

/* === Hamburger Toggle === */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 200;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle .hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: background 0.2s;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s;
}
.nav-toggle .hamburger::before { top: -7px; }
.nav-toggle .hamburger::after { top: 7px; }
.nav-toggle.open .hamburger { background: transparent; }
.nav-toggle.open .hamburger::before { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open .hamburger::after { transform: rotate(-45deg) translate(5px, -5px); }

/* === Mobile Drawer === */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-overlay.active {
  display: block;
  opacity: 1;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--navy);
  z-index: 160;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 4.5rem 0 2rem;
}
.mobile-drawer.open {
  transform: translateX(0);
}
.mobile-drawer a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s, color 0.2s;
}
.mobile-drawer a:hover,
.mobile-drawer a.active {
  background: rgba(255,255,255,0.08);
  color: var(--gold);
  text-decoration: none;
}
.mobile-drawer .drawer-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0.5rem 0;
}
.mobile-drawer .dropdown-sublinks a {
  padding-left: 2.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.mobile-drawer .dropdown-sublinks a:hover {
  color: var(--gold);
}
.mobile-drawer .mobile-admin-link {
  margin: 1rem 1.5rem 0;
  padding: 0.625rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  text-align: center;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .main-nav .nav-links { display: none; }
  .main-nav .nav-links .dropdown-menu { position: static; box-shadow: none; border: none; background: rgba(255,255,255,0.05); }
  .card-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .main-footer .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .hero h2 { font-size: 2.5rem; }
  .page-hero { padding: 15rem 2rem 2.5rem !important; }
  .page-hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .facility-carousel .carousel-item img { max-height: 280px; }
  .hero h2 { font-size: 2rem; }
  .page-hero { padding: 12rem 1.5rem 2rem !important; }
  .page-hero h1 { font-size: 2rem; }
  .pi-card { flex-direction: column; }
  .pi-card img,
  .pi-card .card-img-wrap { width: 100%; height: 250px; object-fit: contain; background: #f1f5f9; }
  .overview-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .card-grid { grid-template-columns: 1fr !important; }
  .gallery-grid { column-count: 1; }
  .stats-banner { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1rem; max-width: 100%; }
  .main-footer .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .section { padding: 3rem 1rem; }
  .section-title { font-size: 1.3rem; margin-bottom: 2rem; }
  .mobile-drawer { width: 100%; }
  .facility-carousel .carousel-item img { max-height: 220px; }
  .tour-grid { flex-direction: column !important; align-items: stretch !important; }
  .tour-grid > div { flex: none !important; }
}

@media (max-width: 480px) {
  .page-hero { padding: 10rem 1rem 1.5rem !important; }
  .page-hero h1 { font-size: 1.75rem; }
  .page-hero p { font-size: 0.95rem; }
  .hero h2 { font-size: 1.75rem; }
  .hero .desc { font-size: 1rem; }
  .section { padding: 2.5rem 1rem; }
  .stats-banner { grid-template-columns: 1fr 1fr; }
  .main-footer .footer-links { grid-template-columns: 1fr; }
  .theme-card { flex-direction: column; }
}

/* === Publications List (Browse Section) === */
#publications-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

#publications-list::-webkit-scrollbar,
#featured-pubs-list::-webkit-scrollbar {
  width: 6px;
}
#publications-list::-webkit-scrollbar-track,
#featured-pubs-list::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 3px;
}
#publications-list::-webkit-scrollbar-thumb,
#featured-pubs-list::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}
#publications-list::-webkit-scrollbar-thumb:hover,
#featured-pubs-list::-webkit-scrollbar-thumb:hover {
  background: var(--gold-hover);
}

/* === Publication Card === */
.pub-card {
  background: #fff;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pub-card .journal { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue-700); }
.pub-card h3 { font-size: 1rem; }
.pub-card .authors { font-size: 0.85rem; color: var(--text-light); font-style: italic; }
.pub-card .actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.pub-card .actions a {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.pub-card .actions a:hover { background: #f1f5f9; text-decoration: none; }
.pub-card .actions a.primary-btn { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
.pub-card .actions a.primary-btn:hover { background: var(--blue-800); }

/* === Opportunity Card === */
.opp-card {
  background: #fff;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.opp-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: #1e3a5f; }
.opp-card .desc { font-size: 0.9rem; color: var(--text-light); font-style: italic; margin-bottom: 1rem; }
.opp-card ul { list-style: none; margin-bottom: 1.5rem; flex: 1; }
.opp-card li { padding: 0.25rem 0; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.opp-card li::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.opp-card .btn-apply {
  display: block;
  text-align: center;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.opp-card .btn-apply:hover { background: #e5a820; text-decoration: none; }

/* === Contact Form === */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.contact-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}
.contact-form .btn-submit {
  width: 100%;
  padding: 0.75rem;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s;
}
.contact-form .btn-submit:hover { background: #e5a820; }

/* === Contact Info === */
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 2rem; }
.contact-info-item .icon-circle {
  width: 40px;
  height: 40px;
  background: #fef3c7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item h4 { font-weight: 700; margin-bottom: 0.25rem; }
.contact-info-item p { font-size: 0.9rem; color: var(--text-light); }

/* === Footer === */
.main-footer {
  background: linear-gradient(rgba(5,10,20,0.7), rgba(5,10,20,0.8)), url('/media/banners/footer-background.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.main-footer .footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.main-footer .footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.main-footer .footer-logo-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.main-footer .footer-logo-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.main-footer .footer-logo h2 { font-weight: 700; font-size: 1rem; }
.main-footer h4 { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; }
.main-footer .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.main-footer .footer-links a { color: #94a3b8; font-size: 0.85rem; transition: color 0.2s; }
.main-footer .footer-links a:hover { color: var(--gold); }
.main-footer .footer-connect { list-style: none; }
.main-footer .footer-connect li { display: flex; align-items: center; gap: 0.75rem; color: #94a3b8; font-size: 0.85rem; margin-bottom: 0.75rem; }
.main-footer .footer-connect a { color: #94a3b8; }
.main-footer .footer-connect a:hover { color: var(--gold); }
.main-footer .footer-connect .gold-icon { color: var(--gold); width: 16px; height: 16px; }
.main-footer .footer-social { display: flex; gap: 1rem; }
.main-footer .footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.2s;
}
.main-footer .footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.main-footer .footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b;
}

/* === Grid Overrides === */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
.grid-3 > * {
  height: 100%;
}
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }

/* === News / Events === */
.news-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.news-date { text-align: center; min-width: 60px; }
.news-date .month { font-size: 0.7rem; text-transform: uppercase; color: var(--text-light); font-weight: 700; }
.news-date .day { font-size: 1.5rem; font-weight: 700; }
.news-date .year { font-size: 0.7rem; color: var(--text-light); }
.news-content p { font-size: 0.9rem; color: #475569; }
.news-content a { font-size: 0.75rem; font-weight: 700; }

/* === Tables === */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* === Metric Cards === */
.metric-card { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.metric-card .metric-icon {
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.metric-card .metric-icon svg { width: 24px; height: 24px; }
.metric-card .metric-icon.blue { background: #eff6ff; color: #2563eb; }
.metric-card .metric-icon.orange { background: #fff7ed; color: #ea580c; }
.metric-card .metric-icon.green { background: #f0fdf4; color: #16a34a; }
.metric-card .metric-icon.purple { background: #faf5ff; color: #9333ea; }
.metric-card .metric-value { font-size: 1.4rem; font-weight: 700; }
.metric-card .metric-label { font-size: 0.7rem; color: var(--text-light); text-transform: uppercase; font-weight: 600; }

/* === Gallery (Masonry) === */
.gallery-grid {
  column-count: 2;
  column-gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  break-inside: avoid;
  margin-bottom: 1rem;
}
.gallery-item img { width: 100%; display: block; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: #fff;
}
.gallery-item:hover .overlay { opacity: 1; }

/* === Filter Buttons === */
.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--gold); }
.filter-btn.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  font-weight: 700;
}

/* === Subpage Overview === */
.overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}
.overview-text p { margin-bottom: 1rem; line-height: 1.8; color: #475569; }
.overview-text strong { color: var(--text); }
.overview-text blockquote {
  border-left: 4px solid #475569;
  background: #f1f5f9;
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.1rem;
}
.overview-text ul { list-style: none; }
.overview-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.25rem 0;
}
.overview-text ul li .check { color: var(--gold); }
.overview-visual { display: flex; flex-direction: column; gap: 1.5rem; }
.overview-visual img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.overview-visual p { font-size: 0.8rem; font-style: italic; color: var(--text-light); }

/* === Focusing Areas === */
.focusing-section { background: #f1f5f9; padding: 4rem 1.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.focus-card {
  background: #fff;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
}
.focus-card:hover { transform: translateY(-4px); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.focus-card .focus-icon {
  width: 48px;
  height: 48px;
  background: rgba(254,166,25,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--gold);
}
.focus-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.focus-card p { font-size: 0.9rem; color: var(--text-light); }

/* === Stats Banner === */
.stats-banner {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.25rem 2rem;
  margin-top: -3rem;
  position: relative;
  z-index: 20;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* === Loading / Error === */
.loading, .error { text-align: center; padding: 3rem 1rem; color: var(--text-light); }
.error { color: #e53e3e; }

/* === Final responsive overrides === */
.main-footer { width: 100%; }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .card-grid > * { min-width: 0; }

@media (max-width: 1024px) {
  .page-hero { padding: 15rem 2rem 2.5rem !important; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .main-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 768px) {
  html, body { width: 100%; min-width: 0; }
  .page-hero { padding: 12rem 1.5rem 2rem !important; }
  .grid-2, .grid-3, .grid-4, .card-grid,
  .overview-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .main-footer .footer-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2rem;
  }
  .main-footer .footer-grid > * { min-width: 0; }
  .main-footer .footer-links { grid-template-columns: minmax(0, 1fr) !important; }
  .main-footer .footer-connect li,
  .main-footer .footer-connect a { min-width: 0; }
  .main-footer .footer-connect a,
  .main-footer .footer-links a { overflow-wrap: anywhere; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .gallery-grid { column-count: 1; }
  .stats-banner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem;
    padding: 1rem;
    max-width: 100%;
  }
  .tour-grid { flex-direction: column !important; align-items: stretch !important; }
  .tour-grid > div { flex: none !important; }
}

@media (max-width: 480px) {
  .page-hero { padding: 10rem 1rem 1.5rem !important; }
  .theme-card { flex-direction: column; }
}
