/* ========================================
   Front Page CSS - Loaded on Homepage Only
   ======================================== */

/* Background Patterns */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(46, 80, 144, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.pattern-lines {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(46, 80, 144, 0.03) 35px,
        rgba(46, 80, 144, 0.03) 70px
    );
}

.pattern-waves {
    background-image: 
        repeating-radial-gradient(
            circle at 0 0,
            transparent 0,
            rgba(139, 115, 85, 0.02) 10px,
            transparent 20px,
            transparent 40px
        );
}

/* Hero Section - 2/3 + 1/3 Split */
.hero {
    height: 100vh;
    display: grid;
    grid-template-columns: 2fr 1fr;
    position: relative;
    margin-top: 0;
}

.hero-left {
    background: var(--blue);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-left::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 100px,
        rgba(255,255,255,0.03) 100px,
        rgba(255,255,255,0.03) 200px
    );
}

.hero-content {
    padding: 0 10% 0 15%;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(var(--font-size-4xl), 7vw, var(--font-size-5xl));
    font-weight: var(--font-weight-black);
    color: var(--white);
    line-height: 0.95;
    margin-bottom: var(--spacing-3xl);
    letter-spacing: normal;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: var(--font-size-lg);
    color: var(--khaki-light);
    line-height: var(--line-height-normal);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    max-width: 600px;
}

h4.hero-subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-normal);
    color: var(--khaki-light);
    line-height: var(--line-height-tight);
    margin: 0;
    margin-bottom: var(--spacing-4xl);
    opacity: 0.9;
    max-width: 600px;
}

h4.hero-subtitle p {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
    margin: 0;
    opacity: inherit;
    max-width: inherit;
}

.hero-cta {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-xl);
    background: var(--white);
    color: var(--blue);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-md);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--khaki);
    transition: left 0.3s;
    z-index: -1;
}

.hero-cta:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover::before {
    left: 0;
}

.hero-right {
    background: var(--khaki-light);
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 80px,
        rgba(255,255,255,0.1) 80px,
        rgba(255,255,255,0.1) 160px
    );
    animation: none;
    overflow: hidden;
    z-index: 0;
}

@keyframes slide {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

.hero-illustration {
    width: 120%;
    height: 120%;
    background: none;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: visible;
    backdrop-filter: none;
    box-shadow: none;
    margin-right: -20%;
    margin-left: 10%;
    z-index: 1;
}

.hero-illustration::before {
    display: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(5deg); }
}

.illustration-icon {
    font-size: 4rem;
    color: var(--blue);
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.illustration-text {
    font-size: 1.2rem;
    color: var(--blue-dark);
    font-weight: 600;
    z-index: 1;
}

.hero-illustration img {
    width: 100%;
    height: 100%;
    max-width: 33vw;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    filter: none;
}

@media (max-width: 968px) {
    .hero-illustration {
        width: 80%;
        height: 80%;
        margin-right: 0;
        margin-left: 0;
    }
    
    .hero-illustration img {
        max-width: 100%;
    }
    
    .hero-right {
        overflow: hidden;
    }
}

/* Problem Section */
.problem {
    padding: var(--spacing-5xl) 0;
    background: var(--gray);
    position: relative;
}

.problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(46,80,144,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139,115,85,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-3xl);
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
    font-weight: var(--font-weight-extrabold);
    color: var(--blue-dark);
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-md);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--khaki) 100%);
    border-radius: 2px;
}

.section-header p {
    font-size: var(--font-size-xl);
    color: var(--khaki-dark);
    line-height: var(--line-height-relaxed);
    opacity: 0.9;
}

.problem-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.problem-card {
    background: var(--white);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--radius-lg);
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow-base);
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--khaki) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: height 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-light);
}

.problem-card:hover::before {
    height: 8px;
}

.problem-icon {
    width: 60px;
    height: 60px;
    background: var(--khaki-pale);
    border-radius: var(--radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
    overflow: hidden;
}

.problem-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.problem-icon .icon-placeholder {
    color: var(--khaki-dark);
    font-weight: var(--font-weight-bold);
}

.problem-card:hover .problem-icon {
    transform: scale(1.1);
    background: var(--blue-pale);
}

.problem-card h3 {
    font-size: var(--font-size-xl);
    color: var(--blue-dark);
    margin-bottom: var(--spacing-base);
    font-weight: var(--font-weight-bold);
}

.problem-card p {
    color: var(--khaki-dark);
    line-height: var(--line-height-normal);
    opacity: 0.85;
}

/* Complete Support Section */
.complete-support {
    padding: 100px 0;
    background: var(--khaki-pale);
    position: relative;
    overflow: hidden;
}

.complete-support-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.complete-visual {
    position: relative;
}

.visual-box {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(139, 115, 85, 0.1);
}

.visual-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--blue-pale) 0%, transparent 70%);
}

.box-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.support-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.support-icon {
    width: 80px;
    height: 80px;
    background: var(--khaki-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.support-icon svg {
    width: 48px;
    height: 48px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.support-icon:hover {
    background: var(--blue);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(46, 80, 144, 0.2);
}

.support-icon:hover svg {
    fill: white;
}

.central-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-dark);
    text-align: center;
}

.complete-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 30px;
    line-height: 1.2;
}

.complete-content p {
    font-size: 1.2rem;
    color: var(--khaki-dark);
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Solutions Section */
.solutions {
    padding: 100px 0;
    background: var(--khaki-pale);
    position: relative;
}

.solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse at top, rgba(46,80,144,0.02) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(139,115,85,0.02) 0%, transparent 50%);
}

.solutions-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

.solutions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.solution-item {
    background: var(--gray);
    padding: 30px 25px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    flex: 0 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    min-width: 240px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.1);
}

.solution-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--blue);
    transition: height 0.3s ease;
}

.solution-item:hover::after {
    height: 5px;
}

.solution-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 115, 85, 0.15);
    border-color: var(--khaki);
    background: var(--white);
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(46, 80, 144, 0.2);
}

.solution-icon svg,
.solution-icon img {
    width: 30px;
    height: 30px;
    fill: currentColor;
    filter: brightness(0) invert(1); /* Makes dark icons white */
}

.solution-item:hover .solution-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(46, 80, 144, 0.3);
}

.solution-item h3 {
    font-size: 1.2rem;
    color: var(--blue-dark);
    margin-bottom: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.solution-item p {
    font-size: 0.9rem;
    color: var(--khaki-dark);
    line-height: 1.5;
    opacity: 0.85;
}

.solutions-bottom-section {
    background: var(--blue);
    padding: var(--spacing-3xl) 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.solutions-bottom-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 403.30667 466.66666' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m 2628.66,2390.95 -207.09,-358.68 -11.05,-19.16 -11.08,-19.16 -143.73,-248.92 -11.02,-19.12 -11.06,-19.19 -311.23,-539.03 h 264.17 l 173.31,300.18 22.09,38.29 143.71,248.9 11.07,19.17 11.07,19.15 477,826.3 h -936.56 l 132.05,-228.73 z M 396.063,1109.13 l 207.183,358.78 11.07,19.13 11.032,19.16 143.722,248.94 11.071,19.16 11.05,19.14 311.209,538.98 H 838.309 L 665.023,2032.25 653.949,2013.1 642.898,1993.95 499.156,1744.99 488.125,1725.87 477.074,1706.74 0,880.41 h 936.57 l -132.035,228.72 z m 1107.587,1918.28 8.76,15.16 213.27,-369.41 11.08,-19.16 11.04,-19.14 143.75,-248.97 22.13,-38.27 311.2,-539.03 132.03,228.68 -173.32,300.21 -22.11,38.29 -143.74,248.96 -11.05,19.16 -11.06,19.16 -483.22,836.95 -474.46,-821.78 h 264.09 z m 920.88,-1564.6 178.84,-309.74 25.42,-43.94 H 1203.81 l 132.06,-228.72 h 1688.95 l -468.28,811.11 z m -1824.182,574.49 -204.157,353.65 1424.899,0.02 -132.07,228.71 H 0.0195313 L 468.301,1808.57 Z m 937.422,-1535.862 -25.41,-43.926 -213.23,369.414 -11.03,19.129 -11.08,19.172 -143.74,248.963 -11.03,19.14 -11.12,19.19 -311.157,539 -132.039,-228.75 173.289,-300.13 11.074,-19.19 11.043,-19.15 143.75,-248.968 11.07,-19.16 11.05,-19.152 L 1512.45,0 1986.93,821.875 H 1722.75 L 1537.77,501.438' style='fill:%23FFFFFF;fill-opacity:0.05;fill-rule:nonzero;stroke:none' transform='matrix(0.13333333,0,0,-0.13333333,0,466.66667)'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    z-index: 0;
}

.solutions-bottom-text {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.solutions-bottom-text p {
    font-size: var(--font-size-lg);
    color: #f0f0f0;
    line-height: var(--line-height-relaxed);
    margin: 0 0 var(--spacing-xl);
}

.solutions-bottom-text .btn-about {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-xl);
    background: var(--white);
    color: var(--blue);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-md);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-base);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.solutions-bottom-text .btn-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--khaki);
    transition: left 0.3s;
    z-index: -1;
}

.solutions-bottom-text .btn-about:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.solutions-bottom-text .btn-about:hover::before {
    left: 0;
}

/* Mission Section */
.mission {
    padding: var(--spacing-5xl) 0;
    background: var(--white);
    position: relative;
}

.mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(46,80,144,0.02) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(139,115,85,0.02) 0%, transparent 40%);
}

.mission::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(46,80,144,0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.mission-pattern {
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 150px;
    height: 150px;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(139,115,85,0.03) 49%, rgba(139,115,85,0.03) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(139,115,85,0.03) 49%, rgba(139,115,85,0.03) 51%, transparent 52%);
    background-size: 20px 20px;
    transform: rotate(45deg);
}

.mission-grid {
    max-width: 1200px;
    margin: var(--spacing-3xl) auto 0;
    padding: 0 var(--spacing-lg);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.mission-card {
    background: var(--gray);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: start;
    gap: var(--spacing-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(46,80,144,0.02) 40px,
        rgba(46,80,144,0.02) 80px
    );
    opacity: 1;
}

.mission-card:hover {
    transform: translateX(15px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--gray) 0%, var(--blue-pale) 100%);
}

.mission-number {
    width: 50px;
    height: 50px;
    background: var(--blue);
    color: var(--white);
    border-radius: var(--radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(46, 80, 144, 0.2);
}

.mission-content {
    position: relative;
    z-index: 1;
}

.mission-content h3 {
    font-size: var(--font-size-lg);
    color: var(--blue-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-bold);
}

.mission-content p,
.mission-description {
    color: var(--khaki-dark);
    line-height: var(--line-height-normal);
    opacity: 0.85;
}

.mission-description p {
    margin: 0;
}

/* Gallery Section */
.gallery {
    padding: var(--spacing-5xl) 0;
    background: var(--gray);
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(46,80,144,0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(139,115,85,0.03) 0%, transparent 50%);
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.gallery-swiper {
    margin-top: var(--spacing-3xl);
    width: 100%;
    position: relative;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    /* Fallback for browsers without aspect-ratio support */
    height: 0;
    padding-bottom: 66.667%; /* 2/3 = 66.667% for 3:2 ratio */
    position: relative;
}

/* Modern browsers with aspect-ratio support */
@supports (aspect-ratio: 3 / 2) {
    .swiper-slide {
        height: auto;
        padding-bottom: 0;
        aspect-ratio: 3 / 2;
    }
}

.swiper-slide {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.swiper-slide:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

/* Add enlarge icon on hover/lightbox items */
.gallery-item[data-click-action="lightbox"]::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--blue);
    border: 2px solid var(--white);
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M5 12H3v9h9v-2H5zm12-7h-2v5h5V3h-2zm-4 13h2v-5h5v2h-2v5h-5z'/%3E%3C/svg%3E");
    background-size: 20px 20px;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-item[data-click-action="lightbox"]:hover::after {
    opacity: 1;
    transform: scale(1.1);
    background-color: var(--blue-dark);
}

@media (max-width: 768px) {
    .gallery-item[data-click-action="lightbox"]::after {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
        opacity: 0.8; /* Always slightly visible on mobile */
        background-size: 18px 18px;
    }
}

/* For modern browsers with aspect-ratio support */
@supports (aspect-ratio: 3 / 2) {
    .gallery-item {
        position: relative;
        aspect-ratio: 3 / 2;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 58, 95, 0.9) 0%, transparent 100%);
    color: var(--white);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.gallery-overlay h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-bold);
}

.gallery-overlay p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    line-height: var(--line-height-normal);
}

.swiper-slide:hover .gallery-item img {
    transform: scale(1.1);
}

.swiper-slide:hover .gallery-overlay {
    background: linear-gradient(to top, rgba(30, 58, 95, 0.95) 0%, rgba(30, 58, 95, 0.3) 100%);
    padding-bottom: calc(var(--spacing-lg) + 10px);
}

/* Swiper customization */
.swiper-pagination {
    position: relative;
    margin-top: var(--spacing-xl);
    text-align: center;
}

.swiper-pagination-bullet {
    background: var(--blue);
    opacity: 0.4;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
    margin: 0 6px;
    border: 2px solid transparent;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 32px;
    border-radius: 6px;
    background: var(--blue);
    border-color: var(--blue-light);
    transform: scale(1.1);
}

/* Navigation buttons */
.swiper-button-next,
.swiper-button-prev {
    color: var(--white);
    background: var(--blue);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(46, 80, 144, 0.3);
    transition: all 0.3s ease;
    border: 2px solid var(--blue);
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    margin-top: -24px;
    z-index: 10;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--blue-dark);
    color: var(--white);
    border-color: var(--blue-dark);
    box-shadow: 0 6px 20px rgba(46, 80, 144, 0.4);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'swiper-icons';
}

/* RTL layout - correct arrow directions */
.swiper-button-prev {
    left: 10px;
    right: auto;
}

.swiper-button-prev:after {
    content: 'prev';
    transform: scaleX(-1); /* Flip only the arrow for RTL */
}

.swiper-button-next {
    right: 10px;
    left: auto;
}

.swiper-button-next:after {
    content: 'next';
    transform: scaleX(-1); /* Flip only the arrow for RTL */
}

/* Hover state */
.swiper-button-prev:hover,
.swiper-button-next:hover {
    transform: translateY(-2px);
}

/* Disable Swiper's built-in disabled state that may hide buttons */
.swiper-button-disabled {
    opacity: 0.5 !important;
    display: flex !important;
}

/* Mobile adjustments for swiper */
@media (max-width: 768px) {
    .gallery-container {
        position: relative;
        padding: 0 50px; /* Space for buttons */
    }
    
    .gallery-swiper {
        overflow: visible;
        position: relative;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 36px !important;
        height: 36px !important;
        margin-top: -18px !important;
        z-index: 20;
        top: 50%;
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px !important;
    }
    
    .swiper-button-prev {
        left: 5px !important;
        right: auto !important;
    }
    
    .swiper-button-next {
        right: 5px !important;
        left: auto !important;
    }
    
    /* Ensure gallery items don't overflow */
    .gallery-item {
        overflow: hidden;
    }
}

/* CTA Section */
.cta {
    padding: var(--spacing-6xl) 0;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 403.30667 466.66666' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m 2628.66,2390.95 -207.09,-358.68 -11.05,-19.16 -11.08,-19.16 -143.73,-248.92 -11.02,-19.12 -11.06,-19.19 -311.23,-539.03 h 264.17 l 173.31,300.18 22.09,38.29 143.71,248.9 11.07,19.17 11.07,19.15 477,826.3 h -936.56 l 132.05,-228.73 z M 396.063,1109.13 l 207.183,358.78 11.07,19.13 11.032,19.16 143.722,248.94 11.071,19.16 11.05,19.14 311.209,538.98 H 838.309 L 665.023,2032.25 653.949,2013.1 642.898,1993.95 499.156,1744.99 488.125,1725.87 477.074,1706.74 0,880.41 h 936.57 l -132.035,228.72 z m 1107.587,1918.28 8.76,15.16 213.27,-369.41 11.08,-19.16 11.04,-19.14 143.75,-248.97 22.13,-38.27 311.2,-539.03 132.03,228.68 -173.32,300.21 -22.11,38.29 -143.74,248.96 -11.05,19.16 -11.06,19.16 -483.22,836.95 -474.46,-821.78 h 264.09 z m 920.88,-1564.6 178.84,-309.74 25.42,-43.94 H 1203.81 l 132.06,-228.72 h 1688.95 l -468.28,811.11 z m -1824.182,574.49 -204.157,353.65 1424.899,0.02 -132.07,228.71 H 0.0195313 L 468.301,1808.57 Z m 937.422,-1535.862 -25.41,-43.926 -213.23,369.414 -11.03,19.129 -11.08,19.172 -143.74,248.963 -11.03,19.14 -11.12,19.19 -311.157,539 -132.039,-228.75 173.289,-300.13 11.074,-19.19 11.043,-19.15 143.75,-248.968 11.07,-19.16 11.05,-19.152 L 1512.45,0 1986.93,821.875 H 1722.75 L 1537.77,501.438' style='fill:%23FFFFFF;fill-opacity:0.1;fill-rule:nonzero;stroke:none' transform='matrix(0.13333333,0,0,-0.13333333,0,466.66667)'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    top: 50%;
    left: -100px;
    transform: translateY(-50%);
    opacity: 0.5;
}

.cta-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
    font-weight: var(--font-weight-black);
    color: var(--white);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-tight);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta p {
    font-size: var(--font-size-xl);
    color: var(--khaki-light);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    max-width: 800px;
    margin: 0 auto var(--spacing-3xl);
}

.cta-volunteer {
    margin-top: var(--spacing-lg);
    font-size: var(--font-size-md);
    color: rgba(255, 255, 255, 0.9);
}

.cta-volunteer p {
    margin: 0;
}

.cta-volunteer a {
    color: var(--khaki-light);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.cta-volunteer a:hover {
    color: var(--white);
    text-decoration: none;
}

.cta-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--white);
    color: var(--white);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-base);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    font-weight: var(--font-weight-semibold);
}

.cta-btn-primary {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-xl);
    background: var(--white);
    color: var(--blue);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-md);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-base);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: none;
}


.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.cta-btn:hover {
    background: var(--white);
    color: var(--blue);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--white);
}

.cta-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--khaki);
    transition: left 0.3s;
    z-index: -1;
}

.cta-btn-primary:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-btn-primary:hover::before {
    left: 0;
}

.cta-btn:hover::before {
    width: 200px;
    height: 200px;
}

.cta-btn-icon {
    font-size: var(--font-size-lg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}


.cta-btn-text {
    font-weight: var(--font-weight-semibold);
}

.closing {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: 2fr 1fr;
    }

    .hero-content {
        padding: 80px 10% 0 10%;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .gallery-swiper {
        margin-top: 40px;
    }

    .gallery-container {
        padding: 0;
        overflow: hidden;
    }

    .gallery .section-header {
        padding: 0 30px;
    }

    .swiper-slide {
        height: 300px;
        border-radius: 0;
    }

    .gallery-overlay {
        padding: 20px;
    }

    .gallery-overlay h3 {
        font-size: 1.2rem;
    }

    .gallery-overlay p {
        font-size: 0.9rem;
    }

    /* Remove conflicting mobile styles - handled in the 768px media query above */

    .swiper-pagination {
        bottom: -30px;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .solutions-grid {
        max-width: 350px;
    }

    .solution-item {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .complete-support-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .visual-box {
        margin: 0 auto;
    }

    .complete-content {
        text-align: center;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        gap: var(--spacing-lg);
    }
    
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    h4.hero-subtitle {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-xl);
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 568px) {
    .hero-content {
        padding: 80px 5% 0 5%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-cta {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1rem;
    }

    .section-header {
        padding: 0 20px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .problem-grid,
    .solutions-wrapper,
    .complete-support-container,
    .mission-grid {
        padding: 0 20px;
    }


    .gallery .section-header {
        padding: 0 20px;
    }

    .solutions-grid {
        gap: 20px;
        max-width: 300px;
    }
    
    .solutions-bottom-text {
        padding: 0 var(--spacing-md);
    }
    
    .solutions-bottom-text p {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
    }
    
    .solutions-bottom-section::after {
        width: 300px;
        height: 300px;
        right: -80px;
    }
    
    .solutions-bottom-text .btn-about {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1rem;
    }

    .solution-item {
        padding: 25px 15px;
    }

    .visual-box {
        max-width: 100%;
        height: 350px;
        padding: 30px;
    }

    .support-icons {
        gap: 20px;
    }

    .support-icon {
        width: 70px;
        height: 70px;
    }

    .support-icon svg {
        width: 40px;
        height: 40px;
    }

    .complete-content h2 {
        font-size: 1.8rem;
    }

    .complete-content p {
        font-size: 1rem;
    }

    .mission-card {
        padding: 30px;
        gap: 20px;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .cta p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        gap: 15px;
    }
    
    .cta-btn-primary {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1rem;
    }
    

    .cta-btn {
        padding: 25px 15px;
    }

    .closing {
        font-size: 1.4rem;
    }

    .cta::before {
        width: 300px;
        height: 300px;
        left: -50px;
    }

    .mission::after {
        width: 60px;
        height: 60px;
    }

    .mission-pattern {
        width: 80px;
        height: 80px;
    }
}

/* CTA and footer sections remain full width by default */

@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .problem-card,
    .mission-card {
        padding: 25px 20px;
    }

    .support-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .support-icon {
        width: 60px;
        height: 60px;
    }

    .support-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* Unified Section Headers - Applied to all blocks except hero */
.unified-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-3xl);
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 1;
}

/* Ensure mission section header isn't affected by decorative elements */
.mission .unified-section-header {
    z-index: 10;
}

.unified-section-header h2 {
    font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-3xl));
    font-weight: var(--font-weight-black);
    color: var(--blue-dark);
    margin-bottom: var(--spacing-lg);
    line-height: var(--line-height-tight);
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-md);
}

.unified-section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--khaki) 100%);
    border-radius: 2px;
}

.unified-section-header p,
.unified-section-header .section-subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--khaki-dark);
    line-height: var(--line-height-relaxed);
    opacity: 0.9;
    margin: 0;
}

/* Special case for CTA section with different background */
.cta .unified-section-header h2 {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta .unified-section-header p,
.cta .unified-section-header .section-subtitle {
    color: var(--khaki-light);
    opacity: 0.95;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .unified-section-header {
        margin-bottom: var(--spacing-2xl);
    }
    
    .unified-section-header h2 {
        font-size: var(--font-size-2xl);
    }
    
    .unified-section-header p,
    .unified-section-header .section-subtitle {
        font-size: var(--font-size-xl);
    }
}

@media (max-width: 568px) {
    .unified-section-header {
        padding: 0 20px;
        margin-bottom: var(--spacing-xl);
    }
    
    .unified-section-header h2 {
        font-size: 1.8rem;
    }
    
    .unified-section-header p,
    .unified-section-header .section-subtitle {
        font-size: var(--font-size-lg);
    }
}