/* =========================================================
   GALAXY OF EDUCATION - MAIN STYLESHEET
   CUSTOMIZE COLORS, TEXT, SPACING etc. FROM THIS FILE.
   ========================================================= */

:root{
  --navy:#0b2f5b;
  --navy-dark:#071d36;
  --blue:#17549a;
  --gold:#f5a800;
  --gold-dark:#d88f00;
  --light:#f5f7fa;
  --text:#263342;
  --muted:#65707c;
  --white:#ffffff;
  --border:#e2e6eb;
  --shadow:0 8px 25px rgba(20,40,70,.08);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:Arial,Helvetica,sans-serif;color:var(--text);line-height:1.6;background:#fff}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.container{width:min(1120px,92%);margin:auto}

/* TOP BAR */
.topbar{background:#07182d;color:#fff;font-size:14px}
.topbar-inner{min-height:42px;display:flex;align-items:center;gap:28px}
.topbar a{opacity:.95}
.topbar a:hover{color:var(--gold)}
.social{margin-left:auto;display:flex;gap:14px;align-items:center}
.social a{font-weight:bold}

/* NAVBAR */
.navbar{background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.06);position:sticky;top:0;z-index:20}
.nav-inner{min-height:96px;display:flex;align-items:center}
.brand{display:flex;align-items:center;gap:12px}
.logo-box{width:68px;height:68px;border:1px solid #ddd;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#fff}.logo-box img{width:100%;height:100%;object-fit:cover}
.logo-g{font-size:38px;font-weight:900;color:var(--navy)}
.brand-text strong{font-size:34px;color:var(--navy);letter-spacing:-1px}
.brand-text span{display:block;color:var(--gold);font-size:13px;font-weight:bold;letter-spacing:2px}
nav{margin-left:auto;display:flex;align-items:center;gap:30px;font-weight:bold}
nav a{padding:36px 0;position:relative}
nav a.active,nav a:hover{color:var(--blue)}
nav a.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--blue)}
.nav-call{padding:11px 15px!important;border:1px solid var(--blue);border-radius:5px}
.nav-call:after{display:none!important}
.menu-btn{display:none;border:0;background:none;font-size:28px;margin-left:auto;cursor:pointer}

/* HERO */
.hero{min-height:545px;position:relative;display:flex;align-items:center;background-image:url("https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1800&q=85");background-size:cover;background-position:center}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,22,43,.96),rgba(4,22,43,.72),rgba(4,22,43,.20))}
.hero-content{position:relative;color:#fff;padding:70px 0}
.eyebrow{font-weight:bold;color:var(--gold);letter-spacing:2px;margin-bottom:10px}
.hero h1{font-size:48px;line-height:1.15;letter-spacing:.5px}
.hero h1 span{color:#ffb313}
.hero-sub{font-size:18px;margin:25px 0 35px;color:#e8edf3}
.hero-buttons{display:flex;gap:18px}
.btn{display:inline-block;padding:14px 25px;border-radius:6px;font-weight:bold;border:2px solid transparent;transition:.2s}
.btn-primary{background:var(--gold);color:#111}
.btn-primary:hover{background:#ffba25;transform:translateY(-1px)}
.btn-outline{border-color:#fff;color:#fff}
.btn-outline:hover{background:#fff;color:var(--navy)}

/* SECTIONS */
.section{padding:75px 0}
.section-light{background:var(--light)}
.section-title{display:flex;align-items:center;justify-content:center;gap:20px;margin-bottom:45px}
.section-title span{width:65px;height:3px;background:var(--navy)}
.section-title h2{font-size:28px;color:var(--navy)}
.section-label{color:var(--gold-dark);font-weight:bold;letter-spacing:2px;font-size:14px}
h2{line-height:1.25}

/* ABOUT */
.about-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:55px;align-items:center}
.about-grid h2{font-size:36px;color:var(--navy);margin:8px 0 20px}
.about-grid p{margin-bottom:14px;color:var(--muted)}
.about-card{background:#fff;border:1px solid var(--border);padding:35px;border-radius:12px;text-align:center;box-shadow:var(--shadow)}
.about-icon{font-size:55px;margin-bottom:10px}

/* COURSES */
.course-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:30px}
.course-card{display:flex;gap:25px;background:#fff;border:1px solid var(--border);border-radius:10px;padding:30px;box-shadow:var(--shadow);transition:.2s}
.course-card:hover{transform:translateY(-5px);box-shadow:0 15px 30px rgba(20,40,70,.12)}
.course-icon{width:78px;height:78px;flex:0 0 78px;border-radius:50%;background:#edf4ff;display:grid;place-items:center;font-size:36px}
.course-card h3{font-size:24px;color:var(--navy);margin-bottom:4px}
.course-card strong{color:var(--gold-dark)}
.course-card p{color:var(--muted);margin:4px 0 10px}
.course-card small{color:var(--blue);font-weight:bold}

/* SERVICES */
.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.service-card{text-align:center;border:1px solid var(--border);border-radius:10px;padding:30px 18px;background:#fff}
.service-card>div{font-size:36px;margin-bottom:10px}
.service-card h3{color:var(--navy);margin-bottom:5px}
.service-card p{color:var(--muted);font-size:14px}

/* GALLERY */
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.gallery-grid img{width:100%;height:220px;object-fit:cover;border-radius:10px;box-shadow:var(--shadow);transition:.2s}
.gallery-grid img:hover{transform:scale(1.02)}

/* CTA */
.cta{background:var(--navy);color:#fff;padding:45px 0}
.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}
.cta h2{font-size:30px}.cta p{opacity:.8}

/* FOOTER */
footer{background:#06172a;color:#dfe8f1}
.footer-grid{padding:55px 0;display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}
.footer-grid h3{font-size:24px;color:#fff}
.footer-grid h3 span{color:var(--gold)}
.footer-grid h4{color:#fff;margin-bottom:10px}
.footer-grid a{display:block;margin:6px 0;color:#c7d2de}
.copyright{text-align:center;border-top:1px solid rgba(255,255,255,.1);padding:18px;font-size:13px}

/* COURSE DETAILS PAGE */
.page-banner{background:linear-gradient(110deg,var(--navy-dark),var(--blue));color:#fff;padding:65px 0}
.page-banner h1{font-size:42px;margin:5px 0}
.page-banner p:last-child{opacity:.85}
.detail-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:35px;margin-bottom:30px;box-shadow:var(--shadow)}
.detail-heading{display:flex;gap:22px;align-items:center;border-bottom:1px solid var(--border);padding-bottom:25px;margin-bottom:25px}
.detail-heading h2{font-size:30px;color:var(--navy)}
.detail-heading p{color:var(--muted)}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:45px}
.detail-grid h3{color:var(--navy);margin-bottom:12px}
.detail-grid p{color:var(--muted)}
.check-list{list-style:none}
.check-list li{margin:9px 0;color:#465361}
.check-list li:before{content:"✓";color:#159447;font-weight:bold;margin-right:10px}
.course-contact{text-align:center;background:var(--light);padding:40px;border-radius:12px}
.course-contact h2{color:var(--navy);margin-bottom:7px}
.course-contact p{color:var(--muted);margin-bottom:18px}

/* MOBILE */
@media(max-width:850px){
  .topbar-inner{gap:12px;flex-wrap:wrap;padding:8px 0;font-size:12px}
  .social{margin-left:0}
  .nav-inner{min-height:76px}
  .logo-box{width:52px;height:52px}.logo-g{font-size:29px}
  .brand-text strong{font-size:25px}.brand-text span{font-size:10px}
  .menu-btn{display:block}
  nav{display:none;position:absolute;left:0;right:0;top:76px;background:#fff;padding:10px 5%;box-shadow:0 8px 15px rgba(0,0,0,.1);flex-direction:column;align-items:stretch;gap:0}
  nav.open{display:flex}
  nav a{padding:13px 0;border-bottom:1px solid #eee}
  nav a.active:after{display:none}
  .nav-call{margin:8px 0!important;text-align:center}
  .hero{min-height:570px}
  .hero h1{font-size:37px}
  .hero-sub{font-size:16px}
  .section{padding:55px 0}
  .course-grid,.about-grid,.detail-grid{grid-template-columns:1fr}
  .service-grid{grid-template-columns:1fr 1fr}
  .gallery-grid{grid-template-columns:1fr 1fr}
  .gallery-grid img{height:180px}
  .footer-grid{grid-template-columns:1fr}
  .cta-inner{flex-direction:column;align-items:flex-start}
}

@media(max-width:520px){
  .topbar-inner>a:nth-child(2){display:none}
  .hero h1{font-size:31px}
  .hero-content{padding:55px 0}
  .hero-buttons{flex-direction:column;align-items:flex-start}
  .course-card{padding:22px;gap:15px}
  .course-icon{width:65px;height:65px;flex-basis:65px;font-size:28px}
  .course-card h3{font-size:20px}
  .service-grid,.gallery-grid{grid-template-columns:1fr}
  .gallery-grid img{height:220px}
  .section-title h2{font-size:22px}
  .section-title span{width:45px}
  .page-banner h1{font-size:32px}
}

/* ================= MULTI-PAGE ADDITIONS ================= */
.page-main{min-height:520px}
.page-intro{max-width:760px;margin:0 auto 42px;text-align:center}
.page-intro p{color:var(--muted)}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.info-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:28px;box-shadow:var(--shadow)}
.info-card .card-icon{font-size:38px;margin-bottom:10px}
.info-card h3{color:var(--navy);margin-bottom:7px}
.info-card p{color:var(--muted);font-size:15px}
.gallery-caption{text-align:center;padding:10px 4px;color:var(--muted);font-size:14px}
.gallery-item{background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}
.gallery-item img{border-radius:0;box-shadow:none}
@media(max-width:850px){.info-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.info-grid{grid-template-columns:1fr}}

/* Location / Google Map */
.location-section{display:grid;grid-template-columns:0.85fr 1.15fr;gap:28px;align-items:stretch;margin-top:45px}
.location-info,.map-card{background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow)}
.location-info{padding:32px}
.location-info h2{font-size:32px;color:var(--navy);margin:8px 0 16px}
.location-info p:not(.section-label){color:var(--muted);line-height:1.8;margin-bottom:24px}
.map-card{overflow:hidden;min-height:330px}
.map-card iframe{width:100%;height:100%;min-height:330px;border:0;display:block}
@media(max-width:850px){.location-section{grid-template-columns:1fr}.map-card{min-height:300px}}

/* SYLLABUS BUTTONS */
.syllabus-wrap{margin-top:14px}
.syllabus-toggle{background:var(--navy);color:#fff;border:2px solid var(--navy);cursor:pointer;padding:10px 18px}
.syllabus-toggle:hover{background:var(--blue);border-color:var(--blue)}
.syllabus-options{display:none;flex-direction:column;align-items:flex-start;gap:10px;margin-top:10px}
.syllabus-options.show{display:flex}
.syllabus-btn{background:#fff;color:var(--navy);border:1px solid var(--blue);padding:9px 14px;font-size:14px}
.syllabus-btn:hover{background:#edf4ff}
.syllabus-page-card{max-width:800px;margin:0 auto;background:#fff;border:1px solid var(--border);border-radius:12px;padding:40px;text-align:center;box-shadow:var(--shadow)}
.syllabus-page-card h2{color:var(--navy);margin-bottom:12px}
.syllabus-page-card p{color:var(--muted);margin-bottom:22px}

/* FOOTER SOCIAL ICONS - directly below Contact details */
.footer-social{display:flex;gap:12px;align-items:center;margin-top:14px}
.footer-social a{width:36px;height:36px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.28);border-radius:50%;margin:0;color:#fff!important;transition:.2s}
.footer-social a:hover{background:var(--gold);border-color:var(--gold);color:#111!important;transform:translateY(-2px)}


/* LOGIN + RESULT HEADER NAV */
.login-nav{position:relative;display:inline-block}
.login-nav-btn{background:none;border:0;font:inherit;color:inherit;cursor:pointer;padding:10px 12px}
.login-nav-btn:hover{color:var(--blue)}
.login-dropdown{display:none;position:absolute;top:100%;left:0;min-width:190px;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow);padding:7px;z-index:1000}
.login-dropdown.show{display:block}
.login-dropdown a{display:block!important;padding:10px 12px!important;margin:0!important;color:var(--navy)!important;text-decoration:none}
.login-dropdown a:hover{background:#edf4ff;color:var(--blue)!important}
.result-nav-link{display:inline-block}

/* DIGITAL CLASSROOM HOME SECTION */
.digital-classroom-home{padding-top:25px;padding-bottom:55px}
.digital-classroom-card{background:linear-gradient(135deg,#f7fbff,#ffffff);border:1px solid var(--border);border-radius:20px;padding:42px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.digital-classroom-card:before{content:"";position:absolute;left:0;top:0;width:6px;height:100%;background:var(--blue)}
.digital-classroom-content{max-width:980px;margin:0 auto}
.digital-classroom-content h2{font-size:38px;color:var(--navy);margin:7px 0 14px}
.digital-classroom-content .lead-text{font-size:17px;line-height:1.7;color:var(--muted);max-width:850px}
.digital-points{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:28px}
.digital-point{display:flex;gap:14px;padding:20px;background:#fff;border:1px solid var(--border);border-radius:14px}
.digital-icon{flex:0 0 30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font-weight:700}
.digital-point strong{color:var(--navy);font-size:18px}
.digital-point p{margin:6px 0 0;color:var(--muted);line-height:1.55}
@media(max-width:800px){.digital-points{grid-template-columns:1fr}.digital-classroom-card{padding:28px 22px}.digital-classroom-content h2{font-size:30px}}

/* RESTORED BOOKSHELF HERO */
.hero-section{
  position:relative;
  min-height:420px;
  display:flex;
  align-items:center;
  background-image:url("https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1800&q=85");
  background-size:cover;
  background-position:center;
  overflow:hidden;
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:rgba(4,22,42,.66);
}
.hero-section .container{
  position:relative;
  z-index:2;
  width:100%;
}
.hero-content{
  min-height:420px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  align-items:center;
  gap:35px;
}
.hero-text{
  padding:38px 0;
  color:#fff;
}
.hero-label{
  color:#f7ad18;
  font-weight:800;
  letter-spacing:2px;
  font-size:18px;
  margin:0 0 14px;
}
.hero-text h1{
  margin:0;
  color:#fff;
  font-size:clamp(42px,5vw,62px);
  line-height:1.03;
  font-weight:800;
  letter-spacing:.5px;
}
.hero-text h1 span{color:#f7ad18}
.hero-subtitle{
  color:#fff;
  font-size:18px;
  line-height:1.65;
  margin-top:30px;
}
.hero-faculty-photo{
  align-self:stretch;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:hidden;
}
.hero-faculty-photo img{
  width:min(100%,470px);
  max-height:420px;
  object-fit:contain;
  object-position:center bottom;
  filter:drop-shadow(0 12px 22px rgba(0,0,0,.25));
}
@media(max-width:800px){
  .hero-section{min-height:620px}
  .hero-content{grid-template-columns:1fr;min-height:620px;text-align:center}
  .hero-text{padding-top:55px}
  .hero-faculty-photo{max-height:310px}
  .hero-faculty-photo img{max-height:310px}
}

/* FINAL HERO ALIGNMENT FIX */
.hero-section{
  min-height:520px;
  display:flex;
  align-items:center;
}
.hero-section .container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 32px;
  box-sizing:border-box;
}
.hero-content{
  width:100%;
  min-height:520px;
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(390px, 520px);
  align-items:center;
  gap:55px;
}
.hero-text{
  max-width:650px;
  padding:0;
  margin:0;
  justify-self:start;
}
.hero-text h1{
  margin:0;
  line-height:1.05;
}
.hero-subtitle{
  margin:28px 0 0;
}
.hero-faculty-photo{
  width:100%;
  height:520px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:hidden;
}
.hero-faculty-photo img{
  display:block;
  height:540px;
  width:auto;
  max-width:110%;
  object-fit:contain;
  object-position:center bottom;
  margin:0 auto;
}
@media(max-width:900px){
  .hero-content{
    grid-template-columns:1fr;
    gap:10px;
    text-align:center;
  }
  .hero-text{
    justify-self:center;
    max-width:720px;
    padding-top:45px;
  }
  .hero-faculty-photo{
    height:330px;
  }
  .hero-faculty-photo img{
    max-height:330px;
  }
}
@media(max-width:600px){
  .hero-section,.hero-content{min-height:auto}
  .hero-section .container{padding:0 18px}
  .hero-text h1{font-size:38px}
  .hero-label{font-size:15px}
  .hero-subtitle{font-size:16px}
  .hero-faculty-photo{height:280px}
  .hero-faculty-photo img{max-height:280px}
}

/* FINAL FOOTER ALIGNMENT */
.site-footer{
  background:#071a2f;
  color:#fff;
  margin-top:50px;
}
.site-footer .footer-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr 1.4fr;
  gap:50px;
  align-items:start;
  padding:55px 32px 40px;
}
.footer-brand-head{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:48px;
}
.footer-logo{
  width:46px;
  height:46px;
  object-fit:contain;
  flex:0 0 46px;
}
.footer-brand h3{
  color:#fff!important;
  font-size:24px;
  line-height:1.1;
  margin:0;
  font-weight:800;
}
.footer-brand p,.footer-contact p{
  color:rgba(255,255,255,.78);
  line-height:1.6;
}
.footer-brand-head p{
  margin:5px 0 0;
  font-size:13px;
}
.footer-about{
  max-width:390px;
  margin-top:18px;
}
.site-footer h4{
  color:#fff;
  margin:0 0 15px;
  font-size:18px;
}
.footer-links a,.footer-contact a{
  display:block;
  color:rgba(255,255,255,.82);
  text-decoration:none;
  margin:9px 0;
}
.footer-links a:hover,.footer-contact a:hover{color:#fff}
.footer-contact p{margin:6px 0}
.site-footer .copyright{
  border-top:1px solid rgba(255,255,255,.14);
  text-align:center;
  padding:18px 20px;
  color:rgba(255,255,255,.7);
  font-size:13px;
}
@media(max-width:800px){
  .site-footer .footer-grid{
    grid-template-columns:1fr;
    gap:28px;
    padding:40px 22px 30px;
  }
}

/* HERO FONT SIZE - SMALLER */
.hero-text .hero-label{
  font-size:15px;
}
.hero-text h1{
  font-size:clamp(34px,4vw,50px);
}
.hero-text .hero-subtitle{
  font-size:16px;
  line-height:1.55;
}
@media(max-width:600px){
  .hero-text h1{font-size:32px;}
  .hero-text .hero-label{font-size:14px;}
  .hero-text .hero-subtitle{font-size:15px;}
}

/* HERO COMPACT FRAME - balanced with content, no empty space */
.hero-section{
  min-height:460px;
}
.hero-content{
  min-height:460px;
  grid-template-columns:minmax(0,1fr) minmax(360px,480px);
  gap:35px;
}
.hero-faculty-photo{
  height:460px;
}
.hero-faculty-photo img{
  height:460px;
  max-width:100%;
}
.hero-text h1{
  font-size:clamp(34px,4vw,50px);
  line-height:1.04;
}
.hero-label{font-size:15px;margin-bottom:10px}
.hero-subtitle{font-size:16px;line-height:1.5;margin-top:20px}

@media(max-width:900px){
  .hero-section{min-height:600px}
  .hero-content{min-height:600px;grid-template-columns:1fr;gap:5px}
  .hero-faculty-photo{height:300px}
  .hero-faculty-photo img{height:300px;max-height:300px}
}
@media(max-width:600px){
  .hero-section,.hero-content{min-height:auto}
  .hero-text h1{font-size:32px}
  .hero-faculty-photo{height:280px}
  .hero-faculty-photo img{height:280px;max-height:280px}
}

/* UPDATED INTERACTIVE FOOTER */
.site-footer .footer-grid{position:relative}
.footer-links a,.footer-contact a{transition:all .25s ease}
.footer-links a:hover{transform:translateX(5px);color:var(--gold)!important}
.footer-contact .footer-phone,
.footer-contact .footer-email{
  display:flex!important;
  align-items:center;
  gap:10px;
  width:max-content;
  max-width:100%;
  margin:10px 0!important;
}
.footer-contact .footer-phone i,
.footer-contact .footer-email i{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.25);
  border-radius:50%;
  color:var(--gold);
  flex:0 0 30px;
  transition:.25s ease;
}
.footer-contact .footer-phone:hover i,
.footer-contact .footer-email:hover i{
  background:var(--gold);
  color:#071a2f;
  transform:scale(1.08);
}
@media(max-width:800px){
  .footer-contact .footer-phone,.footer-contact .footer-email{width:auto}
}
