/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #0d47a1;
    /* Deep Blue */
    --secondary-color: #2563eb;
    /* Blue */
    --accent-color: #fdd835;
    /* Yellow */
    --text-color: #333333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open+Sans', sans-serif;
}

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


html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    padding-top: 80px;
    /* Added for fixed header */
}

a {
    text-decoration: none;
    /* color: var(--text-color); */
    color: white;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Helper Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

/* Navbar specific styles will go here */
.navbar-area {
    background: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    /* Changed from sticky */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
}


.logo img {
    height: 60px;
    /* Adjust as needed */
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    /* color: var(--white); */
    color: white;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}
#navMenu .nav-link {
    color: white;
}
.nav-link:hover {
    color: var(--primary-color)!important;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
}

/* navbar.css */

/* Mobile View */
@media (max-width: 768px) {

    /* Navbar parent */
    .navbar-area {
        padding: 15px 0;
    }

    /* Menu hidden by default */
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 100%);
        flex-direction: column;
        padding: 20px 15px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    /* When menu is active */
    .nav-menu.active {
        display: flex !important;
        align-items: flex-start;
        gap: 15px;
    }

    .nav-menu.active .nav-link {
        display: block;
        padding: 12px 15px;
        border-radius: 6px;
        transition: background-color 0.3s ease;
    }

    .nav-menu.active .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Dropdown menu in mobile */
    .nav-menu.active .dropdown {
        width: 100%;
    }

    .nav-menu.active .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        transform: none !important;
    }

    .nav-menu.active .dropdown-menu .dropdown-item {
        color: white;
        padding: 10px 30px;
        font-size: 14px;
    }

    .nav-menu.active .dropdown-menu .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.15) !important;
        color: white;
    }

    /* Mobile menu button */
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 22px;
        cursor: pointer;
        margin-left: auto;
    }

    .nav-menu.active + .mobile-menu-btn {
        color: #ffffff;
    }
}



/* Hero/Carousel Section */
.carousel-item {
    height: 85vh;
    /* Full screen feel */
    min-height: 500px;
    background-color: #000;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    /* Slight fade for text readability */
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 30%;
    /* Vertically align improved */
}

.carousel-caption h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
}

/* Hero Button */
.carousel-caption .btn {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s ease;
}

.carousel-caption .btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .carousel-item {
        height: 60vh;
    }
}

/* Visibility fixes for hero text */
.carousel-caption h1,
.carousel-caption p {
    color: var(--white) !important;
}

.page-hero h1,
.page-hero h2,
.page-hero p,
.page-hero .section-title p {
    color: var(--white) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero span,
.page-hero div {
    color: var(--white);
}

/* General Section Styles */
.section-padding {
    padding: 80px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #2563eb;
    margin-bottom: 20px;
}

p {
    color: #555;
    margin-bottom: 15px;
}

/* About Us Section */
#about_us {
    padding: 0;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

#about_us .row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch !important;
    /* Ensures equal height */
    margin: 0;
    min-height: calc(100vh - 80px);
}



.aboutus_img {
    position: relative;
    /* match the text column padding so both columns' inner content align */
    padding: 60px !important;
    overflow: hidden;
    height: 100%;
    display: flex !important;
    align-items: center;
}
.aboutus_img img {
    /* subtract top+bottom padding so the image fills the same inner height as the text content */
    height: calc(100% - 120px) !important;
    width: 100% !important;
    object-fit: cover;
    display: block;
}

/* Responsive: reduce padding on small screens and let image size naturally */
@media (max-width: 767px) {
    .aboutus_text,
    .aboutus_img {
        padding: 30px !important;
    }
    .aboutus_img img {
        height: auto !important;
        max-width: 100%;
    }
}

.aboutus_text h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.aboutus_img {
    position: relative;
    padding: 0 !important;
    overflow: hidden;
    height: 100%;
    display: flex !important;
}

.aboutus_img img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
    display: block;
}

.aboutus_hanif {
    background: var(--white);
    padding: 20px;
    position: absolute;
    /* Change to absolute to stay over the stretched image */
    bottom: 30px;
    left: 20px;
    right: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--secondary-color);
    z-index: 10;
}

.aboutus_hanif h2 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.aboutus_hanif p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--secondary-color);
    font-weight: 600;
}

.aboutus_main_down {
    padding-bottom: 80px;
}

.aboutus_down {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    border-top: 3px solid transparent;
}

.aboutus_down:hover {
    transform: translateY(-5px);
    border-top-color: var(--secondary-color);
}

.aboutus_down h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Footer Section */
footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 100%);
    color: #ffffff;
    padding-top: 80px;
    padding-bottom: 20px;
}
footer h1 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer ul li {
    margin-bottom: 12px;
}

footer a {
    color: #ffffff;
    font-size: 0.95rem;
    text-decoration: none !important;
}

footer a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
    text-decoration: none !important;
}

footer .bottom-text,
footer .bottom-text2 {
    text-align: center;
    font-size: 0.85rem;
    color: #e1eb81;
    margin-top: 20px;
}

/* Programs/Cards General Fix (if needed) */
.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Program Cards Styles */
.member {
    background: linear-gradient(135deg, #3b4c8f 0%, #2563eb 50%, #1e3a8a 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    margin: 15px;
    margin-left: 28px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: left;
    flex-direction: column;
    height: 100%;
    width: 80%;
}

.member:hover {
    transform: translateY(-12px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.card-img {
    background: #ffffff;
    padding: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.card-img img {
    width: 100px;
    height: 100px;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.member:hover .card-img img {
    transform: scale(1.02);
}

.card-info {
    padding: 28px 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    line-height: 1.3;
}

.card-info p {
    color: #e8eef8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.section-title p {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    /* position: relative; */
    /* display: inline-block; */
    padding-bottom: 10px;
}

/* Footer Mobile Optimizations */
@media (max-width: 768px) {
    footer {
        text-align: center;
    }

    footer .col-lg-3 {
        margin-bottom: 30px;
    }

    footer img {
        margin: 0 auto 20px auto;
        display: block;
        max-width: 150px;
        /* Reduce logo size on mobile */
        height: auto;
    }

    footer ul {
        padding-left: 0;
    }

    footer ul li {
        list-style: none;
    }

    footer h1 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    #social {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Add some spacing between social links if they are direct anchors */
    #social a {
        display: block;
        /* Make them block to have their own line */
        margin-bottom: 10px;
    }
}

/* Enhanced Card Styling */
.member {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Softer, deeper shadow */
    transition: all 0.4s ease;
    height: 100%;
    /* Uniform height */
    display: flex;
    flex-direction: column;
}

.member:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-img {
    height: 20px;
    /* Fixed height for consistency */
    overflow: hidden;
    position: relative;
    width: 100%;
}


.card-img img {
    width: 100%;
    height: 57%;
    object-fit: contain;
    /* Prevents stretching */
    transition: transform 0.5s ease;
}

.member:hover .card-img img {
    transform: scale(1.1);
    /* Smooth zoom effect */
}

/* Card Info Polish */
.card-info {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    /* Pushes content to fill space */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #fff, #f9f9f9);
    border-top: 1px solid #eee;
}

.card-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.4;
}

/* Page Hero Enhancement */
.page-hero {
    position: relative;
    background-attachment: fixed !important;
    /* Parallax feel */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.8), rgba(0, 137, 123, 0.7));
    /* Brand gradient overlay */
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

/* Global Spacing Fix */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-padding {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Team Section Improvements */
.team .member {
    position: relative;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border-radius: 10px;
    background: #fff;
    transition: 0.5s;
    text-align: center;
    height: 100%;
}

.team .member:hover {
    transform: translateY(-10px);
    box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.15);
}

.team .member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--light-gray);
    transition: all 0.3s ease;
}

.team .member:hover img {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.team .member h4 {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.team .member span {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Admission Form Improvements */
.card-registration .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
}

.card-registration .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.25);
}

.card-registration .btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background-color 0.3s;
}

.card-registration .btn-primary:hover {
    background-color: var(--secondary-color);
}

/* Contact Page Improvements */
.contact .info-box {
    color: #444444;
    text-align: center;
    box-shadow: 0 0 30px rgba(214, 215, 219, 0.6);
    padding: 20px 0 30px 0;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 30px;
    height: 100%;
}

.contact .info-box i {
    font-size: 32px;
    color: var(--secondary-color);
    border-radius: 50%;
    padding: 8px;
    background: rgba(0, 137, 123, 0.1);
    margin-bottom: 20px;
    display: inline-block;
}

.contact .php-email-form {
    box-shadow: 0 0 30px rgba(214, 215, 219, 0.6);
    padding: 30px;
    border-radius: 10px;
    background: #fff;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
    border-radius: 5px;
    box-shadow: none;
    font-size: 14px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
    border-color: var(--secondary-color);
}

.contact .php-email-form button[type="submit"] {
    background: var(--secondary-color);
    border: 0;
    padding: 10px 24px;
    color: #fff;
    transition: 0.4s;
    border-radius: 5px;
}

.contact .php-email-form button[type="submit"]:hover {
    background: var(--primary-color);
}

/* Bootstrap Dropdown Fix */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 200px;
    padding: 8px 0;
    margin: 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}

.dropdown-menu.show {
    display: block !important;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #333;
    text-align: inherit;
    white-space: nowrap;
    background: 0 0;
    border: 0;
}

.dropdown-item:hover {
    color: #262626;
    text-decoration: none;
    background-color: #f5f5f5;
}

/* Desktop dropdown override */
@media (min-width: 768px) {
    .nav-menu .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        z-index: 1000 !important;
        display: none !important;
        min-width: 200px !important;
        background-color: #fff !important;
        border: 1px solid rgba(0,0,0,.15) !important;
        box-shadow: 0 6px 12px rgba(0,0,0,.175) !important;
    }
    
    .nav-menu .dropdown-menu.show {
        display: block !important;
    }
    
    .nav-menu .dropdown-item {
        color: #333 !important;
        padding: 3px 20px !important;
    }
    
    .nav-menu .dropdown-item:hover {
        background-color: #f5f5f5 !important;
        color: #262626 !important;
    }
    
    /* Make dropdown button look like nav link */
    .nav-menu .btn.nav-link {
        background: none !important;
        border: none !important;
        color: white !important;
        padding: 0 !important;
        font-size: inherit !important;
        font-weight: inherit !important;
        text-decoration: none !important;
        cursor: pointer !important;
        box-shadow: none !important;
        outline: none !important;
    }
    
    .nav-menu .btn.nav-link:hover {
        color: var(--accent-color) !important;
    }
}