/* Reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

:root{
  --container-width: 1100px;
  --accent: #f44336;
}

/* Header / hero */
.header {
    min-height: 100vh;
    width: 100%;
    /* Added quotes and checked comma placement */
    background-image: linear-gradient(rgba(4,9,30,0.6),rgba(4,9,30,0.6)), url("images/banner.png");
    background-position: center;
    background-size: cover;
    position: relative;
    color: #fff;
}

nav{
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    padding: 1.5rem;
    justify-content: space-between;
    align-items: center;
}
nav img{
    width: 140px;
    height: auto;
    display: block;
}
.nav-links{
     display: flex;
     align-items: center;
     gap: 1rem;
     text-align: right;
}
.nav-links ul{
    display: flex;
    gap: 0.5rem;
}
.nav-links ul li{
    list-style: none;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}
.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: var(--accent);
    display: block;
    margin: auto;
    transition: 0.3s;
}
.nav-links ul li:hover::after{
      width: 100%;
}

/* ===== menu icons: hidden on desktop, shown only on mobile when needed ===== */

/* hide by default everywhere */
.menu-icon,
.close-icon {
  display: none;
  font-size: 1.25rem;
  color: #fff;
  cursor: pointer;
}

/* Force-hide on desktop */
@media (min-width: 769px) {
  .menu-icon,
  .nav-links .close-icon {
    display: none !important;
  }
}

/* mobile: show hamburger; cross only when menu is open */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-links.active .close-icon {
    display: block;
    align-self: flex-end;
    margin-bottom: 1rem;
    font-size: 1.25rem;
  }
}

/* hero text */
.text-box{
    width: min(90%, 900px);
    color: white;
    margin: 6rem auto;
    text-align: center;
    padding: 2rem 1rem;
}
.text-box h1{
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}
.text-box p{
    margin: 10px 0 30px;
    font-size: 1rem;
    color: #eee;
}
.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: white;
    border: 1px solid white;
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
    background: transparent;
    position: relative;
    cursor: pointer;
    border-radius: 6px;
}
.hero-btn:hover{
       border: 1px solid white;
       background: var(--accent);
       transition: 0.3s;
}

/* Layout helpers */
.container{
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

/*-------Course-----*/
.course{
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
    padding-top: 4.5rem;
    padding-bottom: 2rem;
}
.course h2 { margin-bottom: .5rem; }
.course p{
    color: #777;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    padding: 10px;
}

.row{
    margin-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.course-col{
    flex: 1 1 calc(33% - 1.25rem);
    background: #e4bfbf;
    border-radius: 10px;
    margin-bottom: 1rem;
    padding: 1.25rem;
    transition: 0.3s;
    min-width: 220px;
}
.course-col h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}
.course-col:hover{
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/*-------Campus----*/
.campus{
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
}
.campus-row{
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.campus-col{
    flex: 1 1 calc(33% - 1.25rem);
    border-radius: 10px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    min-width: 220px;
}
.campus-col img{
    width: 100%;
    display: block;
}
.layer{
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    right: 0;
    transition: 0.4s;
}
.layer:hover{
    background: rgba(226,0,0,0.6);
}
.layer h3{
    width: 100%;
    font-weight: 500;
    color: white;
    font-size: 1.2rem;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.4s;
}
.layer:hover h3{
    bottom: 49%;
    opacity: 1;
}

/*-------facilities----*/
.facilities{
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 2rem;
}
.facilities-col{
    flex: 1 1 calc(33% - 1.25rem);
    border-radius: 12px;
    margin-bottom: 1rem;
    text-align: left;
    min-width: 220px;
}
.facilities-col img{
    width: 100%;
    border-radius: 10px;
}
.facilities-col p{ padding: 0; margin-top: .5rem; }
.facilities-col h3{ margin-top: 12px; margin-bottom: 8px; text-align: left;}

/*-------testimonials-----*/
.testimonials{
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 2rem;
}
.testimonials-col{
    flex: 1 1 calc(48% - 1.25rem);
    border-radius: 10px;
    text-align: left;
    margin-bottom: 1rem;
    background: #fff3f3;
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    min-width: 220px;
}
.testimonials-col img{
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 49%;
}
.testimonials-col p{ padding: 0; }
.testimonials-col h3{ margin-top: 12px ; text-align: left; }
.testimonials-col .fa{ color: gold; }

/* CTA */
.cta {
    max-width: var(--container-width);
    margin: 4rem auto;
    /* Added quotes and checked comma placement */
    background-image: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)), url("images/banner2.jpg");
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 3.5rem 1rem;
}
.cta h2{
    color: white;
    margin-bottom: 1.5rem;
    padding: 0;
}

/* Footer */
.footer{
    width: 95%;
    text-align: center;
    padding: 2rem 1rem;
    background: #fafafa;
}
.footer h4{
    margin-bottom:12px ;
    margin-top: 8px ;
    font-weight: 600;
}
.icons .fa{
        color: var(--accent);
        margin: 0 10px;
        cursor: pointer;
        padding: 8px 0;
}
.fa-heart{
    color: var(--accent);
}

/* ------------------
   Responsive / Mobile rules
   ------------------*/
@media (max-width: 768px) {
  nav{
    padding: 1rem;
  }

  .nav-links{
    position: fixed;
    background: #222;
    height: 100vh;
    width: 260px;
    top: 0;
    right: -260px;
    text-align: left;
    flex-direction: column;
    padding: 1.5rem;
    transition: right 0.35s ease;
    z-index: 80;
  }
  .nav-links.active{
    right: 0;
  }

  .nav-links ul{
    display: block;
    margin-top: 0.5rem;
  }
  .nav-links ul li{
    display: block;
    padding: 12px 4px;
  }

  .text-box{
    margin-top: 5rem;
    padding: 3rem 1rem;
  }
  .row{ gap: 1rem; }
  .course-col, .campus-col, .facilities-col, .testimonials-col{
    flex: 1 1 100%;
  }
  .cta{ margin: 2rem 1rem; padding: 2rem 1rem; }
}

@media (max-width: 420px){
  .text-box h1{ font-size: 1.4rem; }
  .hero-btn{ padding: 0.6rem 1rem; font-size: .95rem; }
}

           /* ----------------about us page ----------------*/


.sub-header{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(
    rgba(4, 9, 30, 0.7),
    rgba(4, 9, 30, 0.7)
  ),
  url("images/background.jpg");

    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
}
.sub-header h1{
  margin-top: 100px;
}

.about-us{
  width: 80%;
  margin: auto;
  padding-top: 80px;
  padding-bottom: 50px;

}
.about-col{
  flex-basis: 48%;
  padding: 30px 2px;
}
.about-col img{
  width: 100%;
}
.about-col h1{
 padding-top: 0;
}
.about-col p{
  padding: 15px 0 25px;
}
.red-btn{
  border: 1px solid #f44336;
  background: transparent;
  color: #f44336;
}
.red-btn:hover{
  color: #ffff;
}

           /* ----------------blog content ----------------*/
.blog-content{
  width: 80%;
  margin: auto;
  padding: 60px 0;
}
.blog-left{
  flex-basis: 60%;
}
.blog-left img{
  width: 100%;
}
.blog-left h2{
    color: #222;
    font-weight: 600;
    margin: 30px 0;
}
.blog-left p{
  color: #332d2d;
  padding: 0;
}
.blog-right{
  flex-basis: 33%;
}
.blog-right h3{
  background: #f44336;
  color: #fff;
  padding: 7px 0;
  font-size: 16px;
  margin-bottom: 20px;
}
.blog-right div{
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #555;
  padding: 8px;
  box-sizing: border-box;
}

.comment-box{
  border: 1px solid #ccc;
  margin: 50px 0;
  padding: 10px 20px;
}
.comment-box h3{
  text-align: left;
}
.comment-form input, .comment-form textarea{
   width: 100%;
   padding: 10px;
   margin:15px 0 ;
   box-sizing: border-box;
   border: none;
   outline: none;
   background: #f3e0e0;
}
.comment-form button{
  margin: 10px 0;
}
@media(max-width:700px){
  .sub-header{
    font-size: 14px;
  }
}
           /* ---------------- contact us ----------------*/
.location{
  width: 80%;
  margin: auto;
  padding: 80px 0;
}
.location iframe{
  width: 100%;

}
.contact-us{
  width: 80%;
  margin: auto;
}
.contact-col{
  flex-basis: 48%;
  margin-bottom: 30px;
}
.contact-col div{
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
.contact-col  .fa{
  font-size:28px;
  color: #f44336;
  margin: 10px;
  margin-right: 30px;
}
.contact-col div p{
  padding: 0;
}
.contact-col div h5{
  font-size: 20px;
  margin-bottom: 5px;
  color: #555;
  font-weight: 400;
}
.contact-col input , .contact-col textarea{
  width: 100%;
  padding: 15px;
  margin-bottom: 17px;
  outline: none;
  border: 1px solid #1a0b0b;
  box-sizing: border-box;
}