button{
    cursor: pointer;
}
/* =========================================
   ARTICLE PAGE
========================================= */


.article-sector {
    padding: 5% 3%;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 20px;
}

/* Page title */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
    padding: 2% 1% 18px;
        color: var(--text);
    font-size: 20px;
}

.page-header h1 {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.8px;
}


/* ========================================
   SEARCH BAR
======================================== */

.search-bar {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 380px;
    height: 45px;
    padding: .5%;
    background: transparent;
    border: 1px solid #e5dfd3;
    border-radius: 5px;
    overflow: hidden;
    transition: border-color 0.25s ease,
                box-shadow 0.25s ease;
}

.search-bar:focus-within {
    border-color: var(--secondary);
}

/* Search input */

.search-bar input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 12px 5px;
    border: none;
    outline: none;
    background: transparent;
    color: #29271f;
    font-family: inherit;
    font-size: 14px;
}

.search-bar input::placeholder {
    color: #99948a;
}

/* Search button */

.search-bar button {
    padding: 0 20px;
    border: none;
    border-radius: 5px;
    background: var(--secondary);
    color: var(--primary);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: background 0.5s ease;
}

.search-bar button:hover {
    scale: .95;
}

/* ========================================
   ARTICLE ARCHIVE
======================================== */

.article-list {
        display: grid;
    grid-template-columns: 50% minmax(0, 1fr);
    width: 100%;
    padding: 2% 0;
    gap: 28px;
}

/* ========================================
   ARTICLE ITEM
======================================== */

.article-item {

    gap: 30px;
    align-items: center;
    padding: 3%;
    border: 1px solid #eee9df;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(35, 29, 18, 0.04);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(35, 29, 18, 0.09);
    border-color: var(--secondary);
}

/* ========================================
   ARTICLE IMAGE
======================================== */
.article-item-img {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
}

.article-item-img:hover .article-item-date{
   background-color: #fff7e1;
}

.article-item-img a {
    display: block;
    width: 100%;
    height: 100%;
}
/* 
.article-item-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
} */

.article-item-date {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background-color: var(--primary);
    color: var(--secondary);
    text-align: center;
    padding: 5px 12px;
    border-radius: 6px;
    transition: .5s;
}

.article-item-date svg{
    width: 12px;
    color: var(--accent);
}
.article-item-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-item:hover .article-item-img img {
    /* transform: scale(1.06); */
}

/* ========================================
   ARTICLE CONTENT
======================================== */

.article-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 3%;
    text-decoration: none;
}

/* ========================================
   ARTICLE TITLE
======================================== */

.article-content h3 {
    margin-bottom: .5%;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.3px;
    color: var(--text);
}

.article-content  a {
    color: #29271f;
    text-decoration: none;

    transition: color 0.25s ease;
}

.article-content h3 a:hover {
    color: #b17d00;
}

/* ========================================
   ARTICLE EXCERPT
======================================== */

.article-content p {
    color: var(--muted-text);
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: break-word;
}

/* ========================================
   EMPTY ARCHIVE STATE
======================================== */

.no-archive {
    padding: 45px 25px;
    margin: 0;
    background: #ffffff;
    border: 1px dashed #d8cdb7;
    border-radius: 10px;
    color: #777166;
    font-size: 16px;
    text-align: center;
    line-height: 1.8;
}

/* ========================================
   TABLET RESPONSIVENESS
======================================== */


@media (max-width: 900px) {

    .article-list {
        gap: 22px;

    }

    .article-item {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 22px;
        padding: 18px;
    }

    .article-item-img {
        height: 200px;
    }

    .article-content h3 {
        font-size: 22px;
    }

    .article-content p {
        font-size: 14px;
        line-height: 1.75;
    }
}


@media (max-width: 600px) {

/* Page title */

.page-header{
           gap: 20px; 
           width: 100%;
}

.page-header h1 {
    font-size: clamp(30px, 4vw, 42px);
}


/* ========================================
   ARTICLE ARCHIVE
======================================== */

.article-list {
        grid-template-columns: 1fr;
    width: 100%;
    padding: 2% 0;
    gap: 28px;
}

/* ========================================
   ARTICLE ITEM
======================================== */

.article-item {
    gap: 25px;
    padding: 2%;
}

    .search-bar {
        width: 100%;
        max-width: 500px;
        height: 40;
     padding: 1%;
    }

    

    .article-item-img {
        height: 250px;
    }

    .article-content h3 {
        font-size: 20px;
    }

    .article-content p {
        font-size: 14px;
        padding-bottom: 5%;
    }

    .no-archive {
        padding: 30px 18px;
        font-size: 14px;
    }
}

/* ========================================
   SMALL MOBILE SCREENS
======================================== */

@media (max-width: 380px) {
    .article-item {
        padding: 10px;
    }

    .article-item-img {
        height: 180px;
    }

    .article-content h3 {
        font-size: 19px;
    }
}

/* ========================================
   ACCESSIBILITY
======================================== */

.article-content h3 a:focus-visible,
.article-item-img a:focus-visible {
    outline: 2px solid #cf9400;
    outline-offset: 4px;
}


.archive-hero {
    padding: 100px 7%;
    background: var(--primary);
}

.archive-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.archive-label {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.archive-hero h1 {
    margin: 15px 0;
    color: var(--text);
    font-size: clamp(42px, 6vw, 70px);
}

.archive-hero p {
    max-width: 650px;
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.8;
}


/* =========================================
   ARCHIVE SECTION
========================================= */

.archive-section {
    padding: 70px 0;
    background: #fff;
}

.archive-filter {
    padding-bottom: 40px;
    border-bottom: 1px solid #e4ded2;
}

.archive-filter h2 {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 24px;
}

.archive-years {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.archive-years a {
    padding: 10px 18px;
    border: 1px solid #e4ded2;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: .3s ease;
}

.archive-years a:hover,
.archive-years a.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}


/* =========================================
   ARCHIVE HEADING
========================================= */

.archive-heading {
    margin: 50px 0 25px;
}

.archive-heading h2 {
    color: var(--text);
    font-size: 30px;
}


/* =========================================
   ARCHIVE LIST
========================================= */

.archive-list {
    display: flex;
    flex-direction: column;
}

.archive-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #e4ded2;
}

.archive-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 80px;
    height: 90px;

    background: var(--primary);
}

.archive-date span {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.archive-date strong {
    color: var(--text);
    font-size: 28px;
}

.archive-date small {
    color: var(--muted-text);
    font-size: 11px;
}

.archive-content h3 {
    margin: 0 0 10px;
}

.archive-content h3 a {
    color: var(--text);
    text-decoration: none;
    font-size: 23px;
}

.archive-content h3 a:hover {
    color: var(--secondary);
}

.archive-content p {
    max-width: 750px;
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

.archive-read {
    color: var(--secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.archive-read:hover {
    color: var(--accent);
}

.no-archive {
    padding: 40px 0;
    color: var(--muted-text);
}




/* =========================
   RESPONSIVE
========================= */

@media (max-width: 850px) {

    .hero-sector {
        padding: 50px 5%;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 350px;
    }

    .hero-content {
        padding: 40px 30px;
    }

}

@media (max-width: 600px) {

    .archive-hero {
        padding: 70px 5%;
    }

    .archive-container {
        width: 90%;
    }

    .archive-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .archive-date {
        width: 70px;
        height: 80px;
    }

}

.page-heading p {
    color: var(--text-muted, #6e6b64);
    line-height: 1.7;
    max-width: 650px;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    border: 1px solid var(--border, #e7ece8);
    border-radius: 14px;
}

.empty-state p {
    color: var(--text-muted, #6e6b64);
}

.pagination a.active {
    background: var(--secondary, #cf9400);
    color: #fff;
}