/* ===================================== */
/* GLOBAL RESET */
/* ===================================== */
/* ===== MOBILE OVERFLOW KILLER ===== */
html, body{
  overflow-x:hidden;
  max-width:100%;
}

/* CRITICAL LAYER FIX */
section{
  position:relative;
  z-index:1;
}


section > .container{
  position:relative;
  z-index:2;
}
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Segoe UI', sans-serif;
}

html{ scroll-behavior:smooth; }

body{
  background:#F4F8FF;
  color:#1a1a1a;
  line-height:1.6;
  animation:fadePage 0.8s ease-in-out;

}

@keyframes fadePage{
  from{opacity:0; transform:translateY(10px);}
  to{opacity:1; transform:translateY(0);}
}

/* ===================================== */
/* CONTAINER (MOST IMPORTANT FIX) */
/* ===================================== */

.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 5%;
}

/* ===================================== */
/* SECTION STRUCTURE */
/* ===================================== */

section{
  padding:120px 5%;
  position:relative;
}


.section-title{
  text-align:center;
  font-size:38px;
  margin-bottom:70px;
  color:#0A2A66;
  font-weight:800;
}

.section-title::after{
  content:"";
  width:80px;
  height:4px;
  background:#1E5BFF;
  display:block;
  margin:18px auto 0;
  border-radius:4px;
}

/* ===================================== */
/* HEADER */
/* ===================================== */

.main-header{
  backdrop-filter:blur(10px);
  background:rgba(255,255,255,0.95);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 5%;
  position:fixed;   /* ✅ */
  top:0;
  left:0;           /* ✅ add */
  width:100%;       /* ✅ add */
  z-index:9999;     /* ✅ stronger */
  box-shadow:0 8px 30px rgba(10,42,102,0.08);
  height:68px;
  overflow:visible;
}

.main-header > *{
  display:flex;
  align-items:center;
}

.logo-img{ height:44px; }

.center-title{
  text-align:center;
  flex:1;
  line-height:1;
  display:flex;
  justify-content:center;
  align-items:center;
}

.center-title .main-name{
  font-family: 'Fredoka', sans-serif;
  font-size:40px;
  font-weight:850;
  letter-spacing:1px;
  color:#000;
  margin:0;
}


nav{
  gap:28px;
  align-items:center;
}

nav a{
  color:#0A2A66;
  text-decoration:none;
  font-weight:600;
  font-size:15px;
}

.apply-btn{
  background:#1E5BFF;
  color:white !important;
  padding:8px 18px;
  border-radius:6px;
}

.menu-toggle{
  display:none;
  font-size:28px;
  cursor:pointer;
}

/* ===================================== */
/* SPLIT HERO */
/* ===================================== */

.hero-split{
  padding:100px 20px;
  background:#ffffff;
}

.hero-grid{
  display:grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items:center;
  gap:50px;
  width:100%;
}

.hero-left h1{
  font-size:54px;
  font-weight:800;
  color:#000;
  line-height:1.1;
}

.hero-left h1 span{
  font-weight:700;
}

.tagline{
  margin-top:10px;
  font-size:18px;
  font-weight:600;
}

.desc{
  margin-top:25px;
  font-size:18px;
  color:#444;
  line-height:1.7;
}

.hero-btn{
  display:inline-block;
  margin-top:30px;
  padding:14px 30px;
  background:#5b2d2d;
  color:white;
  border-radius:30px;
  text-decoration:none;
  font-weight:600;
}

.hero-right{
  width:100%;
}

.hero-right img{
  width:100%;
  max-width:100%;
  height:520px;
  border-radius:24px;
  object-fit:cover;
  display:block;
}

/* ===================================== */
/* HERO — PERFECT MOBILE LAYOUT */
/* ===================================== */

@media (max-width:768px){

  .hero-split{
    padding:100px 20px;
  }

  .hero-grid{
    display:flex;
    flex-direction:column;
    align-items:flex-start;   /* ✅ left */
    text-align:left;          /* ✅ left */
    gap:28px;
    padding:0 18px;
  }

  .hero-left{
    width:100%;
  }

  .hero-left h1{
    font-size:38px;
    line-height:1.2;
  }

  .hero-left .tagline{
    font-size:16px;
    margin-top:10px;
  }

  .hero-left .desc{
    font-size:15px;
    line-height:1.7;
    margin-top:15px;
  }

  .hero-right{
    width:100%;
  }

  .hero-right img{
    width:100%;
    height:auto;
    border-radius:16px;
  }

}

/* HIGHLIGHT SECTION */

.highlight-section{
  position:relative;
  text-align:center;
  padding:140px 20px;
  color:white;
  overflow:hidden;
}

/* Background image (no blue overlay) */
.highlight-section::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b') center/cover no-repeat;
  z-index:1;
}

/* Keep content above image */
.highlight-section *{
  position:relative;
  z-index:2;
}

.highlight-section h2{
  font-size:48px;
  font-weight:800;
  margin-bottom:18px;
  text-shadow:0 6px 25px rgba(0,0,0,0.4);
}

.highlight-section p{
  font-size:20px;
  margin-bottom:30px;
  color:#f1f1f1;
}

/* Button style */
.btn-primary{
  display:inline-block;
  padding:14px 38px;
  background:#1E5BFF;
  color:white;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  box-shadow:0 10px 30px rgba(0,0,0,0.3);
  transition:0.3s;
}

.btn-primary:hover{
  transform:translateY(-4px);
}

/* oppurtunities in germany */
/* GRID LAYOUT */
/* SECTION BACKGROUND */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #eef3ff, #f9fbff);
}

/* GRID */
.opp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
}

/* CARD */
.opp-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 35px 25px;
  border-radius: 18px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transition: all 0.35s ease;
  overflow: hidden;
}

/* subtle top accent line */
.opp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #00c6ff, #1e5bff);
  opacity: 0;
  transition: 0.3s;
}

/* hover effect */
.opp-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(30, 91, 255, 0.25);
}

.opp-card:hover::before {
  opacity: 1;
}

/* ICON */
.opp-icon {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c6ff, #1e5bff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 25px rgba(30,91,255,0.3);
}

.opp-icon i {
  font-size: 30px;
  color: #fff;
}

/* TEXT */
.opp-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #111;
  font-weight: 600;
}

.opp-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

/* HOVER TEXT EFFECT */
.opp-card:hover h3 {
  color: #1e5bff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .opp-grid {
    grid-template-columns: 1fr;
  }
}


/* ===================================== */
/* GRID & CARDS */
/* ===================================== */

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:35px;
}

.card{
  background:white;
  padding:38px;
  border-radius:18px;
  box-shadow:0 15px 40px rgba(10,42,102,0.08);
  border:1px solid rgba(30,91,255,0.08);
  transition:0.35s;
}

.card:hover{
  transform:translateY(-10px);
  box-shadow:0 25px 60px rgba(10,42,102,0.15);
}

/* ===================================== */
/* GALLERY */
/* ===================================== */

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
  gap:25px;
  margin-top:40px;
}

.gallery-item{
  overflow:hidden;
  border-radius:14px;
}

.gallery-item img{
  width:100%;
  height:250px;
  object-fit:cover;
  transition:0.6s;
}

.gallery-item:hover img{
  transform:scale(1.12);
}

/* ===================================== */
/* STATS — FIXED RESPONSIVE */
/* ===================================== */

.stats{
  position:relative;
  background:#0A2A66;
  color:white;
  padding:100px 0;
  overflow:hidden;
}

.stats .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  text-align:center;
  gap:40px;
  flex-wrap:wrap;          /* IMPORTANT for mobile */
}

.stat{
  flex:1;
  min-width:220px;
}

.stat h3{
  font-size:48px;
  font-weight:800;
}

.stat p{
  margin-top:10px;
  font-size:18px;
  color:#d6e2ff;
}

/* Mobile */
@media (max-width:768px){
  .stats .container{
    flex-direction:column;
    gap:50px;
  }
}

/* ===================================== */
/* CTA SECTION — FIXED LIKE HERO */
/* ===================================== */

.cta{
  position:relative;
  color:white;
  text-align:center;
  padding:120px 0;
  overflow:hidden;
}

/* Background + dark overlay */
.cta::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('https://images.unsplash.com/photo-1523580846011-d3a5bc25702b') center/cover no-repeat;
  z-index:1;
}

/* Keep content above background */
.cta .container{
  position:relative;
  z-index:2;
}

/* Heading */
.cta h2{
  font-size:40px;
  text-shadow:0 4px 18px rgba(0,0,0,0.45);
}

/* Paragraph */
.cta p{
  margin-top:15px;
  font-size:18px;
  color:#eaf1ff;
}

/* Button */
.cta button{
  margin-top:30px;
  padding:14px 36px;
  border:none;
  background:#1E5BFF;
  color:white;
  font-size:18px;
  border-radius:8px;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,0.3);
  transition:0.3s;
}

.cta button:hover{
  transform:translateY(-3px);
}

/* ===== TESTIMONIAL MARQUEE ===== */

.testimonials{
  background:#F4F8FF;
  padding:100px 0;
  overflow:hidden;
}

.testimonial-marquee{
  overflow:hidden;
  position:relative;
  margin-top:50px;
}

.testimonial-track{
  display:flex;
  gap:30px;
  width:max-content;
  animation:scrollRight 35s linear infinite;
}

@keyframes scrollRight{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

.t-card{
  min-width:340px;
  max-width:340px;
  background:white;
  padding:30px;
  border-radius:16px;
  box-shadow:0 15px 40px rgba(10,42,102,0.08);
  border:1px solid rgba(30,91,255,0.08);
}

.t-card p{
  font-size:15px;
  color:#444;
  line-height:1.7;
}

.t-card h4{
  margin-top:15px;
  color:#1E5BFF;
  font-weight:600;
  font-size:14px;
}

/* Pause on hover */
.testimonial-marquee:hover .testimonial-track{
  animation-play-state:paused;
}

/* Mobile */
@media(max-width:768px){
  .t-card{
    min-width:280px;
    max-width:280px;
  }
}


/* ===================================== */
/* POPUP (ADMISSION FORM) */
/* ===================================== */

.popup{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(10,42,102,0.85);
  justify-content:center;
  align-items:center;
  z-index:2000;   /* higher than header */
  padding-top:80px; /* prevent hiding */
}

.popup-content{
  background:white;
  width:95%;
  max-width:540px;
  padding:45px;
  border-radius:16px;
  position:relative;
  animation:fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn{
  from{ transform:scale(0.9); opacity:0; }
  to{ transform:scale(1); opacity:1; }
}

.close{
  position:absolute;
  right:20px;
  top:15px;
  font-size:22px;
  cursor:pointer;
  color:#1E5BFF;
}

/* FORM */

form input,
form textarea{
  width:100%;
  padding:14px;
  margin:14px 0;
  border:1px solid #ddd;
  border-radius:8px;
  font-size:14px;
}

form textarea{
  resize:none;
  height:110px;
}

form button{
  background:#1E5BFF;
  color:white;
  padding:14px;
  border:none;
  width:100%;
  border-radius:8px;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}

form button:hover{
  background:#0A2A66;
}


/* ===== PROCESS (BLUE THEME) ===== */

.process{
  background:linear-gradient(135deg,#0A2A66,#123a8a);
  color:white;
  padding:100px 20px;
  text-align:center;
}

.process-tag{
  display:inline-block;
  background:white;
  color:#0A2A66;
  padding:8px 20px;
  border-radius:30px;
  font-weight:600;
  font-size:14px;
  margin-bottom:25px;
}

.process h2{
  font-size:48px;
  margin-bottom:70px;
  color:white;
}

/* keep your grid */
.process-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
}

/* GLASS CARD EFFECT */
.step{
  padding:35px 25px;
  border-radius:16px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
}

/* BIG BLUE NUMBERS */
.number{
  font-size:60px;
  font-weight:700;
  color:#4da3ff;
  margin-bottom:15px;
}

/* WHITE TEXT */
.step h3{
  font-size:22px;
  margin-bottom:12px;
  color:white;
}

.step p{
  color:#dce6ff;
  line-height:1.7;
  font-size:15px;
}

/* MOBILE */
@media(max-width:768px){
  .process-grid{
    grid-template-columns:1fr;
  }
}



/* ===================================== */
/* FOOTER */
/* ===================================== */

/* ===== FOOTER WITH MAP ===== */

.footer{
  background:#0A2A66;
  color:#EAF1FF;
  margin-top:0;
  padding:40px 8% 25px;
  text-align:center;
}

.footer-info h3{
  font-size:20px;
  margin-bottom:12px;
  font-weight:600;
}

.footer-info p{
  margin:5px 0;
  font-size:15px;
  color:#c9d8ff;
}

.footer-socials{
  margin-top:15px;
  display:flex;
  justify-content:center;
  gap:18px;
}

.footer-socials a{
  color:#EAF1FF;
  font-size:20px;
  transition:0.3s;
}

.footer-socials a:hover{
  transform:translateY(-3px);
  color:#4DA3FF;
}

/* remove the old bottom section difference */
.footer-bottom{
  display:none;
}

/* whatsapp*/

.whatsapp{
  position:fixed;
  bottom:30px;
  right:30px;
  width:70px;
  height:70px;
  background:#25D366;
  color:white;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
  text-decoration:none;
  box-shadow:0 10px 25px rgba(0,0,0,0.25);
  transition:all 0.3s ease;
  z-index:1000;
  animation:pulse 2s infinite;
}

.whatsapp:hover{
  transform:scale(1.12);
}

.wa-tooltip{
  position:absolute;
  right:85px;
  background:#0A2A66;
  color:white;
  padding:8px 14px;
  border-radius:6px;
  font-size:14px;
  white-space:nowrap;
  opacity:0;
  transform:translateX(10px);
  transition:0.3s;
  pointer-events:none;
}

.whatsapp:hover .wa-tooltip{
  opacity:1;
  transform:translateX(0);
}

@keyframes pulse{
  0% { box-shadow:0 0 0 0 rgba(37,211,102,0.6); }
  70% { box-shadow:0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow:0 0 0 0 rgba(37,211,102,0); }
}

/* ===================================== */
/* MOBILE */
/* ===================================== */


.image-band img{
  width:100%;
  height:260px;
  object-fit:cover;
  border-radius:14px;
}

@media(max-width:768px){

  .process-grid{
    grid-template-columns:1fr;
  }

  .opp-grid{
    grid-template-columns:1fr;
  }

  .opp-card{
    flex-direction:column;
  }

  .opp-card img{
    width:100%;
    height:220px;
  }

  .opp-header{
    text-align:center;
  }

}

/* ===================================== */
/* FINAL — MOBILE HEADER FIX (ONLY ONE) */
/* ===================================== */
@media (max-width:768px){

  .main-header{
    padding:8px 4%;
    position:fixed;
    height:60px;
  }

  .logo-img{
    height:36px;
  }

  .center-title{
   flex:1;
   display:flex;
   justify-content:center;
   align-items:center;
  }

  .center-title .main-name{
    font-size:20px;
    font-weight:800;
    white-space:nowrap;
  }

  .menu-toggle{
    display:block;
    position:absolute;
    right:4%;
    top:14px;
    font-size:26px;
    z-index:10;
    cursor:pointer;
  }

  /* ✅ NAV MUST BE IN SAME MEDIA QUERY (not nested) */
  nav{
    position:fixed;
    top:60px;
    left:0;
    width:100%;
    background:white;

    display:none;
    flex-direction:column;
    align-items:center;
    gap:22px;
    padding:28px 0;

    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    z-index:9999;
  }

  nav.active{
    display:flex;
  }

}

/* ===== NAV DISPLAY CONTROL (FINAL FIX) ===== */

nav{
  display:flex;
  gap:28px;
  align-items:center;
}

@media (max-width:768px){

  nav{
    display:none !important;
  }

  nav.active{
    display:flex !important;
    flex-direction:column;
    align-items:center;
    gap:22px;
    padding:28px 0;
  }

}