*{
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

.header {
    min-height: 100vh;
    width: 100%;
    /* layered backgrounds: gradient overlay, real image (adjust filename/extension if needed), then a tiny SVG fallback */
    background-image:
        linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)),
        url('../images/close-up-small-globe-shopping-cart-laptop.jpg'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="6"><rect width="100%" height="100%" fill="%2304091e"/><text x="50%" y="50%" font-size="8" fill="%23ffffff" dominant-baseline="middle" text-anchor="middle">BG</text></svg>');
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: center, center, center;
    background-size: cover, cover, cover;
    background-color: #04091e; /* fallback color */
    position: relative;
        /* debug border to confirm the header area */
    /* border: 2px dashed rgba(255,255,255,0.12); */
}

/* added: ensure logo is visible and not oversized */
.header nav .logo {
    max-width: 160px;
    height: auto;
    display: inline-block;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2% 6%;
}

nav img {
    width: 150px;
}

.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;
    font-weight: bold;
}

.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;
    background: transparent;
}

.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 36px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.hero-btn:hover {
    border: 1px solid #f44336;
    background: #f44336;
    transition: 1s;
}

nav i[class*="fa-"] {
    display: none;
}

@media(max-width: 700px) {
    .text-box h1 {
        font-size: 40px;
    }
    .nav-links ul li {
        display: block;     
    }

    /* fixed: add missing semicolon/colon and raise z-index so menu overlays content */
    .nav-links{
        position: fixed;
        background: #f44336; 
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        padding-top: 60px;
        transition: 1s;
        box-shadow: -4px 0 12px rgba(0,0,0,0.25);
    }

        nav i[class*="fa-"] {
        display: block;
        color: #fff;
        font-size: 22px;
        cursor: pointer;
        margin: 10px;
    }
    
     .nav-links ul {
        padding: 30px;
     }

    /* ensure blog columns stack and remove image side margins to avoid overflow */
    .blog-content {
        flex-direction: column;
        gap: 30px;
    }

    .blog-left {
        flex-basis: 100%;
        padding-left: 0; /* use padding on container rather than image margins */
    }

    .blog-left img {
        width: 100%;
        box-sizing: border-box;
        margin-left: 0 !important;   /* remove desktop left spacing on mobile */
        margin-right: 0 !important;  /* remove desktop right spacing on mobile */
    }

    .blog-left h2,
    .blog-left p {
        margin-left: 0 !important;   /* align text with the image/container */
        padding-left: 0;
    }

    .blog-right {
        flex-basis: 100%;
        margin-left: 0;
    }
}

/*course section */
.course {
    padding-top: 100px;
    text-align: center;
    width: 80%;
    margin: auto;
}

h1 {
    font-size: 36px;
    font-weight: 600;
}

p {
    font-size: 14px;
    color: #777;
    line-height: 22px;
    font-weight: 300;
    padding: 10px;
}

.row {
    display: flex;
    justify-content: space-between;
    margin-top: 5%;
}

.course-col {
    flex-basis: 31%;
    background: #fff3f3;
    border-radius: 10px;
    padding: 20px 15px;
    box-sizing: border-box;
    margin-bottom: 5%;
    box-shadow: 0 0 25px rgba(0,0,0,0.1);
    transition: 0.5s;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0;
    text-align: center;
}   

.course-col:hover {
    box-shadow: 0 0 20px rgba(0,0,0,0.2 );
    transform: translateY(-10px);
    transition: 0.5s;
}

@media(max-width : 700px) {
    .row {
        flex-direction: column;
    }
    
}

/* campus section */
.campus {
    padding-top: 50x;   
    text-align: center;
    color: #333;
    width: 80%;
    margin: auto;
}

.campus-col {
    flex-basis: 32%;
    margin-bottom: 5%;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 0 25px rgba(0,0,0,0.1);
    transition: 0.5s;   
    overflow: hidden;
    position: relative; 
}

.campus-col img {
    width: 100%;
    height: auto;
    transition: 0.5s;
    display: block;
}       

.layer {
    background: transparent;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}

.layer:hover {
    background: rgba(196, 126, 126, 0.7);
}

.layer h3 {
    position: absolute;
    font-weight: 500;
    bottom: 0;
    left: 50%;
    transform: translate( -50%);
    color: #fff;
    font-size: 26px;
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}

.layer:hover h3 {
    bottom: 50%;
    opacity: 1;  
}

/* Facilities section */
.facilities {
    padding-top: 50px;   
    text-align: center;
    color: #333;
    width: 80%;
    margin: auto;   
}   

.facilities-col {
    flex-basis: 32%;
    margin-bottom: 5%;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 0 25px rgba(0,0,0,0.1);
    transition: 0.5s;   
    overflow: hidden;
    position: relative; 
}

.facilities-col img {
    width: 100%;
    height: auto;
    transition: 0.5s;
    display: block;     
}

.facilities-col p {
    padding-bottom: 20px
}

.facilities-col h3 {
    padding: 15px;
}   

/* Testimonials section */
.testimonials {
    padding-top: 50px;   
    text-align: center;
    width: 80%;
    margin: auto;   
}


.testimonial-col {
    flex-basis: 44%;
    margin-bottom: 5%;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 0 25px rgba(0,0,0,0.1);
    transition: 0.5s;   
    padding: 20px;
    box-sizing: border-box;
    text-align: left;
    background: #fff3f3;
    cursor: pointer;
    display: flex   ;
}   

.testimonial-col img {
    width: 150px;
    height: 40px;
    margin-right: 30px;
    margin-left: 5px;
    transition: 0.5s;
    display: block;   
    border-radius: 50px
}

.testimonial-col p {
    padding: 0;

}

.testimonial-col h3 {
    margin: 5px 0;
    text-align: left;
}

.testimonial-col i[class*="fa-"] {
    color: #f44336;
    margin-right: 5px;
}   

@media(max-width : 700px) {
 .testimonial-col img {
        margin-left: 0;
        margin-right: 15px
    }   
}

.cta   {
    background: #f44336;
    padding: 50px 0;
    text-align: center;
    margin-top: 50px;
    color: #fff;
}

@media (max-width: 700px) {
    .text-box h1 {
        font-size: 24px;
    }
    
}

.footer {
    background: #fff;
    color: #333;
    text-align: center;
    padding: 80px 0;
    margin-top: 50px;
}

.p-footer  {
    margin: 0;
    padding: 20px 0;
    font-size: 14px;
    color: #333;
}

.icons .fa{
    color: #fff;
    margin: 20 10px;
    cursor: pointer;
}

.footer .fa-heart {
    color: red;
}

footer h4 {
    margin-bottom: 20px;
}

/* About Us Page */

.sub-header {
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url('../images/programmer.jpg');  
    background-position: center;
    background-size: cover;
    padding: 20px 0;
    text-align: center;
    color: #fff;
    height: 50vh;
    width: 100%;
}

.sub-header h1 {
    margin-top: 40px;
    font-size: 48px;
}   

.about-us {
    padding: 50px 0;
    width: 80%;
    margin: auto;
    /* text-align: center; */
    display: flex;              /* added: allow .about-col flex-basis to work */
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;            /* allow wrapping on narrow screens */
    gap: 30px;                  /* spacing between columns */
}

.about-col {
    flex-basis: 48%;
    margin-bottom: 5%;
    box-sizing: border-box;
    padding: 20px;
}

.about-col img {
    width: 100%;
    /* height: auto;               ensure correct aspect ratio */
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0,0,0,0.1);
}

.about-col h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.about-col p {
    font-size: 14px;
    color: #555;
    line-height: 22px;
    margin-bottom: 20px;      /* added: ensure left alignment */
}

.red-btn {
    background: transparent;
    border: 1px solid #f44336;
    color: #f44336;
}

.red-btn:hover {
    /* background: #f44336; */
    color: #fff;
    transition: 1s;
}

.blog-content {
    padding: 60px 0;
    width: 80%;
    margin: auto;
    display: flex;              /* added: enable flex layout */
    gap: 40px;                  /* added: spacing between columns */
    justify-content: space-between;
}

.blog-left {
    flex-basis: 65%;
    /* margin-right: 5%; */
}

.blog-left img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    margin-right: 20px;
}

.blog-left h2 {
    color: #222;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: left;
}

.blog-left p {
    font-size: 14px;
    color: #555;
    line-height: 22px;
    text-align: left;           /* added: explicit left alignment */
}

.blog-right {
    flex-basis: 32%;
    /* margin-left: 5%; */
}

.blog-right h3 {
    background: #f44336;
    color: #fff;
    padding: 7px 0;
    font-size: 16px;
    margin-bottom: 20px;
    /* text-align: left; */
}

.blog-right div {
    display: flex;
    margin-bottom: 20px;
    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;
    color: #555;
}

.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    background: #f0f0f0;
}

.comment-form button {
    margin: 10px 0;
}

/* ensure header/sub-header sits above iframe */
.header,
.sub-header {
    position: relative;
    z-index: 10;
}

@media (max-width: 700px) {
    .sub-header h1 {
        font-size: 24px;
    }
}

/* Contact Us Page */
.location {
    width: 80%;
    margin: auto;
    padding: 80px 0;
    position: relative;
    z-index: 1; /* behind header but above footer */
}

.location iframe {
    width: 100%;
    max-width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0,0,0,0.1);
    display: block;
    aspect-ratio: 16 / 9; /* responsive sizing */
}

.contact-us {
    width: 80%;
    margin: auto;
    display: flex;              /* added: enable flex layout */
}

/* added: ensure row uses flex for columns */
.contact-us .row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.contact-col {
    flex-basis: 48%;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.contact-col div {
    display: flex;
    margin-bottom: 40px;
    align-items: flex-start;        /* changed: align to top-left */
    gap: 20px;                      /* added: space between icon and text */
}

.contact-col div span {
    text-align: left;               /* added: ensure text is left-aligned */
}

.contact-col div .fa {
    font-size: 28px;
    color: #f44336;
    margin: 10px 0;                 /* changed: simplified margin */
    flex-shrink: 0;                 /* added: prevent icon from shrinking */
}

.contact-col div p {
    font-size: 14px;
    color: #555;
    padding: 0;
}

.contact-col div h5 {
    font-size: 20px;
    margin-bottom: 5px;
    padding: 0;
    color: #222;
    font-weight: 400;
}

/* added: form styling */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 17px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    background: #f0f0f0;
    font-family: "Poppins", sans-serif;
}

.contact-form button {
    width: 100%;
}

/* mobile adjustments */
@media (max-width: 700px) {
    .location {
        margin-top: 60px;
        padding: 40px 0;
    }

    .location iframe {
        height: 300px;
    }

    .contact-us .row {
        flex-direction: column;
    }

    .contact-col {
        flex-basis: 100% !important;
    }
}