/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Section titles and subtitles */
.section-title {
    font-size: 6rem;
    font-weight: bold;
    color: #E03C21;
    margin-bottom: 0;
    text-transform: uppercase;
    line-height: 1;
}

.section-subtitle {
    font-size: 1.2rem;
    max-width: 1400px;
    margin: 0;
    margin-left: 70px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1.4;
}

/* Header Navigation */
.main-header {
    background-color: #222;
    width: 100%;
    position: relative;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    height: 60px;
    padding: 0 20px;
    overflow: visible;
}

.nav-logo {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
}

.nav-logo img {
    height: 90%;
    width: auto;
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 100px;
}

.nav-link {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 3px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
    display: inline-block;
}

.nav-link:hover, .nav-link.active {
    background-color: #E03C21;
}

/* Sections */
section {
    padding: 40px 20px 60px;
    position: relative;
    background-color: white;
    flex: 1 0 auto;
    width: 100%;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 100%;
    background-color: #E03C21;
}

.section-content {
    margin-left: 60px;
    max-width: 1600px;
    width: calc(100% - 60px);
    margin-right: auto;
}

/* Header Section Layout - comprehensive fix to prevent overlap at any screen size */
.header-section {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px; /* Increased gap for better separation when items wrap */
}

.header-title {
    flex: 0 0 auto; /* Don't grow, don't shrink, size based on content */
    display: flex;
    align-items: center;
    height: 100%;
}

.header-description {
    flex: 1; /* Take remaining space */
    padding-left: 0; /* Remove padding since we're using gap */
    display: flex;
    align-items: center;
    height: 100%;
    min-width: 300px; /* Ensure description has reasonable minimum width */
}

/* Connect layout */
.connect-layout {
    display: flex;
    margin: 20px 0;
    width: 100%;
    align-items: flex-start;
}

.connect-left {
    width: 30%;
    flex-shrink: 0;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
}

.connect-right {
    width: 70%;
    display: flex;
    flex-direction: column;
    padding-top: 5px;
}

.connect-item {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    padding: 7px 0;
}

.connect-icon {
    background-color: #E03C21;
    color: white;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.connect-icon i {
    font-size: 2rem;
}

.connect-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.connect-heading {
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.connect-description {
    font-size: 1.8rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

.connect-website {
    font-size: 1.7rem;
    line-height: 1.2;
}

.red-line {
    height: 3px;
    width: 100%;
    background-color: #E03C21;
    margin: 35px 0;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.feature-box {
    display: flex;
    align-items: center;
    width: 48%;
    margin-bottom: 20px;
}

.feature-icon {
    color: #E03C21;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.feature-icon img {
    width: 24px;
    height: auto;
    display: block;
}

.feature-text {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Survey integration */
.survey-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

#surveyContainer {
    max-width: 800px;
    width: 100%;
    margin: 2rem auto;
}

.sd-root-modern .sd-btn--action {
    background-color: #E03C21 !important;
}

.sd-root-modern .sd-page-title {
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.sd-root-modern .sd-question-title {
    font-family: Arial, sans-serif;
}

.error-message {
    padding: 20px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 3px;
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    padding: 20px;
    flex-shrink: 0;
    width: 100%;
    position: relative;
    text-align: center;
}

.footer-logo {
    max-width: 180px;
    margin: 0 auto 15px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.partner-logo {
    height: 50px;
}

/* Home page specific */
.hero {
    background-color: white;
    padding: 50px 20px;
    text-align: center;
    flex: 1 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero-logo {
    max-width: 700px;
    margin: 20px auto;
}

.hero-nav {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.hero-nav-item {
    display: flex;
    align-items: center;
    margin: 0 20px 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.hero-nav-icon {
    background-color: #E03C21;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    margin: 5px;
    overflow: hidden;
}

.gallery-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    max-width: 100%;
}

/* Promote page specific */
.organizations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.organization-column {
    display: flex;
    flex-direction: column;
}

.organization {
    margin-bottom: 25px;
}

.org-info {
    border: 1px solid #E03C21;
    border-radius: 25px;
    padding: 20px 25px;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-right: 10px;
}

.org-logo {
    width: 95px;
    height: 95px;
    object-fit: contain;
    margin-right: 0;
    margin-top: 0 !important;
    flex: 0 0 95px;
}

.org-text {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 15px;
    padding-right: 10px;
}

.org-name {
    font-weight: bold;
    margin-bottom: 8px;
}

.org-email, .org-phone {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.center-column {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.large-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
}

.large-logo img {
    width: 220px;
    height: 140px;
    object-fit: contain;
}

.center-logo {
    text-align: center;
    margin: 30px 0;
    display: block;
}

.center-logo img {
    max-width: 420px;
    height: auto;
}

/* Adjust title size responsively */
@media (max-width: 1500px) {
    .section-title {
        font-size: 5rem; /* Reduced from 6rem */
    }
}

@media (max-width: 1200px) {
    .section-title {
        font-size: 4.5rem; /* Further reduction */
    }
    
    .header-section {
        gap: 20px; /* Slightly reduced gap */
    }
}

/* Existing media query for smaller screens - keep and adjust */
@media (max-width: 992px) {
    .section-title {
        font-size: 4rem;
    }
    
    .header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-title, .header-description {
        width: 100%;
        padding-left: 0;
    }
    
    .section-subtitle {
        margin-left: 0;
        margin-top: 10px;
        font-size: 1.1rem;
    }
    
    .organizations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .connect-layout {
        flex-direction: column;
    }
    
    .connect-left, .connect-right {
        width: 100%;
        padding-right: 0;
    }
    
    .connect-right {
        margin-top: 30px;
    }

    .features-container {
        flex-direction: column;
    }

    .feature-box {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 3.5rem;
        line-height: 1.1;
    }
    
    .section-content {
        margin-left: 40px;
        width: calc(100% - 40px);
    }
    
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .nav-links {
        display: none;
    }
    
    .header-description {
        padding-left: 0;
    }
    
    .organizations-grid {
        grid-template-columns: 1fr;
    }
    
    .org-info {
        padding: 15px;
    }
    
    .org-logo {
        width: 75px;
        height: 75px;
        flex: 0 0 75px;
    }
    
    .org-text {
        padding-left: 10px;
    }
    
    .org-name {
        font-size: 0.9rem;
    }
    
    .org-email, .org-phone {
        font-size: 0.8rem;
    }
    
    footer {
        padding-bottom: 70px;
    }
    
    .footer-logos {
        position: static;
        justify-content: center;
        margin-top: 20px;
        width: 100%;
        transform: none;
    }
    
    #surveyContainer {
        width: 100%;
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-logo {
        max-width: 90%;
    }
    
    .hero-nav-item {
        font-size: 1.5rem;
        margin: 0 10px 15px;
    }
    
    .gallery-img {
        width: 120px;
        height: 120px;
    }
    
    .header-title {
        margin-bottom: 15px;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .connect-item {
        flex-direction: column;
    }

    .connect-icon {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .connect-heading {
        font-size: 1.8rem;
    }
    
    .connect-description, .connect-website {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .header-title {
        margin-bottom: 12px;
    }
    
    .section-content {
        margin-left: 35px;
        width: calc(100% - 35px);
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .center-logo img {
        max-width: 100%;
    }
    
    .large-logo img {
        width: 180px;
        height: 120px;
    }
    
    .sd-root-modern .sd-question-title {
        font-size: 0.9rem !important;
    }
    
    .sd-root-modern .sd-page-title {
        font-size: 1.1rem !important;
    }
    
    .gallery-img {
        width: 100px;
        height: 100px;
    }
    
    .hero-nav-item {
        margin: 0 5px 15px;
        font-size: 1.3rem;
    }
    
    .feature-box {
        flex-direction: row;
        align-items: center;
    }
    
    .feature-icon {
        margin-bottom: 0;
        margin-right: 15px;
    }
}

/* Mobile Navigation Menu */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1000;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: #222;
    z-index: 999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 70px 0 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    font-size: 1.2rem;
    border-bottom: 1px solid #333;
    transition: background-color 0.3s;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background-color: #E03C21;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.nav-overlay.active {
    display: block;
}

/* Update media query to always show the hamburger menu on mobile */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block !important;
    }
    
    .nav-links {
        display: none !important;
    }
    
    .main-nav {
        position: relative;
    }
} 