@font-face {
    font-family: head;
    src: url(/assets/fonts/geomanist/Geomanist-Regular.otf);
}

@font-face {
    font-family: para;
    src: url(/assets/fonts/urbanist/Urbanist-VariableFont_wght.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
}

/* Page Transition Overlay */
.page-transition {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    transform: translateY(0);
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

.page-transition.is-hidden {
    transform: translateY(-100%);
}

/* Transition animation */
.page-transition.active {
    animation: slideUp 0.9s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.page-transition.reveal {
    animation: slideDown 0.9s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100%);
    }
}

/* Optional subtle grain for luxury feel */
.page-transition::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}


.search-bar-container {
    display: flex;
    align-items: center;
}

.search-bar-wrapper {
    display: flex;
    align-items: center;
    background: #f4f4f4;
    border-radius: 30px;
    padding: 10px 16px;
    gap: 10px;
    width: 260px;
    transition: .3s;
    font-family: para;
}

.search-bar-wrapper:focus-within {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.search-bar-icon {
    font-size: 18px;
    color: #666;
}

.search-bar-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    font-family: para;
}

/* main-header-section-start */
.main-header-container {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

/* --- Top Nav Layout --- */
.main-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 80px;
}

/* Equal width wrappers to keep the logo perfectly centered */
.main-header-side-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

.right-side {
    justify-content: flex-end;
}

.desktop-links {
    display: flex;
    gap: 30px;
}

/* --- Logo --- */
.main-header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.header-logo-img {
    height: 45px;
    /* Adjust based on your logo proportions */
    width: auto;
}

/* --- Typography --- */
.main-header-link {
    font-family: 'para', sans-serif;
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 1.5px;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- Mobile Icons (Search + Hamburger) --- */
.mobile-icons-container {
    display: none;
    /* Hidden on Desktop */
    align-items: center;
    gap: 15px;
    /* Space between search and hamburger */
}

.icon-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 26px;
    color: #000000;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Sub Category Bar --- */
.main-sub-cat-bar-container {
    width: 100%;
    background-color: #ffffff;
    padding: 12px 0;
    border-top: 1px solid #dddddd;
}

.main-sub-cat-bar-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.main-sub-cat-bar-link {
    font-family: 'para', sans-serif;
    text-decoration: none;
    color: #000000;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    transition: all 0.4s ease;
    padding: 5px;
}

.main-sub-cat-bar-link:hover {
    background-color: #000;
    color: #fff;
}

/* --- Mobile Overlay --- */
.main-header-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
}

.main-header-overlay-content {
    text-align: center;
}

.overlay-section {
    margin-bottom: 40px;
}

.overlay-label {
    font-family: 'para', sans-serif;
    font-size: 25px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888888;
    margin-bottom: 15px;
}

.mobile-nav-link {
    font-family: 'para', sans-serif;
    display: block;
    font-size: 15px;
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.main-header-close-trigger {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    font-size: 32px;
    color: #000000;
    cursor: pointer;
}

/* --- RESPONSIVE FIXES (MOBILE) --- */
@media (max-width: 1024px) {
    .desktop-links {
        display: none;
        /* Hide standard text links */
    }

    .mobile-icons-container {
        display: flex;
        /* Show Search & Hamburger */
    }

    .main-header-nav {
        padding: 0 20px;
        width: 100%;
    }

    /* Sub-categories side-scroll */
    .main-sub-cat-bar-container {
        overflow-x: auto;
        white-space: nowrap;
        padding: 12px 20px;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
    }

    .main-sub-cat-bar-list {
        justify-content: flex-start;
        gap: 30px;
        width: fit-content;
    }


    .main-header-side-wrapper {
        flex: 0;
        display: none;
    }

    .right-side {
        display: block;
    }

    .header-logo-img {
        height: 30px;
    }

    .main-sub-cat-bar-link {
        font-size: 13px;
        padding: 0;
    }

    .search-bar-container {
        display: none;
    }
}


/* sub-cat-navbar-end    */


/* ---------------------------------------------------
           BASE MAGAZINE CONTAINER
        --------------------------------------------------- */
.common-magazine-details-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 200px 24px;
    /* Reduced top padding slightly for better web viewing */
    font-family: 'Georgia', serif;
    color: #333333;
    line-height: 1.8;
}

/* ---------------------------------------------------
           HEADER & META
        --------------------------------------------------- */
.common-magazine-details-header {
    text-align: center;
    margin-bottom: 60px;
}

.common-magazine-details-meta {
    font-family: para, sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    color: #777777;
    margin-bottom: 20px;
    font-weight: 600;
}

.common-magazine-details-type {
    color: #0056b3;
}

.common-magazine-details-divider {
    margin: 0 12px;
    color: #cccccc;
}

.common-magazine-details-title {
    font-family: head, sans-serif;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    color: #111111;
    margin-bottom: 25px;
}

.common-magazine-details-lead {
    font-family: para, sans-serif;
    font-size: 1.3rem;
    color: #555555;
    font-style: italic;
    max-width: 85%;
    margin: 0 auto;
}

/* ---------------------------------------------------
           HERO IMAGE
        --------------------------------------------------- */
.common-magazine-details-hero-image-wrapper {
    margin: 0 0 60px 0;
    width: 100%;
}

.common-magazine-details-hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    max-height: 70vh;
}

.common-magazine-details-image-caption {
    font-family: para, sans-serif;
    font-size: 0.85rem;
    color: #888;
    text-align: right;
    margin-top: 12px;
}

/* ---------------------------------------------------
           BODY TYPOGRAPHY
        --------------------------------------------------- */
.common-magazine-details-body {
    margin-bottom: 80px;
}

.common-magazine-details-subheading {
    font-family: head, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 60px 0 25px 0;
    color: #1a1a1a;
}

.common-magazine-details-paragraph {
    margin-bottom: 28px;
    font-size: 1.2rem;
    font-family: para, sans-serif;
    font-weight: 500;
    text-align: justify;
}

/* ---------------------------------------------------
           DYNAMIC "STRESS-FREE" IMAGE GALLERY
        --------------------------------------------------- */
.common-magazine-details-dynamic-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 24px;
    margin: 50px 0;
}

.common-magazine-details-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    aspect-ratio: 16 / 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.common-magazine-details-gallery-image:hover {
    transform: scale(1.02);
}

/* ---------------------------------------------------
           FOOTER & BACKLINKS
        --------------------------------------------------- */
.common-magazine-details-footer {
    margin-top: 80px;
    padding: 50px 40px;
    background-color: #f9f9f9;
    border-radius: 16px;
    font-family: para, sans-serif;
}

.common-magazine-details-backlinks-title {
    font-family: head, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #111111;
    text-align: center;
}

.common-magazine-details-backlinks-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.common-magazine-details-backlink {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

.common-magazine-details-backlink i {
    font-size: 1.4rem;
    color: #0056b3;
}

.common-magazine-details-backlink:hover {
    color: #0056b3;
}

@media (max-width: 768px) {
    .common-magazine-details-container {
        padding: 160px 20px 60px 20px;
    }

    .common-magazine-details-title {
        font-size: 2.2rem;
    }

    .common-magazine-details-footer {
        padding: 30px 20px;
    }
}


.common-magazine-details-expandable {
    cursor: zoom-in;
    transition: 0.3s ease;
}

.common-magazine-details-expandable:hover {
    filter: brightness(0.8);
}

/* Lightbox Background */
.common-magazine-details-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    backdrop-filter: blur(5px);
}

/* Lightbox Content (Image) */
.common-magazine-details-lightbox-content {
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    max-width: 1000px;
    height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    animation: zoom 0.3s ease-in-out;
}

@keyframes zoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Close Button */
.common-magazine-details-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.common-magazine-details-lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-family: para, sans-serif;
}

/* main-footer-section-start */

.main-footer-section {
    background-color: #000;
    color: #fff;
    font-family: 'para', sans-serif;
    padding: 100px 0 20px 0;
    overflow: hidden;
}

.main-footer-common-section {
    height: 75vh;
}

.main-footer-container {
    max-width: 95%;
    margin: 0 auto;
}

/* --- Top Grid --- */
.main-footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Asymmetric balance */
    gap: 100px;
    align-items: start;
    margin-bottom: 80px;
}

/* Left Col: Huge Links */
.main-footer-nav-col {
    display: flex;
    flex-direction: column;
}

.main-footer-huge-link {
    font-size: clamp(3rem, 8vw, 4.5rem);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0.3;
    /* Trendy dim state */
}

.main-footer-huge-link:hover {
    opacity: 1;
    transform: translateX(20px);
}

/* Right Col: Info */
.main-footer-info-col {
    padding-top: 20px;
}

.main-footer-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #666;
    margin-bottom: 15px;
}

.main-footer-form {
    display: flex;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 60px;
}

.main-footer-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'para', sans-serif;
    font-size: 14px;
    width: 100%;
    outline: none;
}

.main-footer-submit {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.main-footer-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.main-footer-small-link {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.main-footer-small-link:hover {
    color: #666;
}

/* --- Bottom Anchor --- */
.main-footer-line {
    width: 100%;
    height: 1px;
    background: #222;
    margin-bottom: 30px;
}

.main-footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.main-footer-copy {
    font-size: 18px;
    color: #dfdfdf;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.main-footer-logo-wrap {
    width: 60%;
    /* Occupies most of the bottom */
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.main-footer-mega-logo {
    width: 70%;
    height: auto;
    display: block;
}

.main-footer-logo-wrap h1 {
    font-size: 100px;
    font-weight: 400;
    font-family: 'Courier New', Courier, monospace;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .main-footer-top-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .main-footer-huge-link {
        font-size: 4rem;
    }

    .main-footer-logo-wrap {
        width: 100%;
    }

    .main-footer-bottom-flex {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .main-footer-logo-wrap h1 {
        font-size: 45px;
        text-align: center;
    }
}

/* main-footer-section-end   */


/* Container to handle mobile scrolling */
.common-magazine-details-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 35px 0;
    -webkit-overflow-scrolling: touch;
}

/* Base table styling */
.common-magazine-details-table {
    width: 100%;
    border-collapse: collapse;
    font-family: para, sans-serif;
    background-color: #ffffff;
    min-width: 500px;
    /* Ensures text doesn't get too squashed on tiny screens */
}

/* Header styling */
.common-magazine-details-table thead tr {
    background-color: #f9f9f9;
    border-bottom: 2px solid #c5a059;
    /* Your primary gold/accent color */
}

.common-magazine-details-table th {
    padding: 18px 15px;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    font-weight: 600;
}

/* Body cell styling */
.common-magazine-details-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #eeeeee;
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.6;
    vertical-align: top;
}

/* Bold labels in the first column */
.common-magazine-details-table td strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Subtle hover effect for rows */
.common-magazine-details-table tbody tr:hover {
    background-color: rgba(197, 160, 89, 0.03);
    /* Very light gold tint */
}


.common-magazine-details-quote {
    background-color: #f5f5f5;
    padding: 20px;
    font-family: para;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 30px;
}


/* --- Recipe Section Container --- */
.common-magazine-recipe-section {
    background-color: #f9f7f2;
    /* Subtle parchment-like background */
    border-left: 4px solid #d4a373;
    /* Culinary gold/wheat accent */
    padding: 2.5rem;
    margin: 3rem 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-family: para;
}

/* --- Recipe Titles & Descriptions --- */
.common-magazine-recipe-title {
    font-family: para, serif;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: para;
}

.common-magazine-recipe-description {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
    font-family: para;
}

/* --- Quick Info (Time/Servings) --- */
.common-magazine-recipe-section p strong {
    color: #d4a373;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: para;
}

/* --- Ingredients List --- */
.common-magazine-recipe-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.common-magazine-recipe-list li {
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    color: #333;
    font-family: para;
}

.common-magazine-recipe-list li::before {
    content: "•";
    color: #d4a373;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-family: para;
}

.common-magazine-recipe-sub-ingredients em {
    display: block;
    margin-top: 1.5rem;
    color: #1a1a1a;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-family: para;
}

/* --- Preparation Steps --- */
.common-magazine-recipe-steps {
    counter-reset: recipe-counter;
    padding: 0;
    margin-top: 1.5rem;
}

.common-magazine-recipe-steps li {
    counter-increment: recipe-counter;
    list-style: none;
    margin-bottom: 1.25rem;
    padding-left: 3.5rem;
    position: relative;
    line-height: 1.7;
    font-family: para;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.common-magazine-recipe-steps li::before {
    content: counter(recipe-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.6rem;
    font-family: para;
}

/* --- Decorative Divider --- */
.common-magazine-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(212, 163, 115, 0.75), rgba(0, 0, 0, 0));
    margin: 4rem 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 600px) {
    .common-magazine-recipe-section {
        padding: 1.5rem;
    }

    .common-magazine-recipe-list {
        grid-template-columns: 1fr;
    }
}





@media(max-width: 768px) {
    .common-magazine-details-meta {
        font-size: 0.7rem;
    }

    .common-magazine-details-lead {
        font-size: 1rem;
    }

    .common-magazine-details-paragraph {
        font-size: 1rem;
    }

    .common-magazine-details-subheading {
        font-size: 1.3rem;
    }

    .common-magazine-details-image-caption{
        text-align: left;
    }
}