/* ===== Chạm Yêu Thương Page Styles ===== */

/* Story Section */
.cyt-story-section {
    padding: 10px 0 40px;
    background: #fff;
    /* Break out of .container parent */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.cyt-story-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.cyt-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.cyt-story-icon {
    flex-shrink: 0;
}

/* Decorative images */
.cyt-decor-bird {
    position: absolute;
    top: 310px;
    left: 5px;
    z-index: 2;
    pointer-events: none;
}

.cyt-decor-hand {
    position: absolute;
    bottom: -47px;
    right: 50px;
    z-index: 2;
    pointer-events: none;
}

.cyt-story-content {
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cyt-story-layout {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 1%;
    align-items: start;
    max-width: 100%;
    margin: 0 auto;
}

.cyt-story-text-col {
    min-width: 0;
}

.cyt-story-text-col h1,
.cyt-story-text-col h2 {
    margin-left: 0 !important;
    text-align: left !important;
}

.cyt-story-text-col span {
    white-space: normal !important;
}

.cyt-story-img-col {
    position: relative;
    min-width: 0;
}

.cyt-story-content p {
    margin-bottom: 16px;
}

.cyt-story-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
}

.cyt-story-content figure {
    margin: 16px 0;
}

.cyt-story-content figure img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.cyt-story-image {
    width: 100%;
    height: auto;
    aspect-ratio: 608 / 384;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 60px;
}

/* Gallery + Fund combined Section (shared background) */
.cyt-gallery-section,
.cyt-fund-gallery-section {
    padding: 60px 0 90px;
    background-image: url('/static/img/BG.svg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    /* Break out of .container parent - full width */
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
}

/* Lớp trắng phủ nửa trên gallery — tạo hiệu ứng gallery nằm giữa 2 vùng */
.cyt-fund-gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: #fff;
    z-index: 1;
}

.cyt-gallery-area {
    position: relative;
    z-index: 2;
    padding: 16px 0;
}

.cyt-fund-area {
    padding-top: 20px;
}

.cyt-gallery-wrapper {
    position: relative;
    overflow: visible;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 50px;
}

.cyt-gallery-container {
    display: flex;
    gap: 24px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 16px 0;
}

.cyt-gallery-container::-webkit-scrollbar {
    display: none;
}

.cyt-gallery-item {
    flex: 0 0 312px;
    min-width: 0;
}

.cyt-gallery-img {
    width: 312px;
    height: 188px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.3s ease;
}  

.cyt-gallery-img:hover {
    transform: scale(1.02);
}

.cyt-gallery-description {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    text-align: center;
}

.cyt-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

.cyt-gallery-nav:hover,
.cyt-gallery-nav:focus,
.cyt-gallery-nav:active {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.cyt-gallery-nav:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cyt-gallery-prev {
    left: -15px;
}

.cyt-gallery-next {
    right: -15px;
}

/* Fund Section (inside .cyt-fund-gallery-section) */

.cyt-fund-intro {
    max-width: 700px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}

.cyt-fund-description {
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.7;
    margin-top: 16px;
}

.cyt-fund-highlight {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #fce4e4;
    border-radius: 12px;
    padding: 28px 32px;
    text-align: center;
    max-width: 650px;
    margin: 0 auto 28px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(4px);
}

.cyt-fund-highlight-heading {
    font-size: 18px;
    font-weight: 600;
    color: #e31837;
    margin-bottom: 12px;
}

.cyt-fund-highlight-content {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.7;
}

.cyt-fund-cta {
    margin-top: 28px;
    position: relative;
    z-index: 1;
}

.cyt-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 410px;
    max-width: 100%;
    height: 48px;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid #e31837;
    color: #e31837;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    justify-content: center;
    transition: all 0.3s ease;
}

.cyt-cta-button:hover {
    background: #e31837;
    color: #fff;
    text-decoration: none;
}

.cyt-cta-button:hover img {
    filter: brightness(0) invert(1);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .cyt-story-layout {
        grid-template-columns: 55% 40%;
        gap: 5%;
    }

    .cyt-gallery-item {
        flex: 0 0 calc(50% - 12px);
        min-width: 0;
    }

    .cyt-gallery-img {
        width: 100%;
        height: auto;
        aspect-ratio: 312 / 188;
    }
}

@media (max-width: 767px) {
    .cyt-story-section {
        padding: 10px 0 120px;
    }

    .cyt-story-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cyt-story-image {
        margin-top: 0;
        aspect-ratio: 16 / 10;
    }

    .cyt-section-title {
        font-size: 22px;
    }

    .cyt-decor-bird,
    .cyt-decor-hand {
        display: none;
    }

    .cyt-gallery-area {
        padding-bottom: 0;
    }

    .cyt-gallery-item {
        flex: 0 0 100%;
        min-width: 0;
    }

    .cyt-gallery-img {
        width: 100%;
        height: 200px;
    }

    .cyt-gallery-nav {
        display: flex;
    }

    .cyt-gallery-nav img {
        width: 40px;
        height: 40px;
    }

    .cyt-gallery-prev {
        left: 0;
    }

    .cyt-gallery-next {
        right: 0;
    }

    .cyt-gallery-wrapper {
        padding: 0 40px;
        overflow: hidden;
    }

    .cyt-gallery-container {
        overflow-x: hidden;
    }

    .cyt-fund-gallery-section,
    .cyt-gallery-section {
        padding: 30px 0 50px;
        margin-top: 0;
    }

    .cyt-cta-button {
        width: 100%;
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* Large screens (>1440px) - match 1440 appearance */
@media (min-width: 1441px) {
    .cyt-story-section {
        padding: 10px 0 20px;
    }

    .cyt-gallery-wrapper {
        max-width: 1200px;
    }

    .cyt-gallery-item {
        flex: 0 0 350px;
    }

    .cyt-gallery-img {
        width: 350px;
        height: 210px;
    }
}
