/*
Theme Name: Mahiti Mantra Theme
Theme URI: https://mahitimantra.com
Author: Antigravity
Description: A custom theme for Mahiti Mantra with dynamic recipe and food categories layout.
Version: 2.3
Text Domain: mahitimantra
*/

/* ==========================================================================
   CSS Variables & Global Styles
   ========================================================================== */
   :root {
    --primary-color: #e52b65; /* The Recipe Critic Pink */
    --text-color: #222222;
    --text-light: #666666;
    --bg-light: #fdfdfd;
    --bg-gray: #f9f9f9;
    --white: #ffffff;
    --border-color: #eaeaea;
    
    /* Typography */
    --font-heading: "Comic Sans MS", "Comic Sans", sans-serif;
    --font-body: "Comic Sans MS", "Comic Sans", sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --gap-sm: 15px;
    --gap-md: 30px;
    --gap-lg: 50px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--bg-gray);
}

.text-center {
    text-align: center;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: "Comic Sans MS", "Comic Sans", sans-serif;
    color: #000000;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #d11e55;
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: #f1f1f1;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--text-color);
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--white);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-bar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons a {
    color: var(--text-color);
    margin-left: 15px;
    font-size: 1rem;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.main-header {
    background-color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-family: var(--font-body);
}

.logo-text .the {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.logo-text .recipe {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-text .critic {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.search-icon {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
}

.search-icon:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Grid Section
   ========================================================================== */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    padding: 15px;
    max-width: 1600px;
    margin: 0 auto;
    height: 600px;
}

.hero-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.hero-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-item:hover img {
    transform: scale(1.05);
}

.hero-category-bar {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 15px 10px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transition: background-color 0.3s ease;
}

.hero-item:hover .hero-category-bar {
    background-color: #c41e54;
}

.hero-item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}
.hero-item-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
}
.hero-item-3 {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
}
.hero-item-4 {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}
.hero-item-5 {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}

/* ==========================================================================
   Category Circles
   ========================================================================== */
.category-circles-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-circles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cat-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 120px;
}

.cat-circle img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: none;
    transition: var(--transition);
}

.cat-circle:hover img {
    transform: translateY(-5px);
}

.cat-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}

.cat-circle:hover .cat-label {
    color: #c41e54; /* darker pink on hover */
}

/* ==========================================================================
   Recipe Grids & Cards
   ========================================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #000;
    margin: 0;
}

.view-all {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 20px;
}

.recipe-grid {
    display: grid;
    gap: var(--gap-md);
}

/* Prevent empty ad blocks from taking up columns and breaking the grid */
.recipe-grid > *:not(.post-card) {
    display: none !important;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.post-card {
    display: flex;
    flex-direction: column;
}

.post-image {
    position: relative;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-cat {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 2px;
    z-index: 2;
}

.post-meta {
    margin-bottom: 5px;
}

.rating {
    color: #f5b301;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.post-title {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.post-title a {
    color: var(--text-color);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-footer {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.post-footer i {
    margin-right: 5px;
}

/* Meal Plan specific */
.meal-plan-img img {
    aspect-ratio: 3/4;
}

.overlay-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.3);
    width: 60%;
}

.overlay-box h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 2px;
    margin: 0;
}

/* ==========================================================================
   Banners (Meal Plan, Cookbook)
   ========================================================================== */
.banner-section {
    padding: 60px 0;
}

.banner-box {
    background-color: #fdf3f6; /* Very light pink */
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(229, 43, 101, 0.05);
}

.banner-img {
    flex: 1;
}

.banner-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.banner-content {
    flex: 2;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.banner-tag {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-radius: 20px;
}

.banner-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.banner-content p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 80%;
}

/* Cookbook Banner */
.cookbook-banner .cookbook-content {
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    border-radius: 8px;
    overflow: hidden;
}

.book-img {
    flex: 1;
    position: relative;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d11e55;
}

.book-img img {
    max-width: 80%;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.2);
}

.book-text {
    flex: 1.5;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-avatar-wrap {
    margin-bottom: 20px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--white);
}

.book-text h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.book-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.book-btns {
    display: flex;
    align-items: center;
    gap: 20px;
}

.link-white {
    color: var(--white);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.link-white:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Skill Levels Section
   ========================================================================== */
.skill-levels {
    background-color: #f9f9f9;
}

.skill-title {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: 900;
}

.skill-title u {
    text-decoration-thickness: 4px;
    text-underline-offset: 8px;
}

.skill-desc {
    color: var(--text-color);
    margin-bottom: 50px;
    font-size: 1.2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-box {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 0;
    text-align: left;
    box-shadow: none;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.skill-icon {
    width: 60px;
    height: 60px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
}

.pink-text {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
}

.pink-text u {
    text-decoration-thickness: 4px;
    text-underline-offset: 8px;
}

.skill-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-color);
}

.skill-box ul {
    text-align: left;
}

.skill-box li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
}

.arrow-icon {
    color: #000;
    font-size: 0.9rem;
    margin-right: 5px;
}

/* ==========================================================================
   Large Feature Post
   ========================================================================== */
.large-post {
    display: flex;
    background-color: var(--white);
    border: 3px solid var(--primary-color);
    position: relative;
    border-radius: 0;
    overflow: visible;
    margin-top: 30px;
}

.large-post-img {
    flex: 0 0 35%;
}

.large-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.large-post-box {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background-color: transparent;
    box-shadow: none;
    max-width: none;
}

.large-post-box .post-cat {
    position: absolute;
    top: -24px;
    bottom: auto;
    left: -15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 1px;
    margin: 0;
    z-index: 10;
}

.large-post-box h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.2;
}

.large-post-box .excerpt-box {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 40px;
    line-height: 1.8;
}

.large-post-box .view-all {
    align-self: flex-end;
    margin-right: 0;
}

.large-post-box p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Meet Alyssa Section
   ========================================================================== */
.meet-alyssa {
    background-color: var(--primary-color);
    color: var(--white);
}

.alyssa-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.alyssa-img {
    flex: 1;
}

.alyssa-img img {
    border-radius: 8px;
    box-shadow: 10px 10px 0px rgba(255,255,255,0.2);
}

.alyssa-text {
    flex: 1.5;
}

.alyssa-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.alyssa-text h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.alyssa-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */
.newsletter-section {
    background-color: var(--text-color);
    color: var(--white);
    padding: 60px 0;
}

.newsletter-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-box h2 {
    color: var(--white);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.newsletter-form input {
    padding: 15px 20px;
    border: none;
    border-radius: 4px;
    width: 250px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.newsletter-form button {
    padding: 15px 40px;
}

/* ==========================================================================
   Brands Section
   ========================================================================== */
.brands-section {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.brands-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 20px;
}

.brands-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.6;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--bg-gray);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Category Page Styles
   ========================================================================== */
.category-header-section {
    background-color: var(--white);
    padding-top: 40px;
    padding-bottom: 40px;
}

.category-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cat-header-text {
    flex: 1;
}

.cat-header-text h1 {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.cat-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.cat-header-img {
    flex: 1;
    max-width: 500px;
}

.cat-header-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.center-header {
    justify-content: flex-start;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 30px;
}

.center-header h2 {
    font-size: 2.4rem;
}

.child-circles {
    padding-top: 20px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.subcategory-row {
    border-bottom: 1px solid #eee;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 50px;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--primary-color);
    color: var(--white);
}

.pagination .page-numbers.dots {
    background: transparent;
    box-shadow: none;
}

/* Allow prev/next buttons to fit their text */
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    width: auto;
    border-radius: 20px;
    padding: 0 15px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.footer-up-btn {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -80px;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.footer-nav ul {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        height: auto;
    }
    
    .hero-item {
        grid-column: auto !important;
        grid-row: auto !important;
        aspect-ratio: 1/1;
    }

    .hero-item-1 {
        grid-column: 1 / -1 !important;
        aspect-ratio: 2/1;
    }
    
    .grid-5, .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-content {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .main-nav, .top-bar, .search-icon {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .grid-5, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-box, .cookbook-content, .alyssa-content {
        flex-direction: column;
    }
    
    .large-post {
        justify-content: center;
        padding: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input, .newsletter-form button {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-5, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ==========================================================================
   Single Post Layout
   ========================================================================== */
.single-post-main {
    padding-top: 20px;
    padding-bottom: 60px;
}

.single-header {
    margin-bottom: 40px;
}

.single-breadcrumbs {
    font-size: 0.85rem;
    margin-bottom: 20px;
    color: #888;
    position: relative;
    z-index: 999;
}

.single-breadcrumbs a {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    z-index: 999;
}

.single-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.single-actions .btn {
    padding: 8px 15px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.btn-jump {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-jump:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-print {
    background-color: #f5f5f5;
    color: var(--text-color);
}

.single-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 50px;
}

.single-hero-image {
    margin-bottom: 30px;
}

.single-hero-image img {
    width: 100%;
    border-radius: 8px;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #000000;
    font-family: "Comic Sans MS", "Comic Sans", sans-serif;
}

.entry-content ol, 
.entry-content ul {
    padding-left: 35px !important;
    margin-bottom: 20px;
}

.entry-content h2, .entry-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Sidebar Styles */
.single-sidebar {
    /* Sticky positioning removed so the whole page scrolls together */
}

.sidebar-widget {
    background-color: #fdfafb;
    border: 2px solid var(--primary-color);
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 8px;
}

.widget-author-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.widget-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.widget-about p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.popular-posts-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.popular-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-posts-list a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.popular-post-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.popular-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.popular-post-text {
    display: flex;
    flex-direction: column;
}

.popular-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 5px;
    color: var(--text-color);
    transition: var(--transition);
}

.popular-posts-list a:hover .popular-title {
    color: var(--primary-color);
}

.popular-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.subscribe-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.sidebar-subscribe-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.widget-social .social-icons {
    justify-content: center;
    gap: 15px;
}

.widget-social .social-icons a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    .single-layout {
        grid-template-columns: 1fr;
    }
}

.btn-pinterest {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #E60023; /* Pinterest Red */
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s;
    width: 100%;
}

.btn-pinterest:hover {
    background-color: #ad081b;
    color: white;
}

/* ==========================================================================
   Recipe Card
   ========================================================================== */
.recipe-card-box {
    border: 1px solid var(--primary-color);
    border-radius: 0;
    padding: 30px;
    margin: 50px 0;
    background-color: var(--white);
    box-shadow: none;
}

.recipe-card-hero-image {
    margin: -30px -30px 30px -30px;
}

.recipe-card-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.recipe-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.recipe-rating {
    color: #ffb400;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.recipe-rating .rating-text {
    color: var(--text-muted);
    margin-left: 5px;
    font-size: 0.8rem;
}

.recipe-author-line {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.author-name-pink {
    color: var(--primary-color);
    font-weight: 700;
}

.recipe-description {
    color: var(--text-color);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.recipe-card-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.meta-item {
    text-align: left;
}

.meta-label {
    display: block;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 3px;
    font-weight: 600;
}

.meta-value {
    font-weight: 700;
    font-size: 0.9rem;
}

.recipe-card-actions {
    display: flex;
    gap: 10px;
}

.btn-action {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    font-size: 0.8rem;
    border-radius: 0;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.btn-action:hover {
    background-color: #d11e58;
}

.recipe-divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin: 30px 0;
}

.recipe-card-body {
    display: block;
}

.recipe-ingredients h3, .recipe-instructions h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 700;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.checklist li {
    padding: 8px 0;
}

.checklist label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checklist input[type="checkbox"] {
    margin-top: 5px;
    accent-color: var(--primary-color);
}

.checklist .amount {
    font-weight: 700;
    margin-right: 5px;
    color: var(--primary-color);
}

.numbered-instructions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.numbered-instructions li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.numbered-instructions .step-num {
    background-color: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.numbered-instructions p {
    margin: 0;
    line-height: 1.6;
}

.recipe-notes h3, .recipe-nutrition h3 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 700;
}

.recipe-notes p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background-color: #fdfafb;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 4px;
}

.nutrition-item {
    font-size: 0.9rem;
}

.nutrition-label {
    font-weight: 700;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .recipe-card-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .recipe-card-box {
        padding: 20px;
    }
    
    .recipe-card-hero-image {
        margin: -20px -20px 20px -20px;
    }
    
    .nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   WPZOOM Recipe Card Overrides
   ========================================================================== */
.wpzoom-recipe-card,
.wpzoom-recipe-card-block,
.wpzoom-recipe-card *,
.wpzoom-recipe-card-block * {
    color: #000000 !important;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    /* Hide site layout elements */
    header,
    footer,
    .elementor-location-header,
    .elementor-location-footer,
    .top-bar,
    .main-header,
    .single-header,
    .single-sidebar,
    .brands-section,
    .main-footer,
    #wpadminbar,
    .single-actions,
    .inline-related-posts,
    .irp-shortcode,
    .yarpp-related,
    .crp_related,
    .wp_rp_wrap,
    .related-post,
    .related-posts,
    .related {
        display: none !important;
    }

    /* Ensure content takes full width */
    .single-layout,
    .single-content {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Force WPZOOM images to show during print */
    .wpzoom-recipe-card img,
    .wpzoom-recipe-card-image,
    .wpzoom-recipe-card-print-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* ==========================================================================
   Newsletter Modal Styles
   ========================================================================== */
.mm-modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
}

.mm-modal-content {
    background-color: #ffffff;
    margin: 10% auto; 
    border: none;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.mm-modal-header {
    background-color: #0b726f;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mm-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-family: Arial, sans-serif;
    font-weight: 600;
    color: white;
}

.mm-close {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.mm-close:hover {
    color: #e0e0e0;
}

.mm-modal-body {
    padding: 30px 40px;
    color: #333;
}

.mm-modal-logo {
    text-align: center;
    color: #0b726f;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: "Comic Sans MS", "Comic Sans", sans-serif;
    margin-bottom: 15px;
}

.mm-modal-body > p {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

#mm-newsletter-form .form-group {
    margin-bottom: 20px;
}

#mm-newsletter-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

#mm-newsletter-form input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 0.9rem;
}

.subscription-options {
    background-color: #f7fafa;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.subscription-options h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    text-align: center;
    font-weight: 700;
}

.custom-checkbox {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1px solid #0b726f;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #0b726f;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-submit-modal {
    width: 100%;
    background-color: #0b726f;
    color: white;
    padding: 12px;
    border: none;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit-modal:hover {
    background-color: #095957;
}

.terms-text {
    font-size: 0.75rem;
    color: #666;
    text-align: left;
    margin-top: 15px;
    line-height: 1.4;
}

.terms-text a {
    color: #333;
    text-decoration: underline;
}

/* ==========================================================================
   Comprehensive Mobile Responsive Overrides
   ========================================================================== */
@media (max-width: 768px) {
    /* Section Padding Reductions to Remove Large Gaps */
    .section-padding, .banner-section {
        padding: 0 0 30px 0 !important; /* Remove top padding completely on mobile */
    }
    
    .single-post-main {
        padding-top: 0 !important;
        padding-bottom: 10px;
    }
    
    .single-header {
        margin-bottom: 15px !important;
    }
    
    .section-header {
        margin-bottom: 15px !important;
    }

    /* Target Elementor Header Spacing (Logo & Search) */
    .elementor-section,
    .elementor-container,
    .elementor-column-wrap,
    .elementor-widget-wrap {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .elementor-widget-search,
    .elementor-widget-search-form {
        margin-top: 5px !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Pull ALL main content up aggressively on mobile */
    main#primary,
    .site-main,
    .front-page-main,
    .hero-grid {
        padding-top: 0 !important;
        margin-top: -35px !important;
    }
    
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .hero-item,
    .hero-item-1 {
        aspect-ratio: 1/1 !important;
    }
    
    .widget-subscribe .widget-title {
        font-size: 1.3rem !important;
        white-space: nowrap;
        text-align: center;
    }
    
    .main-footer {
        padding-top: 20px;
    }
    
    .banner-content {
        padding: 30px;
    }

    /* Grids & Layouts */
    .recipe-grid.grid-4, 
    .recipe-grid.grid-3 {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    /* Footer */
    .footer-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .brands-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    /* Category Circles */
    .category-circles {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px 15px;
    }

    .cat-circle {
        width: 45%;
        height: auto;
    }
    
    .cat-circle img {
        width: 120px;
        height: 120px;
        margin-bottom: 10px;
    }

    /* Large Promo Posts */
    .large-post {
        flex-direction: column !important;
        text-align: center;
        height: auto;
    }
    
    .large-post-img {
        height: 300px;
    }

    /* Single Post Layout */
    .single-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .single-title {
        font-size: 2rem;
    }

    /* Forms */
    .newsletter-form, 
    .sidebar-subscribe-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form input, 
    .newsletter-form button,
    .sidebar-subscribe-form input,
    .sidebar-subscribe-form button {
        width: 100% !important;
    }

    /* Headers */
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .page-title {
        font-size: 2rem !important;
    }

    /* Post Content */
    .entry-content {
        font-size: 1rem;
    }

    /* Popular Posts Mobile Limit */
    .popular-posts-list li:nth-child(n+11) {
        display: none !important;
    }

    /* Mobile Text & Banner Breaks */
    .mobile-br {
        display: block !important;
    }

    .banner-text {
        text-align: justify;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .banner-content h2 {
        font-size: 1.6rem;
        white-space: nowrap;
    }
}

/* Hidden by default on desktop */
.mobile-br {
    display: none; 
}
