/* =============================================
   ENHANCEMENTS: Banner Styles, Better Contrast, Alternating Sections
============================================= */

/* Page Banners for All Pages */
.page-banner {
    position: relative;
    padding: 8rem 0 4rem;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    margin-top: 70px; /* Account for fixed navbar */
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.85) 0%, rgba(30, 64, 175, 0.9) 100%);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-banner h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-banner p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.page-banner .breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    opacity: 0.9;
}

.page-banner .breadcrumb a {
    color: white;
    transition: all 0.3s ease;
}

.page-banner .breadcrumb a:hover {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Alternating Section Background Styles */
.section-white {
    background-color: #ffffff;
    padding: 5rem 0;
}

.section-image-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 6rem 0;
    color: white;
}

.section-image-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.section-image-bg .container {
    position: relative;
    z-index: 2;
}

.section-image-bg h2,
.section-image-bg h3 {
    color: white;
}

.section-image-bg p {
    color: rgba(255, 255, 255, 0.95);
}

.section-light-gray {
    background-color: #f9fafb;
    padding: 5rem 0;
}

/* Enhanced Hover Effects with Better Contrast */

/* Navigation Links - Improved Hover */
.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Button Hover Improvements */
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Card Hover Effects - Enhanced Contrast */
.feature-card:hover,
.course-card:hover,
.value-card:hover,
.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

/* Feature Cards Enhanced */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(229, 231, 235, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

/* Stats and Number Highlights */
.stat-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
}

/* Link Hover with Better Contrast */
a:not(.btn):not(.nav-link):hover {
    color: var(--primary-dark) !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Footer Links Enhanced */
.footer-links a:hover {
    color: var(--accent-color) !important;
    padding-left: 10px;
    transform: translateX(5px);
}

/* Form Input Focus - Better Visibility */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    transform: scale(1.02);
}

/* Social Icons Enhanced */
.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--primary-color);
    color: white !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Course Part Cards */
.course-part {
    transition: all 0.4s ease;
}

.course-part:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* Topic Items Enhanced */
.topic-item:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0effe 100%);
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    transform: translateX(10px);
}

/* Testimonial Cards */
.testimonial-card:hover {
    border-color: var(--accent-color);
}

.testimonial-card:hover .testimonial-rating {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Table Row Hover */
tr:hover {
    background-color: #f0f7ff !important;
    transform: scale(1.01);
}

/* Accordion/Dropdown Hover */
.accordion-header:hover {
    background: var(--primary-light);
    color: white;
    cursor: pointer;
}

/* Image Overlay on Hover */
.image-container {
    position: relative;
    overflow: hidden;
}

.image-container:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-container:hover::after {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-banner h1 {
        font-size: 2.5rem;
    }
    
    .page-banner {
        padding: 6rem 0 3rem;
    }
    
    .section-white,
    .section-light-gray {
        padding: 3rem 0;
    }
    
    .section-image-bg {
        padding: 4rem 0;
        background-attachment: scroll;
    }
}

/* Accessibility Enhancements */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}

/* Print Styles */
@media print {
    .page-banner,
    .navbar,
    .footer {
        display: none;
    }
}
/* =============================================
   FIXED CSS FOR BACKGROUND IMAGE TEXT READABILITY
   This file contains fixes for sections with background images
============================================= */

/* Enhanced overlay for better text readability on background images */
.section-image-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75) !important; /* Increased from 0.7 to 0.75 for better contrast */
    z-index: 1;
}

/* Ensure container content is above overlay */
.section-image-bg .container {
    position: relative;
    z-index: 2;
}

/* Make ALL text elements white in image background sections */
.section-image-bg h1,
.section-image-bg h2,
.section-image-bg h3,
.section-image-bg h4,
.section-image-bg h5,
.section-image-bg h6,
.section-image-bg p,
.section-image-bg span,
.section-image-bg .section-title,
.section-image-bg .section-description {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add text shadow for extra readability */
}

/* Section badge on image backgrounds */
.section-image-bg .section-badge {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-color) !important;
    font-weight: 700;
    text-shadow: none;
}

/* Cards within image background sections - Keep white background */
.section-image-bg .vm-card,
.section-image-bg .achievement-card,
.section-image-bg .step-card,
.section-image-bg .approach-step,
.section-image-bg .material-card,
.section-image-bg .highlight-card {
    background: rgba(255, 255, 255, 0.98) !important; /* Slightly more opaque */
    color: var(--text-dark) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
}

/* Card headings and text - Dark color for readability on white card backgrounds */
.section-image-bg .vm-card h3,
.section-image-bg .vm-card p,
.section-image-bg .achievement-card h3,
.section-image-bg .achievement-card p,
.section-image-bg .step-card h3,
.section-image-bg .step-card p,
.section-image-bg .approach-step h3,
.section-image-bg .approach-step p,
.section-image-bg .material-card h3,
.section-image-bg .material-card p,
.section-image-bg .highlight-card h3,
.section-image-bg .highlight-card p {
    color: var(--text-dark) !important;
    text-shadow: none !important;
}

/* Icons within cards should retain their colors */
.section-image-bg .vm-icon,
.section-image-bg .achievement-icon,
.section-image-bg .step-icon,
.section-image-bg .material-icon,
.section-image-bg .highlight-icon {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%) !important;
}

/* Icon text/symbols should be white */
.section-image-bg .vm-icon i,
.section-image-bg .achievement-icon i,
.section-image-bg .step-icon i,
.section-image-bg .material-icon i,
.section-image-bg .highlight-icon i {
    color: white !important;
    text-shadow: none;
}

/* Why Matters Section Specific Fixes */
.why-matters-section {
    position: relative;
    padding: 6rem 0 !important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
}

.why-matters-section::before,
.why-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        rgba(0, 40, 90, 0.8),
        rgba(0, 90, 180, 0.8)
    ) !important; /* Increased opacity from 0.55 to 0.8 */
    z-index: 1;
}

.why-matters-section .container {
    position: relative;
    z-index: 2;
}

/* All text in why-matters should be white */
.why-matters-section h1,
.why-matters-section h2,
.why-matters-section h3,
.why-matters-section .section-title,
.why-matters-section .section-description {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Matter cards need white background */
.why-matters-section .matter-card {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.why-matters-section .matter-card h3,
.why-matters-section .matter-card p {
    color: var(--text-dark) !important;
    text-shadow: none !important;
}

/* Solution box with better contrast */
.why-matters-section .solution-box {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
}

.why-matters-section .solution-box h3,
.why-matters-section .solution-box p {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Course Section Fixes */
.course-section.section-image-bg .course-part {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.course-section.section-image-bg .part-content h4,
.course-section.section-image-bg .part-content p,
.course-section.section-image-bg .topic-info h4,
.course-section.section-image-bg .topic-info p {
    color: var(--text-dark) !important;
    text-shadow: none !important;
}

/* FAQ Section Fixes */
.faq-section.section-image-bg .faq-item {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
}

.faq-section.section-image-bg .faq-question,
.faq-section.section-image-bg .faq-answer p {
    color: var(--text-dark) !important;
    text-shadow: none !important;
}

/* Placement Section Fixes */
.placement-section.section-image-bg .placement-card,
.placement-section.section-image-bg .step-card {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Results Section Fixes */
.results-section.section-image-bg .stat-card,
.results-section.section-image-bg .result-card {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Journey Section Fixes */
.journey-section.section-image-bg .journey-card {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Learning Approach Section Fixes */
.learning-approach.section-image-bg .approach-step {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Flexible Learning Section Fixes */
.flexible-learning.section-image-bg .flex-card {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* CTA Section with background image */
.cta-section {
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.9) !important;
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2,
.cta-section p {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Features Highlight Section Fixes */
.features-highlight .highlight-card {
    transition: all 0.3s ease;
}

.features-highlight .highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Ensure highlight images are properly contained */
.highlight-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    margin: -2rem -2.5rem 1.5rem -2.5rem;
}

.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.highlight-card:hover .highlight-image img {
    transform: scale(1.1);
}

/* Page Banner Fixes */
.page-banner {
    position: relative;
    padding: 8rem 0 4rem;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    color: white;
    margin-top: 70px;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.85) 0%, rgba(30, 64, 175, 0.9) 100%) !important;
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-banner h1,
.page-banner p {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-image-bg {
        background-attachment: scroll !important;
        padding: 4rem 0 !important;
    }
    
    .why-matters-section {
        background-attachment: scroll !important;
        padding: 4rem 0 !important;
    }
    
    .page-banner {
        background-attachment: scroll !important;
        padding: 6rem 0 3rem !important;
    }
    
    .highlight-image {
        height: 150px;
    }
}

/* Print Styles */
@media print {
    .section-image-bg::before,
    .why-matters-section::before,
    .page-banner::before {
        background: rgba(255, 255, 255, 0.95) !important;
    }
    
    .section-image-bg *,
    .why-matters-section *,
    .page-banner * {
        color: #000000 !important;
        text-shadow: none !important;
    }
}
/* FAQ Section Background */
.faq-section {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark Overlay (so background image is visible) */
.faq-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65); /* Adjust darkness here */
    z-index: 1;
}

.faq-section .container {
    position: relative;
    z-index: 2;
}

/* Section Header */
.faq-section .section-title {
    color: #ffffff;
}

.faq-section .section-badge {
    background: #1e73be;
    color: #ffffff;
}

/* FAQ Container */
.faq-container {
    max-width: 900px;
    margin: 50px auto 0;
}

/* FAQ Item */
.faq-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Hover Effect */
.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Question Button */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #1e73be; /* Blue Question Text */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

/* Icon */
.faq-question i {
    transition: transform 0.3s ease;
}

/* Rotate icon when active */
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #ffffff;
}

.faq-answer p {
    padding: 0 25px 20px 25px;
    margin: 0;
    color: #000000; /* Black Paragraph Text */
    font-size: 15px;
    line-height: 1.6;
}

/* Active State */
.faq-item.active .faq-answer {
    max-height: 300px;
}
