@import url('brand_logo.css');

/* =====  about.php ===== */
body.about-page {
    background: #f7ecde;
}

.footer-contact-col {
    padding-top: 1rem;
}

@media (min-width: 768px) {
    .footer-contact-col {
        padding-top: 1.75rem;
    }
}

.site-footer .footer-contact-col {
    padding-top: 0 !important;
}

.footer-contact-title {
    margin-top: 0;
}

.footer-address {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.social-link {
    color: #ffffff;
    font-size: 1.85rem;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.social-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* ===== ย้ายจาก about.php <style> ===== */
.page-section .row {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    gap: 0 !important;
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left:  calc(-0.5 * var(--bs-gutter-x));
}

.page-section .container {
    background: transparent !important;
    max-width: 1400px;
    padding-left: 24px;
    padding-right: 24px;
}

/* แบนเนอร์ขอบคุณผู้บริจาค — เต็มความกว้างหน้าจอ */
.about-support-page .home-banner-carousel--fullbleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
    background: #fff;
    overflow: hidden;
}

.about-support-page .home-banner-carousel--fullbleed .home-banner-carousel__viewport {
    position: relative;
    width: 100%;
}

.about-support-page .home-banner-carousel--fullbleed .home-banner-carousel__track {
    width: 100%;
    border-radius: 0;
    overflow: visible;
}

.about-support-page .home-banner-carousel--fullbleed .home-banner-carousel__img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
    object-fit: contain;
    object-position: center top;
}

.about-support-page .home-banner-carousel--fullbleed .home-banner-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    flex-shrink: unset;
}

.about-support-page .home-banner-carousel--fullbleed .home-banner-carousel__nav--prev {
    left: clamp(0.5rem, 2vw, 1.5rem);
}

.about-support-page .home-banner-carousel--fullbleed .home-banner-carousel__nav--next {
    right: clamp(0.5rem, 2vw, 1.5rem);
}

.about-support-page .home-banner-carousel--fullbleed .home-banner-carousel__dots {
    bottom: clamp(10px, 2vw, 18px);
}

@media (max-width: 767.98px) {
    .about-support-page .home-banner-carousel--fullbleed .home-banner-carousel__img {
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .about-support-page .home-banner-carousel--fullbleed .home-banner-carousel__nav {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }

    .about-support-page .home-banner-carousel--fullbleed .home-banner-carousel__nav--prev {
        left: 0.35rem;
    }

    .about-support-page .home-banner-carousel--fullbleed .home-banner-carousel__nav--next {
        right: 0.35rem;
    }
}

.about-dream-section {
    background-color: #fff;
}

.about-dream-section__title {
    font-size: 2rem;
    line-height: 1.5;
    color: #2c3e50;
}

.about-dream-section__lead {
    font-size: 0.95rem;
    line-height: 2;
    color: #4a5568;
    margin-bottom: 0;
}

/* ภาพเด็กในทุ่ง — ลอยเบา + ประกายรอบภาพ */
.about-dream-photo {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    padding: 0.75rem 1rem 1.25rem;
}

.about-dream-photo__frame {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(0);
    box-shadow: 0 18px 42px rgba(44, 62, 80, 0.14);
    animation: about-dream-photo-float 5.5s ease-in-out infinite;
    transition: box-shadow 0.4s ease;
}

.about-dream-photo:hover .about-dream-photo__frame {
    animation-duration: 3.8s;
    box-shadow: 0 24px 52px rgba(44, 62, 80, 0.2);
}

.about-dream-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 380px;
    background: #ebe6df;
    border-radius: 20px;
    overflow: hidden;
}

.about-dream-slideshow__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    border: none;
    border-radius: 20px;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: opacity 0.85s ease;
    pointer-events: none;
    z-index: 0;
}

.about-dream-slideshow__slide.is-active {
    opacity: 1;
    z-index: 1;
}

.about-dream-slideshow__slide:focus,
.about-dream-slideshow__slide:active {
    outline: none;
    box-shadow: none;
}

.about-dream-slideshow__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
}

.about-dream-slideshow__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.about-dream-slideshow__dot.is-active {
    background: #c0392b;
    transform: scale(1.15);
}

.about-dream-slideshow__dot:hover {
    background: rgba(192, 57, 43, 0.65);
}

.about-dream-slideshow__dot:focus-visible {
    outline: 2px solid #2c3e50;
    outline-offset: 2px;
}

.about-dream-photo__spark {
    position: absolute;
    z-index: 2;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    animation: about-dream-spark-play 4.2s ease-in-out infinite;
}

.about-dream-photo__spark--1 {
    top: 2%;
    right: 6%;
    font-size: 1.35rem;
    color: #e6b830;
    animation-delay: 0s;
}

.about-dream-photo__spark--2 {
    bottom: 6%;
    left: 2%;
    font-size: 1.65rem;
    color: #c0392b;
    animation-delay: 0.6s;
}

.about-dream-photo__spark--3 {
    top: 22%;
    left: 6%;
    font-size: 1.2rem;
    color: #5a8f62;
    animation-delay: 1.2s;
}

@keyframes about-dream-photo-float {
    0%, 100% {
        transform: translateY(0) rotate(-0.6deg);
    }
    33% {
        transform: translateY(-10px) rotate(0.4deg);
    }
    66% {
        transform: translateY(-5px) rotate(0.8deg);
    }
}

@keyframes about-dream-spark-play {
    0%, 100% {
        opacity: 0.35;
        transform: translate(0, 0) scale(0.85) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translate(8px, -12px) scale(1.15) rotate(12deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-dream-photo__frame,
    .about-dream-photo__spark {
        animation: none !important;
    }


    .about-dream-slideshow__slide {
        transition: none;
    }
}

.footer-wrap .row {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    gap: 0 !important;
}

.footer-wrap .container {
    background: transparent !important;
}

.footer-wrap p,
.footer-wrap h5,
.footer-wrap span,
.footer-wrap div {
    color: rgba(255,255,255,0.9);
}

.hero-section {
    background-color: #f7ecde;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    max-width: 1400px;
    position: relative;
    min-height: 628px;
    padding-top: 0;
}

.hero-section .hero-copy {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    text-align: center;
    padding-top: 150px;
}

.hero-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* ขนาดโลโก้ hero — ดู brand_logo.css */

.hero-section .hero-tagline {
    font-size: 2.1rem;
    font-weight: 700;
    color: #3f4f9a;
    margin-bottom: 18px;
    line-height: 1.3;
}

.hero-section .hero-body {
    font-size: 1.08rem;
    color: #444;
    line-height: 1.75;
    max-width: 880px;
    margin: 0 auto 0.85rem;
}

.hero-section .hero-body--secondary {
    margin-bottom: 0;
    font-size: 1.02rem;
    color: #555;
}

.hero-decor {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.hero-rainbow {
    left: -300px;
    bottom: 0;
    width: 640px;
}

.hero-rocket {
    right: 166px;
    top: 28px;
    width: 96px;
}

.hero-cloud-left {
    left: 690px;
    bottom: -120px;
    width: 390px;
}

.hero-cloud-right {
    left: 948px;
    bottom: -80px;
    width: 450px;
}

.hero-star-red {
    right: 64px;
    top: 138px;
    width: 36px;
}

.hero-star-yellow {
    right: 8px;
    top: 186px;
    width: 40px;
}

.hero-star-green {
    right: 58px;
    top: 248px;
    width: 36px;
}

.hero-star-blue {
    right: 18px;
    top: 318px;
    width: 38px;
}

.hero-star-red,
.hero-star-yellow,
.hero-star-green,
.hero-star-blue {
    transform-origin: center center;
    animation: hero-star-twinkle 2.4s ease-in-out infinite;
    will-change: opacity, transform, filter;
}

.hero-star-red {
    animation-delay: 0s;
}

.hero-star-yellow {
    animation-delay: 0.55s;
}

.hero-star-green {
    animation-delay: 1.1s;
}

.hero-star-blue {
    animation-delay: 1.65s;
}

@keyframes hero-star-twinkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.9);
        filter: brightness(0.85) drop-shadow(0 0 0 transparent);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
        filter: brightness(1.2) drop-shadow(0 0 6px rgba(255, 248, 200, 0.75));
    }
}

.hero-shooting-star {
    position: absolute;
    z-index: 2;
    top: 18%;
    right: 12%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fffef5;
    box-shadow: 0 0 8px 3px rgba(255, 250, 210, 0.85);
    opacity: 0;
    pointer-events: none;
    animation: hero-shooting-star 10s ease-in-out infinite;
}

.hero-shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    width: 72px;
    height: 2px;
    margin-right: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(255, 252, 230, 0.15) 20%, rgba(255, 250, 210, 0.9));
    border-radius: 999px;
}

@keyframes hero-shooting-star {
    0%, 72%, 100% {
        opacity: 0;
        transform: translate(0, 0);
    }
    76% {
        opacity: 0.15;
    }
    80% {
        opacity: 1;
    }
    88% {
        opacity: 0.7;
        transform: translate(-300px, 185px);
    }
    92% {
        opacity: 0;
        transform: translate(-340px, 210px);
    }
}

@media (max-width: 991.98px) {
    .hero-section .container {
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 120px;
    }

    .hero-section .hero-copy {
        padding-top: 36px;
    }

    .hero-section .hero-tagline {
        font-size: 1.55rem;
    }

    .hero-section .hero-body {
        font-size: 1.02rem;
    }

    .hero-rainbow {
        left: -110px;
        bottom: 0;
        width: 460px;
        opacity: 0.9;
    }

    .hero-cloud-left {
        left: 350px;
        bottom: -16px;
        width: 280px;
    }

    .hero-cloud-right {
        left: 570px;
        bottom: -16px;
        width: 300px;
    }

    .hero-rocket {
        right: 82px;
        width: 76px;
    }
}

@media (max-width: 767.98px) {
    .hero-brand {
        gap: 10px;
    }

    /* โลโก้ hero มือถือ — brand_logo.css */

    .hero-section .hero-tagline {
        font-size: 1.35rem;
        line-height: 1.45;
    }

    .hero-section .hero-body {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .hero-rainbow {
        left: -110px;
        bottom: 0;
        width: 330px;
    }

    .hero-cloud-left {
        left: 150px;
        bottom: -10px;
        width: 200px;
    }

    .hero-cloud-right {
        left: 300px;
        bottom: -10px;
        width: 220px;
    }

    .hero-cloud-left,
    .hero-cloud-right,
    .hero-rocket {
        opacity: 0.72;
    }

    .hero-shooting-star {
        top: 10%;
        right: 8%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-star-red,
    .hero-star-yellow,
    .hero-star-green,
    .hero-star-blue,
    .hero-shooting-star {
        animation: none !important;
        opacity: 1;
        transform: none;
        filter: none;
    }
}

.about-work-card {
    background: #f8f6f2;
    color: #1a1a1a;
    border-radius: 28px;
    padding: 32px 24px;
    min-height: 260px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    border: 1px solid #ebe6df;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}

.about-work-card h5 {
    color: #1a1a1a;
}

.about-work-card p {
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.8;
    color: #333;
}

.about-work-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    font-size: 1.85rem;
    line-height: 1;
}

.about-work-card__icon--yellow {
    background: linear-gradient(145deg, #fff4c4 0%, #fde68a 100%);
    color: #ca8a04;
    box-shadow: 0 4px 14px rgba(245, 197, 24, 0.35);
}

.about-work-card__icon--red {
    background: linear-gradient(145deg, #ffe4e1 0%, #fecaca 100%);
    color: #c0392b;
    box-shadow: 0 4px 14px rgba(192, 57, 43, 0.28);
}

.about-work-card__icon--green {
    background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #5a8f62;
    box-shadow: 0 4px 14px rgba(122, 158, 126, 0.32);
}

.work-section {
    background: #fff;
}

#our-work,
#how-it-works {
    scroll-margin-top: 130px;
}

.about-work-card:hover {
    background: #fff;
    transform: translateY(-8px);
}

.about-work-card--yellow:hover {
    box-shadow: 0 16px 32px rgba(245, 197, 24, 0.22);
}

.about-work-card--red:hover {
    box-shadow: 0 16px 32px rgba(192, 57, 43, 0.2);
}

.about-work-card--green:hover {
    box-shadow: 0 16px 32px rgba(122, 158, 126, 0.22);
}

.accordion-button::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 700;
    color: #5a7a4a;
    background-image: none;
    width: auto;
    height: auto;
}

.accordion-button:not(.collapsed)::after {
    content: '−';
    transform: none;
}

.about-faq-section {
    background-color: #fff;
}

#faqAccordion .accordion-item {
    border-radius: 14px !important;
    overflow: hidden;
}

#faqAccordion .accordion-button {
    min-height: 56px;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 1.05rem;
    transition: font-size 0.2s ease;
}

#faqAccordion .accordion-button:not(.collapsed) {
    font-size: 1.2rem;
}

#faqAccordion .accordion-body {
    padding-top: 0;
    padding-bottom: 14px;
    font-size: 0.98rem;
}

#faqAccordion .accordion-collapse.show .accordion-body {
    font-size: 1.08rem;
}

/* ===== บล็อกบริจาค / สนับสนุนระบบ (ย้ายจากหน้าแรก) ===== */
.about-donate-section {
    margin-top: 0;
    background-color: #f7ecde !important;
}

.about-donate-section .amount-btn {
    background: #fff;
    border: 1px solid #ccc;
}

.about-donate-section .amount-btn.active {
    background: #df4e35;
    border-color: #df4e35;
}

.about-donate-input-wrap {
    width: 515px;
    max-width: 100%;
    position: relative;
}

.about-donate-input {
    width: 100%;
    padding: 12px 44px 12px 48px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 1.15rem;
    background: #fff;
}

.about-donate-input__currency {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1.2rem;
}

.about-donate-input__clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #888;
    line-height: 1;
}

.about-donate-submit {
    width: 515px;
    max-width: 100%;
}

.about-support-section.home-contact-section {
    background: #fff;
    min-height: auto;
}

.about-support-section .rights-box {
    background: #f8f6f2;
    border: 1px solid #ebe6df;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
