@charset "UTF-8";
@import '../stickyNavigation.css';
@import '../hero2.css';
@import '../carousel.css';
@import '../footer.css';

/* VARIABLES */
/* --------------------- */
/* --------------------- */
/* --------------------- */
:root {
    --desktop-title-size: clamp(22px, 2vw, 24px);
    --desktop-subtitle-size: clamp(20px, 1.3vw, 22px);
    --desktop-paragraph-size: clamp(16px, 1.2vw, 20px);

    --tablet-title-size: clamp(0.9rem, 2.3vw, 2rem);
    --tablet-subtitle-size: clamp(0.9rem, 2vw, 2rem);
    --tablet-font-size: clamp(0.9rem, 1.2vw, 1.5rem);

    --mobile-title-size: 18px;
    --mobile-subtitle-size: 14px;
    --mobile-font-size: 12px;

    --color-primary: #000000;
    --color-secondary: #000000;
    --color-secondary-light: #709B84;
    --color-secondary-dark: #000000;
    --color-background: transparent;
}

/* removes all default padding and margins */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.kanji-font {
    font-family: 'Zen Old Mincho';
}

/* MAIN NEWS PAGE FORMATTING, INDIVIDUAL PAGE FORMATTING BELOW */
/* ---------------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------------------------- */
.single-news-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: center;
    max-width: 1200px;
    position: relative;
    z-index: 2;
    padding-bottom: 100px;
    margin: auto;
}

.single-news-thumbnail {
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}

.single-news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* container for image on the right, text on the left section */
.single-news-item {
    margin: 60px auto;
    display: flex;
    flex-direction: row-reverse;
    width: min(75vw, 1200px);
    height: auto;
    justify-content: space-between;
    align-items: center;
    justify-self: center;
    justify-items: center;
    gap: 5%;
    overflow: hidden;
}

.news-text {
    display: flex;
    flex-direction: column;
    width: 50%;
    gap: 10px;
}

.single-news-thumbnail {
    width: 45%;
    height: 250px;
    /* Or whatever fixed height you want */
    overflow: hidden;
    position: relative;
}

.single-news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Helps eliminate small gaps */
}


.single-news-title a {
    font-family: 'Zen Old Mincho' !important;
    color: rgba(20, 71, 56, 0.8) !important;
    font-weight: 400;
    font-size: var(--desktop-title-size);
}

.single-news-date {
    font-family: 'Zen Old Mincho';
    color: rgba(20, 71, 56, 0.8);
    font-size: var(--desktop-paragraph-size);
}

.single-news-content p {
    color: #333333;
    font-family: 'Zen Old Mincho';
    font-size: var(--desktop-paragraph-size);
}

a.more-link {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #144738;
    border-radius: 50px;
    font-family: 'Zen Old Mincho';
    padding: 5px;
    border: solid 1px;
    transition: 1s;
    width: 150px;
    height: 38px;
    letter-spacing: 0.1em;
    background-color: transparent;
    font-size: var(--desktop-paragraph-size);
    margin-top: 15px;
}

a.more-link:hover {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: rgba(20, 71, 56, 1);
    transition: 0.5s;
    border: solid rgba(20, 71, 56, 1) 1px;
    font-size: var(--desktop-paragraph-size);
}

/* TABLET */
/* --------------------- */
/* --------------------- */
/* --------------------- */
@media (max-width: 1024px) and (min-width: 768px) {
    .single-news-title a {
        font-size: var(--tablet-title-size);
    }

    .single-news-date {
        font-size: var(--tablet-paragraph-size);
    }

    .single-news-content {
        font-size: var(--tablet-font-size);
    }

    .mobile-pad {
        padding: 50px;
    }
}

/* PHONE */
/* --------------------- */
/* --------------------- */
/* --------------------- */
@media (max-width: 767px) {
    .single-news-item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 8vw 4vw;
        width: 100%;
        margin: auto;
    }

    .single-news-thumbnail {
        width: 100%;
        padding-bottom: 10px;
    }

    .news-text {
        width: 100%;
    }

    .single-news-title a {
        font-size: var(--mobile-title-size);
    }

    .single-news-date {
        font-size: var(--mobile-paragraph-size);
    }

    .single-news-content {
        font-size: var(--mobile-font-size);
    }

    .mobile-pad {
        padding: 50px;
    }
}

/* INDIVIDUAL PAGE FORMATTING */
/* ---------------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------------------------- */
.individual-news-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: center;
    max-width: 1200px;
    position: relative;
    z-index: 2;
    margin: auto;
    gap: 20px;
}

.individual-news-thumbnail {
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}

.individual-news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* container for image on the right, text on the left section */
.individual-news-item {
    display: flex;
    padding: 100px 40px;
    margin: auto;
    flex-direction: column;
    max-width: 1200px;
    height: auto;
    justify-content: space-between;
    align-items: center;
    justify-self: center;
    justify-items: center;
    overflow: hidden;
}

.individual-news-text {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.individual-news-thumbnail {
    width: 100%;
    height: 100%;
    /* Use fixed height, not max-height */
    overflow: hidden;
    position: relative;
}

.individual-news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    /* <-- show bottom of image */
    display: block;
}


.individual-news-title {
    font-family: 'Zen Old Mincho';
    color: rgba(20, 71, 56, 0.8);
    font-weight: 400;
    font-size: var(--desktop-title-size);
}

.individual-news-date {
    font-family: 'Zen Old Mincho';
    color: rgba(20, 71, 56, 0.8);
    font-size: var(--desktop-paragraph-size);
}

.individual-news-content p {
    color: #333333;
    font-family: 'Zen Old Mincho';
    font-size: var(--desktop-paragraph-size);
    padding-top: 5px;
    padding-bottom: 5px;
}

.individual-news-content p {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.individual-news-intro {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

p {
    font-family: 'Zen Old Mincho';

}

/* TABLET */
/* --------------------- */
/* --------------------- */
/* --------------------- */
@media (max-width: 1024px) and (min-width: 768px) {
    .individual-news-title {
        font-size: var(--tablet-title-size);
    }

    .individual-news-date {
        font-size: var(--tablet-paragraph-size);
    }

    .individual-news-content {
        font-size: var(--tablet-font-size);
    }

    .mobile-pad {
        padding: 50px;
    }
}

/* PHONE */
/* --------------------- */
/* --------------------- */
/* --------------------- */
@media (max-width: 767px) {
    .individual-news-item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 10vw 4vw;
        width: 100%;
        margin: auto;
    }

    .individual-news-thumbnail {
        width: 100%;
        padding-bottom: 10px;
    }

    .individual-news-text {
        width: 100%;
    }

    .individual-news-title {
        font-size: var(--mobile-title-size);
    }

    .individual-news-date {
        font-size: var(--mobile-paragraph-size);
    }

    .individual-news-content {
        font-size: var(--mobile-font-size);
    }

    .mobile-pad {
        padding: 0;
    }
}