/* Global Styles */
:root {
    --primary-color: #1a365d;  /* Medium dark blue */
    --secondary-color: #2d7d46;  /* Green */
    --accent-color: #3b82f6;  /* Lighter blue for accents */
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white: #ffffff;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    bottom: -10px;
    left: 0;
}

.section-subtitle {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #1f5e35;
    border-color: #1f5e35;
    box-shadow: 0 5px 15px rgba(45, 125, 70, 0.3);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-light:hover {
    background-color: transparent;
    color: var(--white);
}

/* Top Header */
.top-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
    position: relative;
    z-index: 1001;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.social-icons a {
    color: var(--white);
    margin-left: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Navigation */
.navbar-brand {
    padding: 10px 0;
    margin: 0;
}    
.navbar {
    padding: 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--white) !important;
    position: relative;
    z-index: 1000;
}

.navbar-brand img {
    max-height: 50px;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 15px !important;
    margin: 0 5px;
    position: relative;
}

.navbar-nav .nav-link:before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover:before,
.navbar-nav .nav-link.active:before {
    width: 70%;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    overflow: hidden;
    padding: 0 0 80px;
    margin-top: -1px; /* Remove any potential gap */
    display: flex;
    align-items: center;
}

.carousel {
    width: 100%;
    height: 100%;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: relative;
    width: 100%;
    min-height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 0;
    transition: transform 0.6s ease-in-out;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-item:nth-child(1) {
    background-image: url('../images/hero1.jpg');
}

.carousel-item:nth-child(2) {
    background-image: url('../images/hero2.jpg');
}

.carousel-item:nth-child(3) {
    background-image: url('../images/hero3.jpg');
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 54, 93, 0.7);
}

.carousel-caption {
    position: relative;
    right: auto;
    left: auto;
    padding: 40px 0;
    text-align: center;
    color: var(--white);
    transform: none;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 1;
    padding: 40px 15px;
}

.carousel-caption h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 auto 15px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    max-width: 90%;
}

.carousel-caption p {
    font-size: 1.25rem;
    margin: 0 auto 30px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    max-width: 90%;
}

.hero .btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.hero .btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Hero Form - Horizontal Layout */
.hero-form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 30px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 900px;
    margin: 30px auto 0;
    position: relative;
    z-index: 2;
}

.hero-form-container h3 {
    color: var(--primary-color);
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.hero-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

.hero-form .form-group {
    flex: 1;
    min-width: 160px;
    margin-bottom: 0;
}

.hero-form .form-control,
.hero-form .form-select {
    height: 50px;
    border: 1px solid #e1e5ee;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 0;
}

.hero-form .btn-submit {
    height: 50px;
    padding: 0 25px;
    white-space: nowrap;
    margin-left: auto;
}

/* Adjust form for different screen sizes */
@media (max-width: 1199.98px) {
    .hero-form .form-group {
        min-width: 140px;
    }
    
    .hero-form .btn-submit {
        padding: 0 20px;
    }
}

@media (max-width: 991.98px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .carousel-caption {
        padding: 20px 15px;
    }
    
    .hero-form {
        flex-wrap: wrap;
    }
    
    .hero-form .form-group {
        flex: 1 1 calc(50% - 10px);
        min-width: auto;
    }
    
    .hero-form .btn-submit {
        flex: 1 1 100%;
        margin-top: 10px;
        margin-left: 0;
    }
    
    .hero-form-container {
        margin-top: 20px;
    }
}

@media (max-width: 767.98px) {
    .hero-form-container {
        padding: 20px;
    }
    
    .hero-form .form-group {
        flex: 1 1 100%;
    }
    
    .hero-form .btn-submit {
        margin-top: 5px;
    }
}

.hero-form .form-control:focus,
.hero-form .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(45, 125, 70, 0.25);
}

.hero-form .btn {
    padding: 12px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 15px;
}

/* Adjust carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: 50%;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .carousel-caption h1 {
        font-size: 2.2rem;
    }
    
    .carousel-caption p {
        font-size: 1.1rem;
    }
    
    .hero-form-container {
        margin-top: 30px;
    }
}

@media (max-width: 767.98px) {
    .carousel-caption h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .hero-form-container {
        padding: 20px;
    }
    
    .hero-form-container h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 575.98px) {
    .carousel-caption h1 {
        font-size: 1.6rem;
    }
    
    .hero .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero .btn + .btn {
        margin-left: 0;
    }
}

/* About Section */
#about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px 15px;
    margin: 10px;
    background-color: var(--light-color);
    border-radius: 10px;
    flex: 1 1 150px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-item h5 {
    margin-bottom: 0;
    font-weight: 600;
}

/* Services Section */
#services {
    padding: 100px 0;
    background-color: var(--light-color);
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: rgba(45, 125, 70, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 0;
}

/* Education Banner */
.education-banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.education-banner h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.education-banner p {
    font-size: 1.2rem;

        @media (max-width: 767.98px) {
            .contact-wrapper {
                padding: 15px;
            }
            
            .contact-form-wrapper {
                padding: 20px 15px;
            }
            
            .contact-form-wrapper h3 {
                font-size: 1.5rem;
            }
        }

        .contact-form .form-control:focus,
        .contact-form .form-select:focus {
            border-color: var(--secondary-color);
            box-shadow: 0 0 0 0.25rem rgba(45, 125, 70, 0.25);
        }

        /* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 180px;
    max-width: 300px;
    padding: 0 10px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-logo-img {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-menu ul,
.footer-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-menu ul li a,
.footer-services ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-menu ul li a:hover,
.footer-services ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-social .social-links {
    display: flex;
    gap: 15px;
}

.footer-social .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.footer-social .social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 14px;
}

/* Responsive Footer */
@media (max-width: 991.98px) {
    .footer-content {
        flex-wrap: wrap;
        gap: 40px;
    }
    
    .footer-section {
        flex: 1 1 calc(50% - 20px);
        min-width: 250px;
    }
    
    .footer-logo {
        flex: 1 1 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-section {
        flex: 1 1 100%;
        min-width: auto;
        text-align: center;
        padding: 0;
    }
    
    .footer-logo {
        text-align: center;
        justify-content: center;
    }
    
    .footer-section h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social .social-links {
        justify-content: center;
    }
    
    .footer-menu ul li a:hover,
    .footer-services ul li a:hover {
        transform: none;
    }
}



/* Desktop Footer - Force Horizontal Layout */
@media (min-width: 992px) {
    .footer-content {
        flex-wrap: nowrap !important;
        flex-direction: row !important;
    }
    
    .footer-section {
        flex: 1 !important;
        min-width: 180px !important;
        max-width: 300px !important;
    }
    
    .footer-logo {
        flex: 0 0 auto !important;
        max-width: 200px !important;
    }
}


/* Force Horizontal Footer Layout */
.footer-content {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    margin-bottom: 40px !important;
}

.footer-section {
    flex: 1 !important;
    min-width: 180px !important;
    max-width: 300px !important;
    padding: 0 10px !important;
    display: block !important;
}

/* Override any conflicting styles */
.footer .row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}