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

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

nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}

nav img {
    width: 65px;
    border-radius: 9px;
}

.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: 13px;
}

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

.nav-links ul li:hover::after {
    width: 100%;
}

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

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

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

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

nav .fa {
    display: none;
}

.responsive-img {
    width: 100%;
    max-width: 600px; /* Adjust based on preference */
    height: auto;
    display: block;
    margin: 0 auto; /* Centers the image */
}

@media (max-width: 700px) {
    .text-box h1 {
        font-size: 20px;
    }

    .nav-links ul li {
        display: block;
    }

    .nav-links {
        position: fixed;
        background: #f44336;
        height: 35vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }

    nav img {
        width: 50px;
    }

    nav .fa {
        display: block;
        color: #fff;
        margin: 10px 30px;
        font-size: 22px;
        cursor: pointer;
    }

    .nav-links ul {
        padding: 30px;
    }
}

/* ------------------------intro------------------------ */

.intro {
    width: 80%;
    margin: auto;
    /* padding-top: 80px; */
    padding-bottom: 50px;
}

.intro-col {
    flex-basis: 48%;
    padding: 30px 2px;
}

.intro-col img {
    width: 100%;
}

.intro-col h1 {
    padding-top: 0;
}

.intro-col p {
    padding: 15px 0 25px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
}

.red-btn {
    background: #f18603;
    color: #fff;
}

.red-btn:hover {
    color: #f1a13f;
}

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

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

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

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

.course-col {
    flex-basis: 41%;
    background: antiquewhite;
    border-radius: 10px;
    margin-bottom: 40px;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}

.course-col .fa {
    font-size: 50px;
}

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

/* -----------------------contact-us page ---------------------------------- */
/* Reset and Base Styles */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styling */
.contact-us {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #1a202c;
}

/* Contact Us */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styling */
.contact-us {
    padding: 80px 0;
}

/* Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    background-color: #f1ede8;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact-item:hover {
    background-color: #d4cfcb;
    border-color: #ff6b6b;
}

.contact-item i {
    font-size: 1.8rem;
    color: #ff6b6b;
    margin-right: 20px;
    margin-top: 5px;
}

.contact-details h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0b0b0b;
    text-transform: uppercase;
}

.contact-details p {
    font-size: 1rem;
    color: #121212;
}

.contact-details a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #ff8787;
    text-decoration: underline;
}

/* Social Links */
.social-links {
    list-style: none;
    margin-top: 12px;
}

.social-links li {
    margin-bottom: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.social-links i {
    font-size: 1.2rem;
    margin-right: 10px;
    color: #ff6b6b;
}

/* Footer */
.contact-footer {
    text-align: center;
    padding: 15px 0;
    margin: 0 0 35px 0;
    background-color: #f1ede8;
    border-top: 1px solid #3a3a3a;
}

.footer-text {
    font-size: 1.2rem;
    color: #0a0a0a;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .contact-item {
        padding: 20px;
    }

    .contact-item i {
        font-size: 1.5rem;
    }

    .contact-details h3 {
        font-size: 1.1rem;
    }
}
/* -----campus ----  */

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

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

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

.layer {
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 1s;
}

.layer:hover {
    background: rgba(226, 0, 0, 0.7);
}

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

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

/* Our Products */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Our Products Section */
.our-products {
    padding: 80px 0;
    background-color: #f1ede8; /* Consistent with contact-us */
    text-align: center;
}

.our-products h3 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #0b0b0b; /* Matches contact-us h3 */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.our-products p {
    font-size: 1.1rem;
    color: #121212; /* Matches contact-us p */
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px; /* Matches contact-us gap */
}

.product-item {
    background-color: #f1ede8; /* Matches contact-us item background */
    border: 1px solid #3a3a3a; /* Matches contact-us border */
    border-radius: 12px; /* Matches contact-us radius */
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease; /* Matches contact-us transition */
}

.product-item:hover {
    background-color: #d4cfcb; /* Matches contact-us hover */
    border-color: #ff6b6b; /* Matches contact-us hover border */
}

.product-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.product-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0b0b0b; /* Matches contact-us h3 */
    padding: 15px 20px;
    text-align: left;
    margin: 0;
    text-transform: uppercase; /* Consistent with contact-us */
}

/* Responsive Design */
@media (max-width: 768px) {
    .our-products {
        padding: 60px 0;
    }

    .our-products h3 {
        font-size: 2rem;
    }

    .our-products p {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .product-item img {
        height: 250px;
    }

    .product-item h4 {
        font-size: 1.15rem;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-item img {
        height: 200px;
    }
}

/* ----------- Testimonials ---------- */

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

.testimonial-col {
    flex-basis: 44%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: #fff3f3;
    padding: 25px;
    cursor: pointer;
    display: flex;
}

.testimonial-col img {
    height: 40px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
}

.testimonial-col p {
    padding: 0px;
}

.testimonial-col h3 {
    margin-top: 15px;
    text-align: left;
}

.testimonial-col .fa {
    color: orange;
}

@media (max-width: 700px) {
    .testimonial-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/banner2.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}

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

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

/* ------- footer --------  */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Styling */
.footer {
    background: linear-gradient(135deg, #151515 0%, #252525 100%);
    padding: 60px 0 20px;
    border-top: 1px solid #3a3a3a;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-item h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-item p {
    font-size: 1rem;
    color: #a0aec0;
    margin-bottom: 8px;
}

.footer-item a {
    color: #ff6b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-item a:hover {
    color: #ff8787;
    text-decoration: underline;
}

.footer-item i {
    color: #ff6b6b;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 1.5rem;
    color: #ff6b6b;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #ff8787;
    transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3a3a3a;
}

.footer-bottom p {
    font-size: 0.95rem;
    color: #a0aec0;
    margin: 5px 0;
}

.footer-bottom a {
    color: #ff6b6b;
    font-weight: 500;
}

.footer-bottom i.fa-heart-o {
    color: #ff6b6b;
    font-size: 1rem;
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 15px;
    }

    .footer-item h4 {
        font-size: 1.2rem;
    }

    .footer-item p {
        font-size: 0.9rem;
    }

    .social-icons a {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

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

.sub-header {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.5), rgba(4, 9, 30, 0.5)),
        url("images/e-school-boy4-copy.jpg");
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
    height: 50vh; /* Fallback for older browsers */
    aspect-ratio: 16 / 9;
}

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

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

/* ------------blog-content------------ */

.blog-content {
    width: 80%;
    margin: auto;
    padding: 60px 0;
}

.blog-left {
    flex-basis: 65%;
}

.blog-left img {
    width: 100%;
}

.blog-left h2 {
    color: #222;
    font-weight: 600;
    margin: 30px 0;
}

.blog-left p {
    color: rgb(80, 46, 3);
    padding: 0;
}

.blog-right {
    flex-basis: 32%;
}

.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: #f0f0f0;
}

.comment-form button {
    margin: 10px 0;
}

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

    .sub-header {
        height: 50vh; /* Override aspect-ratio if needed */
    }

    .about-col h1 {
        padding-top: 0;
        font-size: 17px;
    }
}

/* ------------- contact 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 .fa {
    font-size: 28px;
    color: #f44336;
}

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