/* styles.css */

/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #f9f9f9;
}

a {
    color: #5C2D91;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px; /* Add horizontal padding for content spacing */
}

/* Header */
header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    position: fixed; /* Make the navbar fixed */
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays on top */
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: #5C2D91;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.nav-cta-button {
    margin-left: 20px;
    padding: 10px 20px;
    background-color: #5C2D91;
    color: #fff;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.nav-cta-button:hover {
    background-color: #482074;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: #333;
    margin-bottom: 4px;
    border-radius: 5px;
}

/* Dual Hero Section */
.dual-hero-section {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 80vh; /* Adjusted height for hero images */
    margin-top: 80px; /* Offset for fixed navbar height */
}

.hero-box {
    position: relative;
    flex: 1 1 50%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    max-height: 80vh; /* Ensure images are not overwhelming */
}

.hero-box:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay */
    z-index: 1;
}

.hero-content {
    position: absolute;
    color: #fff;
    text-align: center;
    padding: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.hero-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hero-buttons .cta-button,
.hero-buttons .secondary-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-buttons .cta-button {
    background-color: #fff;
    color: #5C2D91;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hero-buttons .cta-button:hover {
    background-color: #e0e0e0;
}

.hero-buttons .secondary-button {
    background-color: #5C2D91;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hero-buttons .secondary-button:hover {
    background-color: #482074;
}

/* Programs Overview Section */
.programs-overview-section {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
    margin-top: 40px;
}

.programs-overview-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.programs-overview-section p {
    font-size: 18px;
    margin-bottom: 40px;
}

.programs-overview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.program-overview-card {
    flex: 1 1 calc(45% - 40px);
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.program-overview-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    max-height: 200px; /* Ensure images are not too large */
    object-fit: cover;
    margin-bottom: 15px;
}

.program-overview-card h3 {
    font-size: 24px;
    color: #5C2D91;
    margin-bottom: 10px;
}

.program-overview-card p {
    font-size: 16px;
    margin-bottom: 20px;
}

.overview-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.overview-buttons .cta-button,
.overview-buttons .secondary-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.overview-buttons .cta-button {
    background-color: #5C2D91;
    color: #fff;
}

.overview-buttons .cta-button:hover {
    background-color: #482074;
}

.overview-buttons .secondary-button {
    background-color: #fff;
    color: #5C2D91;
    border: 1px solid #5C2D91;
}

.overview-buttons .secondary-button:hover {
    background-color: #e0e0e0;
}

/* Testimonials Section */
.testimonials-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.testimonial-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 30px;
    background-color: #fff;
    border-radius: 15px;
    text-align: center;
    font-style: italic;
}

.testimonial-card p {
    font-size: 16px;
    margin-bottom: 20px;
}

.testimonial-card h4 {
    font-size: 18px;
    font-weight: 500;
    color: #5C2D91;
}

.carousel-controls {
    text-align: center;
    margin-top: 20px;
}

.carousel-controls .prev-button,
.carousel-controls .next-button {
    background-color: #5C2D91;
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.carousel-controls .prev-button:hover,
.carousel-controls .next-button:hover {
    background-color: #482074;
}

/* Signup Form */
.signup-form {
    padding: 60px 20px;
    background-color: #f0f0f0;
    text-align: center;
    margin-top: 40px;
}

.signup-form h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.signup-form form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #5C2D91;
}

.consent {
    display: flex;
    align-items: center;
}

.consent input {
    margin-right: 10px;
}

#interestFormButton {
    width: 100%;
    padding: 15px;
    background-color: #5C2D91;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#interestFormButton:hover {
    background-color: #482074;
}

#interestFormStatus {
    margin-top: 15px;
    color: red;
    text-align: center;
}

#thankYouMessage {
    text-align: center;
    padding: 40px 20px;
}

#thankYouMessage h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: #fff;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}

.footer-content {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.footer-content a {
    color: #5C2D91;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .dual-hero-section {
        flex-direction: column;
        height: auto;
        margin-top: 80px; /* Adjust for fixed navbar */
    }

    .hero-box {
        flex: 1 1 100%;
        height: auto;
    }

    .programs-overview-grid {
        flex-direction: column;
        align-items: center;
    }

    .program-overview-card {
        flex: 1 1 100%;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-card p {
        font-size: 16px;
    }

    .testimonials-section h2 {
        font-size: 28px;
    }

    .dual-hero-section img {
        max-height: 400px; /* Adjust as needed */
    }

    .visuals-grid {
        flex-direction: column;
        align-items: center;
    }

    .visual-card img {
        max-height: 200px; /* Maintain small size on mobile */
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-cta-button {
        margin-left: 0;
        margin-top: 15px;
    }

    .hamburger {
        display: flex;
    }

    .testimonial-carousel {
        height: auto;
    }

    .testimonial-card p {
        font-size: 14px;
    }

    .testimonial-card h4 {
        font-size: 16px;
    }
}

/* Additional Styles for Accessibility */
.navbar a:focus,
.navbar a:hover,
.cta-button:focus,
.cta-button:hover,
.secondary-button:focus,
.secondary-button:hover,
#interestFormButton:focus,
#interestFormButton:hover {
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 45, 145, 0.4);
}
