@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

@font-face {
    font-family: 'SVN-Sackers Gothic';
    src: url('fonts/SVN-SACKERSGOTHIC-LIGHT.OTF') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'SVN-Sackers Gothic';
    src: url('fonts/SVN-SACKERSGOTHIC-MEDIUM.OTF') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'SVN-Sackers Gothic';
    src: url('fonts/CSVN-SACKERSGOTHIC-HEAVY.OTF') format('opentype');
    font-weight: 800;
    font-style: normal;
}

:root {
    --font-heading: 'SVN-Sackers Gothic', sans-serif;
    --font-text: 'SVN-Sackers Gothic', sans-serif;
    --font-lora: 'Lora', Georgia, 'Times New Roman', serif;
    --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --color-navy: #023b59;
    --color-gold: #b09a60;
    --color-text-main: #023b59;
    --color-bg-page: #e6f3fc;
    --color-card-bg: #e6f3fc;
    --container-width-title: clamp(15%, 95%, 750px);
    --container-width: clamp(20%, 88%, 670px);
    --spacing-md: 20px;
    --spacing-lg: 50px;
}

* {
    border: 1px border red;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-page);
    color: var(--color-navy);
    font-family: var(--font-lora);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.page-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Sections & Collage Blocks */
.collage-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* margin-bottom: 24px; */
}

/* Picture & Images */
.collage-block picture {
    display: block;
    width: 100%;
    line-height: 0;
    margin: 16px 0 28px;
}

.collage-block picture:first-child {
    margin-top: 0;
}

.collage-block picture:last-child {
    margin-bottom: 12px;
}

.collage-block img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Section Title Banners */
.section-title-banner {
    width: var(--container-width);
    margin: 1rem auto 24px;
    line-height: 0;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.body-text {
    font-family: var(--font-lora);
    line-height: 1.5;
    font-weight: 500;
    font-size: clamp(14px, 2vw, 17px);
    width: var(--container-width);
    margin: 0 auto;
    text-align: justify;
}

.body-text span {
    font-weight: 600;
}

.section-title-banner {
    width: 100%;
}

.section-title-banner img {
    width: var(--container-width-title);
    max-width: var(--container-width-title);
    margin: 0 auto;
    justify-content: center;
}

/* Info Box */
.info-box {
    font-family: var(--font-sans);
    /* width: min(98%, calc(var(--container-width) * 1.2)); */
    max-width: 820px;
    aspect-ratio: 880 / 380;
    margin: 1.5rem auto 40px;
    background-image: url('sola-dekstop/box-background.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* padding: clamp(30px, 3.7vw, 50px) 0 clamp(18px, 2.5vw, 28px); */
    border-radius: 6px;
    box-sizing: border-box;
}

.info-box-body {
    width: var(--container-width);
    max-width: 100%;
    margin: 0 auto;
    /* padding: 0 0.5rem; */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-desc {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: black;
    font-weight: 500;
    font-size: clamp(14px, 1.5vw, 16.5px);
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
}

.info-link {
    font-family: var(--font-sans);
    font-weight: 500;
    line-height: 1.6;
    font-size: clamp(14px, 1.25vw, 16.5px);
    color: black;
    text-align: center;
    width: 100%;
}

.info-link a {
    color: #0b5cab;
    text-decoration: underline;
    font-style: italic;
    transition: color 0.2s ease;
}

.info-link a:hover {
    color: #063c72;
}

@media (max-width: 768px) {
    .info-desc {
        margin-bottom: 0.5rem;
    }

    .info-box {
        aspect-ratio: auto;
        padding: clamp(2.5rem, 5.8vw, 3.8rem) 0;
        margin: 0 1rem;
    }

    .info-box-body {
        width: var(--container-width-title);
        max-width: 100%;
        margin: 0 auto;
    }
}

/* =======================================================
   Animation Text & Content - Style Longform / E-Magazine
   Hiệu ứng Fade-in & Slide-up nhẹ nhàng, sang trọng
   ======================================================= */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay nhẹ nhàng cho các đoạn văn kế tiếp trong cùng một block content */
.content .body-text.reveal-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.content .body-text.reveal-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.content .body-text.reveal-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

/* Hiệu ứng mượt mà khi hover nhẹ vào khung info-box */
.info-box.reveal-on-scroll {
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s ease;
}

/* Trợ năng: Vô hiệu hóa animation nếu người dùng bật chế độ giảm chuyển động */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}