* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #F8F6F1;
    --secondary: #C57600;
    --accent: #8B2E2E;
    --white: white;
    /* Text */
    --text: #1F1F1F;
    --text-light: #5F625D;
    --muted-text: #8A8A82;
}

body {
    font-family: Arial, sans-serif;
    background: var(--primary);
    color: var(--secondary);
}

main {
    margin-bottom: 5%;
           width: 95%;
           margin: auto;
}

.nav-menu a {
    color: var(--secondary);
    text-decoration: none;
}

.nav-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition:
        background .5s ease,
        box-shadow 0.1s ease,
        backdrop-filter 0.5s ease;
    background-color: white;
}


.nav-header.scrolled {
    background: var(--primary);
    box-shadow: 0 5px 20px rgba(166, 166, 166, 0.139);
    backdrop-filter: blur(10px);
}

.navbar {
    width: 90%;
    margin: auto;
    height: 15vh;
    padding: 0 1%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    color: var(--accent);
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu a {
    font-size: 14px;
    transition: 0.5s;
    font-style: italic;
    opacity: .9;
}

.nav-menu a:hover {
    scale: .9;
    opacity: 1;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* =========================================
   NAV DROPDOWN
========================================= */

.nav-dropdown {
    position: relative;
}


/* Dropdown button */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 12px;
    cursor: pointer;
}


.dropdown-toggle svg {
    height: 18px;
    margin-top: 5px;
    color: var(--accent);
    transition: 0.5s;
}

.dropdown-toggle svg:hover {
    margin-top: 2px;
}


/* Dropdown menu */

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    min-width: 150px;
    padding: 5px;
    backdrop-filter: blur(25px);
    background-color: #fff4e7b3;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -8px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
    z-index: 1000;
}


/* Dropdown links */

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text);
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.dropdown-menu a:hover {
    background: var(--primary);
    color: var(--secondary);
    scale: .9;
}


/* Open dropdown */

.nav-dropdown.drop .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    margin-top: 18px;
}

.nav-dropdown.drop .dropdown-toggle svg {
    transform: rotate(180deg);
}


/* ELEPHANT PAGE */

.elephant-block {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 90%;
    margin: auto;
    margin-top: 2%;
    padding: 5%;
    height: 50vh;
    align-content: center;
    background: var(--primary);
    color: var(--text);

}

.elephant-block::after {
    content: "";
    position: absolute;
    right: 50px;
    bottom: -150px;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(144, 0, 0, 0.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 40px rgba(74, 0, 17, 0.035),
        0 0 0 80px rgba(250, 141, 8, 0.025);
    pointer-events: none;
}

.elephant-block .archive-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: auto;
}

.elephant-block h1 {
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 510;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.elephant-block h2 {
    width: 65%;
    margin: 0;
    color: var(--muted-text);
    font-size: 15px;
    line-height: 1.5;
    font-style: italic;
}


/* =========================================
   FOOTER
========================================= */

footer {
    padding: 5% 7% 2%;
    background: #1f1f1f;
    color: #ffffff;
    margin-top: 5%;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 60px;
}


/* Brand */

.footer-brand {
    max-width: 330px;
}

.footer-logo {
    display: inline-block;
    /* margin-bottom: 20px; */
    color: #ffffff;
    text-decoration: none;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -1px;
}

.footer-brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.8;
}


/* Columns */

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.footer-column h3 {
    margin: 0 0 10px;
    color: var(--secondary);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-column a {
    width: fit-content;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s ease;
}

.footer-column a:hover {
    color: var(--secondary);
    transform: translateX(3px);
}


/* Bottom */

.footer-bottom {
    max-width: 1200px;
    margin: auto;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
}



/* =========================================
   NEWSLETTER
========================================= */

.newsletter-form {
    width: 100%;
    padding:5px 10px;
    border: 1px solid var(--secondary);
    border-radius: 10px;
        display: flex;
    margin-top: 3%;
}


.newsletter-form input {
    border: none;
    outline: none;
    background: transparent;
    color: var(--primary);
    font-size: 14px;
    width: 90%;
    box-sizing: border-box;
}

.newsletter-form input::placeholder {
    color: var(--muted-text);
}

.newsletter-form button {
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    background: var(--secondary);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
    width: 100px;
        border-radius: 6px;
}

.newsletter-form button:hover {
    color: var(--accent);
}


/* ========================================
   ARTICLE PAGINATION
======================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px auto 20px;
    padding: 20px 0;
}

/* Previous and Next buttons */

.pagination-btn,
.pagination-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #e5dfd3;
    border-radius: 6px;
    background: var(--white);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.5s ease;
}

.pagination-btn:hover,
.pagination-number:hover {
    border-color: var(--secondary);
    background: var(--primary);
    color: var(--secondary);
    scale: .88;
}

/* Page numbers */

.pagination-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Active page */

.pagination-number.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary);
    cursor: default;
}

/* Keyboard accessibility */

.pagination a:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .nav-header {
        height: 10vh;
    }

    .navbar {
        height: 10vh;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .menu-toggle span {
        width: 25px;
        height: 2px;
        background: #222;
    }

    .nav-menu {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        border-bottom: 1px solid #e5e2da;
    }

    .nav-menu a {
        margin: 0%;
    }

    .nav-menu div {
        height: min-content;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 12px 0;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        visibility: visible;
        display: none;
    }

    .nav-dropdown.drop .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translate(0%, 0);
        margin-top: 1px;
    }

    .nav-dropdown.drop .dropdown-menu {
        display: block;
    }



    /* ELEPHANT PAGE */

    .elephant-block {
        margin-top: 0%;
        padding: 5%;
        height: 40vh;
        width: 100%;
    }

    .elephant-block::after {
        right: 5px;
        bottom: -150px;
        width: 300px;
        height: 300px;
    }

    .elephant-block h1 {
        font-size: 35px;
    }

    .elephant-block h2 {
        width: 95%;
        font-size: 14px;
        line-height: 1.4;
    }

    .pagination {
        gap: 7px;
        margin-top: 25px;
    }

    .pagination-btn {
        min-width: 40px;
        padding: 0 10px;
        font-size: 12px;
    }

    .pagination-number {
        min-width: 36px;
        height: 38px;
        padding: 0 8px;
        font-size: 13px;
    }

    .pagination-numbers {
        gap: 5px;
    }

    footer {
        padding: 60px 5% 25px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 45px;
    }

    .footer-bottom {
        flex-direction: column;
    }

}

/* Responsive */

@media (max-width: 900px) {

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

}