* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

.header {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)),url(images/school.png);
    background-position: center;
    background-size: cover;
    position: relative;
}

.announcement-bar {
  background: #ffffff; /* Bright background for visibility */
  color: #000000;
  padding: 0px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.announcement-bar p {
  display: inline-block;
  padding-left: 100%; /* Start off-screen */
  animation: moveText 20s linear infinite;
  color: #000000;
}

@keyframes moveText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-size: 20px;
  font-weight: bold;
  padding-left: 0px;
}

.logo img {
  width: 40px; /* Adjust logo size */
  height: auto;
  margin-right: 10px; /* Space between logo and text */
  padding-left: 0;
}

.navbar {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

p {
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #fff;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #e8ae30;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after {
    width: 100%;
}

/* dropdown */

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* Below the parent item */
  left: 0;
  background: #e8ae30;
  list-style: none;
  min-width: 150px;
  padding: 10px 0;
  border-radius: 5px;
  color: black;
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 5px 5px;
  color: black;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: #00bfff;
  color: #ffffff;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

.text-box {
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}

.text-box h1 {
    font-size: 62px;
}

.text-box p {
    margin: 10px 0 40px;
    font-size: 14px;
    color: #fff;
}

.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.hero-btn:hover {
    border: 1px solid #e8ae30;
    background: #e8ae30;
    transition: 0.1s;
}

nav .fa {
    display: none;
}

/* Close icon inside mobile menu */
.nav-links .fa-times {
    display: none;
}

/* Hamburger menu icon positioning */
.navbar > .fa-bars {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    padding: 5px;
}

/* Base mobile styles - applies to all devices up to 900px */
@media (max-width: 900px) {
    /* Show hamburger menu */
    .navbar > .fa-bars {
        display: block;
    }
    
    /* Mobile navigation */
    .nav-links {
        position: fixed;
        background: linear-gradient(135deg, #e8ae30 0%, #d69e28 100%);
        height: 100vh;
        width: 70%;
        max-width: 280px;
        top: 0;
        right: -100%;
        text-align: left;
        z-index: 9999;
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
        box-shadow: -3px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    /* Active state for mobile menu */
    .nav-links.nav-active {
        right: 0 !important;
    }
    
    /* Backdrop overlay */
    .nav-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        transition: opacity 0.3s ease;
        display: none;
    }
    
    .nav-backdrop.show {
        display: block;
        opacity: 1;
    }
    
    /* Close icon inside nav-links */
    .nav-links .fa-times {
        display: block;
        color: #fff;
        margin: 25px;
        font-size: 26px;
        cursor: pointer;
        text-align: right;
    }
    
    .nav-links ul {
        padding: 20px 30px;
        margin-top: 20px;
    }
    
    .nav-links ul li {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links ul li a {
        font-size: 16px;
        font-weight: 500;
        display: block;
        transition: all 0.3s ease;
        padding: 5px 0;
    }
    
    .nav-links ul li a:hover {
        color: #fff;
        padding-left: 10px;
    }
    
    .nav-links ul li::after {
        display: none;
    }
    
    /* Adjust navbar for mobile */
    .navbar {
        padding: 3% 4%;
        flex-wrap: nowrap;
    }
    
    /* Logo sizing for mobile */
    .logo {
        font-size: 15px !important;
    }
    
    .logo img {
        width: 35px;
    }
    
    .text-box h1 {
        font-size: 28px;
    }
    
    .text-box p {
        font-size: 13px;
        margin: 10px 20px 30px;
    }
    
    .hero-btn {
        font-size: 12px;
        padding: 10px 28px;
    }
}

/* Tablet landscape (701px to 900px) */
@media (max-width: 900px) and (min-width: 701px) {
    .nav-links {
        width: 60%;
        max-width: 300px;
    }
    
    .nav-links ul li a {
        font-size: 15px;
    }
}

/* Standard mobile devices - iPhone XR, 11, 12 Pro Max (414px - 428px) */
@media (max-width: 700px) {
    .navbar {
        padding: 3.5% 4%;
    }
    
    .logo {
        font-size: 14px !important;
    }
    
    .logo img {
        width: 32px;
    }
    
    .nav-links {
        width: 75%;
        max-width: 280px;
    }
    
    .nav-links ul {
        padding: 15px 25px;
    }
    
    .nav-links ul li a {
        font-size: 15px;
    }
    
    .text-box h1 {
        font-size: 24px;
    }
    
    .text-box p {
        font-size: 12px;
        margin: 8px 15px 25px;
    }
}

/* iPhone 12 Pro, iPhone X, XS (375px - 390px) */
@media (max-width: 430px) {
    .navbar {
        padding: 4% 3.5%;
    }
    
    .navbar > .fa-bars {
        font-size: 22px;
    }
    
    .logo {
        font-size: 13px !important;
    }
    
    .logo img {
        width: 30px;
        margin-right: 8px;
    }
    
    .nav-links {
        width: 80%;
        max-width: 260px;
    }
    
    .nav-links .fa-times {
        margin: 20px;
        font-size: 24px;
    }
    
    .nav-links ul {
        padding: 15px 20px;
        margin-top: 10px;
    }
    
    .nav-links ul li {
        padding: 12px 0;
    }
    
    .nav-links ul li a {
        font-size: 14px;
    }
    
    .text-box h1 {
        font-size: 22px;
    }
    
    .text-box p {
        font-size: 11px;
        margin: 8px 10px 20px;
        line-height: 1.5;
    }
    
    .hero-btn {
        font-size: 11px;
        padding: 9px 24px;
    }
}

/* iPhone SE, small devices (320px - 375px) */
@media (max-width: 375px) {
    .navbar {
        padding: 4% 3%;
    }
    
    .navbar > .fa-bars {
        font-size: 20px;
    }
    
    .logo {
        font-size: 12px !important;
    }
    
    .logo img {
        width: 28px;
        margin-right: 6px;
    }
    
    .nav-links {
        width: 85%;
        max-width: 240px;
    }
    
    .nav-links .fa-times {
        margin: 18px;
        font-size: 22px;
    }
    
    .nav-links ul {
        padding: 10px 18px;
        margin-top: 5px;
    }
    
    .nav-links ul li {
        padding: 10px 0;
    }
    
    .nav-links ul li a {
        font-size: 13px;
    }
    
    .text-box {
        width: 95%;
    }
    
    .text-box h1 {
        font-size: 20px;
    }
    
    .text-box p {
        font-size: 10px;
        margin: 6px 8px 18px;
        line-height: 1.4;
    }
    
    .hero-btn {
        font-size: 10px;
        padding: 8px 20px;
    }
}

/* Extra small devices (below 320px) */
@media (max-width: 320px) {
    .navbar {
        padding: 4% 2.5%;
    }
    
    .logo {
        font-size: 11px !important;
    }
    
    .logo img {
        width: 26px;
        margin-right: 5px;
    }
    
    .nav-links {
        width: 90%;
        max-width: 220px;
    }
    
    .text-box h1 {
        font-size: 18px;
    }
    
    .text-box p {
        font-size: 9px;
    }
}

/*----- course ----- */

.course {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

h1 {
    font-size: 36px;
    font-weight: 600;
}

p {
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

.row {
    margin-top: 5%;
    display: flex;
    justify-content: space-between;    
}

.course-col {
    flex-basis: 31%;
    background: #fff3f3;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12p;
    box-sizing: border-box;
}

h3 {
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}

.course-col:hover {
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
}

@media(max-width: 700px) {
    .row {
        flex-direction: column;
    }
}

/*------------ campus ------------ */

.campus {
    width: 80%;
    margin: auto;
    text-align: center;
    padding: 50px;
}

.campus .row {
    gap: 30px;
    justify-content: center;
}

.campus-col {
    flex-basis: 30%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.campus-col img {
    width: 100%;
    display: block;
}

.layer {
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
}

.layer:hover {
    background: #e8ae30d3;
}

.layer h3 {
    width: 100;
    font-weight: 500;
    color: white;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform:translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}

.layer:hover h3 {
    bottom: 49%;
    opacity: 1;
}

/* Campus responsive styles */
@media(max-width: 768px) {
    .campus {
        width: 90%;
        padding: 30px 10px;
    }
    
    .campus-col {
        flex-basis: 100%;
        margin-bottom: 20px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .campus-col img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }
}

@media(max-width: 480px) {
    .campus {
        width: 95%;
        padding: 20px 5px;
    }
    
    .campus h1 {
        font-size: 28px;
    }
    
    .campus p {
        font-size: 13px;
    }
    
    .campus-col {
        flex-basis: 100%;
        margin-bottom: 15px;
        max-width: 100%;
    }
    
    .campus-col img {
        width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: cover;
    }
    
    .layer h3 {
        font-size: 20px;
    }
}

/*----------------- Facilities ---------*/

.facilities {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

.facilities-col {
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: left;
}

.facilities-col img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.facilities-col p {
    padding: 0;
}

.facilities-col h3 {
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: left;
}

/*----------- testimonials ----------*/

.testimonials {
            text-align: center;
            padding: 60px 20px;
            background: #f9f9f9;
            font-family: "Montserrat", sans-serif;
        }

        .testimonials h1 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: #222;
        }

        .testimonials .subtitle {
            font-size: 1rem;
            color: #666;
            margin-bottom: 40px;
        }

        .testimonials-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            max-width: 1200px;
            margin: auto;
        }

        .testimonial-card {
            background: #fff;
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease;
        }

        .testimonial-card:hover {
            transform: translateY(-8px);
        }

        .student-img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 15px;
            border: 3px solid #007bff;
        }

        .testimonial-content p {
            font-size: 0.95rem;
            color: #444;
            margin-bottom: 15px;
            font-style: italic;
            line-height: 1.6;
        }

        .testimonial-content h3 {
            font-size: 1.1rem;
            font-weight: 600;
            color: #111;
            margin-bottom: 8px;
        }

        .stars {
            color: #f39c12;
        }

        @media(max-width: 700px) {
            .testimonials-col img {
                margin-left: 0px;
                margin-right: 15px;
            }
        }

/*------------- call to action --------------*/

.cta {
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url("images/ecnhs\ love.jpg");
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}

.cta h1 {
    color: #fff;
    margin-bottom: 40px;
}

@media(max-width: 700px) {
    .cta h1 {
        font-size: 24px;
    }
}

/*----------- Footer ------------ */

.eco-footer {
    margin-top: 90px;
    background: #2d5a4f;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
}

.eco-footer-inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 20px 36px 15px;
}

.eco-footer-logo {
    text-align: center;
    margin-bottom: 15px;
}

.eco-footer-logo img {
    width: 15px;
    height: auto;
    margin-bottom: 5px;
}

.eco-footer-logo h3 {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
}

.eco-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.eco-footer-col h4 {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
}

.eco-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eco-footer-col li {
    margin-bottom: 4px;
}

.eco-footer-col a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 10px;
    transition: color 0.2s ease;
}

.eco-footer-col a:hover {
    color: #ffffff;
}

.eco-footer-col li i {
    margin-right: 5px;
    font-size: 9px;
}

.eco-footer-social {
    text-align: center;
    margin-bottom: 15px;
}

.eco-footer-social a {
    color: #ffffff;
    font-size: 14px;
    margin: 0 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.eco-footer-social a:hover {
    opacity: 0.8;
}

.eco-footer-bottom {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.eco-footer-bottom p {
    margin: 0;
    font-size: 9px;
    color: #ffffff;
}

@media (max-width: 768px) {
    .eco-footer-links {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .eco-footer-logo img {
        width: 12px;
    }

    .eco-footer-logo h3 {
        font-size: 10px;
    }
}

/*------------------------------- 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/tc.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
}

@media (min-width: 992px) {
    .sub-header {
        background-position: center 40%;
    }
}

.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;
}

.yellow-btn {
    border: 1px solid #e8ae30;
    background: transparent;
    color: #e8ae30;
}

.yellow-btn:hover {
    color: #fff;
}

/*-------------------------------- contact us page -------------------------*/

.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 div .fa {
    font-size: 28px;
    color: #e8ae30;
    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 #ccc;
    box-sizing: border-box;
}

/*-------------------------- announcement section -----------------------------------------*/

.announcement-section {
      width: 80%;
      margin: 100px auto;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
      padding: 30px;
    }

    .announcement-section h2 {
      text-align: center;
      font-size: 28px;
      margin-bottom: 20px;
      color: #333;
    }

    .announcement {
      border-left: 5px solid #f39c12;
      padding: 15px 20px;
      margin: 15px 0;
      background: #fafafa;
      border-radius: 6px;
      transition: all 0.3s ease;
    }

    .announcement:hover {
      background: #fff8e6;
      transform: translateX(5px);
    }

    .announcement h3 {
      margin: 0;
      font-size: 20px;
      color: #2c3e50;
    }

    .announcement small {
      display: block;
      margin: 5px 0 10px;
      color: #888;
      font-size: 13px;
    }

    .announcement p {
      margin: 0;
      font-size: 15px;
      color: #555;
    }
