:root {
  --green: #145a32;
  --green-dark: #0b3d22;
  --green-light: #1e7a45;
  --gold: #c8940a;
  --gold-light: #f4c430;
  --red: #b83227;
  --navy: #1c2b4a;
  --white: #ffffff;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --border: #dde3ea;
  --text: #2b3442;
  --muted: #667085;
  --shadow: 0 8px 30px rgba(20, 90, 50, 0.08);
  --radius: 10px;
  --font: 'Segoe UI', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-light); }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Top bar */
.top-bar { background: var(--green-dark); color: rgba(255,255,255,.92); font-size: 12.5px; }
.top-inner { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding: 9px 0; }
.top-bar a { color: var(--gold-light); }

/* Header */
.site-header { background: var(--white); border-bottom: 3px solid var(--green); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; position: relative; }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; min-width: 0; }
.brand:hover { color: inherit; }
.brand img { width: 78px; height: 78px; object-fit: contain; flex-shrink: 0; }
.brand-text { min-width: 0; }
.brand-text strong { display: block; font-size: 1.25rem; color: var(--green-dark); line-height: 1.2; }
.brand-text span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.brand-text em { display: block; font-size: 11px; color: var(--gold); font-style: normal; margin-top: 3px; font-weight: 600; }

.main-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a {
  padding: 8px 13px; border-radius: 6px; font-size: 13.5px; font-weight: 600;
  color: var(--navy); transition: .15s;
}
.main-nav a:hover, .main-nav a.active { background: var(--green); color: var(--white); }
.nav-toggle {
  display: none; border: 1px solid var(--border); background: var(--white);
  color: var(--green); font-size: 20px; border-radius: 8px; padding: 6px 10px; cursor: pointer;
}

/* Ticker */
.news-ticker { background: linear-gradient(90deg, var(--gold), #e0ad20); color: var(--green-dark); }
.ticker-wrap { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.ticker-label {
  background: var(--green-dark); color: var(--gold-light); font-size: 11px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase; padding: 5px 12px; border-radius: 4px; white-space: nowrap;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-content { display: inline-block; white-space: nowrap; animation: ticker 35s linear infinite; font-size: 13.5px; font-weight: 600; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Page banner */
.page-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white); padding: 36px 0 42px;
}
.page-banner .breadcrumb { font-size: 12px; opacity: .8; margin-bottom: 8px; }
.page-banner h1 { font-size: clamp(1.75rem, 4vw, 2.35rem); margin-bottom: 8px; }
.page-banner p { opacity: .92; max-width: 640px; }

/* Main sections */
.page-content { padding: 40px 0 56px; }
.section-title { margin-bottom: 24px; }
.section-title h2 { color: var(--green-dark); font-size: 1.5rem; margin-bottom: 6px; }
.section-title p { color: var(--muted); font-size: 14px; }
.section-title .line { width: 48px; height: 3px; background: var(--gold); margin-top: 10px; border-radius: 2px; }

/* Home hero */
.home-hero {
  background:
    linear-gradient(120deg, rgba(11,61,34,.92) 0%, rgba(20,90,50,.82) 100%),
    url('../assets/images/campus-entrance.png') center 20% / cover no-repeat;
  color: var(--white); padding: 72px 0 80px;
}
.home-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.home-hero h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1.15; margin-bottom: 14px; }
.home-hero p { font-size: 1.02rem; opacity: .94; max-width: 560px; margin-bottom: 24px; }
.hero-card {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); border-radius: var(--radius); padding: 22px;
}
.hero-card img { width: 120px; margin: 0 auto 12px; }
.hero-card p { text-align: center; font-size: 13px; opacity: .9; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px;
  border-radius: 7px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--gold-light); color: var(--green-dark); }
.btn-primary:hover { filter: brightness(1.05); color: var(--green-dark); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.75); }
.btn-outline:hover { background: var(--white); color: var(--green); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-light); color: var(--white); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Stats */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: -36px; position: relative; z-index: 2; margin-bottom: 40px;
}
.stat-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: center; padding: 22px 12px;
}
.stat-card strong { display: block; font-size: 1.8rem; color: var(--green); line-height: 1; }
.stat-card span { font-size: 13px; color: var(--muted); margin-top: 6px; display: block; }

/* Cards & grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-body { padding: 22px; }
.card img.cover { width: 100%; height: 190px; object-fit: cover; }

.recognition-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.badge-pill {
  background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--green);
  padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--navy);
}

/* Quote cards (no photos) */
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quote-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; border-top: 4px solid var(--green);
}
.quote-card h3 { color: var(--green-dark); font-size: 1.05rem; margin-bottom: 4px; }
.quote-card .role { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.quote-card p { font-size: 14px; color: var(--muted); text-align: justify; }

.feature-list { list-style: none; margin-top: 16px; }
.feature-list li {
  padding: 7px 0 7px 22px; position: relative; font-size: 14px;
}
.feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Notices */
.notices-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tab-bar { display: flex; flex-wrap: wrap; background: #eef2f6; border-bottom: 1px solid var(--border); }
.tab-btn {
  flex: 1; min-width: 110px; border: none; background: none; padding: 13px 10px;
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.tab-btn.active { background: var(--green); color: var(--white); }
.tab-content { display: none; max-height: 480px; overflow-y: auto; }
.tab-content.active { display: block; }
.notice-item {
  display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.notice-item:hover { background: #f8fafb; }
.notice-date {
  min-width: 54px; text-align: center; background: var(--green); color: var(--white);
  border-radius: 7px; padding: 7px 8px; font-size: 11px; line-height: 1.25;
}
.notice-date .day { display: block; font-size: 17px; font-weight: 700; }
.notice-info h4 { font-size: 14px; color: var(--navy); margin-bottom: 3px; }
.notice-info h4 a { color: inherit; }
.notice-info .meta { font-size: 12px; color: var(--muted); }
.empty-state { padding: 36px; text-align: center; color: var(--muted); }

.quick-links { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.quick-links h3 { background: var(--green); color: var(--white); padding: 13px 18px; font-size: 14px; }
.quick-links a {
  display: block; padding: 12px 18px; border-bottom: 1px solid var(--border);
  color: var(--navy); font-size: 14px;
}
.quick-links a:hover { background: #f4f7f9; color: var(--green); padding-left: 22px; }

/* Tables */
.fee-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.fee-table th, .fee-table td { padding: 11px 14px; border: 1px solid var(--border); text-align: left; }
.fee-table th { background: var(--green); color: var(--white); }
.fee-table tr:nth-child(even) { background: #f8fafb; }

.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.detail-box { background: #f4f7f9; border: 1px solid var(--border); border-radius: 8px; padding: 14px; text-align: center; }
.detail-box .label { font-size: 12px; color: var(--muted); }
.detail-box .value { font-size: 1.15rem; font-weight: 700; color: var(--green); margin-top: 4px; }

/* Facilities */
.facility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.facility-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.facility-card img { width: 100%; height: 200px; object-fit: cover; }
.facility-card .fc-body { padding: 18px; }
.facility-card h4 { color: var(--green-dark); margin-bottom: 8px; font-size: 1rem; }
.facility-card p { font-size: 13.5px; color: var(--muted); }

.route-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.route-tag { background: var(--green); color: var(--white); padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); aspect-ratio: 4/3; background: #eef2f6;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); color: var(--white);
  font-size: 13px; font-weight: 600;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact-row { display: flex; gap: 12px; margin-bottom: 18px; }
.contact-row:last-child { margin-bottom: 0; }
.contact-icon {
  width: 42px; height: 42px; border-radius: 8px; background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0;
}
.contact-row h4 { font-size: 13px; color: var(--green); margin-bottom: 2px; }
.contact-row p { font-size: 14px; color: var(--muted); }
.map-link-card {
  background: linear-gradient(135deg, var(--green-dark), var(--green)); color: var(--white);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: center;
  min-height: 260px; box-shadow: var(--shadow);
}
.map-link-card h3 { margin-bottom: 10px; }
.map-link-card p { opacity: .9; margin-bottom: 18px; font-size: 14px; }
.map-link-card .btn-primary { align-self: flex-start; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.step { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; border-top: 3px solid var(--gold); }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 10px; }
.step h4 { font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }

.doc-list { columns: 2; gap: 20px; list-style: none; }
.doc-list li { padding: 5px 0 5px 18px; position: relative; font-size: 14px; break-inside: avoid; }
.doc-list li::before { content: '•'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Footer */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.88); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding: 40px 0 28px; }
.footer-brand { display: flex; gap: 14px; }
.footer-brand img { object-fit: contain; background: rgba(255,255,255,.95); border-radius: 10px; padding: 4px; }
.footer-grid h4 { color: var(--gold-light); margin-bottom: 12px; font-size: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li, .footer-grid p { font-size: 13px; line-height: 1.8; }
.footer-grid a { color: rgba(255,255,255,.78); }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.65); }

/* Lab detail blocks */
.lab-detail {
  display: grid; grid-template-columns: 280px 1fr; gap: 24px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); margin-bottom: 20px;
}
.lab-detail img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.lab-detail-body { padding: 22px 22px 22px 0; }
.lab-detail-body h3 { color: var(--green-dark); font-size: 1.15rem; margin-bottom: 8px; }
.lab-detail-body p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.equip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.equip-tag { background: #eef6f0; color: var(--green-dark); border: 1px solid #c8e6d0; padding: 4px 10px; border-radius: 14px; font-size: 12px; font-weight: 600; }

/* Activity cards */
.activity-section { margin-bottom: 40px; }
.activity-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.activity-header img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; border: 2px solid var(--border); }
.activity-header h2 { color: var(--green-dark); font-size: 1.35rem; }
.activity-header p { color: var(--muted); font-size: 14px; }
.activity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.activity-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.activity-card img { width: 100%; height: 170px; object-fit: cover; }
.activity-card img.image-contain,
.gallery-item img.image-contain { object-fit: contain; background: #eaf5fa; }
.activity-card .ac-body { padding: 16px; }
.activity-card h4 { color: var(--green-dark); margin-bottom: 6px; font-size: 15px; }
.activity-card p { font-size: 13px; color: var(--muted); }

.gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.gallery-tab { padding: 8px 16px; border: 1px solid var(--border); background: var(--white); border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; color: var(--navy); }
.gallery-tab.active { background: var(--green); color: var(--white); border-color: var(--green); }

@media (max-width: 700px) {
  .lab-detail { grid-template-columns: 1fr; }
  .lab-detail-body { padding: 0 22px 22px; }
}

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.88);
  z-index: 9999; align-items: center; justify-content: center; padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox img { max-height: 90vh; max-width: 92vw; border-radius: 8px; }
.lightbox-close { position: absolute; top: 16px; right: 22px; background: none; border: none; color: #fff; font-size: 34px; cursor: pointer; }

@media (max-width: 900px) {
  .home-hero-grid, .grid-2, .grid-3, .quote-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats-row, .steps, .detail-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 10px; border-top: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .brand img { width: 62px; height: 62px; }
  .brand-text strong { font-size: 1.05rem; }
  .doc-list { columns: 1; }
}
