/* ==========================================================================
   Trang Hoạt động CSR (/hoat-dong-csr)
   File CSS riêng, chỉ load trong csr.blade.php => không ảnh hưởng trang home.
   Kích thước tham chiếu theo thiết kế PC_CSR_layer.jpg (canvas 1920px).
   ========================================================================== */

/* ---------- Banner ---------- */
.csr-banner {
    position: relative;
    margin-top: 73px;
    padding-bottom: 3%;
    background: url("../images/cover.png") no-repeat top center / cover;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', 'iCiel Gotham Rounded', sans-serif;
}

.csr-banner::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(0deg, #FF98EF 7.02%, rgba(255, 152, 229, 0) 62.6%);
    z-index: 3;
    pointer-events: none;
}

.csr-banner-inner {
    position: relative;
    z-index: 4;
    width: 54%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.csr-banner-title img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin-top: 8%;
}

.csr-banner-desc {
    position: absolute;
    top: 61%;
    left: 50%;
    width: 62%;
    margin: 0;
    transform: translateX(-50%);
    color: #171717;
    font-size: clamp(12px, .84vw, 16px);
    line-height: 1.5;
    font-weight: 400;
    text-align: center;
}

.csr-banner-icons {
    position: absolute;
    top: 89%;
    left: 50%;
    width: 34%;
    max-width: 354px;
    height: auto;
    transform: translateX(-50%);
}

.csr-banner-bunny,
.csr-banner-strawberry,
.csr-banner-star {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.csr-banner-bunny img,
.csr-banner-strawberry img,
.csr-banner-star img {
    display: block;
    width: 100%;
    height: auto;
}

.csr-banner-bunny {
    top: 32%;
    left: 10%;
    width: 16.5%;
    animation: floating 2.5s ease-in-out infinite;
    z-index: 10;
}

.csr-banner-strawberry {
    top: 58%;
    right: 16%;
    width: 9.5%;
    animation: floating 3s .2s ease-in-out infinite;
}

.csr-banner-star {
    width: 30px;
}

.csr-banner-star-1 {
    top: 2%;
    left: 16%;
    animation: blink .7s .8s infinite;
}

.csr-banner-star-2 {
    top: 11%;
    left: 21%;
    animation: blink .7s .3s infinite;
}

.csr-banner-star-3 {
    top: 4%;
    right: 15%;
    animation: blink .7s .6s infinite;
}

.csr-banner-star-4 {
    top: 24%;
    right: 7.5%;
    animation: blink .7s .1s infinite;
}

@media (max-width: 1440px) {
    .csr-banner {
        margin-top: 53px;
    }

    .csr-banner-bunny {
        left: 6%;
    }
}

@media (max-width: 991px) {
    .csr-banner {
        margin-top: 84px;
    }

    .csr-banner-inner {
        width: 80%;
    }

    .csr-banner-star {
        width: 16px;
    }
}

/* ---------- Báo chí - Đưa tin ---------- */
.csr-news-section {
    position: relative;
    padding: 60px 0 0;
    font-family: 'Plus Jakarta Sans', 'iCiel Gotham Rounded', sans-serif;
    overflow: hidden;
}

.csr-news-title {
    margin: 0 auto 48px;
    line-height: 0;
}

.csr-news-title img {
    display: inline-block;
    width: 90%;
    max-width: 540px;
    height: auto;
}

.csr-news-slider-wrap {
    position: relative;
    max-width: 1540px;
    margin: 0 auto;
    padding: 0 60px;
}

.csr-news-swiper {
    overflow: hidden;
    width: 100%;
}

.csr-news-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.csr-news-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

/* Figma 10059:319: 446 x 678px card, with a 386.684 x 314.592px image. */
.csr-news-card.item-handbook {
    width: 100%;
    max-width: 446px;
    height: auto;
    min-height: 678px;
    border-radius: 40px;
    border: 2px solid #DB2777;
    background: #FFFFFF;
    padding: 32px 28px 36.73px;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    transition: none;
}

.csr-news-card.item-handbook:hover {
    transform: none;
    box-shadow: none;
}

.csr-news-card .avarta {
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 16px;
    margin-bottom: 55.4px;
    aspect-ratio: 386.684 / 314.592;
    position: relative;
    width: 100%;
    background: #fdf2f8;
}

.csr-news-card .avarta a {
    display: block;
    width: 100%;
    height: 100%;
}

.csr-news-card .avarta img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    transition: none;
}

.csr-news-card:hover .avarta img {
    transform: none;
}

.csr-news-card .info {
    display: flex;
    flex-direction: column;
    gap: 31.73px;
    flex: 1;
}

.csr-news-item-title {
    margin: 0;
    min-height: 69.43px;
}

.csr-news-item-title a {
    color: #DB2777;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.csr-news-desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #DB2777;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.csr-news-footer {
    margin-top: auto;
    padding-top: 14.78px;
    display: flex;
    justify-content: flex-end;
}

.csr-news-dots {
    display: inline-flex;
    flex: 0 0 auto;
    margin-right: 8px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    text-decoration: none;
}

.csr-news-dots img {
    display: block;
}

/* Nút Next/Prev mũi tên dạng tròn */
.csr-news-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(219, 39, 119, 0.18);
    backdrop-filter: blur(4px);
    outline: none;
    padding: 0;
}

.csr-news-nav:hover {
    background: #FFFFFF;
    color: #DB2777;
    border-color: #DB2777;
    transform: translateY(-50%) scale(1.1);
}

.csr-news-nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.csr-news-prev {
    left: -10px;
}

.csr-news-next {
    right: -10px;
}

/* Thỏ con bên trái */
.csr-news-bunny {
    position: absolute;
    left: -55px;
    top: 10%;
    width: 90px;
    z-index: 5;
    pointer-events: none;
    transform: rotate(-18deg);
    animation: floating 2.8s ease-in-out infinite;
}

.csr-news-bunny img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 1200px) {
    .csr-news-slider-wrap {
        padding: 0 30px;
    }

    .csr-news-prev {
        left: -6px;
    }

    .csr-news-next {
        right: -6px;
    }

    .csr-news-bunny {
        left: -20px;
        width: 75px;
    }
}

@media (max-width: 991px) {
    .csr-news-section {
        padding: 48px 0 60px;
    }

    .csr-news-slider-wrap {
        padding: 0 10px;
    }

    .csr-news-bunny {
        display: none;
    }
}

/* ---------- Hành trình CSR ---------- */
.csr-journey {
    padding: 40px 0 0;
    font-family: 'Plus Jakarta Sans', 'iCiel Gotham Rounded', sans-serif;
}

.csr-journey .container {
    position: relative;
    z-index: 2;
}

.csr-journey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    max-width: 1320px;
    margin: 0 auto;
}

.csr-journey-map img {
    display: block;
    width: 80%;
    height: auto;
    margin-left: 20%;
}

.csr-journey-title {
    margin: 2% 0 36px;
    line-height: 0;
}

.csr-journey-title img {
    display: block;
    width: 97%;
    max-width: 642px;
    height: auto;
}

.csr-journey-cards {
    width: 84%;
    max-width: 560px;
    margin-left: 6%;
}

.csr-journey-card {
    background: #fff;
    border: 2px solid #f251cc;
    border-radius: 32px;
    box-shadow: 0 12px 0 #f251cc;
    padding: 24px 36px;
    margin-bottom: 30px;
}

.csr-journey-card:last-child {
    margin-bottom: 0;
    padding-bottom: 32px;
}

.csr-journey-stat {
    display: flex;
    align-items: center;
    gap: 16px;
}

.csr-journey-stat p {
    margin: 0;
    color: #171717;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
}

.csr-journey-stat strong {
    display: block;
    color: #db2777;
    font-size: 32px;
    font-weight: 700;
    white-space: nowrap;
}

.csr-journey-desc {
    margin: 16px 0 0;
    color: #171717;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 400;
    text-align: justify;
}

.csr-journey-desc strong {
    font-weight: 700;
}

/* Icon sprite dùng chung với khối CSR trang home (csr-stat-icons.png) */
.csr-journey-icon {
    position: relative;
    overflow: hidden;
    flex: 0 0 78px;
    height: 76px;
}

.csr-journey-icon img {
    position: absolute;
    width: 268.48%;
    max-width: none;
    height: 184.81%;
    left: -25.31%;
    top: -10.85%;
}

.csr-journey-icon-school img {
    left: -139.85%;
}

.csr-journey-icon-students {
    height: 71px;
}

.csr-journey-icon-students img {
    left: -136.75%;
    top: -113.9%;
    height: 198.17%;
}

@media (max-width: 1440px) {
    .csr-journey-stat p {
        font-size: 18px;
    }

    .csr-journey-stat strong {
        font-size: 26px;
    }

    .csr-journey-icon {
        flex-basis: 62px;
        height: 60px;
    }

    .csr-journey-icon-students {
        height: 56px;
    }

    .csr-journey-card {
        padding: 20px 28px;
    }

    .csr-journey-desc {
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .csr-journey {
        padding: 60px 0 80px;
    }

    .csr-journey-grid {
        grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
        grid-template-areas: "title title" "map cards";
        gap: clamp(12px, 3.2vw, 24px);
    }

    .csr-journey-map {
        grid-area: map;
        min-width: 0;
        align-self: center;
    }

    .csr-journey-map img {
        width: 100%;
        margin: 0;
    }

    .csr-journey-content {
        display: contents;
    }

    .csr-journey-title {
        grid-area: title;
        margin: 0;
    }

    .csr-journey-title img {
        width: 68%;
        margin: 0 auto;
    }

    .csr-journey-cards {
        grid-area: cards;
        min-width: 0;
        width: 100%;
        margin: 0;
    }
}

/* ---------- Tips cho bạn gái ---------- */
.csr-tips-section {
    position: relative;
    padding: 240px 0 130px;
    font-family: 'Plus Jakarta Sans', 'iCiel Gotham Rounded', sans-serif;
    overflow: hidden;
}

.csr-tips-section .container {
    position: relative;
    z-index: 3;
}

/* Dải caro lượn sóng phía trên */
.csr-tips-checker-window {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
    z-index: 1;
}

.csr-tips-checker-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 243px;
    object-fit: cover;
    object-position: top center;
}

/* Quả dâu bay góc trên bên phải */
.csr-tips-strawberry {
    position: absolute;
    top: 24px;
    right: 7%;
    width: 130px;
    max-width: 12vw;
    height: auto;
    z-index: 2;
    pointer-events: none;
    transform: rotate(-16deg);
    transform-origin: center center;
    animation: csr-tips-strawberry-float 3s ease-in-out infinite;
}

@keyframes csr-tips-strawberry-float {

    0%,
    100% {
        transform: rotate(-16deg) translateY(0);
    }

    50% {
        transform: rotate(-12deg) translateY(-10px);
    }
}

.csr-tips-title {
    margin: 80px auto 46px;
    line-height: 0;
}

.csr-tips-title img {
    display: inline-block;
    width: 100%;
    height: auto;
}

.csr-tips-frame-wrap {
    position: relative;
    max-width: 1220px;
    margin: 0 auto;
}

.csr-tips-frame-bg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 14px 40px rgba(216, 34, 118, 0.16));
}

.csr-tips-inner-content {
    position: absolute;
    top: 12.8%;
    left: 12.025%;
    width: 75.95%;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 4px 20px rgba(216, 34, 118, 0.08);
}

.csr-tips-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
}

.csr-tips-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.csr-tips-bottom-bar {
    flex-shrink: 0;
    width: 100%;
    line-height: 0;
    margin-top: -1px;
    border-radius: 0 0 18px 18px;
    overflow: hidden;
}

.csr-tips-bottom-bar img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 991px) {
    .csr-tips-section {
        padding: 90px 0 80px;
    }

    .csr-tips-strawberry {
        width: 90px;
        right: 5%;
        top: 16px;
    }

    .csr-tips-title {
        margin-bottom: 32px;
    }

    .csr-tips-title img {
        max-width: 480px;
    }

    .csr-tips-inner-content {
        border-radius: 12px;
    }

    .csr-tips-player {
        border-radius: 12px 12px 0 0;
    }

    .csr-tips-bottom-bar {
        border-radius: 0 0 12px 12px;
    }
}

/* ---------- Mobile (≤ 767px) ---------- */
@media (max-width: 767px) {
    .body-home-page main .csr-banner {
        margin-top: calc(53 * 100vw / 390);
        padding-bottom: 24px;
        background: none;
    }

    .csr-banner::after {
        height: 50px;
    }

    .csr-banner-inner {
        width: 100%;
    }

    .csr-banner-title img {
        width: 110%;
        margin: -6% 0 0 -5%;
    }

    .csr-banner-desc {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        transform: none;
        margin: -32% 24px 0;
        font-size: 12.5px;
        line-height: 1.3;
    }

    .csr-banner-icons {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        display: block;
        width: 50%;
        margin: 16px auto 0;
    }

    .csr-banner-bunny {
        top: 12%;
        left: 0;
        width: 22%;
    }

    .csr-banner-strawberry {
        top: 30%;
        right: 2%;
        width: 16%;
    }

    .csr-banner-star {
        width: 12px;
    }

    .csr-news-section {
        padding: 36px 0 44px;
    }

    .csr-news-title {
        margin-bottom: 16px;
    }

    .csr-news-title img {
        width: 60%;
    }

    .csr-news-section > .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

    .csr-news-slider-wrap {
        padding: 0;
    }

    .csr-news-nav {
        display: none;
    }

    .csr-news-card.item-handbook {
        min-height: auto;
        aspect-ratio: 446 / 678;
        padding: clamp(8px, 2.5vw, 16px);
        border-radius: clamp(10px, 3vw, 20px);
        border-width: 1px;
    }

    .csr-news-card .avarta {
        margin-bottom: clamp(6px, 2vw, 12px);
        border-radius: clamp(6px, 1.8vw, 12px);
    }

    .csr-news-card .avarta img {
        border-radius: clamp(6px, 1.8vw, 12px);
    }

    .csr-news-card .info {
        gap: clamp(4px, 1.6vw, 10px);
    }

    .csr-news-item-title {
        min-height: 0;
    }

    .csr-news-item-title a {
        font-size: clamp(10px, 2.4vw, 16px);
        line-height: 1.35;
        -webkit-line-clamp: 3;
    }

    .csr-news-desc {
        font-size: clamp(8px, 1.8vw, 12px);
        line-height: 1.45;
        -webkit-line-clamp: 4;
    }

    .csr-news-footer {
        padding-top: 8px;
    }

    .csr-news-dots {
        margin-right: 0;
    }

    .csr-news-dots img {
        width: clamp(18px, 6vw, 32px);
        height: auto;
    }

    .csr-journey {
        padding: 40px 0 48px;
    }

    .csr-journey-title {
        margin-bottom: 0;
    }

    .csr-journey-title img {
        width: 68%;
    }

    .csr-journey-card {
        border-width: 1px;
        border-radius: clamp(12px, 4vw, 24px);
        padding: clamp(9px, 3vw, 20px);
        box-shadow: 0 clamp(4px, 1.2vw, 8px) 0 #f251cc;
        margin-bottom: clamp(12px, 3.6vw, 24px);
    }

    .csr-journey-card:last-child {
        padding-bottom: clamp(9px, 3vw, 20px);
    }

    .csr-journey-stat {
        gap: clamp(4px, 1.6vw, 10px);
    }

    .csr-journey-stat p {
        min-width: 0;
        font-size: clamp(7px, 1.9vw, 12px);
    }

    .csr-journey-stat strong {
        font-size: clamp(10px, 2.6vw, 18px);
    }

    .csr-journey-icon {
        flex-basis: clamp(22px, 6vw, 42px);
        height: clamp(21px, 5.8vw, 41px);
    }

    .csr-journey-icon-students {
        height: clamp(20px, 5.5vw, 38px);
    }

    .csr-journey-desc {
        margin-top: clamp(6px, 1.8vw, 12px);
        font-size: clamp(6px, 1.8vw, 10px);
        line-height: 1.35;
    }

    .csr-journey-map img {
        width: 100%;
    }

    .csr-tips-section {
        padding: 50px 0 54px;
    }

    .csr-tips-checker-image {
        max-height: 110px;
    }

    .csr-tips-strawberry {
        width: 60px;
        right: 4%;
        top: 8px;
    }

    .csr-tips-title {
        margin-bottom: 22px;
    }

    .csr-tips-title img {
        width: 82%;
    }

    .csr-tips-inner-content {
        border-radius: 8px;
    }

    .csr-tips-player {
        border-radius: 8px 8px 0 0;
    }

    .csr-tips-bottom-bar {
        border-radius: 0 0 8px 8px;
    }
}

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

    .csr-banner-bunny,
    .csr-banner-strawberry,
    .csr-banner-star,
    .csr-tips-strawberry {
        animation: none;
    }
}
