/* --------------- DEFAULT SETTINGS --------------- */

*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    color-scheme: light;
    --owba-bg: #faf8f3;
    --owba-surface: #ffffff;
    --owba-surface-2: #f3eee4;
    --owba-text: #29262d;
    --owba-muted: #716b72;
    --owba-line: #e7dfd1;
    --owba-gold: #ae8134;
    --owba-deep: #282036;
    --owba-theme-speed: .35s;
    --owba-theme-ease: ease;

}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--owba-gold);
}

/* ----- ORIGINAL HEADER LISP ----- */

body {
    background-color: var(--owba-line);
}

div#content {
    margin: 40px;
    background-color: #ffffff;
    padding: 40px;
}

div.my-menu {
    background-color: #faf8f3;
}

div#main {
    padding: 1em;
    margin: 1em;
}

div.footer {
    padding: 1em;
    margin: 1em;
}

div.center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

img.logo {
    width: 90%;
}

img.map {
    width: 90%;
}

/* --------------- MANUALLY WRITTEN --------------- */

html {
    font-size: 16px;
}

.elms-sans {
    font-family: Elms Sans;
}

.ibm-ps {
    font-family: IBM Plex Sans Thai;
}

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

.header-title-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 40px 0;
    gap: 4px;
    border-bottom: 1px solid var(--owba-line);
}

.page-title {
    font-size: 2rem;
}

.page-subtitle {
    font-size: 1.05rem;
    color: var(--owba-gold);
}

.content-section {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 120px;
    padding: 40px 0;
    border-bottom: 1px solid var(--owba-line);

}

.map-image img {
    max-width: 100%;
    height: auto;
    padding-bottom: 8px;
    border-radius: 8px;

}

.map-image {
    padding-bottom: 16px;
}

.address-box {
    display: flex;
    flex-direction: column;
    max-width: 540px;
    gap: 4px;
}

.address-name {
    font-weight: 500;
    font-size: 1.2rem;
}

.address-detail {
    font-size: 0.9rem;
    color: var(--owba-muted);

}

.phone-email {
    font-size: 0.9rem;
    display: flex;
    gap: 16px;
    color: var(--owba-muted);
}

.phone-label {
    font-weight: 500;
    color: var(--owba-gold);
}

.footer-section {
    display: flex;
    background-color: var(--owba-deep);
    padding: 40px 0;
    gap: 24px;
}

.footer-box {
    gap: 4px;
}

.footer-img {
    max-width: 80px;
}

.footer-img img {
    width: 100%;
    height: auto;
}

.footer-title {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
    padding-bottom: 8px;
    color: var(--owba-surface-2);
    text-align: center;
}

.footer-address {
    font-size: 0.8rem;
    color: #AAA1AE;
    text-align: center;
}

.footer-section .phone-email {
    font-size: 0.8rem;
    color: #AAA1AE;
}

hr.footer-hr {
    border-top: 0.5px solid var(--owba-gold);
    width: 100%;
    opacity: 50%;
}

.donation-intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 500;
}

.article-text {
    font-size: 0.9rem;
    font-family: IBM Plex Sans Thai;
}

.white-box {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: left;
    gap: 16px;
    padding: 8px 0;
}

.article-bullet {
    padding: 2px 8px;
    background-color: #f1ebe1;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--owba-gold);
}

.highlight-box {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: left;
    gap: 16px;
    padding: 24px;
    background-color: var(--owba-bg);
    color: var(--owba-gold);

}

.donation-info {
    width: 100%;
    max-width: 540px;
    height: auto;
    border: 1px solid var(--owba-line);
    border-radius: 16px;
    padding: 8px 24px;
    box-sizing: border-box;
}

.article-image {
    padding: 24px 0;
}

.article-image img {
    height: 48px;
}

.one-liner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--owba-line);
    gap: 32px;
}

.article-label {
    width: max-content;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--owba-gold);
}

.one-liner .article-text {
    text-align: end;
}

.remarks {
    padding: 16px;
    font-size: 0.8rem;
    color: var(--owba-muted);
    text-align: center;
    line-height: 1.2rem;
}

.remarks .article-label {
    margin-top: 8px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* --------------- MODAL --------------- */


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal:target {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-image {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

/* --------------- MODAL --------------- */

.gallery-box {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.gallery-box .map-image {
    max-width: 220px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.gallery-box .map-image img {
    max-height: 120px;
    width: auto;
}

.purpose-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.purpose-img img {
    max-height: 120px;
    width: auto;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
}

.text-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.preview-img img {
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--owba-gold);
    padding: 20px;
}

.text-group-2 {
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
    background-color: var(--owba-bg);
    width: 100%;
}

.img img {
    max-height: 200px;
}

.display-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 24px;
    margin-top: 40px;

}

.display-grid img {
    max-height: 200px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.splash-screen {
    background-color: #ababab50;
    width: 100%;
    height: 700px;
    background-image: url(/iwmcf-files/img/bg-gen.png);
    background-blend-mode: lighten;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.splash-content {
    padding: 140px 0;
}

.splash-logo img {
    height: 110px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(74, 55, 40, 0.15));
}

.splash-subtitle {
    max-width: 400px;
    text-align: center;
    text-transform: uppercase;
    font-size: 1rem;
    color: #7A6050;
    margin: 24px 0;
    letter-spacing: 3px;
    font-weight: 500;
}

.splash-text {
    max-width: 800px;
    width: 80%;
    text-align: center;
    font-size: 1rem;
    color: #7A6050;
}

.splash-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    max-width: 560px;
    text-align: center;
    font-family: Cormorant Garamond;
    font-weight: 600;
    color: #4A3728;
    padding-bottom: 40px;
}

div#main.home-class  {
    padding: 0;
    margin: 0;
}

.sec-title {
    padding: 80px 0 0 0;
}

.lato {
    font-family: 'Lato';
}

.cormorant {
    font-family: 'Cormorant Garamond';
}

.sec-title .page-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.sec-title .page-title {
    font-weight: 600;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-family: Cormorant Garamond;

}

.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--owba-line), var(--owba-gold), var(--owba-line));
    margin: 0 auto 32px;
    border: none;
    margin-top: 16px;

}

.mission {
    gap: 40px;
    display: flex;
    flex-direction: row;
    padding: 40px;
    justify-content: center;

}

.mission-img {
    max-width: 400px;
    width: 100%;
    height: 240px;
}

.mission-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;

}

.mission-info {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    height: auto;
    width: 100%;
    gap: 24px;
    padding-bottom: 80px;
}

.report {
    background-color: #ffdb9c;
    padding: 40px 0 80px 0;
    background:
        linear-gradient(rgba(250, 246, 238, 0.84), rgba(237, 217, 163, 0.84)),
        url(iwmcf-files/img/flowers.jpg) center / cover no-repeat;
    text-align: center;

}

.report-box {
    display: flex;
    flex-direction: row;
    background-color: #faf8f3;
    width: max-content;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(74, 55, 40, 0.10);
    gap: 40px;
}

.report-icon img {
    max-height: 40px;
    width: auto;
}

.report-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 4px;
}

.download-button {
    background-color: var(--owba-gold);
    color: #ffffff;
    padding: 18px 32px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 40px;
    width: max-content
}

.report-title {
    font-weight: 500;
    color: var(--owba-gold);
}

.report-desc {
    font-size: 0.8rem;
}



/* --------------- YEAR SELECTOR --------------- */

.select-year {
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.year-group {
    width: 100%;
    padding: 24px 40px;
    border: 1px solid var(--owba-line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 24px;
}

.year-button {
    color: var(--owba-muted);
    font-family: Elms Sans;
    font-size: 1.1rem;
    padding: 4px 4px;
    text-align: center;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
}

.year-button:hover {
    color: var(--owba-gold);
}

.year-selected {
    display: none;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.year-selected-title {
    text-align: center;
    font-weight: 600;
    color: var(--owba-gold);
}

.year-selected-desc {
    width: 100%;
    padding: 24px 40px;
    border-radius: 8px;
    background-color: var(--owba-bg);
}

.year-selected-desc p + p {
    margin-top: 16px;
}

input[type="radio"][name="year"] {
    display: none;
}

#year-2002:checked ~ #year-content-2002,
#year-2003:checked ~ #year-content-2003,
#year-2004:checked ~ #year-content-2004,
#year-2005:checked ~ #year-content-2005,
#year-2006:checked ~ #year-content-2006,
#year-2007:checked ~ #year-content-2007,
#year-2008:checked ~ #year-content-2008,
#year-2009:checked ~ #year-content-2009,
#year-2010:checked ~ #year-content-2010,
#year-2011:checked ~ #year-content-2011,
#year-2012:checked ~ #year-content-2012,
#year-2013:checked ~ #year-content-2013,
#year-2014:checked ~ #year-content-2014,
#year-2015:checked ~ #year-content-2015,
#year-2016:checked ~ #year-content-2016,
#year-2017:checked ~ #year-content-2017,
#year-2018:checked ~ #year-content-2018,
#year-2019:checked ~ #year-content-2019,
#year-2020:checked ~ #year-content-2020,
#year-2021:checked ~ #year-content-2021,
#year-2022:checked ~ #year-content-2022,
#year-2023:checked ~ #year-content-2023,
#year-2024:checked ~ #year-content-2024,
#year-2025:checked ~ #year-content-2025 {
    display: flex;
}

#year-2002:checked ~ .select-year label[for="year-2002"],
#year-2003:checked ~ .select-year label[for="year-2003"],
#year-2004:checked ~ .select-year label[for="year-2004"],
#year-2005:checked ~ .select-year label[for="year-2005"],
#year-2006:checked ~ .select-year label[for="year-2006"],
#year-2007:checked ~ .select-year label[for="year-2007"],
#year-2008:checked ~ .select-year label[for="year-2008"],
#year-2009:checked ~ .select-year label[for="year-2009"],
#year-2010:checked ~ .select-year label[for="year-2010"],
#year-2011:checked ~ .select-year label[for="year-2011"],
#year-2012:checked ~ .select-year label[for="year-2012"],
#year-2013:checked ~ .select-year label[for="year-2013"],
#year-2014:checked ~ .select-year label[for="year-2014"],
#year-2015:checked ~ .select-year label[for="year-2015"],
#year-2016:checked ~ .select-year label[for="year-2016"],
#year-2017:checked ~ .select-year label[for="year-2017"],
#year-2018:checked ~ .select-year label[for="year-2018"],
#year-2019:checked ~ .select-year label[for="year-2019"],
#year-2020:checked ~ .select-year label[for="year-2020"],
#year-2021:checked ~ .select-year label[for="year-2021"],
#year-2022:checked ~ .select-year label[for="year-2022"],
#year-2023:checked ~ .select-year label[for="year-2023"],
#year-2024:checked ~ .select-year label[for="year-2024"],
#year-2025:checked ~ .select-year label[for="year-2025"] {
    color: var(--owba-gold);
}

/* --------------- MEDIA RESPONSIVE NEW --------------- */

@media (max-width: 1024px) {
    .purpose-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .report-box {
        display: flex;
        flex-direction: column;
        width: 95%;
        gap: 16px;
    }

    .report-info {
        text-align: center;
    }

    .download-button {
        margin-left: auto;
        margin-right: auto;
    }

    .year-group {
        grid-template-columns: repeat(9, 1fr);
        gap: 16px;
    }

}

@media (max-width: 768px) {

    div#content {
        margin: 10px;
        padding: 0;
    }

    .phone-email {
        flex-direction: column;
        gap: 2px;
    }

    .content-section {
        flex-direction: column;
        gap: 40px;
        border-bottom: 0px solid var(--owba-line);
        width: 100%;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .header-title-section {
        padding: 0 0 20px 0;
    }

    .donation-info {
        max-width: 100%;
    }

    .display-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-top: 24px;
    }

    .purpose-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .sec-title {
        padding: 60px 0 0 0;
    }

    .mission {
        display: flex;
        flex-direction: column;
        padding: 24px;
    }

    .mission-info {
        padding-bottom: 40px;
    }

    .year-group {
        grid-template-columns: repeat(6, 1fr);
        padding: 16px;
        gap: 12px;
    }

    .year-selected-desc {
        padding: 16px;
    }

}

@media (max-width: 480px) {

    .year-group {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

}
