/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 640px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 140px 0 70px;
    box-sizing: border-box;
}

.home .hero-section {
    margin-top: calc(-1 * (var(--site-header-offset, 80px) + var(--admin-bar-offset, 0px)));
    padding-top: calc(140px + var(--site-header-offset, 80px) + var(--admin-bar-offset, 0px));
    margin-bottom: 0;
    height: 92vh;
    min-height: 640px;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.about-page-main {
    background: #F5F9FF;
}

.about-hero {
    position: relative;
    width: 100%;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: stretch;
    padding: 140px 0 80px;
    box-sizing: border-box;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        linear-gradient(180deg, rgba(29, 100, 233, 0.5) 0%, rgba(24, 90, 191, 0) 25%, rgba(22, 87, 180, 0) 75%, rgba(19, 81, 156, 0.5) 100%);
    z-index: 1;
}

.about-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    margin: 0 auto;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.about-hero-title {
    font-size: 46px;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 500;
    text-align: center;
}

.about-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.about-hero-stat {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
}

.about-hero-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.about-hero-stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-hero-stat-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.about-hero-stat-number {
    font-size: 28px;
    font-weight: 500;
}

.about-hero-stat-separator {
    width: 100%;
    height: 1px;
    background: #FFFFFF33;
    margin: 14px 0;
}

.about-hero-stat-label {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}

.about-hero-stat-desc {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .about-hero {
        min-height: 620px;
        padding: 120px 0 70px;
    }

    .about-hero-inner {
        max-width: 100%;
        justify-content: flex-start;
        gap: 48px;
    }

    .about-hero-title {
        font-size: 40px;
        margin-bottom: 0;
    }

    .about-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        max-width: 860px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        min-height: 520px;
        padding: 96px 0 56px;
    }

    .about-hero-inner {
        gap: 32px;
    }

    .about-hero-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .about-hero-stats {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .about-hero-stat-number {
        font-size: 24px;
    }

    .about-hero-stat-separator {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 88px 0 52px;
    }

    .about-hero-title {
        font-size: 28px;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        linear-gradient(180deg, rgba(29, 100, 233, 0.6) 0%, rgba(24, 90, 191, 0) 25%, rgba(22, 87, 180, 0) 75%, rgba(19, 81, 156, 0.6) 100%);
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: end;
    width: 100%;
    height: 100%;
    padding-bottom: 20px;
}


/* Left Content */
.hero-content {
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.hero-title {
    font-size: 46px;
    line-height: 1.08;
    margin-bottom: 18px;
    font-weight: 500;
    max-width: 740px;
    text-wrap: balance;
}

.hero-description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 28px;
    max-width: 500px;
    opacity: 0.85;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

/* Partners Strip */
.hero-partners {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 24px;
    border-radius: 60px;
    width: fit-content;
}

.partners-logos-wrapper {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.partner-logo-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.partner-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partners-text {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Right Content - Slider */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 20px; /* Space from marquee */
}

.glass-card-static {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.hero-slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.swiper-slide {
    width: 100%;
}

.hero-slider .swiper-pagination {
    bottom: 12px;
    left: 0;
    width: calc(50% - 10px); /* Only under text column */
    right: auto;
    display: flex;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    position: absolute;
}

.hero-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.3;
    flex: 1; /* Distribute space evenly */
    height: 4px;
    border-radius: 2px;
    margin: 0 4px;
    transition: opacity 0.3s;
    width: auto; /* Allow flex to control width */
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
    /* width is controlled by flex */
}

/* Inner Slide Layout */
.slide-inner-content {
    display: flex;
    gap: 20px;
    align-items: flex-start; /* Changed from stretch to start */
    padding-bottom: 0;
}

/* Text Column */
.slide-text-col {
    flex: 1;
    width: 50%; /* Ensure 50/50 split */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align to top */
    position: relative; /* For absolute dots */
}

.slide-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-tag {
    display: inline-block;
    background: transparent;
    color: #FFFD00;
    border: 1px solid #FFFD00;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 12px;
    width: fit-content;
}

.slide-desc {
    font-size: 14px;
    color: #fff;
    opacity: 0.8;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-image-col {
    flex: 1; /* Equal width to text column */
    width: 50%; /* Ensure 50/50 split */
    height: 212px; /* Fixed height per design */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.slide-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-link-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: auto;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.hero-chat-btn {
    position: relative;
    bottom: auto;
    right: auto;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px; /* Square with rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.4);
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 15;
    margin-top: 20px; /* Space from slider card */
}

.home .hero-chat-btn,
.home .hero-chat-widget {
    display: none !important;
}

/* Removed hover scale animation as requested */
.hero-chat-btn:hover {
    transform: none;
}

.hero-chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.hero-chat-widget.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-chat-widget,
.hero-chat-widget * {
    box-sizing: border-box;
}

.hero-chat-widget-panel {
    width: 560px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    background: #fff;
    border-radius: 44px;
    padding: 44px;
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.25);
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
}

.hero-chat-widget-title {
    font-family: 'Neue Haas Unica', 'Inter', sans-serif;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #14284E 5.65%, #2E5CB4 92.34%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin: 0 0 28px 0;
}

.hero-chat-widget-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.hero-chat-widget-form .form-group label {
    font-family: 'Neue Haas Unica', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    color: #1F1F1F;
}

.hero-chat-widget-form input,
.hero-chat-widget-form textarea {
    width: 100%;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 18px 22px;
    font-size: 16px;
    color: #1F1F1F;
    outline: none;
    background: #fff;
    font-family: 'Neue Haas Unica', 'Inter', sans-serif;
}

.hero-chat-widget-form input {
    min-height: 58px;
}

.hero-chat-widget-form textarea {
    min-height: clamp(110px, 16vh, 160px);
    resize: none;
}

.hero-chat-widget-form input::placeholder,
.hero-chat-widget-form textarea::placeholder {
    color: #94A3B8;
}

.hero-chat-widget-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
}

.hero-chat-widget-submit {
    background: #13519C;
    border: none;
    border-radius: 50px;
    padding: 16px 44px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    flex: 0 0 auto;
}

.hero-chat-widget-close {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #13519C;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hero-chat-widget {
        right: 16px;
        bottom: 16px;
    }

    .hero-chat-widget-panel {
        width: 100%;
        max-width: calc(100vw - 32px);
        border-radius: 32px;
        padding: 24px;
    }

    .hero-chat-widget-title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .hero-chat-widget-form .form-group label {
        font-size: 13px;
    }

    .hero-chat-widget-form input,
    .hero-chat-widget-form textarea {
        font-size: 14px;
        padding: 14px 16px;
        border-radius: 16px;
    }

    .hero-chat-widget-form input {
        min-height: 50px;
    }

    .hero-chat-widget-form textarea {
        min-height: 120px;
    }

    .hero-chat-widget-submit {
        font-size: 14px;
        padding: 14px 28px;
    }

    .hero-chat-widget-close {
        width: 48px;
        height: 48px;
    }
}

@media (max-height: 760px) {
    .hero-chat-widget-panel { padding: 30px; }
    .hero-chat-widget-title { margin-bottom: 18px; }
    .hero-chat-widget-form .form-group { margin-bottom: 16px; }
    .hero-chat-widget-form textarea { min-height: 120px; }
    .hero-chat-widget-actions { margin-top: 10px; }
}

/* Hero Actions Group Sync */
.hero-actions-group {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: fit-content;
}

.hero-actions-group .btn, 
.hero-actions-group .btn-circle-arrow {
    pointer-events: none;
}

.hero-actions-group:hover .btn-primary {
    background: #fff;
    transform: none;
    box-shadow: none;
    opacity: 0.95;
}

.hero-actions-group:hover .btn-circle-arrow {
    transform: rotate(-45deg);
    box-shadow: none;
}

/* Responsive */
@media (min-width: 1600px) {
    .hero-grid {
        gap: 80px;
    }

    .hero-title {
        font-size: 56px;
        max-width: 880px;
    }

    .hero-description {
        font-size: 18px;
        max-width: 620px;
    }

    .hero-actions {
        margin-bottom: 52px;
    }

    .hero-partners {
        padding: 14px 28px;
    }

    .partner-logo-circle {
        width: 56px;
        height: 56px;
    }

    .partners-text {
        font-size: 15px;
    }

    .hero-slider-wrapper {
        max-width: 560px;
        margin-bottom: 28px;
    }

    .glass-card-static {
        padding: 28px;
        border-radius: 26px;
    }

    .slide-title {
        font-size: 22px;
    }

    .slide-desc {
        font-size: 15px;
    }

    .slide-image-col {
        height: 244px;
        border-radius: 14px;
    }
}

@media (min-width: 1920px) {
    .hero-title {
        font-size: 64px;
        max-width: 980px;
    }

    .hero-description {
        font-size: 20px;
        max-width: 680px;
    }

    .hero-slider-wrapper {
        max-width: 620px;
    }

    .slide-image-col {
        height: 280px;
    }
}

@media (max-width: 1440px) {
    .hero-section {
        height: auto;
        min-height: 560px;
        padding: 110px 0 60px;
    }
    .home .hero-section {
        padding-top: calc(110px + var(--site-header-offset, 80px) + var(--admin-bar-offset, 0px));
        margin-bottom: 0;
    }
    .hero-grid {
        gap: 48px;
        align-items: end;
    }
    .hero-title {
        font-size: 40px;
        max-width: 640px;
    }
    .hero-description {
        font-size: 15px;
        margin-bottom: 24px;
        max-width: 520px;
    }
    .hero-actions {
        margin-bottom: 36px;
    }
    .hero-partners {
        padding: 10px 20px;
    }
    .hero-slider-wrapper {
        max-width: 440px;
    }
    .glass-card-static {
        padding: 20px;
        border-radius: 22px;
    }
    .slide-title {
        font-size: 18px;
    }
    .slide-image-col {
        height: 196px;
        border-radius: 10px;
    }
}
@media (max-width: 1024px) {
    .hero-section {
        height: auto;
        min-height: 0;
        padding: 140px 0 60px;
        align-items: stretch;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .home .hero-section {
        height: auto;
        min-height: 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        height: auto;
        padding-bottom: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-slider-wrapper {
        max-width: 100%;
        width: 100%;
        min-width: 0; /* Critical for Grid/Flex child to shrink */
        justify-self: center;
        align-items: stretch;
    }

    .glass-card-static {
        width: 100%;
        max-width: 100%;
    }

    .hero-slider .swiper-pagination {
        position: static;
        width: 100%;
        margin-top: 12px;
    }

    .hero-content {
        height: auto;
        justify-content: flex-start;
    }

    .hero-actions {
        margin-bottom: 40px;
    }

    .hero-test-mode-marquee {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 40px;
    }

    .home .hero-section {
        margin-top: calc(-1 * (var(--site-header-offset, 80px) + var(--admin-bar-offset, 0px)));
        padding-top: calc(120px + var(--site-header-offset, 80px) + var(--admin-bar-offset, 0px));
        height: auto;
        min-height: 0;
    }

    .hero-title {
        font-size: 36px;
    }
    
    .hero-content {
        align-items: center;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .hero-partners {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .partners-logos-wrapper {
        margin-right: 0;
    }

    .slide-inner-content {
        flex-direction: column;
        gap: 14px;
        padding-bottom: 0;
    }

    .slide-text-col {
        width: 100%;
        min-height: 0;
    }
    
    .slide-title {
        -webkit-line-clamp: 2;
    }
    
    .slide-desc {
        -webkit-line-clamp: 4;
    }

    .slide-image-col {
        width: 100%;
        height: 180px;
    }

    .hero-slider .swiper-pagination {
        position: static;
        width: 100%;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 100px 0 30px;
    }

    .home .hero-section {
        margin-top: calc(-1 * (var(--site-header-offset, 80px) + var(--admin-bar-offset, 0px)));
        padding-top: calc(100px + var(--site-header-offset, 80px) + var(--admin-bar-offset, 0px));
        height: auto;
        min-height: 0;
    }

    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .hero-partners {
        padding: 10px 16px;
        border-radius: 40px;
    }
    
    .partner-logo-circle {
        width: 40px;
        height: 40px;
    }
    
    .partners-text {
        font-size: 12px;
    }
    
    .slide-inner-content {
        flex-direction: column;
        gap: 14px;
        padding-bottom: 0;
        height: 100%; /* Fill available space */
    }

    .slide-text-col {
        width: 100%;
        min-height: 0;
        flex-shrink: 0; /* Text content shouldn't shrink */
    }
    
    .slide-title {
        -webkit-line-clamp: 3;
    }
    
    .slide-desc {
        -webkit-line-clamp: 6;
    }

    .slide-image-col {
        width: 100%; /* Standard 100% width */
        height: 200px; /* Taller height */
        margin: 0; /* Reset margins */
        margin-top: auto; /* Push to bottom */
        border-radius: 12px; /* Restore standard radius */
        flex-shrink: 0;
    }

    .hero-slider .swiper-pagination {
        position: static; /* Normal flow */
        width: 100%;
        margin-top: 12px; /* Space between image and dots */
        padding: 0;
        z-index: 1;
    }
    
    .glass-card-static {
        padding: 16px; /* Restore standard padding */
        border-radius: 20px;
        display: flex;
        flex-direction: column;
    }

    .hero-slider {
        display: flex;
        flex-direction: column;
    }

    .swiper-slide {
        height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .hero-chat-btn {
        width: 64px;
        height: 64px;
        align-self: flex-end;
        margin-left: auto;
    }
    
    .hero-chat-btn svg {
        width: 28px;
        height: 28px;
    }
}

/* Test Mode Marquee */
.hero-test-mode-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6); /* Slightly darker for better contrast */
    backdrop-filter: blur(12px); /* Blur effect */
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 12px 0;
    overflow: hidden;
    z-index: 5; /* Lower z-index to stay below partner tooltips */
    white-space: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-track {
    display: flex;
    width: fit-content;
    animation: marquee 60s linear infinite; /* Slower animation for readability */
}

.marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee-item {
    font-size: 13px; /* Slightly larger than 12px for readability */
    font-weight: 400;
    opacity: 0.9;
    margin: 0 40px; /* Spacing between languages */
    letter-spacing: 0.5px;
}

.marquee-item strong {
    font-weight: 700;
    color: #4da6ff; /* Highlight language name */
    margin-right: 8px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.marquee-separator {
    opacity: 0.4;
    margin: 0 10px;
    font-weight: 300;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Move by 50% because we have 2 copies */
}

/* Pause on hover for readability */
.hero-test-mode-marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* Mobile adjustments for marquee */
@media (max-width: 768px) {
    .hero-test-mode-marquee {
        padding: 10px 0;
    }
    
    .marquee-item {
        font-size: 12px;
        margin: 0 20px;
    }
}
