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

:root {
  --primary:   #1a3c6e;
  --secondary: #c9a84c;
  --accent:    #e8f0fb;
  --text:      #2d2d2d;
  --muted:     #666;
  --white:     #fff;
  --light:     #f7f8fc;
  --border:    #dde3ed;
  --radius:    8px;
  --shadow:    0 4px 20px rgba(26,60,110,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--primary);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  padding: .35rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--secondary); }
.topbar-left, .topbar-right { display: flex; gap: 1.2rem; align-items: center; }

/* ===== NAVBAR ===== */
nav {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
  position: sticky;
  top: 0;
  z-index: 999;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 0;
}
.logo { display: flex; align-items: center; gap: .75rem; }
.logo-icon {
  width: 52px; height: 52px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.logo-text { line-height: 1.2; }
.logo-text strong { display: block; font-size: 1.1rem; color: var(--primary); }
.logo-text span { font-size: .75rem; color: var(--muted); }

.nav-links { display: flex; gap: .2rem; align-items: center; }
.nav-links a {
  padding: .5rem .9rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: .92rem;
  color: var(--text);
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--accent);
  color: var(--primary);
}
.nav-cta {
  background: var(--secondary) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: #b8922f !important; }

/* ===== CONTAINER ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.4rem; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 55%, #2a5298 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,.25);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}
.hero h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; opacity: .88; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  padding: .75rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  display: inline-block;
}
.btn-primary { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.btn-primary:hover { background: #b8922f; border-color: #b8922f; color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-blue { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-blue:hover { background: #14305a; color: var(--white); }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--secondary);
  color: var(--white);
  padding: 1.4rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 1rem;
}
.stat-num { font-size: 2rem; font-weight: 800; display: block; }
.stat-lbl { font-size: .82rem; opacity: .88; }

/* ===== SECTIONS ===== */
section { padding: 4.5rem 0; }
section.bg-light { background: var(--light); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .85rem;
  border-radius: 20px;
  margin-bottom: .7rem;
}
.section-header h2 { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: .6rem; }
.section-header p { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ===== CARDS ===== */
.cards-grid { display: grid; gap: 1.6rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.card-icon {
  width: 52px; height: 52px;
  background: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .9rem; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary), #2a5298);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: .5rem; }
.page-hero p { opacity: .85; font-size: 1rem; }
.breadcrumb { font-size: .82rem; opacity: .7; margin-top: .5rem; }
.breadcrumb a { color: var(--secondary); }

/* ===== TABLE ===== */
table { width: 100%; border-collapse: collapse; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--primary); color: var(--white); font-weight: 600; font-size: .88rem; }
tr:hover td { background: var(--accent); }

/* ===== FACULTY ===== */
.faculty-card {
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow .25s, transform .25s;
  background: var(--white);
}
.faculty-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.faculty-avatar {
  width: 100%; padding-top: 80%;
  position: relative;
  background: linear-gradient(135deg, var(--primary), #2a5298);
  overflow: hidden;
}
.faculty-avatar img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.faculty-card:hover .faculty-avatar img { transform: scale(1.05); }
.faculty-info { padding: 1.2rem; }
.faculty-info h4 { color: var(--primary); font-weight: 700; }
.faculty-info .role { color: var(--secondary); font-size: .83rem; font-weight: 600; margin: .2rem 0; }
.faculty-info p { color: var(--muted); font-size: .82rem; }

/* ===== NEWS ===== */
.news-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .25s, transform .25s;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-thumb {
  height: 185px;
  overflow: hidden;
  position: relative;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-thumb .news-category-badge {
  position: absolute; top: .7rem; left: .7rem;
  background: var(--secondary);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 20px;
  letter-spacing: .04em;
}
.news-body { padding: 1.4rem; }
.news-meta { font-size: .78rem; color: var(--muted); margin-bottom: .5rem; }
.news-body h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem; }
.news-body p { font-size: .88rem; color: var(--muted); }
.tag {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 600;
  padding: .18rem .6rem;
  border-radius: 20px;
  margin-right: .3rem;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gal-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: var(--white);
  padding: 1.8rem .9rem .7rem;
  font-size: .82rem;
  font-weight: 600;
}

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: start; }
.contact-info-box { background: var(--primary); color: var(--white); border-radius: 12px; padding: 2rem; }
.contact-info-box h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.contact-item .icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
.contact-item h4 { font-size: .85rem; opacity: .7; font-weight: 500; margin-bottom: .15rem; }
.contact-item p { font-size: .95rem; }
.contact-form { background: var(--light); border-radius: 12px; padding: 2rem; border: 1px solid var(--border); }
.contact-form h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .92rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,60,110,.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute; left: .6rem; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot {
  position: absolute; left: -1.65rem; top: .35rem;
  width: 14px; height: 14px;
  background: var(--secondary);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--secondary);
}
.timeline-year { font-size: .78rem; color: var(--secondary); font-weight: 700; margin-bottom: .2rem; }
.timeline-item h4 { font-weight: 700; color: var(--primary); margin-bottom: .2rem; }
.timeline-item p { font-size: .88rem; color: var(--muted); }

/* ===== ACCORDION ===== */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .7rem; overflow: hidden; }
.accordion-header {
  padding: 1rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.accordion-header:hover { background: var(--accent); }
.accordion-body { padding: 1rem 1.2rem; background: var(--light); font-size: .92rem; color: var(--muted); border-top: 1px solid var(--border); display: none; }
.accordion-item.open .accordion-body { display: block; }
.accordion-item.open .acc-icon { transform: rotate(180deg); }
.acc-icon { transition: transform .2s; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: linear-gradient(135deg, var(--primary), #2a5298);
  color: var(--white);
  border-radius: 14px;
  padding: 3rem 2.5rem;
  text-align: center;
}
.highlight-box h2 { font-size: 1.8rem; margin-bottom: .7rem; }
.highlight-box p { opacity: .85; margin-bottom: 1.8rem; }

/* ===== TWO-COL ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.two-col.reverse > *:first-child { order: 2; }
.two-col.reverse > *:last-child { order: 1; }
.col-visual {
  background: linear-gradient(135deg, var(--accent), #dde8f8);
  border-radius: 14px;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
  overflow: hidden;
}
.col-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 14px;
  min-height: 340px;
}
.col-text h2 { font-size: 1.8rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; }
.col-text p { color: var(--muted); margin-bottom: 1rem; }
.check-list li { display: flex; gap: .6rem; margin-bottom: .5rem; font-size: .93rem; }
.check-list li::before { content: '✓'; color: var(--secondary); font-weight: 800; flex-shrink: 0; }

/* ===== FOOTER ===== */
footer {
  background: #0f2547;
  color: rgba(255,255,255,.75);
  padding: 3.5rem 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .logo-icon { margin-bottom: .8rem; }
.footer-brand p { font-size: .88rem; margin-top: .6rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-weight: 700; margin-bottom: 1rem; font-size: .95rem; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-col ul li a:hover { color: var(--secondary); }
.footer-bottom {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.social-links { display: flex; gap: .7rem; }
.social-links a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: .85rem;
  transition: background .2s;
}
.social-links a:hover { background: var(--secondary); color: var(--white); }

/* ===== MISC ===== */
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.chip {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  border-radius: 20px;
  padding: .25rem .85rem;
  font-size: .8rem;
  font-weight: 600;
  margin: .2rem;
}
.chip.gold { background: #fdf3dc; color: #8a6000; }
.chip.green { background: #e8f7ee; color: #1a6b3a; }
.chip.red { background: #fdecea; color: #8b1a1a; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.info-item { background: var(--light); border-radius: var(--radius); padding: 1rem 1.2rem; border-left: 4px solid var(--secondary); }
.info-item h5 { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; }
.info-item p { font-size: .95rem; font-weight: 600; color: var(--primary); }

/* map placeholder */
.map-placeholder {
  background: linear-gradient(135deg, #e8f0fb, #dde8f8);
  border-radius: 12px;
  min-height: 280px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--primary);
  border: 1px solid var(--border);
  font-size: 4rem;
  gap: .7rem;
}
.map-placeholder p { font-size: .9rem; color: var(--muted); }
