/* ============================================================
   GREENFIELD ACADEMY — Main Stylesheet
   Aesthetic: Editorial Calm / Refined Institutional
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --navy:      #0B6B3A;
  --teal:      #0B6B3A;
  --teal-light:#1FA463;
  --sky:       #F5F6F7;
  --gold:      #FBC02D;
  --white:     #ffffff;
  --off-white: #F5F6F7;
  --text:      #2E2E2E;
  --muted:     #5c6e82;
  --border:    #0B6B3A;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --shadow-sm:  0 2px 8px rgba(26,51,86,.08);
  --shadow-md:  0 6px 24px rgba(26,51,86,.12);
  --shadow-lg:  0 16px 48px rgba(26,51,86,.16);

  --radius:   8px;
  --radius-lg:16px;
  --nav-h:    70px;
  --transition: .25s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.25; }
h1 { font-size: clamp(2rem,   5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p  { color: var(--muted); font-size: .97rem; }

/* ---------- Layout Helpers ---------- */
.container   { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section     { padding: 80px 0; }
.section-alt { background: var(--off-white); }

.section-label {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title { color: var(--navy); margin-bottom: 16px; }
.section-sub   { max-width: 620px; font-size: 1rem; color: var(--muted); margin-bottom: 48px; }
.text-center   { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary   { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline   { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-gold      { background: var(--gold); color: var(--white); }
.btn-gold:hover{ background: #b07a1e; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-icon {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 26px; height: 26px; fill: var(--white); }
.nav-logo-text strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); line-height:1; }
.nav-logo-text span   { font-size: .72rem; color: var(--teal); letter-spacing:.05em; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); background: var(--sky); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: .7rem; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  z-index: 200;
}
.dropdown-menu a { display: block; padding: 10px 20px; font-size: .86rem; color: var(--text); }
.dropdown-menu a:hover { background: var(--sky); color: var(--teal); border-radius: 0; }
.nav-dropdown:hover .dropdown-menu { display: block; }

.nav-cta { margin-left: 12px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }

/* Mobile nav */
@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 4px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; display: block; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  /* min-height: calc(100vh - var(--nav-h)); */
  /* background: linear-gradient(135deg, var(--navy) 0%, #1e4a7a 40%, var(--teal) 100%); */
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.hero::before {
  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.03'%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");
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: .78rem; font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #7ae3d4; }
.hero p { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 36px; max-width: 520px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.15); }
.hero-stat-num { font-family: var(--font-display); font-size: 2rem; color: var(--white); line-height:1; }
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ============================================================
   HIGHLIGHTS / CARDS
   ============================================================ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px; height: 52px;
  background: var(--sky);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.card h4 { color: var(--navy); margin-bottom: 8px; }
.card p  { font-size: .9rem; }

.card-accent { border-top: 3px solid var(--teal); }
.card-accent-gold { border-top: 3px solid var(--gold); }

/* ============================================================
   STATS BANNER
   ============================================================ */
.stats-banner {
  background: var(--navy);
  padding: 60px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 40px; text-align: center; }
.stat-num  { font-family: var(--font-display); font-size: 2.8rem; color: var(--white); }
.stat-label{ font-size: .85rem; color: rgba(255,255,255,.6); margin-top: 4px; letter-spacing: .05em; text-transform: uppercase; }

/* ============================================================
   IMAGE PLACEHOLDER
   ============================================================ */
.img-placeholder {
  background: linear-gradient(135deg, #d0e8e4, #bbd8f0);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--teal);
  font-size: .8rem; font-weight: 500;
  border-radius: var(--radius);
  gap: 8px;
}
.img-placeholder .ph-icon { font-size: 2rem; opacity: .5; }

/* ============================================================
   ABOUT / MESSAGE SECTIONS
   ============================================================ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media(max-width:768px){ .two-col { grid-template-columns: 1fr; gap: 40px; } }

.timeline { border-left: 2px solid var(--border); padding-left: 32px; margin-top: 24px; }
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item::before {
  content:''; position: absolute; left: -39px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}
.timeline-year { font-size: .8rem; font-weight: 700; color: var(--teal); letter-spacing:.05em; margin-bottom:4px; }
.timeline-item h4 { color: var(--navy); margin-bottom: 6px; }

.message-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}
.message-card::before {
  content: '"';
  position: absolute; top: 16px; left: 32px;
  font-family: var(--font-display);
  font-size: 6rem; line-height:1;
  color: var(--sky); z-index: 0;
}
.message-card p, .message-card h4 { position: relative; z-index: 1; }
.message-author { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.author-avatar { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; overflow:hidden; }
.author-name  { font-weight: 600; color: var(--navy); font-size: .95rem; }
.author-title { font-size: .8rem; color: var(--teal); }

/* ============================================================
   ACADEMICS
   ============================================================ */
.doc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.doc-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--sky);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .9rem; font-weight: 500; color: var(--navy);
}
.doc-item::before { content: '📄'; font-size: 1.1rem; }

.policy-box {
  background: var(--sky);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin-bottom: 32px;
}
.policy-box h4 { color: var(--navy); margin-bottom: 8px; }

/* Fee Table */
.fee-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.fee-table { width: 100%; border-collapse: collapse; background: var(--white); }
.fee-table th { background: var(--navy); color: var(--white); padding: 14px 20px; font-size: .85rem; font-weight: 600; text-align: left; letter-spacing: .03em; }
.fee-table td { padding: 13px 20px; border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--text); }
.fee-table tr:hover td { background: var(--sky); }
.fee-table tr:last-child td { border-bottom: none; }
.fee-table .total-row td { font-weight: 700; color: var(--navy); background: #eef5fb; }

/* Faculty Grid */
.faculty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.faculty-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  transition: var(--transition);
}
.faculty-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.faculty-photo {
  width: 88px; height: 88px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 3px solid var(--border);
}
.faculty-name  { font-weight: 600; color: var(--navy); font-size: .95rem; }
.faculty-subj  { font-size: .8rem; color: var(--teal); margin-top: 4px; }

/* ============================================================
   FACILITIES
   ============================================================ */
.facility-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.facility-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.facility-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.facility-img { height: 180px; }
.facility-body { padding: 24px; }
.facility-body h4 { color: var(--navy); margin-bottom: 8px; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item .img-placeholder { height: 100%; border-radius: var(--radius); }
.gallery-item::after {
  content: '🔍';
  position: absolute; inset: 0;
  background: rgba(26,51,86,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover::after { opacity: 1; }

.gallery-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-btn {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .84rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
@media(max-width:768px){ .contact-grid { grid-template-columns: 1fr; } }

.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--sky); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.contact-label { font-size: .75rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.contact-value { font-size: .95rem; color: var(--text); }

.map-placeholder {
  height: 220px;
  background: linear-gradient(135deg, #c8dce8, #b4ccd8);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  color: var(--navy);
  font-weight: 500; font-size: .9rem;
  margin-top: 8px;
  border: 2px dashed var(--border);
}
.map-placeholder span { font-size: 2.5rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .84rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42,125,111,.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:600px){ .form-row { grid-template-columns: 1fr; } }

.form-error { color: #c0392b; font-size: .8rem; margin-top: 4px; display: none; }
.form-error.show { display: block; }
.field-error input, .field-error select, .field-error textarea { border-color: #c0392b; }

.form-success {
  background: #eaf7f3;
  border: 1px solid #2ecc71;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #1a6640;
  font-size: .9rem;
  display: none;
  margin-top: 16px;
}
.form-success.show { display: block; }

/* ============================================================
   HERO (Page Inner)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4a7a 100%);
  padding: 70px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,.7); margin: 12px auto 0; max-width: 560px; font-size: 1rem; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-top: 18px; font-size: .82rem; color: rgba(255,255,255,.5); }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span::before { content: '/'; margin-right: 8px; }

/* ============================================================
   TABS
   ============================================================ */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 40px; overflow-x: auto; }
.tab-btn {
  padding: 12px 22px;
  font-size: .88rem; font-weight: 600;
  color: var(--muted);
  background: none; border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover { color: var(--teal); border-bottom-color: var(--teal); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ============================================================
   NOTICE BAND
   ============================================================ */
.notice-band {
  background: var(--gold);
  color: var(--white);
  text-align: center;
  padding: 10px 24px;
  font-size: .85rem;
  font-weight: 500;
}
.notice-band a { color: var(--white); text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0B6B3A;
  color: rgba(255,255,255,.6);
  padding: 64px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; margin-bottom: 48px; }
@media(max-width:900px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:540px){ .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { font-size: .88rem; line-height: 1.8; margin: 14px 0 20px;color: rgba(255,255,255,.6); }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo-icon { width: 40px; height: 40px; background: var(--teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-logo-icon img {   border-radius: 50%; }
.footer-logo strong { color: var(--white); font-family: var(--font-display); font-size: 1.05rem; }

.footer-col h5 { color: var(--white); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.55); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--teal-light); }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.social-btn:hover { background: var(--teal); color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: .82rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--teal-light); }

/* ============================================================
   UTILITY ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(24px); }
  to   { opacity:1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media(max-width:768px){
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 50px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .cards-grid { grid-template-columns: 1fr; }
}
@media(max-width:480px){
  .hero-btns { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .navbar, .footer, .notice-band { display: none; }
  .page-hero { background: none; padding: 20px 0; }
  .page-hero h1 { color: var(--navy); }
}

.help-block{
  color:#E85A4F;
}