/* ===============================================
   Divine Posis Theme - Igreja Presbiteriana Inspired
   Elisia Blogueira Module
   =============================================== */

:root {
    /* Posis Color Palette */
    --ipb-green: #0B5930;
    --ipb-green-dark: #073d20;
    --ipb-green-light: #0d6b39;
    --ipb-orange: #E67E22;
    --ipb-orange-dark: #D35400;
    --ipb-cream: #fffef9;
    --ipb-gray: #f5f5f5;
    --ipb-text: #333333;
    --ipb-text-muted: #6c757d;
    --ipb-border: #e0e0e0;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--ipb-cream);
    color: var(--ipb-text);
    line-height: 1.6;
}

a {
    color: var(--ipb-green);
    text-decoration: none !important;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--ipb-orange);
}


/* ===============================================
   Navigation
   =============================================== */
.divine-nav {
    background-color: var(--ipb-green);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.divine-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.divine-brand {
    padding: 15px 0;
}

.divine-brand img {
    max-height: 50px;
}

.divine-brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
}

.divine-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.divine-menu a {
    color: white;
    padding: 18px 15px;
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.divine-menu a:hover {
    background-color: var(--ipb-green-dark);
    color: white;
    /* Better contrast than orange for accessibility */
}

/* Hamburger */
.divine-hamburger {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 10px;
}

/* Mobile Drawer */
.divine-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.divine-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.divine-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 1002;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.divine-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--ipb-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    margin: 0;
    font-family: var(--font-heading);
    color: var(--ipb-green);
    font-size: 1.2rem;
}

.drawer-close {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--ipb-text-muted);
}

.drawer-menu {
    list-style: none;
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.drawer-menu li {
    margin-bottom: 20px;
}

.drawer-menu a {
    color: var(--ipb-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: block;
    transition: color 0.3s;
}

.drawer-menu a:hover {
    color: var(--ipb-green);
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--ipb-border);
}

.drawer-subscribe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background-color: var(--ipb-orange-dark);
    /* Enhanced contrast for accessibility */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.drawer-subscribe-btn:hover {
    background-color: var(--ipb-orange);
    color: white;
}

body.drawer-open {
    overflow: hidden;
}

/* ===============================================
   Hero Section
   =============================================== */
.divine-hero {
    background: linear-gradient(135deg, var(--ipb-green) 0%, var(--ipb-green-dark) 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.divine-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.divine-hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.divine-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.divine-hero-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 35px;
    background-color: var(--ipb-orange);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.divine-hero-btn:hover {
    background-color: var(--ipb-orange-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.5);
}

/* ===============================================
   Category Tabs
   =============================================== */
.divine-category-tabs {
    background-color: white;
    border-bottom: 1px solid var(--ipb-border);
    padding: 0;
    position: sticky;
    top: 68px;
    z-index: 999;
}

.category-tabs-inner {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.category-tab {
    padding: 15px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ipb-text-muted);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    display: inline-block;
}

.category-tab:hover {
    color: var(--ipb-green);
    text-decoration: none;
}

.category-tab.active {
    color: white;
    background-color: var(--ipb-green);
    border-radius: 20px 20px 0 0;
    text-decoration: none;
}

/* Quando carrossel está ativo, inverte o border-radius */
.with-carousel .category-tab.active {
    border-radius: 0px 0px 32px 32px;
}

/* ===============================================
   Post Cards (Posis Style)
   =============================================== */
.divine-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.divine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.divine-card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.divine-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.divine-card:hover .divine-card-img {
    transform: scale(1.05);
}

/* Date Badge (Posis Style) */
.divine-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--ipb-green);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.divine-date-badge .day {
    display: block;
    font-size: 1.5rem;
}

.divine-date-badge .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divine-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.divine-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--ipb-text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.divine-card-title a {
    color: inherit;
}

.divine-card-title a:hover {
    color: var(--ipb-green);
}

.divine-card-excerpt {
    color: var(--ipb-text-muted);
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 15px;
}

.divine-card-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--ipb-gray);
    color: var(--ipb-text);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    align-self: flex-start;
}

.divine-card-btn:hover {
    background-color: var(--ipb-green);
    color: white;
}

/* ===============================================
   Sidebar (News Feed Style)
   =============================================== */
.divine-sidebar-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid var(--ipb-border);
}

.divine-sidebar-item:last-child {
    border-bottom: none;
}

.divine-sidebar-date {
    flex-shrink: 0;
    width: 50px;
    text-align: center;
    margin-right: 15px;
    color: var(--ipb-green);
    font-weight: 700;
}

.divine-sidebar-date .day {
    display: block;
    font-size: 1.3rem;
}

.divine-sidebar-date .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.divine-sidebar-content h5 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.divine-sidebar-content p {
    font-size: 0.8rem;
    color: var(--ipb-text-muted);
    margin: 0;
}

/* ===============================================
   Newsletter Section
   =============================================== */
.divine-newsletter {
    background: linear-gradient(135deg, var(--ipb-green) 0%, var(--ipb-green-dark) 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.divine-newsletter h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.divine-newsletter p {
    opacity: 0.9;
    margin-bottom: 25px;
}

.divine-newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.divine-newsletter-form input[type="text"],
.divine-newsletter-form input[type="email"] {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
}

.divine-newsletter-form button {
    padding: 12px 30px;
    background-color: var(--ipb-orange);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.divine-newsletter-form button:hover {
    background-color: var(--ipb-orange-dark);
}

/* ===============================================
   Footer
   =============================================== */
.divine-footer {
    background-color: var(--ipb-green-dark);
    color: white;
    padding: 60px 0 30px;
}

.divine-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.divine-footer-col h5 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--ipb-orange);
}

.divine-footer-col ul {
    list-style: none;
}

.divine-footer-col ul li {
    margin-bottom: 10px;
}

.divine-footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.divine-footer-col a:hover {
    color: white;
}

.divine-footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.divine-footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: background-color 0.3s, color 0.3s;
}

.divine-footer-social a:hover {
    background: var(--ipb-orange);
    transform: translateY(-3px);
}

.divine-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* ===============================================
   Single Post View
   =============================================== */
.divine-post-header {
    background-size: cover;
    background-position: center;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    /* Prevent leaking */
}

.header-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.divine-post-header::before,
.divine-post-header-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, color-mix(in srgb, var(--ipb-green) 95%, transparent) 0%, color-mix(in srgb, var(--ipb-green) 30%, transparent) 100%);
    z-index: 1;
}

.divine-post-header .container {
    position: relative;
    z-index: 2;
}

.divine-post-header h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: white;
    margin-bottom: 15px;
    max-width: 800px;
}

.divine-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.divine-post-meta span {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .divine-post-meta span:last-child {
        width: 100%;
        margin-top: 5px;
        margin-right: 0;
    }
}

.divine-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.divine-post-content h2 {
    font-family: var(--font-heading);
    color: var(--ipb-green);
    font-size: 1.8rem;
    margin: 40px 0 20px;
}

.divine-post-content blockquote {
    border-left: 4px solid var(--ipb-orange);
    padding: 20px 25px;
    margin: 30px 0;
    background: var(--ipb-gray);
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* FAQ Accordion */
.divine-faq-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--ipb-border);
}

.divine-faq-section h3 {
    font-family: var(--font-heading);
    color: var(--ipb-green);
    margin-bottom: 25px;
}

.divine-accordion .accordion-button {
    background: white;
    color: var(--ipb-text);
    font-weight: 600;
    border: 1px solid var(--ipb-border);
}

.divine-accordion .accordion-button:not(.collapsed) {
    background: var(--ipb-green);
    color: white;
}

.divine-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--ipb-green);
}

/* Related Posts */
.divine-related-posts {
    background: var(--ipb-gray);
    padding: 60px 0;
    margin-top: 60px;
}

.divine-related-posts h3 {
    font-family: var(--font-heading);
    color: var(--ipb-green);
    text-align: center;
    margin-bottom: 40px;
}

/* ===============================================
   Floating WhatsApp Button
   =============================================== */
.elisia-whatsapp-floating {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    opacity: 0;
    transform: scale(0.8);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
}

.elisia-whatsapp-floating.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.elisia-whatsapp-floating:hover {
    transform: scale(1.1);
    color: white;
}

/* --- Botão WhatsApp no Conteúdo --- */
.elisia-whatsapp-btn {
    display: flex;
    /* Removed !important and changed to flex for better flow */
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    max-width: 100%;
}

/* ===============================================
   Utilities
   =============================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--ipb-green);
    font-size: 1.5rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--ipb-orange);
}

/* Responsive */
@media (max-width: 768px) {
    .divine-hero h1 {
        font-size: 2rem;
    }

    .divine-post-header h1 {
        font-size: 1.8rem;
    }

    .divine-menu {
        display: none;
    }

    .divine-hamburger {
        display: block;
    }

    .category-tab {
        padding: 12px 15px;
        font-size: 0.8rem;
    }

    .divine-post-header {
        min-height: 250px !important;
        padding: 40px 0 30px !important;
        background-position: center bottom !important;
    }
}

/* ===============================================
   Hero Carousel
   =============================================== */
.divine-hero-carousel {
    position: relative;
    height: 550px;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.heroSwiper {
    width: 100%;
    height: 100%;
}

.heroSwiper .swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}

.heroSwiper .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, color-mix(in srgb, var(--ipb-green) 90%, transparent) 0%, color-mix(in srgb, var(--ipb-green) 50%, transparent) 50%, transparent 100%);
}

.heroSwiper .slide-content {
    position: absolute;
    bottom: 80px;
    left: 60px;
    max-width: 600px;
    z-index: 2;
}

.heroSwiper .slide-category {
    display: inline-block;
    background-color: var(--ipb-orange);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
}

.heroSwiper .slide-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.heroSwiper .slide-btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: white;
    color: var(--ipb-green);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.heroSwiper .slide-btn:hover {
    background-color: var(--ipb-orange);
    color: white;
    transform: translateY(-2px);
}

/* Swiper Navigation */
.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s;
}

.heroSwiper .swiper-button-next:after,
.heroSwiper .swiper-button-prev:after {
    font-size: 1.2rem;
}

.heroSwiper .swiper-button-next:hover,
.heroSwiper .swiper-button-prev:hover {
    background: var(--ipb-orange);
}

.heroSwiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.heroSwiper .swiper-pagination-bullet-active {
    background: var(--ipb-orange);
}

.carousel-subscribe-btn {
    display: none;
}

/* Carousel Responsive */
@media (max-width: 768px) {
    .divine-hero-carousel {
        height: 220px;
        /* More rectangular */
    }

    .heroSwiper .swiper-slide {
        background-position: center center;
    }

    .heroSwiper .slide-content {
        left: 20px;
        right: 20px;
        bottom: 30px;
        max-width: none;
    }

    .heroSwiper .slide-category {
        display: none !important;
        /* Requirement 1: Hide category in carousel */
    }

    .heroSwiper .slide-content h2 {
        font-size: 1.3rem;
        /* Requirement 4: Approx 20% reduction from 1.6rem */
        margin-bottom: 12px;
    }

    .heroSwiper .slide-btn {
        padding: 8px 18px;
        /* Requirement 2: Approx 30% reduction */
        font-size: 0.8rem;
    }

    .divine-category-tabs {
        display: none !important;
        /* Requirement 3: Hide category tabs below carousel */
    }

    .carousel-subscribe-btn {
        display: none;
    }

    .heroSwiper .swiper-button-next,
    .heroSwiper .swiper-button-prev {
        display: none;
    }
}

/* ===============================================
   Search Bar Styles
   =============================================== */
.divine-search-item {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.divine-search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.divine-search-form:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--ipb-orange);
}

.divine-search-input {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 12px;
    font-size: 0.85rem;
    outline: none;
    width: 150px;
    transition: width 0.3s ease;
}

.divine-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.divine-search-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 0 12px;
    cursor: pointer;
    transition: color 0.3s;
}

.divine-search-btn:hover {
    color: var(--ipb-orange);
}

/* Mobile Drawer Search */
.drawer-search {
    padding: 20px;
    border-bottom: 1px solid var(--ipb-border);
}

.drawer-search .divine-search-form {
    background: #f8f9fa;
    border: 1px solid var(--ipb-border);
}

.drawer-search .divine-search-input {
    color: var(--ipb-text);
    width: 100%;
}

.drawer-search .divine-search-input::placeholder {
    color: var(--ipb-text-muted);
}

.drawer-search .divine-search-btn {
    color: var(--ipb-text-muted);
}

@media (max-width: 991px) {
    .divine-search-item {
        display: none;
    }
}

/* ===============================================
   Aggressive Mobile Overflow Fixes
   =============================================== */
@media (max-width: 768px) {

    .divine-nav,
    .divine-post-header,
    .divine-hero-carousel,
    .divine-hero,
    .divine-footer,
    main,
    article,
    section {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .container,
    .divine-nav .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .divine-post-header {
        margin-top: -20px;
        min-height: auto !important;
        padding: 40px 0 !important;
        background-color: var(--ipb-green) !important;
    }

    .header-bg-img,
    .hero-bg-img {
        object-fit: contain !important;
        background-color: var(--ipb-green) !important;
    }

    .divine-post-header-overlay,
    .divine-post-header::before {
        width: 100% !important;
        left: 0 !important;
        background: linear-gradient(to top, rgba(11, 89, 48, 0.9) 0%, rgba(11, 89, 48, 0.4) 100%) !important;
    }

    /* User manually set to 1.25rem - keeping it stable */
    .divine-post-header h1 {
        font-size: 1.25rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        margin-bottom: 15px !important;
        position: relative;
        z-index: 5;
    }

    .divine-post-meta {
        font-size: 0.8rem !important;
        position: relative;
        z-index: 5;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* WhatsApp Content Button Fixes */
    .elisia-whatsapp-btn {
        display: block !important;
        width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
        margin: 20px 0 !important;
        transform: none !important;
        /* Ensure no scaling interferes */
    }

    .elisia-whatsapp-btn img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
        padding: 0 !important;
        transform: none !important;
    }
}