/* ===============================
   GREENWOOD COLLEGE - FINAL FIXED CSS
   =============================== */

:root{
  --green:#2a8f6d;
  --green-dark:#1f6e54;
  --yellow:#ffd700;
  --light-green:#e7fff2;
  --dark:#111827;
  --white:#ffffff;
}

/* ===============================
   GLOBAL
================================ */
*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Arial, sans-serif;
  color:var(--dark);
  background:var(--light-green);
  overflow-x:hidden; /* prevent side scroll during animation */
}

/* ===============================
   BACKGROUND LOGO (WATERMARK)
================================ */
html::before{
  content:"";
  position:fixed;
  inset:0;
  background:url('images/logo.png') center/contain no-repeat;
  opacity:0.08;
  z-index:0;
  pointer-events:none;
}

body{
  position:relative;
  z-index:1;
}

/* ===============================
   LAYOUT
================================ */
.container{
  width:90%;
  max-width:1200px;
  margin:auto;
  padding:2rem 0;
}

/* ===============================
   PAGE CONTENT
================================ */
#page-wrapper{
  position:relative;
}

.page-content{
  position:static;
  width:auto;
  min-height:auto;
  overflow:visible;
  max-height:none;
  transition:none;
  background:transparent;
}

.page-content.hidden{
  display:none;
}

/* ===============================
   HEADER / NAV
================================ */
.site-header{
  position:sticky;
  top:0;
  background:var(--green);
  z-index:1000;
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 0;
}

.logo-img{
  height:45px;
}

/* NAV LINKS */
.nav-links{
  display:flex;
  list-style:none;
  gap:10px;
}

.nav-links a{
  color:white;
  text-decoration:none;
  padding:8px 12px;
  border-radius:6px;
  transition:0.3s;
}

.nav-links a:hover{
  background:rgba(255,255,255,0.2);
}

.nav-links .active{
  background:white;
  color:var(--green);
}

.nav-links .cta{
  background:white;
  color:var(--green);
}

/* MOBILE NAV */
.nav-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;

	width:50px;
    height:50px;

    justify-content:center;
    align-items:center;
    padding:0;
}

.hamburger{
  width:25px;
  height:2px;
  background:white;
  position:relative;
}

.hamburger::before,
.hamburger::after{
  content:"";
  position:absolute;
  width:100%;
  height:2px;
  background:white;
}

.hamburger::before{ top:-7px; }
.hamburger::after{ top:7px; }

/* ===============================
   HERO
================================ */
.hero,
.hero-about,
.hero-contact,
.hero-gallery,
.hero-apply{
  height:40vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:white;
  position:relative;
}

.hero::before,
.hero-about::before,
.hero-contact::before,
.hero-gallery::before,
.hero-apply::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.5);
}

.hero-inner{
  position:relative;
  z-index:1;
}


.hero h1{
  font-size:2.5rem;
  margin:0;
}

.hero .sub{
  margin-top:10px;
}

.hero-actions{
  margin-top:20px;
}

/* ===============================
   BUTTONS
================================ */
.btn{
  padding:10px 16px;
  border-radius:6px;
  text-decoration:none;
  display:inline-block;
}

.btn-primary{
  background:var(--green);
  color:white;
}

.btn-primary:hover{
  background:var(--green-dark);
}

.btn-outline{
  border:1px solid white;
  color:white;
}

/* ===============================
   SECTIONS
================================ */
.section{
  padding:3rem 0;
}

/* IMAGE SECTION */
.image-preview img{
  width:100%;
  height:auto;
  display:block;
  border-radius:10px;
}

/* CARDS */
.academics-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1rem;
}

.card{
  background:var(--green);
  color:white;
  padding:1rem;
  border-radius:10px;
}

/* ABOUT SECTION */
.about-content p{
  margin-bottom:1.5rem;
  line-height:1.6;
}

.about-highlights{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:1.5rem;
  margin:2rem 0;
}

.highlight-item{
  background:var(--yellow);
  padding:1.5rem;
  border-radius:10px;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
  text-align:center;
}

.highlight-item h4{
  color:var(--green-800);
  margin:0 0 0.5rem 0;
  font-size:1.1rem;
}

.highlight-item p{
  color:#666;
  margin:0;
  font-size:0.9rem;
  line-height:1.4;
}

/* GALLERY */
.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
}

.gallery-grid img{
    width:100%;
    height:260px;
    object-fit:cover;
    object-position:center;
    border-radius:12px;
    cursor:pointer;
    transition:.35s ease;
    box-shadow:0 8px 25px rgba(0,0,0,.12);
}

.gallery-grid img:hover{
    transform:scale(1.04);
    box-shadow:0 15px 35px rgba(0,0,0,.2);
}

/* ===============================
   LIGHTBOX
================================ */

.lightbox{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.95);

    display:flex;

    justify-content:center;

    align-items:center;

    opacity:0;

    visibility:hidden;

    transition:.35s ease;

    z-index:999999;

    padding:20px;

}

.lightbox.active{

    opacity:1;

    visibility:visible;

}

.lightbox img{

    max-width:95%;

    max-height:90vh;

    object-fit:contain;

    border-radius:12px;

    box-shadow:0 20px 60px rgba(0,0,0,.6);

    animation:zoomIn .35s;

}

.close-lightbox{

    position:absolute;

    top:20px;

    right:30px;

    color:white;

    font-size:45px;

    cursor:pointer;

    font-weight:bold;

}

@keyframes zoomIn{

    from{

        transform:scale(.8);

        opacity:0;

    }

    to{

        transform:scale(1);

        opacity:1;

    }

}

/* ===============================
   MOBILE GALLERY
================================ */

@media(max-width:768px){

    .gallery-grid{

        grid-template-columns:1fr;

        gap:15px;

    }

    .gallery-grid img{

        width:100%;

        height:240px;

        object-fit:cover;

        border-radius:12px;

    }

    .lightbox{

        padding:10px;

    }

    .lightbox img{

        max-width:100%;

        max-height:80vh;

    }

    .close-lightbox{

        top:15px;

        right:20px;

        font-size:38px;

    }

}

@media(max-width:480px){

    .gallery-grid img{

        height:220px;

    }

}

/* ===============================
   FORMS
================================ */
input, textarea{
  width:100%;
  padding:10px;
  border-radius:6px;
  border:1px solid #ccc;
}

/* ===============================
   FOOTER
================================ */
.site-footer{
  background:var(--green);
  color:white;
  text-align:center;
  padding:1.5rem;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:1rem;
  max-width:1200px;
  margin:0 auto;
}

/* ===============================
   RESPONSIVE
================================ */
@media(max-width:900px){
  .academics-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .about-highlights{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:900px){

  .nav-toggle{
    display:flex;
  }

	.nav{
    position:relative;
}

  .nav-links{
    position:absolute;

    top:70px;

    right:0;

    width:240px;

    background:white;

    display:flex;

    flex-direction:column;

    gap:0;

    border-radius:10px;

    box-shadow:0 10px 30px rgba(0,0,0,.2);

    padding:10px 0;

    opacity:0;

    visibility:hidden;

    transform:translateY(-10px);

    transition:.3s;

    z-index:9999;
  }

 .nav-links.open{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}
  .nav-links a{
    color:var(--dark);
  }


.nav-links li{
    width:100%;
    list-style:none;
}

.nav-links a{

    display:block;

    padding:15px 20px;

    color:#111;

}

.nav-links a:hover{

    background:#e7fff2;

    color:#2a8f6d;

}
	

	/* Mobile Menu Animation */

.nav-toggle.active .hamburger{
    background:transparent;
}

.nav-toggle.active .hamburger::before{
    transform:rotate(45deg);
    top:0;
}

.nav-toggle.active .hamburger::after{
    transform:rotate(-45deg);
    top:0;
}

.hamburger,
.hamburger::before,
.hamburger::after{
    transition:.3s ease;
}

  .academics-grid{
    grid-template-columns:1fr;
  }

  .about-highlights{
    grid-template-columns:1fr;
  }
}

/* application form */
.form-step{
display:none;
}

.form-step.active{
display:block;
}


.application-progress{

display:flex;
justify-content:center;
gap:15px;
margin:30px;

}


.step{

width:35px;
height:35px;

border-radius:50%;

background:#ccc;

display:flex;

align-items:center;

justify-content:center;

}


.step.active{

background:#2a8f6d;

color:white;

}


form input,
form select,
form textarea{

display:block;

width:100%;

margin:15px 0;

padding:12px;

}

/* ===============================
   SCHOOL FEES IMAGE PREVIEW
================================ */

.fees-image{
    margin-top:40px;
    text-align:center;
}


.fees-image a{
    display:inline-block;
}


.fees-image img{

    width:300px;
    height:auto;

    max-width:90%;

    border-radius:15px;

    cursor:pointer;

    box-shadow:0 10px 30px rgba(0,0,0,0.15);

    transition:0.3s ease;

}


.fees-image img:hover{

    transform:scale(1.05);

}


.fees-image p{

    margin-top:15px;

    font-size:14px;

    color:#555;

}







/* ==================================================
   GREENWOOD COLLEGE ONLINE APPLICATION FORM
================================================== */

#applicationForm{
    max-width:950px;
    margin:30px auto 60px;
    padding:35px;
    background:rgba(255,255,255,0.96);
    border-radius:18px;
    box-shadow:0 15px 45px rgba(0,0,0,0.12);
    position:relative;
    z-index:2;
}

#applicationForm h2{
    margin-top:0;
    margin-bottom:25px;
    color:var(--green-dark);
    font-size:1.8rem;
    border-bottom:3px solid var(--yellow);
    padding-bottom:12px;
}

#applicationForm h3{
    margin-top:30px;
    color:var(--green-dark);
    font-size:1.25rem;
}

.form-step{
    display:none;
    animation:applicationFadeIn 0.35s ease;
}

.form-step.active{
    display:block;
}

@keyframes applicationFadeIn{
    from{
        opacity:0;
        transform:translateY(12px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* Progress indicator */

.application-progress{
    max-width:950px;
    margin:35px auto 10px;
    padding:0 15px;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
    position:relative;
    z-index:2;
}

.application-progress::before{
    content:"";
    position:absolute;
    top:20px;
    left:7%;
    right:7%;
    height:4px;
    background:#cbd5e1;
    z-index:-1;
}

.application-progress .step{
    width:auto;
    min-width:70px;
    height:auto;
    border-radius:0;
    background:transparent;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    color:#64748b;
    cursor:default;
}

.application-progress .step span{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#cbd5e1;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    color:#334155;
    border:4px solid white;
    box-shadow:0 3px 10px rgba(0,0,0,0.12);
}

.application-progress .step small{
    margin-top:8px;
    font-size:12px;
    text-align:center;
    font-weight:700;
}

.application-progress .step.active span{
    background:var(--green);
    color:white;
    transform:scale(1.08);
}

.application-progress .step.active small{
    color:var(--green-dark);
}

.application-progress .step.completed span{
    background:var(--green-dark);
    color:white;
}

.application-progress .step.completed span::after{
    content:"✓";
}

.application-progress .step.completed span{
    font-size:0;
}

.application-progress .step.completed span::after{
    font-size:18px;
}

/* Form layout */

.form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px 22px;
}

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group.full-width{
    grid-column:1 / -1;
}

#applicationForm label{
    display:block;
    margin-bottom:7px;
    color:#1f2937;
    font-weight:700;
    font-size:14px;
}

#applicationForm input,
#applicationForm select,
#applicationForm textarea{
    width:100%;
    margin:0;
    padding:13px 14px;
    border:1px solid #cbd5e1;
    border-radius:9px;
    background:white;
    color:#111827;
    font-size:15px;
    transition:border-color .2s ease,
               box-shadow .2s ease,
               background .2s ease;
}

#applicationForm textarea{
    min-height:110px;
    resize:vertical;
}

#applicationForm input:focus,
#applicationForm select:focus,
#applicationForm textarea:focus{
    outline:none;
    border-color:var(--green);
    box-shadow:0 0 0 4px rgba(42,143,109,0.15);
}

#applicationForm input[type="file"]{
    padding:11px;
    background:#f8fafc;
    border:2px dashed #94a3b8;
    cursor:pointer;
}

#applicationForm input[type="checkbox"],
#applicationForm input[type="radio"]{
    width:auto;
    margin-right:8px;
}

#applicationForm .field-error{
    border-color:#dc2626 !important;
    background:#fff7f7 !important;
    box-shadow:0 0 0 3px rgba(220,38,38,0.12) !important;
}

.selected-file-name{
    display:block;
    margin-top:6px;
    color:var(--green-dark);
    font-weight:700;
}

/* Parent and information cards */

.application-card{
    margin:25px 0;
    padding:24px;
    border:1px solid #dbe4df;
    border-left:6px solid var(--green);
    border-radius:12px;
    background:#f8fffb;
}

.application-card h3{
    margin-top:0 !important;
}

.application-note{
    padding:14px 16px;
    margin:15px 0 25px;
    border-radius:9px;
    background:#fff8cc;
    border-left:5px solid var(--yellow);
    color:#4b5563;
    line-height:1.5;
}

/* Agreement box */

.terms-box{
    max-height:320px;
    overflow-y:auto;
    padding:22px;
    margin:20px 0;
    background:#f8fafc;
    border:1px solid #cbd5e1;
    border-radius:10px;
    line-height:1.65;
}

.terms-box h3{
    margin-top:0;
}

.terms-check{
    display:flex !important;
    align-items:flex-start;
    gap:10px;
    padding:16px;
    background:#eafff4;
    border:1px solid #a7e2ca;
    border-radius:9px;
}

.terms-check input{
    margin-top:3px !important;
}

/* Buttons */

.form-navigation{
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-top:30px;
}

.next-btn,
.back-btn,
#applicationForm button[type="submit"]{
    border:none;
    border-radius:8px;
    padding:13px 26px;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    transition:transform .2s ease,
               background .2s ease,
               box-shadow .2s ease;
}

.next-btn,
#applicationForm button[type="submit"]{
    background:var(--green);
    color:white;
    margin-left:auto;
}

.back-btn{
    background:#475569;
    color:white;
}

.next-btn:hover,
#applicationForm button[type="submit"]:hover{
    background:var(--green-dark);
    transform:translateY(-2px);
    box-shadow:0 7px 18px rgba(31,110,84,0.22);
}

.back-btn:hover{
    background:#334155;
    transform:translateY(-2px);
}

#applicationForm button:disabled{
    opacity:0.65;
    cursor:not-allowed;
    transform:none;
}

/* Apply page heading */

.application-heading{
    max-width:950px;
    margin:30px auto 0;
    padding:0 15px;
    text-align:center;
}

.application-heading h1{
    color:var(--green-dark);
    margin-bottom:8px;
}

.application-heading p{
    color:#475569;
}

/* Mobile responsiveness */

@media(max-width:768px){

    #applicationForm{
        width:94%;
        padding:22px 17px;
        margin-top:20px;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .form-group.full-width{
        grid-column:auto;
    }

    .application-progress{
        overflow-x:auto;
        justify-content:flex-start;
        padding-bottom:12px;
    }

    .application-progress::before{
        display:none;
    }

    .application-progress .step{
        min-width:75px;
        flex-shrink:0;
    }

    .application-progress .step span{
        width:38px;
        height:38px;
    }

    .form-navigation{
        flex-direction:column-reverse;
    }

    .next-btn,
    .back-btn,
    #applicationForm button[type="submit"]{
        width:100%;
        margin:0;
    }

    .application-card{
        padding:18px 14px;
    }

}

@media(max-width:480px){

    #applicationForm h2{
        font-size:1.45rem;
    }

    .terms-box{
        max-height:250px;
        padding:15px;
    }

}