/* CSS Variables */
:root {
    --primary: #002147;
    --accent: #f4b400;
    --light: #f9f9f9;
    --dark: #333;
    --secondary-bg: #e6f2ff;
    --accent-light: #ffc84d;
    /* Define the bright blue color used in the large dark blue sections */
    --bright-blue: #007BFF; 
}

/* Base Styles */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
.main-header {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    background-color: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    margin-right: 0.5rem;
}

.logo {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.burger-menu {
    display: none;
    cursor: pointer;
}

.burger-menu div {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px;
    transition: all 0.3s ease;
}

.nav-active {
    transform: translateX(0);
}
    
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}
    
/* Quick Query Section */
.quick-query-container {
    background-color: var(--primary); 
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.query-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
}
    
.query-form-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    /* CHANGED: Match Quick Query headline to the bright blue */
    color: var(--bright-blue); 
}

.query-form-wrapper p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2rem;
}
    
.query-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.form-group-colored {
    position: relative;
}
    
.form-group-colored label {
    display: none;
}
    
.form-group-colored input,
.form-group-colored select {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-right: 3rem;
    border: 2px solid var(--accent); 
    border-radius: 8px;
    box-sizing: border-box;
    background-color: transparent;
    color: white;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.form-group-colored input::placeholder {
    color: #aaa;
}
    
.form-group-colored select option {
    color: var(--dark);
}

.form-group-colored .icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-light); 
    pointer-events: none;
}

.submit-button-query {
    background-color: var(--accent); 
    color: var(--primary); 
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 2rem;
    transition: background-color 0.3s, transform 0.3s;
}

.submit-button-query:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}
    
/* Core Values Section */
.core-values-section {
    padding: 4rem 0;
    background-color: white;
    text-align: center;
}

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    perspective: 1000px;
    align-items: stretch;
}

/* Styles for flip cards */
.value-card-container {
    background-color: transparent;
    width: 100%;
    height: 100%;
    min-height: 270px;
}

.value-card {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.value-card.is-flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.card-front {
    background-color: #f9f9f9;
}

.card-back {
    background-color: var(--primary);
    color: white;
    transform: rotateY(180deg);
    /* Increased padding on the back for better visual spacing */
    padding: 1.5rem; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    overflow: hidden; /* Ensures content stays within the box */
}

.card-back .modal-title {
    color: white;
    /* Increased font size for title */
    font-size: 1.2rem; 
    margin-bottom: 0.75rem;
    text-align: center; /* Center title for better aesthetics */
    width: 100%;
}
.card-back .modal-text {
    color: #e0e0e0;
    /* Significantly increased font size for readability */
    font-size: 0.95rem; 
    line-height: 1.7;
    /* Reduced horizontal padding to allow more text width */
    padding: 0 0.5rem; 
    box-sizing: border-box;
    text-align: center; /* Center text for cleaner look */
    width: 100%;
    /* Ensure no overflow */
    overflow-y: auto;
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background-color: var(--secondary-bg);
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary);
}

.stat-label {
    font-weight: 500;
    color: var(--dark);
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: white;
}
    
.section-subtitle {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-top: 0;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-image-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 33, 71, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}
    
.about-image-content h3 {
    margin: 0;
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary);
}

.feature-icon {
    color: var(--accent);
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Courses Section */
.courses-section {
    padding: 4rem 0;
    background-color: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary);
    margin-top: 0.5rem;
    font-size: 2.5rem;
}
    
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.course-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-content-wrapper {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-badge {
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.course-content-wrapper h3 {
    margin: 0.5rem 0 0;
    color: var(--primary);
    font-size: 1.3rem;
}

.course-content-wrapper h4 {
    margin: 0.5rem 0 1rem;
    font-weight: 400;
    color: #555;
    font-size: 1rem;
}

.course-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    flex-grow: 1;
}

.course-features li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    top: 3px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.course-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
}

.learn-more {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.learn-more:hover {
    background-color: #004080;
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 0;
    background-color: var(--secondary-bg);
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
    
.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
    
.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--accent);
}
    
.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--dark);
    flex-grow: 1;
}
    
.testimonial-author {
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.5rem;
}
    
.testimonial-role {
    font-size: 0.9rem;
    color: #777;
}

/* Footer */
.main-footer {
    background-color: var(--primary);
    color: white;
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid #444;
    padding-bottom: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-top: 0;
    /* CHANGED: Match footer headings to the bright blue */
    color: var(--bright-blue); 
}

.footer-section p {
    font-size: 0.9rem;
    color: #ccc;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin-left: 0; 
}

.footer-section ul li {
    margin-bottom: 0.75rem;
    padding-left: 0; 
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}
    
/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}
    
.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Free Resources Section */
.resources-section {
    padding: 4rem 0;
    background-color: var(--light);
    display: none;
}
.resources-section-visible {
    display: block;
}
.resources-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.resources-sidebar {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.resources-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.resources-sidebar li {
    margin-bottom: 1rem;
}
.resources-sidebar a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}
.resources-sidebar a.active, .resources-sidebar a:hover {
    color: var(--accent);
    font-weight: 600;
}
.resources-content {
    flex-grow: 1;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.resource-list {
    list-style: none;
    padding: 0;
}
.resource-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}
.resource-list li:last-child {
    border-bottom: none;
}
.resource-icon {
    font-size: 2rem;
    color: var(--accent);
}
.resource-info {
    flex-grow: 1;
}
.resource-info h4 {
    margin: 0;
    color: var(--primary);
    font-size: 1.2rem;
}
.resource-info p {
    margin: 0;
    color: #777;
    font-size: 0.9rem;
}
.resource-download {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}
.resource-download:hover {
    background-color: #004080;
}
.resource-back-btn {
    background-color: #ddd;
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 60px;
        height: calc(100vh - 60px);
        background-color: var(--primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        width: 70%;
        max-width: 300px;
        transform: translateX(100%);
        padding-top: 2rem;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        color: white;
        font-size: 1.2rem;
    }
    
    .burger-menu {
        display: block;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        order: -1;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .stats-grid {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
    }

    .value-card-container {
        height: auto;
    }

    .value-card {
        padding: 1rem;
    }

    .resources-container {
        flex-direction: column;
    }
    .resources-sidebar {
        padding: 1rem;
    }
    .resources-content {
        padding: 1rem;
    }

    /* Mobile-specific adjustments for Core Values text */
    .card-back .modal-title {
        font-size: 1.1rem; 
    }
    .card-back .modal-text {
        font-size: 0.85rem; 
    }
}
    
@media (max-width: 500px) {
    .quick-query-container, .stats-section, .about-section, .courses-section, .testimonials-section, .main-footer, .resources-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    .query-form-grid {
        grid-template-columns: 1fr;
    }

    /* Smaller mobile screen adjustments for Core Values text */
    .card-back .modal-title {
        font-size: 1rem; 
    }
    .card-back .modal-text {
        font-size: 0.8rem; 
    }
}