/* ============================================================
   ZIKZAKZOE
   MAIN STYLESHEET
============================================================ */


/* ============================================================
   RESET
============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #f7f6f2;
    color: #111111;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}


/* ============================================================
   TOP BAR
============================================================ */

.top-bar {
    background: #111111;
    color: #ffffff;
}

.top-bar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    letter-spacing: 0.03em;
}

.top-bar-label {
    font-weight: 800;
    font-size: 10px;
    background: #ffffff;
    color: #111111;
    padding: 4px 8px;
    letter-spacing: 0.08em;
}

.top-bar-inner a {
    opacity: 0.92;
    transition: opacity 0.2s ease;
}

.top-bar-inner a:hover {
    opacity: 1;
}

.top-bar-arrow {
    font-size: 15px;
}


/* ============================================================
   HEADER
============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(247, 246, 242, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #dfded8;
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: #111111;
    color: #ffffff;
    font-family: "Playfair Display", serif;
    font-weight: 800;
    font-size: 22px;
    line-height: 1;
}

.brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.nav-link {
    position: relative;
    font-size: 13px;
    font-weight: 600;
    color: #555555;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    background: #111111;
    transition: right 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #111111;
}

.nav-link:hover::after,
.nav-link.active::after {
    right: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search {
    width: 40px;
    height: 40px;
    border: 1px solid #d8d7d1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.header-search:hover {
    background: #111111;
    color: #ffffff;
}

.header-search span {
    font-size: 24px;
    line-height: 1;
    transform: translateY(-2px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #d8d7d1;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    background: #111111;
    transition: transform 0.25s ease;
}


/* ============================================================
   MOBILE NAV
============================================================ */

.mobile-nav {
    display: none;
    background: #f7f6f2;
    border-top: 1px solid #dfded8;
}

.mobile-nav-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 20px 0 25px;
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    padding: 13px 0;
    border-bottom: 1px solid #dfded8;
    font-weight: 600;
}


/* ============================================================
   HERO
============================================================ */

.hero-section {
    padding: 52px 0 36px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.8fr);
    gap: 26px;
}

.hero-main {
    min-width: 0;
}

.hero-image-link {
    display: block;
    overflow: hidden;
}

.hero-image {
    position: relative;
    height: 510px;
    overflow: hidden;
    background: #ddd;
}

.hero-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.65, 0.25, 1);
}

.hero-main:hover .hero-image img {
    transform: scale(1.035);
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.02) 55%
        );
}

.hero-category {
    position: absolute;
    left: 22px;
    bottom: 22px;
    background: #ffffff;
    color: #111111;
    padding: 7px 11px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-content {
    padding: 22px 0 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #707070;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.meta-dot {
    color: #b1b1b1;
}

.hero-title {
    max-width: 860px;
    margin-top: 10px;
    font-family: "Playfair Display", serif;
    font-size: clamp(38px, 5.2vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 700;
}

.hero-excerpt {
    max-width: 700px;
    margin-top: 18px;
    color: #626262;
    font-size: 16px;
}

.read-more-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 23px;
    background: #111111;
    color: #ffffff;
    padding: 13px 18px;
    font-size: 12px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.read-more-button:hover {
    transform: translateY(-2px);
    background: #2d2d2d;
}


/* ============================================================
   HERO SIDE STORIES
============================================================ */

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.side-story {
    border-bottom: 1px solid #dad9d4;
    padding-bottom: 23px;
}

.side-story:last-child {
    border-bottom: 0;
}

.side-story > a {
    display: block;
}

.side-story-image {
    height: 205px;
    overflow: hidden;
    background: #dddddd;
}

.side-story-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.side-story:hover .side-story-image img {
    transform: scale(1.04);
}

.side-story-content {
    padding-top: 15px;
}

.article-category {
    font-size: 10px;
    color: #777777;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.side-story h2 {
    margin-top: 6px;
    font-family: "Playfair Display", serif;
    font-size: 25px;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.article-time {
    display: inline-block;
    margin-top: 13px;
    color: #888888;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
}


/* ============================================================
   ADVERTISEMENT
============================================================ */

.ad-section {
    padding: 18px 0 42px;
}

.ad-placeholder {
    min-height: 100px;
    display: grid;
    place-items: center;
    border-top: 1px solid #dddcd6;
    border-bottom: 1px solid #dddcd6;
    color: #a3a29d;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
}


/* ============================================================
   SECTION HEADING
============================================================ */

.content-section {
    padding: 38px 0 86px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 26px;
}

.section-kicker {
    display: block;
    margin-bottom: 7px;
    color: #8b8a84;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.section-heading h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.section-link {
    color: #6c6c6c;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.section-link:hover {
    color: #111111;
}


/* ============================================================
   ARTICLE GRID
============================================================ */

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    min-width: 0;
}

.article-card-image {
    height: 230px;
    overflow: hidden;
    background: #dddddd;
}

.article-card-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.045);
}

.article-card-content {
    padding-top: 14px;
}

.article-card-category {
    font-size: 9px;
    color: #85847e;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.article-card h3 {
    margin-top: 7px;
    font-family: "Playfair Display", serif;
    font-size: 25px;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.article-card-excerpt {
    margin-top: 8px;
    color: #6f6f6f;
    font-size: 13px;
    line-height: 1.55;
}

.article-card-meta {
    display: flex;
    gap: 9px;
    margin-top: 12px;
    color: #979797;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
}


/* ============================================================
   FEATURED STRIP
============================================================ */

.featured-strip {
    padding: 0 0 80px;
}

.featured-strip-inner {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    background: #111111;
    color: #ffffff;
}

.featured-strip-content {
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-strip-content .section-kicker {
    color: #a9a9a9;
}

.featured-strip-content h2 {
    max-width: 570px;
    font-family: "Playfair Display", serif;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.featured-strip-content p {
    max-width: 500px;
    margin-top: 16px;
    color: #b7b7b7;
}

.light-button {
    align-self: flex-start;
    margin-top: 25px;
    padding: 12px 17px;
    border: 1px solid #656565;
    font-size: 11px;
    font-weight: 700;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.light-button:hover {
    background: #ffffff;
    color: #111111;
}

.featured-strip-image {
    min-height: 450px;
}

.featured-strip-image img {
    height: 100%;
    object-fit: cover;
}


/* ============================================================
   LATEST SECTION
============================================================ */

.latest-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
    gap: 55px;
}

.latest-list {
    display: flex;
    flex-direction: column;
}

.latest-item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #deddd8;
}

.latest-item:first-child {
    padding-top: 0;
}

.latest-item-image {
    height: 145px;
    overflow: hidden;
    background: #ddd;
}

.latest-item-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.latest-item:hover .latest-item-image img {
    transform: scale(1.045);
}

.latest-item-category {
    color: #85847e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.latest-item h3 {
    margin-top: 6px;
    font-family: "Playfair Display", serif;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.latest-item p {
    margin-top: 8px;
    color: #707070;
    font-size: 13px;
}

.latest-item-meta {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    color: #949494;
    font-size: 9px;
    font-weight: 700;
}


/* ============================================================
   SIDEBAR
============================================================ */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sidebar-ad {
    min-height: 240px;
    display: grid;
    place-items: center;
    background: #efeee9;
    color: #aaa9a3;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.newsletter-card {
    padding: 27px;
    background: #e9e7df;
}

.newsletter-kicker {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.newsletter-card h3 {
    margin-top: 8px;
    font-family: "Playfair Display", serif;
    font-size: 31px;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.newsletter-card p {
    margin-top: 11px;
    color: #696969;
    font-size: 13px;
}

.newsletter-form {
    margin-top: 18px;
}

.newsletter-form input {
    width: 100%;
    height: 45px;
    padding: 0 13px;
    border: 1px solid #c9c7bf;
    background: #f7f6f2;
    outline: none;
}

.newsletter-form input:focus {
    border-color: #111111;
}

.newsletter-form button {
    width: 100%;
    height: 45px;
    margin-top: 8px;
    border: 0;
    background: #111111;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.newsletter-card small {
    display: block;
    margin-top: 9px;
    color: #818181;
    font-size: 10px;
}

.popular-card {
    padding-top: 10px;
}

.sidebar-heading {
    padding-bottom: 12px;
    border-bottom: 2px solid #111111;
}

.sidebar-heading span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.popular-list {
    display: flex;
    flex-direction: column;
}

.popular-item {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 10px;
    padding: 17px 0;
    border-bottom: 1px solid #deddd8;
}

.popular-number {
    color: #9b9a94;
    font-family: "Playfair Display", serif;
    font-size: 19px;
}

.popular-title {
    font-family: "Playfair Display", serif;
    font-size: 17px;
    line-height: 1.15;
}


/* ============================================================
   CATEGORIES
============================================================ */

.category-section {
    padding: 0 0 92px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.category-card {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: end;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    transition: transform 0.6s ease;
}

.category-card:hover::before {
    transform: scale(1.04);
}

.category-entertainment {
    background-image:
        url("https://images.unsplash.com/photo-1485846234645-a62644f84728?auto=format&fit=crop&w=900&q=85");
}

.category-lifestyle {
    background-image:
        url("https://images.unsplash.com/photo-1494438639946-1ebd1d20bf85?auto=format&fit=crop&w=900&q=85");
}

.category-technology {
    background-image:
        url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=900&q=85");
}

.category-trending {
    background-image:
        url("https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=900&q=85");
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.75),
            rgba(0,0,0,0.05)
        );
}

.category-card-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 25px;
}

.category-card-content span {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.category-card h3 {
    margin-top: 5px;
    font-family: "Playfair Display", serif;
    font-size: 31px;
    line-height: 1;
}


/* ============================================================
   FOOTER
============================================================ */

.site-footer {
    background: #111111;
    color: #ffffff;
    padding: 62px 0 25px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 58px;
}

.footer-brand p {
    max-width: 300px;
    margin-top: 16px;
    color: #9d9d9d;
    font-size: 13px;
}

.footer-logo .brand-mark {
    background: #ffffff;
    color: #111111;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-column h4 {
    margin-bottom: 7px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-column a {
    width: fit-content;
    color: #9d9d9d;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #777777;
    font-size: 11px;
}


/* ============================================================
   UTILITY
============================================================ */

.hidden {
    display: none !important;
}

.no-results {
    padding: 50px 0;
    text-align: center;
    color: #777777;
}

.no-results h3 {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    color: #111111;
}

.no-results p {
    margin-top: 7px;
}


/* =========================================================
   ARTICLE CARD LAYOUT FIX
   ========================================================= */

.article-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
}

.article-card-image {
    width: 100% !important;
    height: 320px !important;
    overflow: hidden !important;
}

.article-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.article-card-content {
    width: 100% !important;
    padding: 22px 0 0 !important;
}

.article-card-content h2,
.article-card-content h3 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 14px !important;
    line-height: 1.05 !important;
}

.article-card-content p {
    width: 100% !important;
    max-width: 100% !important;
    line-height: 1.6 !important;
}

.article-card-meta {
    margin-top: 20px !important;
}


/* =========================================================
   CATEGORY / STORY GRID
   ========================================================= */

.articles-grid,
.article-grid,
.stories-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 55px 30px !important;
    width: 100% !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .articles-grid,
    .article-grid,
    .stories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .article-card-image {
        height: 260px !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .articles-grid,
    .article-grid,
    .stories-grid {
        grid-template-columns: 1fr !important;
        gap: 45px !important;
    }

    .article-card-image {
        height: 240px !important;
    }

}