/* General Body and HTML styles */
html {
    scroll-behavior: smooth;
    font-family: "Roboto", "Inter", sans-serif;
}

body {
    background-color: #f7fafc; /* bg-gray-100 */
    color: #2d3748; /* text-gray-800 */
    margin: 0;
}

/* Header Styles */
.header-top {
    background-color: #10306c;
    min-height: 100px;
    padding: 0.75rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    max-width: 2000px;
    width: 90%;
    margin: auto;
    flex-wrap: wrap;
}

.logo {
    width: 462px;
    max-width: calc(90% - 38px);
    object-fit: contain;
}

.header-quote {
    text-align: right;
    color: white;
    width: 600px;
    max-width: 100%;
    display: none; /* Hidden by default */
}

/* --- Start of Fix --- */
.mobile-menu-button-container {
    display: block; /* Show on mobile by default */
}
/* --- End of Fix --- */

#mobile-menu-button {
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

#mobile-menu-button .hamburger-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* --- Start of Fix --- */
.main-nav {
    background-color: #2d5588;
    padding: 2rem;
    display: none; /* Hidden on mobile by default */
}
/* --- End of Fix --- */

.nav-links ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    font-size: 1rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-links a.active {
    color: #fad23f;
}

.mobile-nav {
    width: 100%;
    background-color: #10306c;
    padding: 1.25rem;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav a {
    font-size: 1rem;
    color: white;
    text-decoration: none;
}
.mobile-nav a.active {
    color: #fad23f;
}

.hidden {
    display: none !important;
}


/* Main Content Styles */
main {
    display: block;
}

.main-container {
    max-width: 1364px;
    width: 90%;
    margin: auto;
}

.cta-section {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 40px;
    flex-wrap: wrap;
}

.cta-card {
    width: 100%;
}

.cta-image-container {
    position: relative;
    width: 100%;
}

.cta-image-container img {
    width: 100%;
    object-fit: contain;
}

.cta-overlay {
    position: absolute;
    bottom: 1.25rem;
    inset: 0;
    background: linear-gradient(to top, black, transparent);
    height: 100%;
}

.cta-title {
    position: absolute;
    bottom: 0.75rem;
    z-index: 10;
    text-align: center;
    color: white;
    width: 100%;
    font-size: 1.25rem;
}

.cta-button-container {
    width: fit-content;
    margin: 1rem auto;
}

.cta-button {
    font-weight: bold;
    font-size: 20px;
    width: 260px;
    height: 72px;
    border-radius: 36px;
    cursor: pointer;
}

.cta-button.primary {
    background-color: #ebf9ff;
    color: #2d5588;
    border: 2px solid #2d5588;
}

.cta-button.secondary {
    background-color: #10306c;
    color: white;
    border: none;
}

.intro-heading {
    font-size: 1rem;
    line-height: 2.5rem;
    text-align: center;
    margin-top: 2.5rem;
    color: #10306c;
}

.video-container {
    max-width: 1088px;
    width: 100%;
    margin: 10px auto 0;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.how-it-works-section {
    margin-top: 40px;
    color: #10306c;
}

.section-heading {
    font-size: 30px;
    line-height: 30px;
    text-align: center;
}

.how-it-works-cards {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 56px;
    width: 100%;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.how-it-works-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 70%;
    padding: 0 0.75rem;
}

.how-it-works-card img {
    max-width: 200px;
    width: 80%;
    height: auto;
    object-fit: contain;
    border-radius: 9999px; /* full */
}

.how-it-works-card p {
    margin-top: 30px;
    font-size: 1rem;
}


/* Benefits Section */
.benefits-section {
    background-color: #10306c;
    color: white;
    padding: 40px 0 63px;
    margin-top: 53px;
    text-align: center;
}

.benefits-heading {
    font-size: 30px;
    line-height: 30px;
    font-weight: bold;
}

.benefits-cards {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 60px;
    flex-wrap: wrap;
}

.benefit-card {
    background-color: #6295d9;
    color: white;
    padding: 25px;
    border-radius: 30px;
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 1.25rem;
}

.benefit-card h4 {
    font-size: 24px;
    line-height: 30px;
    font-weight: bold;
    margin: 0;
}

/* Features Section */
.features-section {
    margin: 40px auto 0;
    max-width: 1364px;
    width: 90%;
    color: #10306c;
}

.features-heading {
    font-size: 30px;
    line-height: 60px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

.features-cards {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80%;
}

.feature-card h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: bold;
    margin-top: 1.25rem;
}

.feature-card p {
    font-size: 1rem;
    text-align: center;
    margin-top: 1rem;
}


/* Footer Styles */
footer {
    padding: 50px 0;
    background-color: #03254c;
    color: white;
    margin-top: 100px;
}

.footer-container {
    max-width: 1364px;
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-logo {
    object-fit: contain;
    width: 209px;
}

.footer-links-section, .footer-social-section {
    width: 332px;
}

.footer-links-section h4, .footer-social-section h4 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fad23f;
    width: 100%;
    text-align: center;
}

.footer-links-section ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0;
    list-style: none;
}

.footer-links-section a {
    color: white;
    text-decoration: underline;
    cursor: pointer;
}
.footer-links-section a:hover {
    opacity: 0.9;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
    list-style: none;
    padding: 0;
}

.social-icons img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.workbay-logo {
    object-fit: contain;
}

.footer-bottom {
    max-width: 1364px;
    width: 90%;
    margin: 2.5rem auto 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-sponsors {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    order: 2;
}

.footer-sponsors img:first-child {
    width: 70px;
    object-fit: contain;
}
.footer-sponsors img:last-child {
    width: 200px;
    object-fit: contain;
}

.footer-legal-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    order: 1;
}

.footer-legal-links a {
    color: white;
    text-decoration: underline;
    cursor: pointer;
    width: 100%;
    text-align: center;
}
.footer-legal-links a:hover {
    opacity: 0.9;
}


/* Responsive Styles */
@media (min-width: 768px) { /* md breakpoint */
    .header-quote { display: block; }
    /* --- Start of Fix --- */
    .mobile-menu-button-container { display: none; }
    .main-nav { display: block; }
    /* --- End of Fix --- */
    .mobile-nav { display: none !important; } /* Keep this to ensure JS hidden class works */

    .cta-card { width: 40%; }
    .cta-button { width: 168px; height: 45px; font-size: 1rem; }
    
    .video-container { margin-top: 15px; }

    .how-it-works-section { margin-top: 50px; }
    .how-it-works-card { width: 45%; }

    .benefits-section { margin-top: 53px; }
    .benefit-card { width: 216px; }

    .features-section { margin-top: 50px; }
    .features-heading { margin-bottom: 50px; }
    .feature-card { width: 30%; }

    .footer-container { justify-content: space-between; }
    .footer-links-section, .footer-social-section { text-align: left; }
    .footer-links-section h4, .footer-social-section h4 { text-align: left; }
    .footer-links-section ul { align-items: flex-start; }
    .social-icons { justify-content: flex-start; }
    
    .footer-bottom { justify-content: space-between; }
    .footer-sponsors { order: 1; }
    .footer-sponsors img:first-child { width: 100px; }
    .footer-sponsors img:last-child { width: 250px; }
    .footer-legal-links { flex-direction: row; order: 2; width: auto; gap: 1.5rem; }
}


@media (min-width: 1024px) { /* lg breakpoint */
    .cta-section { margin-top: 60px; }
    .cta-title { font-size: 2.25rem; bottom: 2.5rem; }
    .cta-button { width: 260px; height: 72px; font-size: 1.875rem; }

    .intro-heading { font-size: 1.25rem; }
    .video-container { margin-top: 1.25rem; }

    .how-it-works-section { margin-top: 140px; }
    .how-it-works-card { width: 20%; }

    .benefits-section { padding-top: 60px; padding-bottom: 141px; margin-top: 130px; }
    .benefits-heading { font-size: 60px; line-height: 75px; }
    .benefits-cards { gap: 85px; }
    .benefit-card { width: 308px; }

    .features-section { margin-top: 100px; }
    .features-heading { font-size: 60px; margin-bottom: 84px; }
    .feature-card { width: 22%; }
    
    .footer-links-section { width: 23%; }
    .workbay-logo { width: 224px; }
    .footer-sponsors { justify-content: flex-start; }
    .footer-legal-links { justify-content: flex-end; }
}
