 

/* ============================================================
01. RESET
============================================================ */

 

/* ============================================================
02. GLOBAL VARIABLES
============================================================ */
 :root {

    --mag-bg: #ffffff;
    --mag-text: #222222;
    --mag-heading: #111111;

    --mag-text-muted: #666666;
    --mag-text-light: #999999;

    --mag-block-bg: #f5f5f5;
    --mag-block-text: #222222;

    --mag-quote-bg: #f7f7f7;
    --mag-quote-border: #cccccc;

    --mag-accent: #c00;

    --mag-border: #dddddd;

    /* MOTION SYSTEM */
    --mag-motion-duration: 0.8s;
    --mag-motion-duration-fast: 0.5s;
    --mag-motion-duration-slow: 1.2s;

    --mag-motion-ease:
        cubic-bezier(.22, .61, .36, 1);

    --mag-motion-distance: 40px;
    --mag-motion-distance-small: 20px;

    --mag-motion-scale: 0.96;
    --mag-motion-bg-scale: 1.08;

    --mag-motion-delay: 0s;
    --mag-motion-delay-1: 0.1s;
    --mag-motion-delay-2: 0.2s;
    --mag-motion-delay-3: 0.3s;

}
 

 

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;

    font-family: "Roboto", Arial, sans-serif;

    background: var(--mag-bg);
    color: var(--mag-text);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
button,
input,
textarea,
select {
    font-family: "Roboto", Arial, sans-serif;
}
figure{
	 margin: 0;
    padding: 0;
}

.magazine {
    background: var(--mag-bg);
    color: var(--mag-text);
    min-height: 100vh;
}
.magazine {
    position: relative;
    width: 100%;
}
.dropcap::first-letter {
    float: left;
    font-size: 5.5em;
    line-height: 0.8;
    font-weight: 700;
    margin: 0.08em 0.12em 0 0;
    color: var(--mag-accent);
}
.mag-image-content img{ 
max-width:100% !important;
height:auto !important
}
.mag-text-content img{ 
max-width:100% !important;
height:auto !important
}

.mag-image-content{
	text-align:justify;
}
.mag-text-content{
	text-align:justify;
}
/* ============================================================
END
============================================================ */

/* =================================================
   END HOME BUTTON
================================================= */

.ehome {
    width: 100%;
    padding: 70px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ehome .btn-btnhome {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 150px;
    height: 48px;
    padding: 0 28px;

    border: 1px solid var(--mag-border);
    border-radius: 3px;

    background: transparent;
    color: var(--mag-text);

    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.ehome .btn-btnhome:hover {
    background: var(--mag-accent);
    border-color: var(--mag-accent);
    color: #fff;

    transform: translateY(-2px);
}
/* ==============================
   MAGAZINE COVER
================================ */
/* =========================================================
   COVER
========================================================= */
 /* =========================================================
    COVER
 ========================================================= */

.mag-cover {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;

    background: var(--mag-block-bg);
}




/* =========================
   BACKGROUND
========================= */

.mag-cover-image-bg {
    position: absolute;
    inset: 0;
    z-index: 0;

    overflow: hidden;
}
.mag-cover-image-bg img {
    opacity: 0;
    transform: scale(var(--mag-motion-bg-scale));
}

.mag-cover-image-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.mag-cover-overlay {
    opacity: 0;
}

.mag-cover-content h1 {
    opacity: 0;
    transform: translateY(var(--mag-motion-distance));
}

.mag-cover-description {
    opacity: 0;
    transform: translateY(var(--mag-motion-distance));
}


/* COVER VÀO MÀN HÌNH */

.mag-cover.is-loaded .mag-cover-image-bg img {
    animation:
        mag-cover-image-in
        var(--mag-motion-duration-slow)
        var(--mag-motion-ease)
        both;
}

.mag-cover.is-loaded .mag-cover-overlay {
    animation:
        mag-cover-overlay-in
        var(--mag-motion-duration)
        var(--mag-motion-ease)
        both;
}

.mag-cover.is-loaded .mag-cover-content h1 {
    animation:
        mag-cover-content-in
        var(--mag-motion-duration)
        var(--mag-motion-ease)
        var(--mag-motion-delay-1)
        both;
}

.mag-cover.is-loaded .mag-cover-description {
    animation:
        mag-cover-content-in
        var(--mag-motion-duration)
        var(--mag-motion-ease)
        var(--mag-motion-delay-3)
        both;
}

/* =========================
   CONTENT
========================= */
.mag-cover-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100px;

    z-index: 2;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    padding: 80px 40px 50px;

    box-sizing: border-box;

    color: #fff;
}
 


/* =========================
   TITLE
========================= */

.mag-cover-content h1 {
    margin: 0;

    max-width: 1000px;

    font-size:
        clamp(
            40px,
            6vw,
            86px
        );

    line-height: 1.05;

    font-weight: 700;
}


/* =========================
   DESCRIPTION
========================= */

.mag-cover-description {
    max-width: 800px;

    margin-top: 25px;

    font-size: 20px;

    line-height: 1.6;
}

 
 
 
/* =========================================================
   REDUCED MOTION
========================================================= */
 
/* =================================
   TEXT BLOCK
================================= */
 /* =========================================================
    TEXT CORE
 ========================================================= */

 .mag-text {
     width: 100%;
     box-sizing: border-box;

     color: var(--mag-text);
     background: var(--mag-bg);
 }


 /* =========================================================
    TEXT HEADING
 ========================================================= */

 .mag-text-heading {
     max-width: 1200px;
     margin: 100px auto;
     padding: 0 40px;
 }

 .mag-text-heading h2 {
     margin: 0;

     color: var(--mag-heading);

     font-size: clamp(36px, 5vw, 72px);
     line-height: 1.1;
     font-weight: 700;

     letter-spacing: -0.02em;
 }


 .mag-text-heading .mag-text-content {
     max-width: 800px;

     margin-top: 28px;

     color: var(--mag-text-muted);

     font-size: 20px;
     line-height: 1.7;
 }


 /* =========================================================
    TEXT PARAGRAPH
 ========================================================= */

 .mag-text-paragraph {
     max-width: 1400px;
     margin: 80px auto;
     padding: 0 40px;
 }

 .mag-text-paragraph h3 {
     max-width: 800px;

     margin: 0 0 25px;

     color: var(--mag-heading);

     font-size: 30px;
     line-height: 1.3;
     font-weight: 600;
 }

 .mag-text-paragraph .mag-text-content {
    /*  max-width: 780px; */

     color: var(--mag-text);

     font-size: 18px;
     line-height: 1.85;
 }


 /* =========================================================
    TEXT QUOTE
 ========================================================= */

.mag-text-quote {
    max-width: 1000px;
    margin: 100px auto;
    padding: 50px 60px;
    box-sizing: border-box;

    background: var(--mag-quote-bg, var(--mag-block-bg));

    border-left: 5px solid var(--mag-accent);
}

.mag-text-quote blockquote {
    margin: 0;
    color: var(--mag-block-text, var(--mag-text));

    font-size: clamp(24px, 3vw, 42px);
    line-height: 1.45;
    font-weight: 500;
    font-style: italic;
}

.mag-quote-author {
    margin-top: 25px;
    color: var(--mag-text-muted, var(--mag-text));

    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

 /* =========================================================
    TEXT MOBILE
 ========================================================= */

 

/* =================================
   IMAGE BLOCK
================================= */
/* =========================================================
   IMAGE
   ========================================================= */

.mag-image {
    width: 100%;
    box-sizing: border-box;
}

/* ---------------------------------------------------------
   IMAGE FULL
   --------------------------------------------------------- */
/* =================================================
   FULL IMAGE
   FULL SCREEN + BLOCKS SLIDE OVER
================================================= */
/* =================================================
   IMAGE FULL - BACKGROUND FIXED
================================================= */

.mag-image-full {
    width: 100%;
    margin: 0;
    padding: 0;
}

.mag-image-full-inner {
    position: relative;

    width: 100%;
    min-height: 100vh;

    background-position: center center;
    background-repeat: no-repeat;
   /*  background-size: cover; */
    background-attachment: fixed;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    overflow: hidden;
}

 

/* =========================
   IMAGE
========================= */
 

/* =========================
   CAPTION
========================= */

.mag-image-full .mag-image-caption {
    position: relative;
    z-index: 2;

    width: 90%;
    max-width: 1100px;

    margin: 0 auto;
    padding: 100px 0 80px;

    color: #fff;
}

.mag-image-caption h3{
	  color: #fff !important;
}


/* =========================
   BLOCKS PHÍA SAU
   TRƯỢT LÊN TRÊN FULL IMAGE
========================= */

.mag-image-full ~ section {
    position: relative;
    z-index: 2;

    background: var(--mag-bg);
}


/* =========================
   MOBILE
========================= */

/* FULL IMAGE */

.mag-image-full {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.mag-image-full-fixed {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.mag-image-full-fixed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ---------------------------------------------------------
   IMAGE + TEXT
   TEXT + IMAGE
   --------------------------------------------------------- */
/* =================================================
   IMAGE + TEXT / TEXT + IMAGE
================================================= */
 /* =================================================
   IMAGE + TEXT / TEXT + IMAGE
================================================= */
/* =================================================
   IMAGE + TEXT / TEXT + IMAGE
================================================= */

.mag-image-image-text,
.mag-image-text-image {
    display: flex;
    align-items: flex-start;

    width: 100%;
    max-width: 1400px;

    margin: 100px auto;

    background: var(--mag-block-bg);
    color: var(--mag-block-text);
}


/* =========================
   IMAGE
========================= */

.mag-image-media {
    width:41.6666666667%;
    flex: 0 0 0 0 41.6666666667%;

    position: sticky;
    top: 0;

    align-self: flex-start;
	margin-bottom: 20px;
}

.mag-image-media img {
    display: block;
    max-width: 100%;
    height: auto;
	padding:50px 0;
	padding-bottom:10px;
}

.mag-image-media p {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 0;
    text-align: center;
}

.mag-image-media p img {
    display: block;
    max-width: 100%;
    height: auto;
}

.mag-image-media p span {
    display: block;
	padding: 0 5px;
}


/* =========================
   TEXT
========================= */

.mag-image-text {
    width:58.3333333333%;
    flex: 0 0 0 0 58.3333333333%;

    padding: 30px;
    box-sizing: border-box;
}

.mag-image-text h2 {
    margin: 0 0 25px;

    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.15;
    font-weight: 700;

    color: var(--mag-heading);
}

.mag-image-content {
    font-size: 19px;
    line-height: 1.8;
    color: var(--mag-block-text);
}


/* =========================
   MOBILE
========================= */
 


/* =================================================
   IMAGE TOP - TEXT BOTTOM
================================================= */

.mag-image-top-text {
    width: 100%;
    margin: 100px auto;
    text-align: center;
}

.mag-image-top-text-image {
    width: 100%;
    text-align: center;
    margin-bottom: 35px;
}

.mag-image-top-text-image img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: auto;
}

.mag-image-top-text-content {
    width: 90%;
   /*  max-width: 900px; */
    margin: 0 auto;
}

.mag-image-top-text-content h2 {
    margin: 0 0 20px;
    color: var(--mag-heading);
    font-size: clamp(20px, 4vw, 38px);
    line-height: 1.2;
}

.mag-image-top-text-description {
    color: var(--mag-text);
    font-size: 18px;
    line-height: 1.8;
    text-align: left;
}



/* =================================
   GALLERY
================================= */
 /* =========================================================
    GALLERY
    ========================================================= */

.mag-gallery {
    width: 100%;
    max-width: 1400px;
    margin: 100px auto;
    padding: 0 30px;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   GALLERY ITEM
   --------------------------------------------------------- */

.mag-gallery-item {
    position: relative;
    margin: 0;
    overflow: hidden;
}

.mag-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

.mag-gallery-item figcaption {
    padding: 14px 5px;

    font-size: 15px;
    line-height: 1.5;

    color: var(--mag-text);
    opacity: .7;
}


/* ---------------------------------------------------------
   GRID
   --------------------------------------------------------- */

.mag-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mag-gallery-grid .mag-gallery-item img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}


/* ---------------------------------------------------------
   MASONRY
   --------------------------------------------------------- */

.mag-gallery-masonry {
    columns: 3 300px;
    column-gap: 20px;
}

.mag-gallery-masonry .mag-gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    break-inside: avoid;
}

.mag-gallery-masonry .mag-gallery-item img {
    width: 100%;
    height: auto;
}


/* ---------------------------------------------------------
   LARGE
   --------------------------------------------------------- */

.mag-gallery-large {
    max-width: 1100px;
}

.mag-gallery-large .mag-gallery-item {
    margin-bottom: 70px;
}

.mag-gallery-large .mag-gallery-item img {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.mag-gallery-large .mag-gallery-item figcaption {
    font-size: 17px;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 768px) {

    .mag-gallery {
        margin: 70px auto;
        padding: 0 20px;
    }

    .mag-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mag-gallery-masonry {
        columns: 2 200px;
        column-gap: 15px;
    }

    .mag-gallery-masonry .mag-gallery-item {
        margin-bottom: 15px;
    }

    .mag-gallery-large {
        max-width: 100%;
    }

    .mag-gallery-large .mag-gallery-item {
        margin-bottom: 50px;
    }

    .mag-gallery-large .mag-gallery-item figcaption {
        font-size: 16px;
    }
}

/* =================================
   GRID
================================= */

.mag-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mag-gallery-grid .mag-gallery-item img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}


/* =================================
   MASONRY
================================= */

.mag-gallery-masonry {
    columns: 3 300px;
    column-gap: 20px;
}

.mag-gallery-masonry .mag-gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    break-inside: avoid;
}

.mag-gallery-masonry .mag-gallery-item img {
    width: 100%;
    height: auto;
}


/* =================================
   LARGE
================================= */

.mag-gallery-large {
    max-width: 1100px;
}

.mag-gallery-large .mag-gallery-item {
    margin-bottom: 70px;
}

.mag-gallery-large .mag-gallery-item img {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.mag-gallery-large .mag-gallery-item figcaption {
    font-size: 17px;
}


/* =================================
   MOBILE
================================= */

@media (max-width: 768px) {

    .mag-gallery {
        margin: 60px auto;
        padding: 0 15px;
    }

    .mag-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mag-gallery-masonry {
        columns: 2 150px;
        column-gap: 10px;
    }

    .mag-gallery-masonry .mag-gallery-item {
        margin-bottom: 10px;
    }

    .mag-gallery-large .mag-gallery-item {
        margin-bottom: 45px;
    }

}

/* =========================================================
   GALLERY HOVER
========================================================= */

/* Ảnh */
.mag-gallery-item {
    overflow: hidden;
    position: relative;
}

.mag-gallery-item img {
    width: 100%;
    display: block;
    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}


/* =========================
   GRID
========================= */

.mag-gallery-grid .mag-gallery-item {
    cursor: pointer;
}

.mag-gallery-grid .mag-gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.85);
}


/* =========================
   MASONRY
========================= */

.mag-gallery-masonry .mag-gallery-item {
    cursor: pointer;
}

.mag-gallery-masonry .mag-gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.85);
}


/* =========================
   LARGE
========================= */

.mag-gallery-large .mag-gallery-item {
    cursor: pointer;
}

.mag-gallery-large .mag-gallery-item:hover img {
    transform: scale(1.025);
    filter: brightness(0.9);
}


/* =========================
   CAPTION
========================= */

.mag-gallery-item figcaption {
    transition:
        transform 0.4s ease,
        opacity 0.4s ease;
}

.mag-gallery-item:hover figcaption {
    transform: translateY(-3px);
}

.mag-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.mag-gallery-item:hover::after {
    opacity: 1;
}

.mag-gallery-large .mag-gallery-item img {
    transition:
        transform 1s cubic-bezier(0.2, 0.65, 0.3, 1),
        filter 0.8s ease;
}

.mag-gallery-large .mag-gallery-item:hover img {
    transform: scale(1.015);
    filter: brightness(0.92);
}

/* =================================================
   VIDEO
================================================= */
/* =================================================
   VIDEO
================================================= */
 /* =========================
   VIDEO
========================= */

.mag-video {
    width: 100%;
    box-sizing: border-box;
}


/* =========================
   VIDEO NORMAL
========================= */

.mag-video-normal {
    width: 100%;
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 30px;
    box-sizing: border-box;

    opacity: 1;
    transform: none;
}


.mag-video-player {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}


.mag-video-player video {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
}


/* =========================
   VIDEO CAPTION
========================= */

.mag-video-caption {
    padding: 20px 5px;
}

.mag-video-caption h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.4;
}

/* =========================
   VIDEO BACKGROUND
========================= */

.mag-video-background {
    position: relative;

    width: 100%;
    min-height: 100vh;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================
   BACKGROUND VIDEO
========================= */

.mag-video-bg {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;

    overflow: hidden;
}

.mag-video-bg video,
.mag-video-bg img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================
   OVERLAY
========================= */

.mag-video-overlay {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 1;

    background: rgba(0, 0, 0, .4);

    opacity: 0;

    transition:
        opacity var(--mag-motion-duration) var(--mag-motion-ease);
}

.mag-video-background.active .mag-video-overlay {
    opacity: 1;
}


/* =========================
   CONTENT
========================= */

.mag-video-content {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 1100px;

    padding: 60px 30px;

    box-sizing: border-box;

    color: #fff;

    text-align: center;

    opacity: 0;

    transform: translateY(var(--mag-motion-distance));

    transition:
        opacity var(--mag-motion-duration) var(--mag-motion-ease)
        var(--mag-motion-delay-1),
        transform var(--mag-motion-duration) var(--mag-motion-ease)
        var(--mag-motion-delay-1);
}

.mag-video-background.active .mag-video-content {
    opacity: 1;
    transform: translateY(0);
}


.mag-video-content h2 {
    margin: 0;

    font-size: clamp(40px, 6vw, 80px);
    line-height: 1.1;
}


/* =========================
   MOBILE
========================= */
 

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    .mag-video-normal,
    .mag-video-caption,
    .mag-video-background,
    .mag-video-overlay,
    .mag-video-content {
        transition: none;
        transform: none;
        opacity: 1;
    }

}
 
 /* =========================
    COUNTER
 ========================= */

.mag-counter {
    width: 100%;
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 30px;
    box-sizing: border-box;
}

.mag-counter-heading {
    margin-bottom: 60px;
    text-align: center;
}

.mag-counter-heading h2 {
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
}

.mag-counter-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.mag-counter-item {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
}

.mag-counter-value {
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -2px;
}

.mag-counter-label {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.4;
    opacity: .65;
}

@media (max-width: 768px) {

    .mag-counter {
        margin: 80px auto;
        padding: 0 20px;
    }

    .mag-counter-heading {
        margin-bottom: 40px;
    }

    .mag-counter-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .mag-counter-item {
        padding: 30px 15px;
    }

}


/* =========================
   TIMELINE
========================= */
 

.mag-timeline-list {
    border-left: 2px solid var(--mag-accent);
}
.mag-timeline {
    max-width: 1000px;
    margin: 120px auto;
    padding: 0 30px;
    box-sizing: border-box;
}

.mag-timeline-heading {
    margin-bottom: 60px;
}

.mag-timeline-heading h2 {
    margin: 0;
    font-size: clamp(36px, 5vw, 60px);
}

.mag-timeline-list {
    border-left: 2px solid currentColor;
}

.mag-timeline-item {
    position: relative;
    padding: 0 0 50px 40px;
}

.mag-timeline-item:last-child {
    padding-bottom: 0;
}

.mag-timeline-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
}

.mag-timeline-year {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.mag-timeline-content {
    font-size: 18px;
    line-height: 1.7;
    opacity: .7;
}

.mag-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 280px 120px 1fr;
    gap: 40px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--mag-border);
}

.mag-timeline-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.mag-timeline-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.mag-timeline-item:hover .mag-timeline-image img {
    transform: scale(1.05);
}

.mag-timeline-year {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.mag-timeline-content {
    font-size: 18px;
    line-height: 1.8;
}
 

/* =========================
   STICKY
========================= */

.mag-sticky {
    width: 100%;
    max-width: 1100px;
    margin: 120px auto;
    padding: 0 30px;
    box-sizing: border-box;
}

.mag-sticky-box {
    position: sticky;
    top: 80px;

    padding: 50px;
    box-sizing: border-box;

    background: var(--mag-block-bg);
    color: var(--mag-block-text);

    border-radius: 4px;
}

 

.mag-sticky-box h2 {
    margin: 0 0 20px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.15;
}

.mag-sticky-content {
    font-size: 19px;
    line-height: 1.8;
}

@media (max-width: 768px) {

    .mag-sticky {
        margin: 80px auto;
        padding: 0 20px;
    }

    .mag-sticky-box {
        top: 20px;
        padding: 30px 25px;
    }

    .mag-sticky-content {
        font-size: 17px;
        line-height: 1.7;
    }

}

/* =========================================================
   STICKY - IMAGE + TEXT
========================================================= */

.mag-sticky-image-text {
    padding: 120px 20px;
}

.mag-sticky-image-text-inner {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: start;
}


/* ẢNH */

.mag-sticky-visual {
    position: sticky;
    top: 100px;

    height: 600px;
}

.mag-sticky-image {
    width: 100%;
    height: 100%;

    overflow: hidden;
}

.mag-sticky-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: opacity 0.5s ease,
                transform 1s ease;
}


/* NỘI DUNG */

.mag-sticky-items {
    padding-bottom: 20px;
}

.mag-sticky-item {
    min-height: 600px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 60px 0;

    opacity: 0.35;

    transition: opacity 0.4s ease;
}

.mag-sticky-item.is-active {
    opacity: 1;
}

.mag-sticky-item h2 {
    margin: 0 0 25px;

    font-size: clamp(32px, 4vw, 56px);

    line-height: 1.15;
}

.mag-sticky-item .mag-sticky-content {
    font-size: 18px;
    line-height: 1.8;
}


/* MOBILE */

@media (max-width: 768px) {

    .mag-sticky-image-text {
        padding: 70px 15px;
    }

    .mag-sticky-image-text-inner {
        display: block;
    }

    .mag-sticky-visual {
        position: relative;
        top: auto;

        height: 400px;

        margin-bottom: 30px;
    }

    .mag-sticky-item {
        min-height: auto;

        padding: 50px 0;

        opacity: 1;
    }

}


/* =========================
   ENDING
========================= */
/* =========================================================
   ENDING
   ========================================================= */
/* =========================================================
   ENDING COMMON
========================================================= */

.mag-ending {
    width: 100%;
    box-sizing: border-box;
}

.mag-ending-inner,
.mag-ending-text-inner,
.mag-ending-image-text-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================
   01. ENDING - TEXT
========================================================= */

.mag-ending-text {
    min-height: 70vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 100px 20px;

    text-align: center;
}

.mag-ending-text-inner {
   /*  max-width: 900px; */
}

.mag-ending-text .mag-ending-title {
    margin: 0 auto 30px;

    font-size: clamp(42px, 7vw, 90px);
    line-height: 1.08;
    font-weight: 700;

    letter-spacing: -2px;
}

.mag-ending-text .mag-ending-content {
   /*  max-width: 700px; */
    margin: 0 auto;

    font-size: 19px;
    line-height: 1.8;
}


/* =========================================================
   LINE
========================================================= */

.mag-ending-line {
    width: 80px;
    height: 2px;

    margin: 60px auto 0;

    background: var(--mag-accent);
}


/* =========================================================
   02. ENDING - IMAGE + TEXT
========================================================= */
 /* =========================================================
   ENDING - IMAGE + TEXT OVERLAY
========================================================= */

.mag-ending-image-text {
    position: relative;

    width: 100%;
    height: 80vh;
    min-height: 600px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}


/* BACKGROUND IMAGE */

.mag-ending-image-text-bg {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

.mag-ending-image-text-bg img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 1.5s ease;
}

.mag-ending-image-text:hover
.mag-ending-image-text-bg img {
    transform: scale(1.03);
}


/* DARK OVERLAY */

.mag-ending-image-text-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.15),
            rgba(0,0,0,0.65)
        );

    z-index: 1;
}


/* CONTENT */

.mag-ending-image-text-content {
    position: relative;

    z-index: 2;

    width: 90%;
    max-width: 900px;

    color: #fff;
}


/* TITLE */

.mag-ending-image-text .mag-ending-title {
    margin: 0 0 30px;

    font-size: clamp(40px, 6vw, 78px);

    line-height: 1.1;

    font-weight: 700;

    letter-spacing: -2px;

    text-shadow:
        0 3px 20px rgba(0,0,0,0.35);
}


/* CONTENT */

.mag-ending-image-text .mag-ending-content {
    max-width: 750px;

    margin: 0 auto;

    font-size: 19px;

    line-height: 1.8;

    text-shadow:
        0 2px 12px rgba(0,0,0,0.35);
}


/* LINE */

.mag-ending-image-text .mag-ending-line {
    margin: 45px auto 0;

    background: #fff;
}


/* MOBILE */

@media (max-width: 768px) {

    .mag-ending-image-text {
        height: 70vh;
        min-height: 500px;
    }

    .mag-ending-image-text-content {
        width: 90%;
    }

    .mag-ending-image-text .mag-ending-title {
        letter-spacing: -1px;
    }

    .mag-ending-image-text .mag-ending-content {
        font-size: 16px;
    }

}


/* =========================================================
   03. ENDING - FULL IMAGE
========================================================= */

.mag-ending-full-image {
    width: 100%;
    height: 100vh;

    min-height: 600px;

    overflow: hidden;
}

.mag-ending-full-image-inner {
    position: relative;

    width: 100%;
    height: 100%;
}

.mag-ending-full-image-inner img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 1.5s ease;
}

.mag-ending-full-image:hover img {
    transform: scale(1.02);
}


/* OVERLAY */

.mag-ending-full-image-overlay {
    position: absolute;

    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.35)
    );

    pointer-events: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    /* TEXT */

    .mag-ending-text {
        min-height: 60vh;
        padding: 80px 20px;
    }

    .mag-ending-text .mag-ending-title {
        letter-spacing: -1px;
    }

    .mag-ending-text .mag-ending-content {
        font-size: 16px;
    }


    /* IMAGE + TEXT */

    .mag-ending-image-text {
        padding: 70px 15px;
    }

    .mag-ending-image img {
        max-height: 500px;
    }

    .mag-ending-image-text-content {
        margin-top: 40px;
    }

    .mag-ending-image-text .mag-ending-content {
        font-size: 16px;
    }


    /* FULL IMAGE */

    .mag-ending-full-image {
        height: 75vh;
        min-height: 450px;
    }

}
/* =========================
   reveal
========================= */

.mag-reveal,
.mag-reveal-left,
.mag-reveal-right,
.mag-reveal-scale {
    opacity: 0;

    transition:
        opacity var(--mag-motion-duration) var(--mag-motion-ease),
        transform var(--mag-motion-duration) var(--mag-motion-ease);
}

.mag-reveal {
    transform: translateY(var(--mag-motion-distance));
}

.mag-reveal-left {
    transform: translateX(calc(var(--mag-motion-distance) * -1));
}

.mag-reveal-right {
    transform: translateX(var(--mag-motion-distance));
}

.mag-reveal-scale {
    transform: scale(var(--mag-motion-scale));
}

.mag-reveal.is-visible,
.mag-reveal-left.is-visible,
.mag-reveal-right.is-visible,
.mag-reveal-scale.is-visible {
    opacity: 1;
    transform: none;
}


/* =========================
   GALLERY LIGHTBOX
========================= */

.mag-lightbox {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background: rgba(0, 0, 0, 0.92);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.mag-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}


/* =========================
   CONTENT
========================= */

.mag-lightbox-inner {
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================
   IMAGE
========================= */

.mag-lightbox-image {
    display: block;

    max-width: 95vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    opacity: 0;
    transform: scale(0.96);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.mag-lightbox.is-loaded .mag-lightbox-image {
    opacity: 1;
    transform: scale(1);
}


/* =========================
   CLOSE
========================= */

.mag-lightbox-close {
    position: absolute;

    top: 15px;
    right: 20px;

    width: 45px;
    height: 45px;

    border: 0;
    background: transparent;

    color: #fff;

    font-size: 38px;
    line-height: 45px;

    cursor: pointer;

    z-index: 3;
}


/* =========================
   PREV / NEXT
========================= */

.mag-lightbox-prev,
.mag-lightbox-next {
    position: absolute;

    top: 50%;

    width: 50px;
    height: 70px;

    margin-top: -35px;

    border: 0;

    background: rgba(0, 0, 0, 0.25);

    color: #fff;

    font-size: 35px;

    cursor: pointer;

    z-index: 3;

    transition: background 0.3s ease;
}

.mag-lightbox-prev:hover,
.mag-lightbox-next:hover {
    background: rgba(0, 0, 0, 0.55);
}

.mag-lightbox-prev {
    left: 15px;
}

.mag-lightbox-next {
    right: 15px;
}


/* =========================
   CAPTION
========================= */

.mag-lightbox-caption {
    position: absolute;

    left: 50%;
    bottom: 20px;

    transform: translateX(-50%);

    width: 90%;
    max-width: 1000px;

    text-align: center;

    color: #fff;

    font-size: 15px;
    line-height: 1.6;

    z-index: 3;
}

@keyframes mag-cover-image-in {

    from {
        opacity: 0;
        transform: scale(var(--mag-motion-bg-scale));
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}

@keyframes mag-cover-overlay-in {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes mag-cover-content-in {

    from {
        opacity: 0;
        transform: translateY(var(--mag-motion-distance));
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}







 