/* ============================= */
/* Reset */
/* ============================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #111;
    overflow-x: hidden;
}


/* ============================= */
/* Main Header */
/* ============================= */

.header {
    min-height: 100vh;
    width: 100%;
    background-color: #ffffff;
    position: relative;
}


/* ============================= */
/* Top Announcement Bar */
/* ============================= */

.announcement {
    width: 100%;
    min-height: 28px;

    background-color: #f5f5f5;
    color: #111;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 5px 10px;

    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;

    text-align: center;
}


/* ============================= */
/* Navigation */
/* ============================= */

nav {
    width: 100%;

    display: flex;

    padding: 2% 6%;

    justify-content: space-between;
    align-items: center;

    gap: 30px;
}


nav h1 {
    color: black;
    font-size: 50px;

    white-space: nowrap;
}


/* ============================= */
/* Navigation Links */
/* ============================= */

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 30px;

    list-style: none;
}

.nav-links ul li {
    list-style: none;
}

.nav-links ul li a {
    color: black;

    text-decoration: none;

    font-size: 17px;

    transition: 0.3s;
}

.nav-links ul li a:hover {
    color: #555;
    text-decoration: underline;
}


/* ============================= */
/* Year Links */
/* ============================= */

.year-links {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 70px;

    padding: 50px 20px;

    flex-wrap: wrap;
}


/* ============================= */
/* Normal Year Links */
/* ============================= */

.year-links a {
    position: relative;

    color: #222;

    font-size: 17px;
    font-weight: bold;

    text-decoration: none;

    padding: 8px 12px;

    transition: 0.3s;
}


/* ============================= */
/* Normal Year - Top Line */
/* ============================= */

.year-links a:not(.current-year)::before {
    content: "";

    position: absolute;

    width: 0;
    height: 2px;

    background-color: #222;

    left: 50%;
    top: 0;

    transform: translateX(-50%);

    transition: width 0.3s ease;
}


/* ============================= */
/* Normal Year - Bottom Line */
/* ============================= */

.year-links a:not(.current-year)::after {
    content: "";

    position: absolute;

    width: 0;
    height: 2px;

    background-color: #222;

    left: 50%;
    bottom: 0;

    transform: translateX(-50%);

    transition: width 0.3s ease;
}


/* ============================= */
/* Normal Year Hover */
/* ============================= */

.year-links a:not(.current-year):hover::before,
.year-links a:not(.current-year):hover::after {
    width: 130%;
}

.year-links a:not(.current-year):hover {
    color: #555;
}


/* ============================= */
/* Current Year */
/* ============================= */

.year-links a.current-year {
    position: relative;

    color: #222;

    padding: 8px 12px;

    text-decoration: none;
}


/* ============================= */
/* Current Year - Top Line */
/* ============================= */

.year-links a.current-year::before {
    content: "";

    position: absolute;

    width: 130%;
    height: 2px;

    background-color: #222;

    left: -15%;
    top: -4px;

    border-radius: 5px;
}


/* ============================= */
/* Current Year - Bottom Line */
/* ============================= */

.year-links a.current-year::after {
    content: "";

    position: absolute;

    width: 130%;
    height: 2.5px;

    background-color: #222;

    left: -15%;
    bottom: -4px;

    border-radius: 5px;
}


/* ============================= */
/* Selected Year */
/* ============================= */

.selected-year {
    width: 100%;

    text-align: center;

    color: black;

    font-size: 20px;

    margin-top: 10px;

    padding: 0 10px;
}


/* ================================================= */
/*              DESKTOP CALENDAR LAYOUT             */
/* ================================================= */

/*
   The HTML should use:

   .calendar-months
       .calendar-month
           .months
           .month-images
*/

.calendar-months {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 30px;

    padding: 0 2%;

    margin-top: 80px;
}


/* ============================= */
/* Individual Month */
/* ============================= */

.calendar-month {
    width: 100%;

    min-width: 0;
}


/* ============================= */
/* Month Names */
/* ============================= */

.months {
    width: 100%;

    text-align: center;

    margin: 0;

    padding: 0;
}


/* ============================= */
/* Month Buttons */
/* ============================= */

.months a {
    width: 100%;

    min-height: 50px;

    display: flex;

    justify-content: center;
    align-items: center;

    color: black;

    font-size: 30px;
    font-weight: bold;

    background-color: transparent;

    text-decoration: none;

    border-radius: 2px;

    transition: 0.3s;

    text-align: center;
}

.months a:hover {
    color: #555;
}


/* ============================= */
/* Calendar Images */
/* ============================= */

.month-images {
    width: 100%;

    margin-top: 25px;

    padding: 0;
}


/* ============================= */
/* Image Frame */
/* ============================= */

.image-box {
    width: 100%;

    overflow: hidden;

    border-radius: 10px;

    position: relative;

    min-width: 0;
}


/* ============================= */
/* Calendar Image */
/* ============================= */

.image-box img {
    width: 100%;

    height: auto;

    display: block;

    object-fit: contain;

    border-radius: 10px;

    max-width: 100%;
}


/* ============================= */
/* Large Tablet */
/* ============================= */

@media (max-width: 1100px) {

    nav {
        padding: 3% 5%;
    }

    nav h1 {
        font-size: 42px;
    }

    .nav-links ul {
        gap: 20px;
    }

    .nav-links ul li a {
        font-size: 16px;
    }


    /* Years */

    .year-links {
        gap: 40px;

        padding: 35px 20px;
    }


    /* Calendar */

    .calendar-months {
        gap: 20px;

        padding: 0 2%;

        margin-top: 60px;
    }

    .months a {
        font-size: 25px;
    }

    .month-images {
        margin-top: 20px;
    }
}


/* ============================= */
/* Tablet */
/* ============================= */

@media (max-width: 900px) {

    nav {
        padding: 4% 5%;
    }

    nav h1 {
        font-size: 38px;
    }

    .nav-links ul {
        gap: 15px;
    }

    .nav-links ul li a {
        font-size: 15px;
    }


    /* Years */

    .year-links {
        gap: 30px;

        padding: 30px 15px;
    }

    .year-links a {
        font-size: 16px;
    }


    /* Calendar */

    .calendar-months {
        gap: 15px;

        margin-top: 50px;

        padding: 0 2%;
    }

    .months a {
        font-size: 22px;
    }

    .month-images {
        margin-top: 18px;
    }

    .image-box {
        border-radius: 8px;
    }

    .image-box img {
        border-radius: 8px;
    }
}


/* ============================= */
/* Mobile Navigation */
/* ============================= */

@media (max-width: 600px) {

    nav {
        padding: 5%;

        flex-direction: column;

        gap: 20px;
    }

    nav h1 {
        font-size: 28px;
    }


    /* Navigation Links */

    .nav-links {
        width: 100%;

        text-align: center;
    }

    .nav-links ul {
        justify-content: center;

        gap: 15px;

        flex-wrap: wrap;
    }

    .nav-links ul li a {
        font-size: 14px;
    }


    /* Years */

    .year-links {
        gap: 20px;

        padding: 25px 15px;
    }

    .year-links a {
        font-size: 15px;
    }


    /* Selected Year */

    .selected-year {
        font-size: 17px;
    }
}


/* ================================================= */
/*              MOBILE CALENDAR LAYOUT              */
/* ================================================= */

@media (max-width: 700px) {

    /*
       One month at a time:

       January
       [image]

       February
       [image]

       March
       [image]
    */

    .calendar-months {
        display: grid;

        grid-template-columns: 1fr;

        gap: 40px;

        width: 100%;

        padding: 0 5%;

        margin-top: 50px;
    }


    /* Individual month */

    .calendar-month {
        width: 100%;
    }


    /* Month name */

    .calendar-month .months {
        width: 100%;

        margin: 0;

        padding: 0;

        text-align: center;
    }


    .calendar-month .months a {
        width: 100%;

        min-height: 45px;

        display: flex;

        justify-content: center;
        align-items: center;

        font-size: 22px;

        text-align: center;
    }


    /* Month image */

    .calendar-month .month-images {
        width: 100%;

        display: block;

        margin-top: 15px;

        padding: 0;
    }


    /* Image */

    .calendar-month .image-box {
        width: 100%;

        max-width: 450px;

        margin: 0 auto;
    }

    .calendar-month .image-box img {
        width: 100%;

        height: auto;

        display: block;
    }
}


/* ================================================= */
/*                 SMALL MOBILE                     */
/* ================================================= */

@media (max-width: 400px) {

    .announcement {
        font-size: 11px;

        letter-spacing: 1px;
    }


    nav h1 {
        font-size: 24px;
    }


    .nav-links ul {
        gap: 10px;
    }

    .nav-links ul li a {
        font-size: 12px;
    }


    /* Years */

    .year-links {
        gap: 15px;
    }

    .year-links a {
        font-size: 14px;
    }


    /* Selected Year */

    .selected-year {
        font-size: 15px;
    }


    /* Calendar */

    .calendar-months {
        gap: 35px;

        padding: 0 4%;
    }

    .calendar-month .months a {
        font-size: 19px;
    }

    .calendar-month .month-images {
        margin-top: 12px;
    }

    .calendar-month .image-box {
        max-width: 100%;
    }
}



/* ================================================= */
/*                    FOOTER                         */
/* ================================================= */

.footer {
    width: 100%;
    background-color: #111;
    color: #fff;

    padding: clamp(40px, 5vw, 70px) clamp(25px, 8vw, 120px) 25px;

    margin-top: clamp(60px, 8vw, 120px);
}


/* ============================= */
/* Footer Main */
/* ============================= */

.footer-main {
    width: 100%;
    max-width: 1500px;
    margin: 40px;

    display: grid;

    grid-template-columns:
        1fr
        1fr
        1.4fr;

    gap: clamp(40px, 7vw, 130px);

    align-items: start;
}

/* ============================= */
/* Footer About */
/* ============================= */

.footer-about {
    width: 100%;
}

.footer-about h2 {
    font-size: clamp(24px, 2.5vw, 36px);

    margin-bottom: 15px;

    white-space: nowrap;
}

.footer-about p {
    font-size: clamp(13px, 1.2vw, 16px);

    color: #ccc;

    line-height: 1.6;
}


/* ============================= */
/* Quick Links */
/* ============================= */

.footer-quick-links {
    width: 100%;
}

.footer-quick-links h3 {
    font-size: clamp(16px, 1.5vw, 20px);

    margin-bottom: 20px;

    text-transform: uppercase;
}

.footer-links {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 12px;

    width: 100%;
}

.footer-links a {
    color: #fff;

    text-decoration: none;

    font-size: clamp(13px, 1.2vw, 16px);

    transition: 0.3s;
}

.footer-links a:hover {
    color: #aaa;

    text-decoration: underline;
}


/* ============================= */
/* Inquiry */
/* ============================= */

.footer-inquiry {
    width: 100%;

    max-width: 500px;

    margin-left: auto;
}

.footer-inquiry h3 {
    font-size: clamp(16px, 1.5vw, 20px);

    margin-bottom: 20px;

    text-transform: uppercase;
}

.footer-inquiry form {
    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 12px;
}

.footer-inquiry input,
.footer-inquiry textarea {
    width: 100%;

    padding: clamp(10px, 1vw, 13px);

    border: 1px solid #ccc;

    background-color: #fff;

    color: #000;

    font-family: Arial, sans-serif;

    font-size: clamp(13px, 1.1vw, 15px);

    outline: none;
}

.footer-inquiry input:focus,
.footer-inquiry textarea:focus {
    border-color: #888;
}

.footer-inquiry textarea {
    height: 90px;

    resize: vertical;
}

.footer-inquiry button {
    width: 120px;

    padding: 12px;

    border: none;

    background-color: #fff;

    color: #111;

    font-size: clamp(13px, 1.1vw, 15px);

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}

.footer-inquiry button:hover {
    background-color: #ddd;
}


/* ============================= */
/* Copyright */
/* ============================= */

.copyright {
    width: 100%;

    max-width: 1500px;

    margin: 50px auto 0;

    padding-top: 20px;

    border-top: 1px solid #444;

    display: flex;

    justify-content: space-between;

    align-items: center;

    color: #aaa;

    font-size: clamp(11px, 1vw, 14px);
}


/* ============================= */
/* Back To Top */
/* ============================= */

.back-to-top {
    position: fixed;

    right: clamp(12px, 2vw, 25px);

    bottom: clamp(12px, 2vw, 25px);

    width: clamp(38px, 4vw, 45px);

    height: clamp(38px, 4vw, 45px);

    display: flex;

    justify-content: center;

    align-items: center;

    background-color: #111;

    color: #fff;

    text-decoration: none;

    font-size: clamp(18px, 2vw, 22px);

    border-radius: 50%;

    border: 1px solid #333;

    transition: 0.3s;

    z-index: 1000;
}

.back-to-top:hover {
    background-color: #555;

    transform: translateY(-4px);
}


/* ================================================= */
/*              LARGE TABLET / SMALL LAPTOP          */
/* ================================================= */

@media (max-width: 1000px) {

    .footer {
        padding-left: 5%;
        padding-right: 5%;
    }

    .footer-main {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr)
            minmax(0, 1.1fr);

        gap: 30px;
    }

    .footer-about h2 {
        white-space: normal;
    }

    .footer-inquiry {
        max-width: 100%;
    }
}


/* ================================================= */
/*                    TABLET                        */
/* ================================================= */

@media (max-width: 750px) {

    .footer {
        padding: 45px 7% 20px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;

        gap: 40px;
    }

    .footer-inquiry {
        grid-column: 1 / -1;

        max-width: 500px;

        margin: 0 auto;

        width: 100%;
    }

    .footer-about h2 {
        font-size: 27px;
    }

    .footer-quick-links h3,
    .footer-inquiry h3 {
        font-size: 18px;
    }

    .copyright {
        margin-top: 40px;
    }
}


/* ================================================= */
/*                    MOBILE                        */
/* ================================================= */

@media (max-width: 600px) {

    .footer {
        padding: 40px 7% 20px;

        margin-top: 70px;
    }

    .footer-main {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .footer-about {
        text-align: center;
    }

    .footer-about h2 {
        font-size: 25px;

        white-space: normal;
    }

    .footer-about p {
        font-size: 14px;
    }


    /* Quick Links */

    .footer-quick-links {
        text-align: center;
    }

    .footer-quick-links h3 {
        font-size: 17px;
    }

    .footer-links {
        align-items: center;

        gap: 10px;
    }

    .footer-links a {
        font-size: 14px;
    }


    /* Inquiry */

    .footer-inquiry {
        grid-column: auto;

        width: 100%;

        max-width: 100%;

        margin: 0;
    }

    .footer-inquiry h3 {
        text-align: center;

        font-size: 17px;
    }

    .footer-inquiry input,
    .footer-inquiry textarea {
        font-size: 14px;
    }

    .footer-inquiry button {
        width: 100%;
    }


    /* Copyright */

    .copyright {
        margin-top: 35px;

        padding-top: 15px;

        flex-direction: column;

        gap: 10px;

        text-align: center;

        font-size: 11px;

        line-height: 1.5;
    }


    /* Back to top */

    .back-to-top {
        right: 15px;

        bottom: 15px;

        width: 40px;

        height: 40px;

        font-size: 19px;
    }
}


/* ================================================= */
/*                 VERY SMALL MOBILE                 */
/* ================================================= */

@media (max-width: 400px) {

    .footer {
        padding: 35px 15px 15px;
    }

    .footer-main {
        gap: 30px;
    }

    .footer-about h2 {
        font-size: 22px;
    }

    .footer-about p {
        font-size: 13px;
    }

    .footer-quick-links h3,
    .footer-inquiry h3 {
        font-size: 16px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-inquiry input,
    .footer-inquiry textarea {
        font-size: 13px;

        padding: 10px;
    }

    .footer-inquiry textarea {
        height: 85px;
    }

    .copyright {
        font-size: 10px;
    }
}