/* Main CSS for Lumina Theme */

/* Layout */
/* Cuisine Style Header */
.cuisine-header {
    background: var(--color-white);
    padding: 0;
    border-bottom: none;
}

.header-top {
    padding: 40px 0 20px;
}

.site-branding {
    text-align: center !important;
    display: block;
    width: 100%;
}

/* 🎨 CENTER LOGO IMAGE */
.custom-logo-link {
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}

.custom-logo {
    display: block !important;
    margin: 0 auto !important;
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

.site-title {
    font-family: 'Italianno', cursive;
    font-size: 80px;
    line-height: 1;
    margin: 0;
    font-weight: 400;
}

.site-description {
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
    margin-top: 10px;
}

.header-bottom {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-md);
}

.main-navigation li {
    position: relative;
    list-style: none;
}

.main-navigation a {
    color: var(--color-text);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.1em;
    font-weight: 600;
    padding: 15px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--color-accent);
}

/* Submenu Styling */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    padding: 15px 0;
    margin: 0;
    list-style: none;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1001;
}

.main-navigation ul li:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    padding: 10px 25px;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #444;
    text-align: center;
    border: none;
    font-weight: 500;
}

.main-navigation ul ul a:hover {
    background: #fcfcfc;
    color: var(--color-accent);
}

/* Dropdown Indicators */
.menu-item-has-children>a::after {
    content: '\2304';
    margin-left: 5px;
    font-size: 12px;
    vertical-align: middle;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) var(--spacing-sm);
}

.no-sidebar .content-grid {
    grid-template-columns: 1fr;
    max-width: var(--container-width-narrow);
}

.sidebar-left .content-grid {
    grid-template-columns: 300px 1fr;
}

.sidebar-left .main-content {
    grid-column: 2;
}

.sidebar-left .sidebar {
    grid-column: 1;
    grid-row: 1;
}

/* Pinterest Masonry Grid */
.site-main .container>.row {
    display: block !important;
    /* Masonry needs block to calculate positions */
    margin: 0 -20px;
}

.post-card {
    width: calc(33.333% - 40px);
    /* 3 columns by default */
    margin: 0 20px 40px;
    background: var(--color-white);
    border: none;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-block;
    /* Essential for Masonry calculation */
    vertical-align: top;
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .post-card {
        width: calc(50% - 40px);
    }
}

@media (max-width: 600px) {
    .content-grid {
        padding: 20px 0 !important;
    }

    .post-card {
        width: calc(100% - 40px);
    }
}

.post-card:hover {
    transform: translateY(-8px);
}

.entry-header h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 15px;
    margin-bottom: 10px;
}

.entry-header h2 a {
    color: #000;
    text-decoration: none;
}

.entry-meta {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 12px;
    font-weight: 700;
}

.entry-summary {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.post-thumbnail img {
    border-radius: 4px;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: auto;
    /* Required for true Pinterest style with uneven heights */
}

.more-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #000;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 2px;
    width: fit-content;
}

/* Single Post Title - Ultra Modern */
.entry-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a2e;
    margin: 0 0 25px;
    text-align: center;
    letter-spacing: -0.5px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .entry-title {
        font-size: 1.75rem;
        letter-spacing: -0.3px;
        padding: 0 15px;
    }

    /* Center meta info on mobile */
    .entry-meta {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .meta-info-group {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .meta-actions-group {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 1.5rem;
        line-height: 1.3;
        padding: 0 10px;
    }

    /* Smaller action buttons on mobile */
    .meta-action-btn {
        width: 36px;
        height: 36px;
    }

    .meta-action-btn svg {
        width: 14px;
        height: 14px;
    }
}


.entry-meta {
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.meta-item a {
    color: #222;
    font-weight: 700;
}

.meta-info-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.meta-divider {
    color: #ccc;
    font-size: 1.2rem;
}

.post-thumbnail {
    margin-bottom: var(--spacing-md);
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    display: block;
    width: 100%;
    transition: var(--transition-smooth);
}

.card:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Pagination */
.pagination-container {
    margin-top: var(--spacing-lg);
}

.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 0.5rem;
    justify-content: center;
}

.pagination-list a,
.pagination-list li.active {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-weight: 600;
}

.pagination-list a:hover,
.pagination-list li.active a {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.pagination-list li.active {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

/* Did You Enjoy This Recipe Section */
.recipe-enjoy-section {
    background: #1a1a2e;
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    margin: 60px 0 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.enjoy-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 15px;
    line-height: 1.2;
}

.enjoy-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 35px;
}

.enjoy-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.enjoy-save-btn,
.enjoy-pin-btn {
    background: white;
    color: #1a1a2e;
    border: none;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.enjoy-save-btn:hover {
    background: #ff385c;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 56, 92, 0.4);
}

.enjoy-pin-btn {
    background: #E60023;
    color: white;
}

.enjoy-pin-btn:hover {
    background: #c50019;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 0, 35, 0.4);
}

.enjoy-save-btn .fav-count,
.enjoy-pin-btn .pin-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .enjoy-title {
        font-size: 2rem;
    }

    .enjoy-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .enjoy-save-btn,
    .enjoy-pin-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.portfolio-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.portfolio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--color-white);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-base);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-card:hover .portfolio-thumbnail img {
    transform: scale(1.1);
}

/* About Me Section - Ultra Premium Chef Design */
.about-me-section {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    padding: 120px 0;
    margin: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.about-me-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.about-me-wrapper {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 80px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 70px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.about-me-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #c9a961, #f4e5c3, #c9a961);
    border-radius: 24px;
    z-index: -1;
    opacity: 0.3;
}

.about-me-content {
    max-width: 650px;
}

.about-me-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, #c9a961);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 25px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(201, 169, 97, 0.3);
}

.about-me-text {
    font-size: 1.25rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 40px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.about-me-btn {
    display: inline-block;
    background: linear-gradient(135deg, #c9a961, #d4b574);
    color: #1a1a2e;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 2px;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 8px 25px rgba(201, 169, 97, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.about-me-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.about-me-btn:hover::before {
    left: 100%;
}

.about-me-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 12px 35px rgba(201, 169, 97, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.about-me-image {
    position: relative;
}

.about-me-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.2), transparent);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.about-me-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease;
    position: relative;
    z-index: 1;
}

.about-me-image:hover img {
    transform: scale(1.02) translateY(-5px);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(201, 169, 97, 0.3);
}

/* Decorative Elements */
.about-me-image::after {
    content: '⭐';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 40px;
    z-index: 2;
    animation: rotate 10s linear infinite;
    filter: drop-shadow(0 0 10px rgba(201, 169, 97, 0.8));
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 992px) {
    .about-me-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 50px;
    }

    .about-me-image {
        order: -1;
        max-width: 450px;
        margin: 0 auto;
    }

    .about-me-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about-me-section {
        padding: 80px 0;
    }

    .about-me-wrapper {
        padding: 40px 25px;
    }

    .about-me-title {
        font-size: 2.5rem;
    }

    .about-me-text {
        font-size: 1.1rem;
    }
}

/* Footer */
.site-footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-lg) 0 0;
    margin-top: var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.widget-title {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) 0;
}

.site-info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-navigation ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: var(--spacing-md);
}

.footer-navigation a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-navigation a:hover {
    color: var(--color-white);
}

/* Buttons */
.button,
button,
input[type="submit"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    font-family: var(--font-body);
}

.button:not(.secondary) {
    background: var(--color-accent);
    color: var(--color-white);
}

.button:not(.secondary):hover {
    background: var(--color-accent-hover);
    color: var(--color-white);
}

.button.secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.button.secondary:hover {
    background: var(--color-border);
}

/* Mobile Adjustments - Ultra Pro */
@media (max-width: 768px) {
    .site-title {
        font-size: 50px;
        /* Smaller elegant logo on mobile */
    }

    .header-top {
        padding: 30px 0 15px;
    }

    .header-bottom {
        padding: 5px 0;
    }

    .nav-container {
        position: relative;
    }

    .menu-toggle {
        display: block;
        margin: 0 auto;
        border: 1px solid #eee;
        padding: 10px 20px;
        border-radius: 30px;
        background: #fff;
        font-family: var(--font-body);
        font-size: 12px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        font-weight: 700;
        z-index: 1002;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 80px 40px;
        z-index: 1001;
        text-align: center;
        overflow-y: auto;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation ul li {
        margin-bottom: 20px;
    }

    .main-navigation ul a {
        font-size: 18px;
        padding: 10px;
    }

    .main-navigation ul ul {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        display: block;
        background: transparent;
        padding: 10px 0;
    }

    .main-navigation ul ul a {
        font-size: 14px;
        color: #888;
    }

    /* Content Grid Mobile */
    .content-grid {
        grid-template-columns: 1fr;
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .site-main .container>.row {
        margin: 0 -10px;
    }

    .post-card {
        width: calc(100% - 20px);
        margin: 0 10px 30px;
    }

    .recent-posts-pinterest-grid {
        column-count: 2;
        /* Keep 2 for Pinterest style even on small mobile */
    }

    .site-info-container {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 40px;
    }

    .recent-posts-pinterest-grid {
        column-count: 1;
    }
}

/* Recent Posts Widget - Pinterest Style */
.recent-posts-pinterest-grid {
    column-count: 2;
    column-gap: 15px;
}

.recent-post-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.recent-post-card:hover {
    transform: translateY(-5px);
}

.recent-post-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.recent-post-info {
    padding: 10px;
}

.recent-post-title {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    font-weight: 600;
}

.recent-post-title a {
    color: #000;
    text-decoration: none;
}

.recent-post-title a:hover {
    color: var(--color-accent);
}

/* Original Styles (Cleanup) */
.recent-posts-widget-list,
.widget-post-item {
    display: none;
}

/* --- DASH BY AMANDA (ELITE CUISINE) STYLES --- */

:root {
    --color-cuisine-yellow: #ffde59;
    --color-cuisine-cream: #fdf9f4;
}

.front-page-content {
    background-color: #fff;
}

/* 1. Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

.hero-item {
    position: relative;
    aspect-ratio: 1/1.2;
    overflow: hidden;
}

.hero-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.hero-item:hover img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    text-align: center;
}

.hero-overlay .category-pill {
    margin-bottom: 10px;
    display: inline-block;
}

.hero-title {
    font-size: 20px;
    margin: 0;
    font-weight: 700;
}

/* 2. Latest Recipes */
.latest-recipes-section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 40px;
    text-transform: capitalize;
}

.section-title.centered {
    text-align: center;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.latest-item {
    display: flex;
    flex-direction: column;
}

.latest-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.latest-image img {
    width: 100%;
    object-fit: cover;
}

.latest-image .category-pill {
    position: absolute;
    top: 15px;
    left: 15px;
}

.latest-title {
    font-size: 18px;
    margin: 0;
    line-height: 1.4;
}

.latest-title a {
    color: #000;
}

/* Category Pill */
.category-pill {
    background-color: var(--color-cuisine-yellow);
    color: #000;
    padding: 4px 15px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* 3. Bento Grid (Modern 2025 Editorial Style) */
.bento-section {
    background-color: #fff;
    padding: 120px 0;
}

.section-title.centered {
    font-size: 42px;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-subtitle {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 70px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 12px;
}

.bento-item {
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    /* Refined minimal rounding */
    background: #fcfcfc;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.bento-item.card-featured {
    grid-column: span 2;
}

.bento-item.card-tall {
    grid-row: span 2;
}

/* Text Cards - Professional Editorial Look */
.bento-card-text {
    background-color: #f7f5f0;
    /* Softer, more expensive paper tone */
    padding: 40px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-text-title {
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
    margin: 0;
}

.bento-text-title a {
    color: #1a1a1a;
    transition: color 0.3s;
}

.bento-item:hover .bento-text-title a {
    color: var(--color-cuisine-yellow);
}

/* Metadata Styling */
.bento-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.bento-cat-tag {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #000;
}

.bento-yield {
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 2025 Image Effects */
.bento-card-image {
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
}

.bento-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.bento-item:hover img {
    transform: scale(1.08);
}

/* Glassmorphism Dark Overlay for Featured */
.bento-item.card-featured .bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    /* 2025 Trend: Sharp blur */
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    padding: 0 40px;
    color: #fff;
    transition: height 0.3s ease;
}

.bento-item.card-featured:hover .bento-overlay {
    height: 120px;
    background: rgba(0, 0, 0, 0.8);
}

.bento-featured-title {
    font-family: var(--font-heading);
    font-size: 28px;
    margin: 0;
    font-weight: 700;
}

.bento-card-text.with-excerpt {
    justify-content: flex-start;
    padding-top: 40px;
}

/* Styling for Image Cards */
.bento-card-image {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
}

.bento-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Featured Overlay (First item) */
.bento-item.card-featured .bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    /* Dark solid overlay per image */
    padding: 20px 25px;
    color: #fff;
}

.bento-featured-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin: 0;
    line-height: 1.2;
}

/* Inner Text Card Typography */
.bento-text-title {
    font-family: var(--font-heading);
    font-size: 22px;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.bento-text-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.bento-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.bento-cat-tag {
    background: #333;
    color: #fff;
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bento-yield {
    font-size: 12px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.bento-yield::before {
    content: "🍴";
    /* Simple fork/knife icon fallback */
    font-size: 14px;
}

.bento-excerpt-large {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin-top: 20px;
}

.bento-read-more {
    display: inline-block;
    margin-top: 20px;
    font-size: 12px;
    text-transform: lowercase;
    font-style: italic;
    color: var(--color-cuisine-yellow);
    text-decoration: underline;
}

/* Subtitle for the section */
.section-subtitle {
    display: block;
    text-align: center;
    font-size: 16px;
    color: #666;
    margin: -30px 0 60px 0;
    font-style: italic;
}

/* --- Universal Responsive Optimizations --- */

/* Fluid Typography for Sections */
.section-title.centered {
    font-size: clamp(28px, 5vw, 42px);
    padding: 0 20px;
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 6vw, 45px);
    margin-bottom: 20px;
    color: #fff;
}

@media (max-width: 1024px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(220px, auto);
    }

    .bento-item.card-featured {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {

    .container,
    .entry-content,
    .entry-header,
    .related-posts-section,
    .bento-section .container {
        padding-left: 12px !important;
        padding-right: 20px !important;
    }

    /* Featured & Content Images Edge-to-Edge */
    .post-thumbnail,
    .entry-content img {
        max-width: calc(100% + 40px) !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        width: calc(100% + 40px) !important;
        border-radius: 0 !important;
    }

    .post-thumbnail img {
        border-radius: 0 !important;
        width: 100% !important;
    }

    .entry-title {
        font-size: clamp(24px, 7vw, 34px) !important;
        line-height: 1.2 !important;
        margin-top: 10px !important;
        margin-bottom: 15px !important;
        word-wrap: break-word;
    }

    .entry-meta {
        font-size: 10px !important;
        gap: 12px !important;
        margin-bottom: 25px !important;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-item {
        aspect-ratio: 1/1;
    }

    .hero-title {
        font-size: 22px !important;
    }

    /* Pinterest Style optimized for small screens */
    .latest-grid {
        display: block;
        column-count: 2;
        column-gap: 12px;
    }

    .latest-item {
        display: inline-block;
        width: 100%;
        margin-bottom: 20px;
        break-inside: avoid;
    }

    .latest-title {
        font-size: 14px;
    }

    /* Bento Grid Mobile 1-Column */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 20px;
    }

    .bento-item.card-featured,
    .bento-item.card-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-card-text {
        padding: 30px 20px;
        min-height: 200px;
    }

    .bento-featured-title,
    .bento-text-title {
        font-size: 20px;
    }
}

/* Specific small screen scaling (iPhone SE etc) */
@media (max-width: 360px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .entry-content img {
        max-width: calc(100% + 30px) !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
    }

    .latest-grid {
        column-count: 1;
        /* Drop to 1 col for very narrow screens for legibility */
    }

    .newsletter-box {
        padding: 40px 20px;
    }

    .cuisine-btn {
        padding: 12px 25px;
        font-size: 12px;
    }
}

/* 4. Category Explorer */
.category-explorer {
    padding: 60px 0;
}

.category-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cat-item:hover {
    transform: translateY(-5px);
}

.cat-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--color-cuisine-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.cat-initial {
    font-family: var(--font-heading);
    font-size: 32px;
    color: #000;
}

.cat-name {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #333;
}

/* 5. Newsletter Section */
.newsletter-section {
    padding: 100px 0;
    background-color: #fff;
}

.newsletter-box {
    background-color: #000;
    border-radius: 20px;
    padding: 80px 40px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    color: var(--color-cuisine-yellow);
    display: block;
    margin-bottom: 20px;
}



.newsletter-text {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.8;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cuisine-btn {
    background-color: var(--color-cuisine-yellow);
    border: none;
    color: #000;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.cuisine-btn:hover {
    background-color: #fff;
}

/* 6. Featured Bar */
.featured-bar {
    padding: 50px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.featured-label {
    display: block;
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 30px;
    color: #999;
}

.logo-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.4;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .logo-grid {
        flex-direction: column;
        gap: 30px;
    }

    .newsletter-title {
        font-size: 32px;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* Related Posts Pinterest Style */
.related-posts-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.related-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.related-grid-pinterest {
    column-count: 4;
    column-gap: 20px;
}

.related-post-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 25px;
    break-inside: avoid;
}

/* Responsive columns */
@media (max-width: 1200px) {
    .related-grid-pinterest {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    .related-grid-pinterest {
        column-count: 2;
    }
}

.related-thumb img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    transition: opacity 0.3s;
}

.related-thumb:hover img {
    opacity: 0.9;
}

.related-post-title {
    font-size: 16px;
    margin: 12px 0 0;
    line-height: 1.4;
}

.related-post-title a {
    color: #333;
    text-decoration: none;
}

.related-post-title a:hover {
    color: var(--color-cuisine-yellow);
}

@media (max-width: 480px) {
    .related-grid-pinterest {
        column-count: 2;
        column-gap: 15px;
    }
}

/* Infinite Scroll Loader */
.cr-loader {
    width: 30px;
    height: 30px;
    border: 3px solid #eee;
    border-top: 3px solid var(--color-cuisine-yellow);
    border-radius: 50%;
    margin: 0 auto;
    animation: cr-spin 0.8s linear infinite;
}

@keyframes cr-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Original Styles --- */
/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--color-accent);
    z-index: 1001;
    width: 0%;
    transition: width 0.1s ease;
}

/* Page Builder Template */
.page-builder-template {
    padding: 0 !important;
}

.page-builder-template .container {
    max-width: 100%;
    padding: 0;
}

/* Hide image captions in post content */
.entry-content .wp-caption-text,
.entry-content figcaption,
.entry-content .wp-element-caption {
    display: none !important;
}

/* Related Posts Full Width Section */
.related-posts-section-fullwidth {
    background: #f9f9f9;
    padding: 60px 0;
    margin-top: 20px;
    width: 100%;
    border-top: 1px solid #eee;
}

.related-posts-section-fullwidth .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 600px) {
    .related-posts-section-fullwidth {
        padding: 50px 0;
    }

    .related-posts-section-fullwidth .container {
        padding: 0 20px;
    }
}

/* Sidebar Recent Posts - Pinterest Style with Interactive Buttons */
.recent-posts-pinterest-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.recent-post-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
}

.recent-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Pinterest 3:4 Vertical Ratio */
.recent-post-thumb {
    width: 100%;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
    background: #f5f5f5;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.recent-post-card:hover .recent-post-thumb img {
    transform: scale(1.05);
}

/* Pinterest Overlay Buttons (Save, Pin, Copy) */
.recent-post-thumb .pin-actions-top,
.recent-post-thumb .pin-actions-bottom {
    position: absolute;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.recent-post-card:hover .pin-actions-top,
.recent-post-card:hover .pin-actions-bottom {
    opacity: 1;
    transform: translateY(0);
}

.recent-post-thumb .pin-actions-top {
    top: 12px;
    right: 12px;
}

.recent-post-thumb .pin-actions-bottom {
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

/* Save Button (Red Pinterest Style) */
.recent-post-thumb .pin-save-btn,
.recent-post-thumb .save-recipe-btn {
    background: #E60023;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(230, 0, 35, 0.3);
    transition: all 0.3s;
}

.recent-post-thumb .pin-save-btn:hover,
.recent-post-thumb .save-recipe-btn:hover {
    background: #ad081b;
    transform: scale(1.05);
}

/* Pin & Copy Buttons (White circles) */
.recent-post-thumb .pin-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.recent-post-thumb .pin-social-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.recent-post-thumb .pin-social-btn svg {
    width: 18px;
    height: 18px;
}

/* Title Section Below Image */
.recent-post-info {
    padding: 14px;
    background: #fff;
    position: relative;
    z-index: 2;
}

.recent-post-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.recent-post-card:hover .recent-post-title {
    color: #3b82f6;
}

/* Jump to Recipe Button - Theme Sync */
.wprm-jump-to-recipe-shortcode,
.wprm-jump-to-recipe-button,
.wprm-recipe-jump,
.jump-to-recipe,
[class*='jump-to-recipe'],
a[href*='#recipe'] {
    background: linear-gradient(135deg, #C4A86C 0%, #B89960 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 16px 40px !important;
    border-radius: 50px !important;
    font-family: 'Helvetica Neue', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 30px 0 !important;
    box-shadow: 0 8px 20px rgba(196, 168, 108, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

.wprm-jump-to-recipe-shortcode:hover,
.wprm-jump-to-recipe-button:hover,
.wprm-recipe-jump:hover,
.jump-to-recipe:hover,
[class*='jump-to-recipe']:hover,
a[href*='#recipe']:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(196, 168, 108, 0.4) !important;
    background: linear-gradient(135deg, #D4B87C 0%, #C8A970 100%) !important;
}

/* Icon style si prsent */
.wprm-jump-to-recipe-shortcode svg,
.wprm-jump-to-recipe-button svg {
    fill: #fff !important;
    width: 20px !important;
    height: 20px !important;
}

/* Mobile responsive */
@media (max-width: 600px) {

    .wprm-jump-to-recipe-shortcode,
    .wprm-jump-to-recipe-button,
    .jump-to-recipe {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 30px !important;
        font-size: 14px !important;
    }
}

/* Bento Grid Optimization for 15 Items */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    gap: 20px;
    grid-auto-flow: dense;
    /* Better packing */
}

/* Improve layout for larger grids */
@media (min-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(5, 1fr);
        /* 5 columns for 15 items */
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Bento animations - subtle entrance */


@keyframes bentoFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === AMANDA'S CHOICE - ULTRA CREATIVE DECOR === */

/* Section with artistic background */
.bento-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #fdfbf7 0%, #fff 50%, #faf8f3 100%);
}

.bento-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 168, 108, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.bento-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184, 153, 96, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }

    75% {
        transform: translate(20px, 30px) rotate(3deg);
    }
}

/* Decorative elements */
.bento-section .section-title.centered::before,
.bento-section .section-title.centered::after {
    content: '?';
    display: inline-block;
    margin: 0 20px;
    color: #C4A86C;
    font-size: 20px;
    opacity: 0.7;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Enhanced Bento Cards with artistic effects */
.bento-card-image {
    position: relative;
    overflow: hidden;
}

.bento-card-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.bento-card-image:hover::before {
    opacity: 1;
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

/* Premium text cards with gradient border */
.bento-card-text {
    background: linear-gradient(135deg, #fff 0%, #fefdfb 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.bento-card-text::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #C4A86C, #B89960, #C4A86C);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.bento-card-text:hover::before {
    opacity: 1;
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }
}

/* Featured card with dramatic effect */
.bento-item.card-featured .bento-card-image {
    box-shadow: 0 20px 60px rgba(196, 168, 108, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-item.card-featured:hover .bento-card-image {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 30px 80px rgba(196, 168, 108, 0.3);
}

/* Overlay with artistic gradient */
.bento-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            transparent 100%);
    transition: all 0.4s ease;
}

.bento-card-image:hover .bento-overlay {
    background: linear-gradient(to top,
            rgba(196, 168, 108, 0.9) 0%,
            rgba(196, 168, 108, 0.5) 50%,
            transparent 100%);
}

/* Category tag with golden accent */
.bento-cat-tag {
    background: linear-gradient(135deg, #C4A86C, #B89960);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(196, 168, 108, 0.3);
    transition: all 0.3s ease;
}

.bento-card-text:hover .bento-cat-tag {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 168, 108, 0.4);
}

/* Star accent */
.bento-yield {
    color: #C4A86C;
    font-size: 18px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

/* Artistic image effects */
.bento-card-image img {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1) contrast(1.05) saturate(1.1);
}

.bento-card-image:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

/* Mobile optimizations */
@media (max-width: 600px) {

    .bento-section::before,
    .bento-section::after {
        width: 300px;
        height: 300px;
    }

    .bento-section .section-title.centered::before,
    .bento-section .section-title.centered::after {
        margin: 0 10px;
        font-size: 16px;
    }
}

/* === MY FAVORITES SECTION - FLIP CAROUSEL === */
.my-favorites-section {
    padding: 80px 0;
    background: #fbfaf8;
    overflow: hidden;
}

.favorites-header {
    display: flex;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.favorites-logo {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.heart-icon {
    color: #ff385c;
}

.favorites-main-title {
    font-size: 32px;
    margin: 0;
    font-weight: 800;
}

.favorites-subtitle {
    margin: 5px 0 0;
    color: #666;
    font-size: 16px;
}

.favorites-nav {
    margin-left: auto;
    display: flex;
    gap: 15px;
}

.nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #C4A86C;
    color: #fff;
    border-color: #C4A86C;
}

/* Carousel Layout */
.cards-carousel-wrapper {
    margin: 0 -20px;
    padding: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.cards-carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.cards-carousel {
    display: flex;
    gap: 25px;
}

/* Flip Card Magic */
.flip-card-container {
    flex: 0 0 300px;
    height: 450px;
    perspective: 1000px;
    scroll-snap-align: start;
    cursor: pointer;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.flip-card-container.flipped .flip-card {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: #1a1a1a;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

/* Front Details */
.card-image {
    height: 200px;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    bottom: -10px;
    left: 20px;
    background: #ffc107;
    color: #000;
    padding: 5px 15px;
    font-weight: 800;
    font-size: 11px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 30px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-title {
    font-size: 18px;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
    height: 48px;
    overflow: hidden;
}

.card-stars {
    color: #ffc107;
    font-size: 14px;
}

.review-count {
    color: #444;
    margin-left: 5px;
    font-weight: 500;
}

.card-time {
    color: #444;
    font-size: 14px;
    font-weight: 500;
}


.save-recipe-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.3s;
    flex: 1;
}

/* Fix conflict when save-btn is a meta-action-btn */
.meta-action-btn.save-recipe-btn {
    padding: 0;
    border-radius: 50%;
    flex: none;
    gap: 0;
    border-width: 1.5px;
}

@media (max-width: 768px) {

    /* Hide floating mini button on mobile */
    .save-recipe-btn.mini-floating {
        display: none !important;
    }
}

.save-recipe-btn:hover {
    background: #f9f9f9;
    border-color: #ff385c;
    color: #ff385c;
}

/* Card Action Buttons Group */
.card-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
    width: 100%;
}

.pin-recipe-btn {
    background: #E60023;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.3s;
    flex: 1;
    text-decoration: none;
}

.pin-recipe-btn:hover {
    background: #c50019;
    transform: translateY(-2px);
}

.pin-text,
.save-text {
    font-size: 13px;
}

.pin-count,
.fav-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
}

/* Back Details */
.back-details {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    width: 100%;
}

.back-details li {
    margin-bottom: 10px;
    font-size: 15px;
}

.view-btn {
    background: #C4A86C;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
}

.flip-back-hint {
    font-size: 12px;
    color: #888;
    margin-top: 20px;
}

.flip-instruction {
    text-align: center;
    margin-top: 30px;
    color: #444;
    font-style: italic;
    font-weight: 500;
}




.view-all-favs {
    text-decoration: none;
    color: #7b6531;
    font-weight: 800;
    font-size: 14px;
    margin-right: 15px;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.view-all-favs:hover {
    border-color: #C4A86C;
    transform: translateX(-5px);
}

/* Community Favorites Styles */
.fav-count-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 13px;
    color: #ff385c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.save-recipe-btn.mini {
    width: 100%;
    margin-top: 15px;
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.save-recipe-btn.mini.is-saved {
    background: #fff5f7;
    border-color: #ff385c;
    color: #ff385c;
}

/* Global Favorite Buttons Styles */
.mini-floating {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
    z-index: 10;
    font-size: 20px;
    color: #ff385c;
}

.mini-floating:hover {
    transform: scale(1.1);
    background: #fff;
}

.mini-floating.is-saved {
    background: #ff385c;
    color: #fff;
}

.single-post-save {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    margin: 15px 0;
    transition: 0.3s;
    color: #333;
    text-decoration: none;
}

.single-post-save:hover {
    background: #eee;
    border-color: #ff385c;
    color: #ff385c;
}

.single-post-save.is-saved {
    background: #fff5f7;
    border-color: #ff385c;
    color: #ff385c;
}


/* Favorite Count Style inside Buttons */
.fav-count {
    font-size: 11px;
    font-weight: 800;
    margin-left: 4px;
    opacity: 0.9;
}

.mini-floating .fav-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff385c;
    color: #fff;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-size: 10px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mini-floating.is-saved .fav-count {
    background: #fff;
    color: #ff385c;
}

/* Hide empty counts */
.fav-count:empty {
    display: none;
}


/* Global Pinterest Card Styling */
.pin-item-global {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}

.pin-item-global:hover img {
    filter: brightness(0.85);
}

.pin-actions-top {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.pin-save-btn {
    background: #E60023;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pin-item-global:hover .pin-save-btn {
    opacity: 1;
    transform: translateY(0);
}

.pin-actions-bottom {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.pin-social-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #111;
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pin-social-btn:hover {
    background: #fff;
    transform: scale(1.1) !important;
}

.pin-social-btn.pin-it:hover {
    color: #E60023;
}

.pin-item-global:hover .pin-social-btn {
    opacity: 1;
    transform: translateY(0);
}

.pin-item-global:hover .pin-social-btn:nth-child(2) {
    transition-delay: 0.05s;
}

.fav-count-badge-global {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    color: #333;
    opacity: 0;
    transition: 0.3s;
}

.pin-item-global:hover .fav-count-badge-global {
    opacity: 1;
}


/* Modern Entry Meta Styling */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 20px 0 30px;
}

.meta-info-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.meta-item svg {
    flex-shrink: 0;
    color: #C4A86C;
}

.meta-divider {
    color: #ddd;
    font-size: 16px;
    line-height: 1;
}

.author-link {
    color: #666;
    text-decoration: none;
    transition: 0.2s;
    font-weight: 600;
}

.author-link:hover {
    color: #C4A86C;
    text-decoration: underline;
}

.meta-category a {
    color: #C4A86C;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.meta-category a:hover {
    color: #967834;
    text-decoration: underline;
}

/* Meta Action Buttons */
.meta-actions-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.meta-action-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid #d0d0d0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: #333;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.meta-action-btn svg {
    width: 22px;
    height: 22px;
    display: block;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.meta-action-btn:hover {
    transform: translateY(-2px);
    border-color: #C4A86C;
    background: #f9f9f9;
    box-shadow: 0 4px 12px rgba(196, 168, 108, 0.2);
}

.meta-action-btn.save-recipe-btn {
    color: #E60023;
    border-color: #ffcad1;
    background: #fff;
}

.meta-action-btn.save-recipe-btn:hover {
    background: #E60023;
    border-color: #E60023;
    color: #fff;
}

.meta-action-btn.save-recipe-btn.is-saved {
    background: #E60023;
    border-color: #E60023;
    color: #fff;
}

.meta-action-btn.save-recipe-btn.is-saved svg {
    fill: currentColor;
}

.meta-action-btn.pin-it {
    color: #E60023;
    border-color: #ffcad1;
}

.meta-action-btn.pin-it:hover {
    background: #E60023;
    color: #fff;
    border-color: #E60023;
}

.meta-action-btn.pin-it svg {
    fill: currentColor;
}

.meta-action-btn .btn-save-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #E60023;
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0 4px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.meta-action-btn .btn-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #1a1a1a;
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0 4px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.meta-action-btn.copy-link {
    color: #333;
    border-color: #d0d0d0;
}

.meta-action-btn.copy-link:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}



.meta-action-btn .btn-count-badge:empty {
    display: none;
}

@media (max-width: 768px) {
    .entry-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .meta-info-group {
        width: 100%;
    }

    .meta-divider {
        display: none;
    }

    .meta-item {
        font-size: 13px;
    }

    .meta-actions-group {
        width: 100%;
        justify-content: flex-start;
        padding-top: 5px;
        border-top: 1px dashed #eee;
    }
}

.meta-interaction {
    font-size: 11px;
    font-weight: 700;
    color: #767676;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8f8f8;
    padding: 2px 8px;
    border-radius: 50px;
}


/* Interaction Stats Styling */
.recipe-stats-meta {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.stat-item {
    font-size: 11px;
    color: #888;
    font-weight: 600;
}

.hero-stats-meta {
    margin-top: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
}


/* Button Interaction Count Badges */
.pin-social-btn {
    position: relative;
}

.btn-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b3b;
    color: white;
    font-size: 9px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid #fff;
    pointer-events: none;
    line-height: 1;
}

.btn-count-badge:empty {
    display: none;
}

/* ========================================
   PINTEREST VERTICAL HERO PINS OVERRIDE
   ======================================== */

.hero-grid-section {
    background: #f9f9f9;
    padding: 20px 0;
}

.hero-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    width: 100%;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-item {
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

.hero-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-4px) !important;
}

.hero-item .pin-image-wrapper {
    height: 100%;
}

.hero-item img {
    border-radius: 16px 16px 0 0 !important;
}

.hero-item .pin-card-meta {
    position: absolute !important;
    bottom: 0 !important;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%) !important;
    z-index: 2;
    border-radius: 0 0 16px 16px;
}

.hero-item .pin-cat {
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff !important;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-item .pin-card-title {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    font-weight: 700;
}

.hero-item .pin-card-title a {
    color: #fff !important;
    text-decoration: none;
}

@media (max-width: 1200px) {
    .hero-grid {
        column-count: 3 !important;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        column-count: 2 !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .hero-grid {
        column-count: 1 !important;
    }
}

/* ========================================
   PINTEREST VERTICAL HERO PINS FINAL FIX
  ======================================== */

.hero-grid {
    display: block !important;
    column-count: 4 !important;
    column-gap: 20px !important;
    padding: 20px !important;
}

.hero-item {
    position: relative !important;
    display: inline-block !important;
    width: 100% !important;
    break-inside: avoid !important;
    overflow: hidden !important;
    border-radius: 20px !important;
}

.hero-item .pin-image-wrapper {
    height: 100% !important;
    width: 100% !important;
}

.hero-item .pin-image-wrapper img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
}

.hero-item .pin-card-meta {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 20px 15px 15px !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%) !important;
    z-index: 5 !important;
    pointer-events: none;
}

.hero-item .pin-cat {
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    display: block !important;
    margin-bottom: 5px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-item .pin-card-title {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

.hero-item .pin-card-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    pointer-events: auto;
}

@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .hero-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   MOBILE FIX FOR MY SAVED RECIPES SECTION
   ======================================== */

@media (max-width: 768px) {

    /* Header adjustments */
    .favorites-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        padding: 0 15px !important;
    }

    .favorites-nav {
        width: 100% !important;
        justify-content: space-between !important;
        margin-left: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .favorites-main-title {
        font-size: 26px !important;
        margin-bottom: 5px !important;
    }

    .favorites-subtitle {
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }

    /* Carousel behavior */
    .cards-carousel-wrapper {
        margin: 0 !important;
        padding: 10px 15px !important;
        overflow-x: auto !important;
        display: block !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        width: 100% !important;
    }

    .cards-carousel {
        display: flex !important;
        gap: 15px !important;
        padding-bottom: 30px !important;
        width: max-content !important;
    }

    .flip-card-container {
        flex: 0 0 85vw !important;
        min-width: 85vw !important;
        max-width: 85vw !important;
        height: 520px !important;
        scroll-snap-align: center !important;
    }

    .view-all-favs {
        font-size: 13px !important;
    }

    /* Fix flip card back side on mobile */
    .flip-card-back {
        padding: 20px !important;
    }

    .back-details {
        font-size: 14px !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .favorites-main-title {
        font-size: 22px !important;
    }

    .flip-card-container {
        flex: 0 0 90vw !important;
        min-width: 90vw !important;
        max-width: 90vw !important;
    }
}

/* Global improvements for the carousel */
.cards-carousel-wrapper::-webkit-scrollbar {
    display: none !important;
}

.cards-carousel-wrapper {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* =========================================
   SIGNATURE FOOTER STYLES (High-End Chef)
   ========================================= */
.site-footer-signature {
    background: #fdfbf7;
    /* Very light warm cream/white */
    color: #444;
    padding: 80px 0 40px;
    border-top: 4px solid #C4A86C;
    /* Gold accent top border */
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

/* 1. Brand Logo */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    align-items: center;
    gap: 5px;
    /* Reduced gap for stacking */
}

.emoji-icon {
    font-size: 32px;
}

.brand-name {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.5px;
    text-transform: capitalize;
}

.brand-tagline {
    font-family: "Inter", sans-serif;
    font-style: italic;
    color: #444 !important;
    font-size: 15px;
    margin: 0;
    font-weight: 500;
}

/* 2. Simple Navigation */
.footer-inline-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.footer-inline-menu li {
    margin: 0;
}

.footer-inline-menu a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
}

.footer-inline-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C4A86C;
    transition: width 0.3s;
}

.footer-inline-menu a:hover {
    color: #C4A86C;
}

.footer-inline-menu a:hover::after {
    width: 100%;
}

/* 3. Social Icons */
.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #fff;
}

.social-icon span {
    font-size: 18px;
}

.social-icon:hover {
    border-color: #C4A86C;
    background: #C4A86C;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(196, 168, 108, 0.2);
}

/* 4. Copyright */
.footer-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
}

.footer-copy p {
    font-size: 13px;
    color: #555;
    margin: 0;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.legal-links a {
    color: #999;
    text-decoration: none;
    transition: 0.2s;
}

.legal-links a:hover {
    color: #C4A86C;
}

.legal-links span {
    color: #ddd;
}

/* Responsive */
@media (max-width: 600px) {
    .site-footer-signature {
        padding: 50px 0 30px;
    }

    .footer-inline-menu {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .brand-name {
        font-size: 24px;
    }
}

/* --- MODERN CAROUSEL (iChef Style - Appended) --- */
.cards-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.cards-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 4px 30px 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.cards-carousel::-webkit-scrollbar {
    display: none;
}

.flip-card-container {
    flex: 0 0 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    scroll-snap-align: start;
    perspective: 1000px;
}

.nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 20px;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-btn:hover {
    background: #1a1a1a !important;
    color: #fff !important;
    border-color: #1a1a1a !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.nav-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .cards-carousel-wrapper {
        overflow: visible;
    }

    .nav-btn {
        display: none !important;
    }

    .flip-card-container {
        flex: 0 0 85vw !important;
        min-width: 85vw !important;
        max-width: 85vw !important;
    }
}

/* --- FLIP CARD SYSTEM (Critical 3D Fix) --- */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 480px;
    /* Fixed height match container */
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Class toggled by JS */
.flip-card.flipped {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    /* Backface hidden is crucial */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    background: #fff;
}

.flip-card-front {
    transform: rotateY(0deg);
}

.flip-card-back {
    transform: rotateY(180deg);
    background: #fff;
    color: #1a1a1a;
    padding: 0;
    border: 1px solid #f0f0f0;
}

/* Front Styling Enhancements */
.card-image {
    height: 60%;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.flip-card:hover .card-image img {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 40%;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    color: #111;
}

.card-stars {
    color: #ffb400;
    font-size: 14px;
    margin-bottom: 5px;
}

.review-count {
    color: #999;
    font-size: 12px;
}

.card-time {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.card-action-buttons {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.card-action-buttons button,
.card-action-buttons a {
    flex: 1;
    height: 36px;
    border-radius: 50px;
    border: 1px solid #eee;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    transition: 0.2s;
    text-decoration: none;
    z-index: 10;
    /* Ensure clickable */
}

.card-action-buttons button:hover,
.card-action-buttons a:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    border-color: #ddd;
}

.save-recipe-btn.is-saved .btn-heart {
    color: #e60023;
}

.save-recipe-btn.is-saved {
    border-color: #e60023;
    color: #e60023;
}


/* Back Styling */
.flip-card-back h3 {
    margin: 25px 0 15px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

.back-details {
    list-style: none;
    padding: 0 25px;
    margin: 0;
    width: 100%;
}

.back-details li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.back-details li strong {
    color: #111;
}

.view-btn {
    display: block;
    margin: 25px auto 10px;
    background: #1a1a1a;
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: 0.3s;
}

.view-btn:hover {
    background: #333;
    transform: scale(1.05);
}

.flip-back-hint {
    text-align: center;
    font-size: 11px;
    color: #ccc;
    margin-top: auto;
    padding-bottom: 15px;
    font-style: italic;
}

/* --- BADGE STRETCH FIX --- */
.card-badge {
    height: auto !important;
    width: auto !important;
    display: inline-block !important;
    white-space: nowrap;
    bottom: auto !important;
    right: auto !important;
}

/* --- TITLE VISIBILITY FIX --- */
/* --- STRICT FLEXBOX LAYOUT FIX --- */
.flip-card-front {
    display: flex !important;
    flex-direction: column !important;
}

.card-image {
    flex: 0 0 50% !important;
    /* Force exact 50% height */
    height: 50% !important;
    object-fit: cover;
}

.card-content {
    flex: 1 1 auto !important;
    /* Fill the rest */
    height: auto !important;
    padding: 15px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.card-title {
    font-size: 17px !important;
    line-height: 1.3 !important;
    margin-bottom: 5px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto !important;
    max-height: 44px;
    /* Fallback height */
    white-space: normal !important;
    color: #1a1a1a !important;
    flex-shrink: 0;
}

.card-stars {
    margin-bottom: 0 !important;
}

.card-time {
    margin-bottom: 0 !important;
    font-size: 12px !important;
}

.card-action-buttons {
    margin-top: 10px !important;
    padding-top: 0 !important;
}

/* --- MOBILE CARD QUALITY TWEAKS --- */
@media (max-width: 600px) {
    .flip-card {
        height: 400px !important;
        /* More compact */
    }

    .card-image {
        flex: 0 0 48% !important;
        height: 48% !important;
    }

    .card-content {
        padding: 12px 15px !important;
    }

    .card-title {
        font-size: 15px !important;
        /* Prevent wrap overflow */
        line-height: 1.3 !important;
    }

    .card-action-buttons {
        margin-top: 5px !important;
    }

    .card-action-buttons button,
    .card-action-buttons a {
        height: 32px !important;
        /* Smaller buttons */
        font-size: 11px !important;
    }
}

/* 🚀 PERFORMANCE & ACCESSIBILITY OVERRIDES */

/* 1. Recipe Plugin Contrast & Hub */
.cr-time-label,
.cr-time-row strong,
.cr-step-header {
    color: #222 !important;
    font-weight: 800 !important;
}

.cr-time-val,
.cr-recipe-meta span,
.cr-scale-btn {
    color: #444 !important;
    font-weight: 600 !important;
}

.cr-scale-btn.active {
    background: #927941 !important;
    color: #fff !important;
}

/* 2. Global Contrast Fixes */
.meta-item,
.meta-date,
.meta-author,
.meta-category,
.pin-cat,
.pin-category {
    color: #a5001a !important;
    /* Professional High Contrast Red */
    font-weight: 800 !important;
}

.brand-tagline,
.site-description,
.site-footer-signature p,
.site-footer-signature span,
.footer-copy p,
.footer-copy strong a {
    color: #222 !important;
    /* Maximum contrast gray/black */
    font-weight: 600 !important;
}

.legal-links a,
.footer-inline-menu a {
    color: #222 !important;
    text-decoration: underline !important;
}

.hero-item .pin-cat {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.75) !important;
    padding: 3px 10px !important;
    border-radius: 4px;
    display: inline-block !important;
    z-index: 10 !important;
}

.view-all-favs {
    color: #5a4b22 !important;
    /* High contrast gold-brown */
    font-weight: 900 !important;
}

.review-count,
.flip-instruction {
    color: #111 !important;
    font-weight: 700 !important;
}

/* 3. CLS & Stability Boosters */
.hero-item,
.latest-item,
.pin-item-global,
.flip-card {
    background: #eee !important;
    overflow: visible !important;
    min-height: 200px;
    position: relative !important;
    margin-bottom: 24px;
}

/* --- STANDARD CARD LAYOUT FIX (Strict 2/3 Ratio Compliance) --- */
.pin-item-global,
.latest-item,
.hero-item {
    display: block !important;
    break-inside: avoid;
}

.pin-item-global .recipe-image-wrapper,
.latest-item .recipe-image-wrapper,
.hero-item .recipe-image-wrapper {
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
}

.pin-item-global .recipe-image-wrapper img,
.latest-item .recipe-image-wrapper img,
.hero-item .recipe-image-wrapper img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 !important;
}

.pin-item-global .recipe-content,
.latest-item .recipe-content,
.hero-item .recipe-content {
    padding: 15px !important;
    background: #fff !important;
    display: block !important;
    overflow: hidden !important;
}

/* Clamp Title to prevent overflow */
.recipe-title {
    font-size: 16px !important;
    margin: 0 0 10px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.custom-logo {
    max-width: 300px;
    height: auto;
    aspect-ratio: 3/1;
}



/* --- BADGE STRETCH FIX --- */
.card-badge {
    height: auto !important;
    width: auto !important;
    display: inline-block !important;
    white-space: nowrap;
    bottom: auto !important;
    right: auto !important;
}

/* --- TITLE VISIBILITY FIX --- */
/* --- STRICT FLEXBOX LAYOUT FIX --- */
.flip-card-front {
    display: flex !important;
    flex-direction: column !important;
}

.card-image {
    flex: 0 0 50% !important;
    /* Force exact 50% height */
    height: 50% !important;
    object-fit: cover;
}

.card-content {
    flex: 1 1 auto !important;
    /* Fill the rest */
    height: auto !important;
    padding: 15px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.card-title {
    font-size: 17px !important;
    line-height: 1.3 !important;
    margin-bottom: 5px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto !important;
    max-height: 44px;
    /* Fallback height */
    white-space: normal !important;
    color: #1a1a1a !important;
    flex-shrink: 0;
}

.card-stars {
    margin-bottom: 5px !important;
    color: #ffb400 !important;
    font-size: 14px !important;
}

.card-time {
    margin-bottom: 0 !important;
    font-size: 13px !important;
    color: #555 !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.card-action-buttons {
    margin-top: 10px !important;
    padding-top: 0 !important;
}

/* --- MOBILE CARD QUALITY TWEAKS --- */
@media (max-width: 600px) {
    .flip-card {
        height: 400px !important;
        /* More compact */
    }

    .card-image {
        flex: 0 0 48% !important;
        height: 48% !important;
    }

    .card-content {
        padding: 12px 15px !important;
    }

    .card-title {
        font-size: 15px !important;
        /* Prevent wrap overflow */
        line-height: 1.3 !important;
    }

    .card-action-buttons {
        margin-top: 5px !important;
    }

    .card-action-buttons button,
    .card-action-buttons a {
        height: 32px !important;
        /* Smaller buttons */
        font-size: 11px !important;
    }
}

/* 🚀 PERFORMANCE & ACCESSIBILITY OVERRIDES */

/* 1. Recipe Plugin Contrast & Hub */
.cr-time-label,
.cr-time-row strong,
.cr-step-header {
    color: #222 !important;
    font-weight: 800 !important;
}

.cr-time-val,
.cr-recipe-meta span,
.cr-scale-btn {
    color: #444 !important;
    font-weight: 600 !important;
}

.cr-scale-btn.active {
    background: #927941 !important;
    color: #fff !important;
}

/* 2. Global Contrast Fixes */
.meta-item,
.meta-date,
.meta-author,
.meta-category,
.pin-cat,
.pin-category {
    color: #a5001a !important;
    /* Professional High Contrast Red */
    font-weight: 800 !important;
}

.brand-tagline,
.site-description,
.site-footer-signature p,
.site-footer-signature span,
.footer-copy p,
.footer-copy strong a {
    color: #222 !important;
    /* Maximum contrast gray/black */
    font-weight: 600 !important;
}

.legal-links a,
.footer-inline-menu a {
    color: #222 !important;
    text-decoration: underline !important;
}

.hero-item .pin-cat {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.75) !important;
    padding: 3px 10px !important;
    border-radius: 4px;
    display: inline-block !important;
    z-index: 10 !important;
}

.view-all-favs {
    color: #5a4b22 !important;
    /* High contrast gold-brown */
    font-weight: 900 !important;
}

.review-count,
.flip-instruction {
    color: #111 !important;
    font-weight: 700 !important;
}

/* 3. CLS & Stability Boosters */
.hero-item,
.latest-item,
.pin-item-global,
.flip-card {
    background: #eee !important;
    overflow: hidden;
    min-height: 200px;
}

.custom-logo {
    max-width: 300px;
    height: auto;
    aspect-ratio: 3/1;
}

#content {
    min-height: 1000px;
    /* Stronger reserve */
    background: #fff;
}

/* ===== SINGLE POST CLS FIXES ===== */
.cr-header-img,
.entry-content>img:not([width]):not([height]) {
    aspect-ratio: 2/3 !important;
    width: 100% !important;
    height: auto !important;
    background: #f5f5f5;
}

/* Related Posts Image Stability */
.related-thumb img,
.related-post-item img,
.recent-post-card img,
.recent-post-thumb img {
    aspect-ratio: 2/3;
    width: 100%;
    height: auto;
    background: #eee;
    object-fit: cover;
}

.related-post-item,
.recent-post-card {
    min-height: 450px;
}

/* Recipe Card Image Reserve Space */
.cr-card-header,
.cr-header-img-wrapper {
    aspect-ratio: 2/3;
    background: #f0f0f0;
}

/* 🚀 RECIPE CARD META & AUTHOR STYLING */
.pin-card-meta {
    padding: 15px !important;
    background: #fff !important;
    position: relative;
    z-index: 10;
}

.hero-item .pin-card-meta {
    position: absolute !important;
    bottom: 0 !important;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%) !important;
    border-radius: 0 0 16px 16px;
    padding: 20px 15px !important;
}

.pin-card-title {
    margin: 8px 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.pin-card-title a {
    color: #111 !important;
    text-decoration: none !important;
    transition: color 0.3s;
}

.hero-item .pin-card-title a {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pin-card-title a:hover {
    color: #C4A86C !important;
}

.pin-author-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.pin-author-img {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1px solid #eee !important;
    margin: 0 !important;
}

.pin-author-name {
    font-size: 12px !important;
    color: #666 !important;
    font-weight: 600 !important;
}

.hero-item .pin-author-name {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pin-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

/* === FLIP CARD BACK SIDE STYLING === */
.flip-card-back {
    background: #fff !important;
    color: #1a1a1a !important;
    padding: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
}

.flip-card-back h3 {
    color: #C4A86C !important;
    margin: 0 0 20px 0 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
}

.back-details {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 25px 0 !important;
}

.back-details li {
    margin-bottom: 12px !important;
    font-size: 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding-bottom: 8px !important;
    color: #333 !important;
}

.back-details li strong {
    color: #111 !important;
    font-weight: 700 !important;
}


/* === FLIP CARD 3D ANIMATION === */
.flip-card {
    perspective: 1000px;
    cursor: pointer;
    background-color: transparent !important;
    /* Fix grey flash */
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    position: relative;
}

.flip-card.flipped {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    /* Ensure hardware acceleration */
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-card-front {
    z-index: 2;
    transform: rotateY(0deg);
    background: #fff;
    transition: z-index 0.6s, opacity 0.3s;
}

.flip-card-back {
    transform: rotateY(180deg);
    z-index: 1;
    /* Initially behind */
    background: #fff;
    color: #1a1a1a;
    padding: 0;
    border: 1px solid #f0f0f0;
}

/* --- CRITICAL FLIP LOGIC FIX --- */
.flip-card.flipped .flip-card-back {
    z-index: 10 !important;
    /* Force on top */
}

.flip-card.flipped .flip-card-front {
    z-index: 0 !important;
    visibility: hidden;
    /* Hide front to prevent white flash */
    opacity: 0;
}

/* --- Robust Visibility Management & Layout --- */
.flip-card-back {
    /* Ensure content is layout properly */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
}

/* Hide front when flipped to prevent bleed-through */
.flip-card.flipped .flip-card-front {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease-in;
}

/* Ensure back is top layer and visible when flipped */
.flip-card.flipped .flip-card-back {
    z-index: 10 !important;
    visibility: visible !important;
}