/* =============================================
   SC POLYTECHNIC – COUNSELLING HUB
   CSS Stylesheet
   ============================================= */

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

:root {
  --navy:     #0a3055;
  --navy-mid: #124172;
  --gold:     #e8b400;
  --gold-lt:  #f5d050;
  --cream:    #fdfaf3;
  --slate:    #4a5568;
  --light:    #f5f7fa;
  --white:    #ffffff;
  --success:  #22863a;
  --radius:   12px;
  --shadow:   0 4px 24px rgba(10,48,85,0.10);
  --shadow-lg:0 8px 40px rgba(10,48,85,0.16);
  --font-h:   'Playfair Display', Georgia, serif;
  --font-b:   'DM Sans', sans-serif;
  --transition: 0.28s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  color: var(--slate);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── TOP BAR ──────────────────────────────── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.82);
  font-size: 12.5px;
  text-align: center;
  padding: 7px 24px;
  letter-spacing: 0.3px;
}

/* ── HEADER ───────────────────────────────── */
.header {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(10,48,85,0.09);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.logo-block {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.logo-icon svg { width: 54px; height: 54px; }
.logo-text { display: flex; flex-direction: column; }
.college-name {
  font-family: var(--font-h);
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.college-sub {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 14.5px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.nav a:hover { background: var(--navy); color: var(--white); }
.nav a.nav-highlight {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}
.nav a.nav-highlight:hover {
  background: var(--gold-lt);
  color: var(--navy);
}
.hamburger {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy);
  padding: 8px 0;
}
.mobile-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 12px 24px;
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.mobile-nav a:hover { background: rgba(255,255,255,0.08); }
.mobile-nav a.nav-highlight-mob {
  background: rgba(232,180,0,0.18);
  color: var(--gold);
  font-weight: 700;
}
.mobile-nav a.nav-highlight-mob:hover {
  background: rgba(232,180,0,0.28);
}
.mobile-nav.open { display: flex; }

/* ── HERO ─────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a5490 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 90px 0 80px;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(232,180,0,0.15) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(255,255,255,0.05) 0%, transparent 40%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 740px; }
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-h);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 22px;
}
.hero-title .highlight { color: var(--gold); }
.hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(232,180,0,0.30);
}
.btn-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,180,0,0.40);
}
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.50);
  transition: border-color var(--transition), background var(--transition);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-h);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label { font-size: 12px; color: rgba(255,255,255,0.70); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 4px; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.20); }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.hero-wave svg { display: block; width: 100%; height: 60px; }

/* ── NOTICE TICKER ───────────────────────── */
.notice-bar {
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 10px 0;
  overflow: hidden;
}
.notice-label {
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 24px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ticker-wrap { overflow: hidden; flex: 1; margin-left: 20px; }
.ticker-content {
  display: inline-block;
  white-space: nowrap;
  font-size: 13.5px;
  animation: ticker 40s linear infinite;
  color: rgba(255,255,255,0.88);
}
@keyframes ticker {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ── SECTIONS (shared) ───────────────────── */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  background: rgba(10,48,85,0.08);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-h);
  font-size: clamp(26px, 3.5vw, 40px);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-desc {
  max-width: 620px;
  margin: 0 auto;
  color: var(--slate);
  font-size: 16px;
  line-height: 1.7;
}

/* ── ABOUT CARDS ─────────────────────────── */
.about-section { background: var(--light); }
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--gold);
}
.about-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 36px; margin-bottom: 16px; }
.about-card h3 {
  font-family: var(--font-h);
  color: var(--navy);
  font-size: 19px;
  margin-bottom: 10px;
  font-weight: 700;
}
.about-card p { font-size: 14.5px; line-height: 1.65; }

/* ── TIMELINE ────────────────────────────── */
.schedule-section { background: var(--cream); }
.timeline { max-width: 700px; margin: 0 auto; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--navy));
  border-radius: 3px;
}
.timeline-item {
  display: flex;
  gap: 32px;
  padding: 0 0 40px 0;
  position: relative;
}
.timeline-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(232,180,0,0.15);
  transition: background var(--transition);
}
.timeline-item.active .timeline-dot { background: var(--gold); }
.timeline-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  flex: 1;
}
.timeline-date {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.timeline-content h4 {
  font-family: var(--font-h);
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.timeline-content p { font-size: 14.5px; line-height: 1.65; }

/* ── COURSES ─────────────────────────────── */
.courses-section { background: var(--light); }
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
  border-left: 4px solid var(--navy);
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.course-card h4 {
  font-family: var(--font-h);
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
}
.course-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--slate);
  font-weight: 500;
}
.courses-note {
  font-size: 13px;
  color: var(--slate);
  text-align: center;
  opacity: 0.75;
  margin-top: 8px;
}

/* ── DOCUMENTS ───────────────────────────── */
.documents-section { background: var(--white); }
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 36px;
}
.docs-col {
  background: var(--light);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 4px solid var(--navy);
}
.docs-group-title {
  font-family: var(--font-h);
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 18px;
}
.docs-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.docs-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; }
.check { color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.docs-download { text-align: center; }

/* ── FEE TABLE ───────────────────────────── */
.fee-section { background: var(--cream); }
.fee-table-wrap { overflow-x: auto; }
.fee-table { width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fee-table thead { background: var(--navy); color: var(--white); }
.fee-table th { padding: 16px 20px; text-align: left; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.fee-table td { padding: 14px 20px; font-size: 14.5px; border-bottom: 1px solid rgba(0,0,0,0.07); }
.fee-table tbody tr:last-child td { border-bottom: none; }
.fee-table .highlight-row { background: rgba(10,48,85,0.04); }
.fee-note { font-size: 13px; margin-top: 14px; color: var(--slate); text-align: center; opacity: 0.80; }

/* ── FAQ ─────────────────────────────────── */
.faq-section { background: var(--light); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  transition: background var(--transition);
  gap: 16px;
}
.faq-q:hover { background: var(--light); }
.faq-icon { font-size: 22px; font-weight: 300; flex-shrink: 0; transition: transform var(--transition); }
.faq-q.open { background: var(--navy); color: var(--white); }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding var(--transition);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--slate);
  padding: 0 24px;
}
.faq-a.open { max-height: 200px; padding: 16px 24px; }

/* ── CONTACT ─────────────────────────────── */
.contact-section { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-icon { font-size: 26px; flex-shrink: 0; margin-top: 3px; }
.contact-item strong { display: block; color: var(--navy); font-weight: 700; margin-bottom: 4px; font-size: 15px; }
.contact-item p { font-size: 14.5px; line-height: 1.6; }
.contact-form-wrap {
  background: var(--light);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.contact-form-wrap h3 {
  font-family: var(--font-h);
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid #d1d9e6;
  border-radius: 8px;
  padding: 11px 14px;
  font-family: var(--font-b);
  font-size: 14.5px;
  color: var(--slate);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10,48,85,0.10);
}
.full-width { width: 100%; text-align: center; font-size: 16px; padding: 14px; }
.form-success {
  background: #e8f5e9;
  color: var(--success);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
}

/* ── FOOTER ──────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,0.78); padding: 64px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.footer-logo strong { display: block; color: var(--white); font-size: 16px; }
.footer-logo small { display: block; color: var(--gold); font-size: 12px; }
.footer-tagline { font-size: 13.5px; line-height: 1.7; }
.footer-col h4 { color: var(--gold); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.70); text-decoration: none; font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-col p { font-size: 13.5px; margin-bottom: 8px; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 24px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

/* ── BACK TO TOP ─────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  border: 2px solid var(--gold);
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background var(--transition), transform var(--transition);
  z-index: 999;
}
.back-to-top:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.back-to-top.visible { display: flex; }

/* ── FADE IN ANIMATION ───────────────────── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 60px; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; }
  .topbar { font-size: 11px; }
  .contact-form-wrap { padding: 24px 18px; }
}
