:root {
    --bg-cream: #F4F7FB; /* Fundo suave azulado */
    --text-main: #1D2A3B; /* Letras grafite profundo */
    --header-green: #1F3F6E; /* Azul Marinho do cabeçalho */
    --accent-gold: #255EB3; /* Azul Brilhante dos links e versículos */
    --accent-gold-hover: #E8F0FA; /* Fundo hover suave azul */
    --border-color: #DDE2EB; /* Borda bem leve */
    --sidebar-bg: #FFFFFF;
    --verse-hover: #E8F0FA;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


.app-header {
    background-color: var(--header-green);
    color: var(--bg-cream);
    padding: 0.8rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10;
    display: flex;
    justify-content: center;
}

.header-container {
    max-width: 1000px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-text-container {
    display: flex;
    flex-direction: column;
}

.header-logo {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    letter-spacing: -1px;
}

.header-logo .highlight-gold {
    color: #F8B459;
}

.header-logo .highlight-white {
    color: #FFFFFF;
}

.app-header .subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
    color: #E2DFD2;
    margin-bottom: 0;
    line-height: 1.4;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-header {
    display: inline-flex;
    align-items: center;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s, color 0.2s;
}

.btn-header:hover {
    background-color: #FFFFFF;
    color: var(--header-green);
}

.hero-banner {
    background-color: transparent;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Removed border-bottom so it flows cleanly into daily-block-container */
}

.hero-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1000px;
    width: 100%;
    gap: 2rem;
}

.hero-text {
    flex: 1;
    color: #5d5d5d;
    font-size: 1.05rem;
    line-height: 1.6;
}

.hero-search {
    display: flex;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.hero-search input {
    padding: 1rem;
    border: none;
    width: 300px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.hero-search button {
    background-color: #E74C3C; /* Orange/Red button */
    color: white;
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-search button:hover {
    background-color: #C0392B;
}

.hero-search button svg {
    width: 20px;
    height: 20px;
}

.daily-block-container {
    position: relative;
    z-index: 10;
    background-color: #FEE7C3; /* Matches the hero banner seamlessly */
    padding: 1rem 2rem 2rem 2rem; /* Added top padding back for breathing room */
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border-color); /* Moved border from hero-banner to here */
}

.daily-block {
    background-color: #1F3F6E; /* Dark teal green like ref image */
    border-radius: 12px;
    padding: 1.5rem 2rem;
    width: 100%;
    max-width: 1000px;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.daily-block h3 {
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    text-align: left; /* Restored left alignment to match image */
}

.daily-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.daily-btn {
    background-color: white;
    color: #1F3F6E;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.daily-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.daily-btn .arrow {
    color: #555;
    font-weight: bold;
}

/* Resources Section */
.resources-section {
    background-color: var(--bg-cream); /* Same default cream bg */
    padding: 3rem 2rem;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.resources-container {
    width: 100%;
    max-width: 1200px;
}

.resources-container h2 {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.resource-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.resource-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background-color: #EEE;
}

.resource-title {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #444;
}

/* Trending Section */
.trending-container {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}

.trending-header {
    color: #333;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    row-gap: 2rem;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.trending-item:hover {
    transform: translateX(5px);
}

.trending-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    background-color: #EEE;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.trending-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

/* Populares Section */
.populares-container {
    background-color: #162B4A;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.populares-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.populares-container .populares-header {
    color: #FFFFFF !important;
    font-size: 1.6rem;
    font-weight: 800;
}

.btn-populares-ver-mais {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-populares-ver-mais:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.populares-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.populares-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.populares-title {
    color: #444;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: underline;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.populares-title:hover {
    color: var(--accent-gold);
}

.populares-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.bible-app-wrapper {
    display: flex;
    flex: 1;
    flex-direction: column;
    max-width: 1200px;
    margin: 2rem auto;
    width: 100%;
    background: transparent;
    padding: 0 1rem;
}

.bible-nav-container {
    width: 100%;
    margin: 0 auto;
}

/* ===== Quick Nav Bar (4 Buttons) ===== */
.bible-quick-nav {
    background: linear-gradient(135deg, #1F3F6E 0%, #2a5298 100%);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.bible-quick-nav-btn {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 140px;
    flex: 1;
    max-width: 200px;
}
.bible-quick-nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.bible-quick-nav-btn .nav-icon {
    font-size: 1.8rem;
}
.bible-quick-nav-btn .nav-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    line-height: 1.3;
}
@media (max-width: 600px) {
    .bible-quick-nav {
        gap: 0.6rem;
        padding: 0.8rem;
    }
    .bible-quick-nav-btn {
        min-width: 0;
        padding: 0.8rem 0.5rem;
        border-radius: 10px;
    }
    .bible-quick-nav-btn .nav-icon { font-size: 1.4rem; }
    .bible-quick-nav-btn .nav-label { font-size: 0.72rem; }
}

/* ===== Main + Sidebar Layout ===== */
.bible-home-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 960px) {
    .bible-home-layout {
        grid-template-columns: 1fr;
    }
}

/* ===== Sidebar Widgets ===== */
.bible-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.newsletter-box {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.newsletter-box .nl-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.newsletter-box h3 {
    color: var(--text-main);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.newsletter-box input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}
.newsletter-box input[type="email"]:focus {
    border-color: var(--accent-gold);
}
.newsletter-box .nl-btn {
    width: 100%;
    background: var(--header-green);
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.newsletter-box .nl-btn:hover {
    background: #163258;
}
.newsletter-box .nl-disclaimer {
    font-size: 0.78rem;
    color: #999;
    margin-top: 0.8rem;
    line-height: 1.4;
}

.sidebar-link-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.sidebar-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}
.sidebar-link-card .slc-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #E8F0FA;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-link-card .slc-text {
    flex: 1;
}
.sidebar-link-card .slc-text .slc-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 2px;
}
.sidebar-link-card .slc-text .slc-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}
.sidebar-link-card .slc-arrow {
    color: var(--accent-gold);
    font-size: 1.3rem;
    font-weight: 700;
}

/* Books View */
.bible-books-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}
@media (max-width: 768px) {
    .bible-books-grid { grid-template-columns: 1fr; }
}

.testament-card {
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    padding: 0;
    overflow: hidden;
}

.testament-header {
    background: #E8F0FA;
    color: var(--text-main);
    padding: 1.2rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Inter', sans-serif;
}

.testament-header svg {
    width: 22px;
    height: 22px;
    color: var(--text-main);
    opacity: 0.7;
}

.book-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.book-grid-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: #2a5298;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #FFF;
}
.book-grid-item:nth-child(even) { border-right: none; }
.book-grid-item:hover {
    background-color: var(--verse-hover);
    color: var(--header-green);
    transform: translateX(5px);
}

/* Chapters Grid View */
.chapters-grid-view {
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}
.chapters-grid-view h2 {
    color: var(--header-green);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
}
.chapters-grid-view p {
    color: #666;
    margin-bottom: 2rem;
}
.chapters-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}
@media (max-width: 900px) { .chapters-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 600px) { .chapters-grid { grid-template-columns: repeat(4, 1fr); } }

.chapter-badge {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.chapter-badge:hover {
    background: var(--accent-gold);
    color: white;
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 94, 179, 0.2);
}

/* Chapter Reading View (Like Image 1) */
.chapter-reading-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    width: 100%;
}
@media (max-width: 900px) { 
    .chapter-reading-wrapper { grid-template-columns: 1fr; }
}

.chapter-main-col {
    background: transparent;
}
.chapter-main-title {
    text-align: center;
    color: var(--text-main);
    font-size: 2.2rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.chapter-main-subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.verse-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.2rem 1.5rem;
    background: white;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    font-size: 1.15rem;
    line-height: 1.7;
    transition: background-color 0.2s;
    border: 1px solid transparent;
}
.verse-item:hover { 
    background-color: var(--verse-hover); 
    border-color: var(--border-color);
    cursor: pointer;
}
.verse-item-num {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.05rem;
    min-width: 25px;
    text-align: right;
    padding-top: 0.2rem;
}
.verse-item-text {
    color: #333;
}

/* Side Col Content */
.side-chapter-widget {
    background: transparent;
    margin-bottom: 2rem;
}
.side-chapter-widget h3 {
    text-align: center;
    color: var(--text-main);
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.side-chapter-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}
.side-chapter-grid .chapter-badge {
    aspect-ratio: auto;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--accent-gold);
    border: none;
    background: transparent;
}
.side-chapter-grid .chapter-badge:hover {
    background: var(--verse-hover);
    color: var(--accent-gold);
    transform: translateY(-2px);
}
.side-chapter-grid .chapter-badge.active {
    background: var(--accent-gold);
    color: white;
}

.side-newsletter-widget {
    background: #E8F0FA;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.side-newsletter-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}
.side-newsletter-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}
.side-newsletter-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}
.side-newsletter-btn {
    width: 100%;
    background: var(--header-green);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.2s;
}
.side-newsletter-btn:hover {
    background: var(--text-main);
}
.side-newsletter-disclaimer {
    font-size: 0.8rem;
    color: #777;
    margin-top: 1.5rem;
    line-height: 1.4;
}


/* =======================================
   RODAPÉ (SITE FOOTER)
   ======================================= */
.site-footer {
    background-color: var(--header-green);
    color: #F8F9FA;
    padding: 3rem 1rem 1.5rem 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand {
    flex: 1;
    min-width: 300px;
}

.footer-logo {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    color: #F8B459;
    letter-spacing: -1px;
}

.footer-logo .logo-text {
    color: #F8B459;
}

.footer-logo .logo-sub {
    color: #FFF;
    font-weight: 500;
}

.footer-desc {
    color: #CCC;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-doar {
    background-color: transparent;
    border: 1px solid #FFF;
    color: #FFF;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.btn-doar:hover {
    background-color: #FFF;
    color: #262626;
}

.btn-loja-footer {
    background-color: transparent;
    border: 1px solid #FFF;
    color: #FFF;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
}

.btn-loja-footer:hover {
    background-color: #FFF;
    color: #262626;
}

.footer-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    flex: 2;
    justify-content: flex-end;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col a {
    color: #CCC;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-col a:hover {
    color: #FFF;
}

.footer-divider {
    height: 1px;
    background-color: #3A3A3A;
    margin: 1.5rem 0;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-copy {
    color: #999;
    font-size: 0.85rem;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #FFF;
    color: #262626;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    transform: translateY(-2px);
    background-color: #F8B459;
}

@media (max-width: 900px) {
    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-brand {
        min-width: unset;
    }
    .footer-links-grid {
        justify-content: flex-start;
        width: 100%;
        margin-top: 1rem;
        flex: unset;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Fast responsive media queries */
@media (max-width: 900px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-top {
        flex-direction: column;
        text-align: center;
    }
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .reader {
        height: auto;
    }
}

/* Daily View / Search Results Styling */
.daily-view {
    max-width: 800px;
    margin: 0 auto;
}

.daily-view img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.daily-view h2 {
    color: var(--header-green);
    margin-bottom: 0.5rem;
}

.daily-view .date-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.daily-view .content {
    line-height: 1.8;
    font-size: 1.15rem;
}

.daily-view a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: bold;
}

.daily-view a:hover {
    text-decoration: underline;
}

.search-result-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.search-result-item .ref {
    font-weight: bold;
    color: var(--header-green);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.search-result-item .text {
    line-height: 1.6;
}

/* Share & Copy Buttons */
.action-buttons-container {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    color: var(--header-green);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.action-btn:hover {
    background-color: var(--accent-gold-hover);
    border-color: var(--accent-gold);
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

/* Verse Actions Popup */
.verse {
    position: relative;
    cursor: pointer;
}

/* Share Modal */
.share-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
}

.share-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.share-modal {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.2s;
}

.share-modal-overlay.show .share-modal {
    transform: translateY(0);
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.share-modal-header h3 {
    font-size: 1.4rem;
    color: #111;
    font-weight: 700;
}

.share-modal-header .close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #555;
    padding: 0;
    line-height: 1;
}

.copy-link-box {
    display: flex;
    align-items: center;
    border: 1px solid #CCC;
    border-radius: 20px;
    padding: 0.3rem;
    margin-bottom: 1.5rem;
}

.copy-link-btn {
    background: #444;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 18px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.copy-link-btn:hover {
    background: #222;
}

.copy-link-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.8rem;
    color: #888;
    font-size: 0.9rem;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-opt {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: #222;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 0.8rem;
    border-radius: 8px;
    transition: background 0.2s;
    font-weight: 500;
}

.share-opt:hover {
    background: #F4F1E1;
}

.share-opt svg {
    width: 20px;
    height: 20px;
}

/* Style for the new Pill Share Button */
.pill-share-btn {
    background-color: #EFEFEF;
    color: var(--header-green);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: inherit;
}

.pill-share-btn:hover {
    background-color: #E0E0E0;
}

.pill-share-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--header-green);
}

/* =======================================
   BANNERS PROMOCIONAIS
   ======================================= */
.banners-section {
    max-width: 1200px;
    width: 100%;
    margin: 3rem auto 4rem auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
    overflow-x: hidden;
}

.promo-banner {
    border-radius: 12px;
    overflow: hidden;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    min-height: 240px;
    gap: 1.5rem;
    max-width: 100%;
    word-break: break-word;
}

.promo-content {
    flex: 1;
}

.promo-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
    border: none;
    cursor: pointer;
    margin-top: 1.5rem;
}

.promo-btn:hover {
    transform: translateY(-2px);
}

/* Banner 1: Loja */
.banner-loja {
    background: linear-gradient(120deg, #D6EAF8 0%, #AED6F1 100%);
    position: relative;
}

.promo-badge {
    display: inline-block;
    color: #1A5276;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.banner-loja h3 {
    font-size: 1.6rem;
    line-height: 1.3;
    color: #1A3258;
    font-family: 'Playfair Display', serif;
}

.orange-btn {
    background-color: #E67E22;
    color: white;
}
.orange-btn:hover {
    background-color: #D35400;
}

/* Banner 2: Oferta */
.banner-oferta {
    background-color: #F8F5E6;
    border: 1px solid #EAECEE;
}

.banner-oferta h3 {
    font-size: 1.5rem;
    color: #2C3E50;
    margin-bottom: 0.5rem;
}

.banner-oferta p {
    color: #5D6D7E;
    font-size: 0.95rem;
    line-height: 1.5;
}

.green-btn {
    background-color: #255EB3;
    color: white;
}
.green-btn:hover {
    background-color: #1F3F6E;
}

.placeholder-img {
    background-color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    height: 120px;
    width: 160px;
    font-weight: bold;
    color: #2E86C1;
    font-size: 1.1rem;
    padding: 1rem;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Banner 3: Aproxime-se */
.banner-aproxime {
    background-color: #1A3258;
    color: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem;
}

.banner-aproxime h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.aproxime-list {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.aprox-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 1.5rem 0;
}

.aproxime-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.aproxime-text {
    flex: 1;
}

.aproxime-text strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.3rem;
}

.aproxime-text p {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.aprox-txt-link {
    color: white;
    text-decoration: underline;
    font-size: 0.85rem;
    font-weight: 600;
}
.aprox-txt-link:hover {
    opacity: 0.8;
}

.aprox-outline-btn {
    border: 1px solid rgba(255,255,255,0.6);
    background: transparent;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    min-width: max-content;
}

.aprox-outline-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* Banner 4: Pedidos de Oração */
.banner-oracao {
    background-color: #FCF7F0;
    border: 1px solid #F0E8DD;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    gap: 1.5rem;
}

.oracao-content {
    flex: 1;
    z-index: 2;
}

.oracao-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #4A4A4A;
    margin-bottom: 0.8rem;
    font-family: 'Inter', sans-serif;
}

.oracao-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.oracao-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 350px;
}

.btn-oracao-primary {
    background-color: #E85D2A;
    color: white;
    font-weight: 700;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-oracao-primary:hover {
    background-color: #D64E1D;
    color: white;
}

.btn-oracao-outline {
    background-color: white;
    color: #333;
    border: 1px solid #E85D2A;
    font-weight: 600;
    text-decoration: none;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-oracao-outline:hover {
    background-color: #FFF3F0;
}

.oracao-image-container {
    flex-shrink: 0;
    z-index: 1;
}

.oracao-placeholder-img {
    font-size: 6rem;
    opacity: 0.8;
    background: transparent;
    text-align: center;
}

/* =======================================
   ÚLTIMAS ATUALIZAÇÕES
   ======================================= */
.updates-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-ver-mais {
    background: white;
    border: 1px solid #CCC;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-ver-mais:hover {
    background: #F8F9FA;
    border-color: #AAA;
    color: #333;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.update-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.update-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    border-color: #E2DFD2;
}

.update-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    text-decoration: underline;
    text-decoration-color: #CCC;
    text-underline-offset: 3px;
}

.update-card:hover .update-title {
    color: var(--header-green);
    text-decoration-color: var(--header-green);
}

.update-snippet {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Responsivo para Banners e Últimas Atualizações */
@media (max-width: 900px) {
    .banners-section, .updates-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .promo-banner {
        flex-direction: column;
        text-align: center;
    }
    .promo-content {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    .aproxime-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;
    }
    .aprox-outline-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =======================================
   PRAYER REQUEST SYSTEM
   ======================================= */
.prayer-form {
    max-width: 600px;
    margin: 0 auto;
}
.prayer-form-group {
    margin-bottom: 1.5rem;
}
.prayer-form-group label {
    display: block;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}
.prayer-form-group input,
.prayer-form-group select,
.prayer-form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    background: #FFFFFF;
    transition: border-color 0.2s;
}
.prayer-form-group input:focus,
.prayer-form-group select:focus,
.prayer-form-group textarea:focus {
    border-color: var(--accent-gold);
}
.prayer-form-group textarea {
    min-height: 100px;
    resize: vertical;
}
.prayer-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.prayer-preview-box {
    background: #FAF8F4;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
    min-height: 80px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    font-style: italic;
}
.prayer-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
.prayer-checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
}
.prayer-checkbox-group label {
    font-weight: 400;
    font-size: 0.85rem;
    color: #666;
}
.btn-prayer-submit {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background: var(--accent-gold);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: inherit;
}
.btn-prayer-submit:hover {
    background: #C09B30;
}
/* Prayer Wall */
.prayer-wall-header {
    background: #FEF3E0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}
.prayer-wall-header h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.prayer-wall-header p {
    color: #777;
    font-size: 1rem;
}
.btn-prayer-cta {
    display: inline-flex;
    align-items: center;
    background: var(--accent-gold);
    color: #FFFFFF;
    padding: 0.9rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    margin-top: 1.2rem;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}
.btn-prayer-cta:hover {
    background: #C09B30;
    transform: translateY(-1px);
}
.prayer-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.prayer-card-text {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 500;
}
.prayer-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-orar {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--border-color);
    background: #FFFFFF;
    color: var(--text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-orar:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}
.btn-orar.prayed {
    border-color: var(--accent-gold);
    background: #FFF8E7;
    color: var(--accent-gold);
}
.prayer-card-meta {
    font-size: 0.85rem;
    color: #999;
}
.prayer-count-info {
    font-size: 0.85rem;
    color: #999;
    margin-left: 0.5rem;
}

/* =======================================
   FLOATING ACTION BUTTONS (FAB STACK)
   ======================================= */
.fab-stack {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.fab-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease;
    text-decoration: none;
    position: relative;
}
.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.fab-btn:active {
    transform: scale(0.93);
}

/* WhatsApp FAB */
.fab-whatsapp {
    background: #25D366;
    color: #fff;
}
.fab-whatsapp:hover {
    background: #20BD5A;
}

/* Home FAB */
.fab-home {
    background: #1F3F6E;
    color: #fff;
}
.fab-home:hover {
    background: #162F52;
}

/* Notification Bell FAB */
.fab-notif {
    background: linear-gradient(135deg, #255EB3, #1A4A8E);
    color: #fff;
    position: relative;
}
.fab-notif:hover {
    background: linear-gradient(135deg, #1A4A8E, #132F5A);
}
.fab-notif.subscribed {
    background: linear-gradient(135deg, #1F3F6E, #142D4E);
}
.fab-notif.subscribed:hover {
    background: linear-gradient(135deg, #142D4E, #1F3F6E);
}

/* Notification badge */
.fab-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #E74C3C;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Pulse animation for bell */
@keyframes fabPulse {
    0% { box-shadow: 0 4px 14px rgba(0,0,0,0.25), 0 0 0 0 rgba(37, 94, 179, 0.5); }
    70% { box-shadow: 0 4px 14px rgba(0,0,0,0.25), 0 0 0 12px rgba(37, 94, 179, 0); }
    100% { box-shadow: 0 4px 14px rgba(0,0,0,0.25), 0 0 0 0 rgba(37, 94, 179, 0); }
}
.fab-notif:not(.subscribed) {
    animation: fabPulse 2.5s infinite;
}

/* Scroll-to-top FAB */
.fab-scroll {
    background: var(--header-green);
    color: #fff;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    width: 46px;
    height: 46px;
}
.fab-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
@media (min-width: 769px) {
    .fab-scroll { display: none !important; }
}

/* =======================================
   COOKIE CONSENT BANNER
   ======================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(31, 63, 110, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.2rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    animation: cookieSlideUp 0.5s ease-out;
}
@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.cookie-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
}
.cookie-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
.cookie-text p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    margin: 0;
}
.cookie-text a {
    color: var(--accent-gold);
    text-decoration: underline;
    font-weight: 600;
}
.cookie-text a:hover {
    color: #F0D060;
}
.cookie-actions {
    display: flex;
    gap: 0.7rem;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 0.65rem 1.3rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    border: none;
    white-space: nowrap;
}
.cookie-accept {
    background: var(--accent-gold);
    color: #fff;
}
.cookie-accept:hover {
    background: #C09B30;
    transform: translateY(-1px);
}
.cookie-reject {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.4);
}
.cookie-reject:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .cookie-text {
        flex-direction: column;
        gap: 0.5rem;
    }
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
    .cookie-btn {
        width: 100%;
        padding: 0.75rem;
    }
}

/* =======================================
   DAILY CONTENT HISTORY (4 COLUMNS)
   ======================================= */
.daily-history-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.daily-history-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.medicinal-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* =======================================
   BIBLE SEARCH BAR
   ======================================= */
.bible-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bible-search-box:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.bible-search-box svg {
    margin-left: 0.8rem;
}
.bible-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: transparent;
    color: var(--text-main);
}
.bible-search-input::placeholder {
    color: #aaa;
}

/* Desktop sidebar search */
.bible-search-sidebar {
    margin-bottom: 1rem;
}

/* Mobile search (acima dos livros) */
.bible-search-mobile {
    display: none;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .bible-search-mobile {
        display: block;
    }
    .bible-search-sidebar {
        display: none;
    }
}
.daily-history-col h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.daily-history-col h3 .arrow {
    color: var(--accent-gold);
    font-size: 1.2rem;
}
.daily-history-card {
    display: flex;
    gap: 0.8rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: flex-start;
    overflow: hidden;
}
.daily-history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--accent-gold);
}
.daily-history-card img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.daily-history-card-info {
    flex: 1;
    min-width: 0; /* Enables text truncation */
    overflow: hidden;
}
.daily-history-card h4 {
    margin: 0 0 0.3rem 0;
    font-size: 0.9rem;
    color: var(--header-green);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.daily-history-card p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
@media (max-width: 992px) {
    .daily-history-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 576px) {
    .daily-history-cols {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =======================================
   COMPREHENSIVE RESPONSIVE CSS FIXES
   ======================================= */
@media (max-width: 768px) {
    /* === GLOBAL MOBILE OVERFLOW FIX === */
    .app-header,
    .hero-banner,
    .daily-block-container,
    .resources-section,
    .banners-section,
    .site-footer,
    .app-container,
    #home-sections-container {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Header */
    .app-header {
        padding: 1rem 0.8rem;
        width: 100%;
    }
    .header-container {
        flex-direction: column;
        gap: 0.6rem;
        text-align: center;
        max-width: 100%;
    }
    .header-logo {
        font-size: 1.6rem;
    }
    .app-header .subtitle {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    /* Hero Banner */
    .hero-banner {
        padding: 1rem 0.8rem 0 0.8rem;
        width: 100%;
    }
    .hero-top {
        max-width: 100%;
    }
    .hero-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .hero-search {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
    .hero-search input {
        width: 100%;
        padding: 0.7rem;
        font-size: 0.9rem;
        border-radius: 4px 4px 0 0;
    }
    .hero-search button {
        width: 100%;
        padding: 0.7rem;
        border-radius: 0 0 4px 4px;
    }

    /* Daily Block (sticky nav) */
    .daily-block-container {
        padding: 0.5rem 0.8rem 0.8rem 0.8rem;
        width: 100%;
    }
    .daily-block {
        padding: 0.8rem;
        border-radius: 8px;
        max-width: 100%;
    }
    .daily-block h3 {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    .daily-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .daily-btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
        word-break: break-word;
    }

    /* Resources Grid (Amazonia Medicinal / Recursos) */
    .resources-section {
        padding: 1.5rem 0.8rem;
        width: 100%;
    }
    .resources-container {
        max-width: 100%;
        overflow-x: hidden;
    }
    .resources-container h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    .resources-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        max-width: 100%;
    }
    .resource-card {
        max-width: 100%;
        overflow: hidden;
    }
    .resource-img {
        height: 100px;
        max-width: 100%;
    }
    .resource-title {
        padding: 0.6rem;
        font-size: 0.8rem;
        word-break: break-word;
    }

    /* Medicinal Header Row */
    .medicinal-header-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Daily History */
    .daily-history-cols {
        max-width: 100%;
        overflow-x: hidden;
        grid-template-columns: 1fr !important;
    }

    /* Trending Section */
    .trending-container {
        padding: 1rem 0.8rem;
        max-width: 100%;
        overflow: hidden;
    }
    .trending-header {
        font-size: 1.2rem;
    }
    .trending-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        row-gap: 1rem;
        max-width: 100%;
    }
    .trending-item {
        max-width: 100%;
        overflow: hidden;
    }
    .trending-img {
        width: 55px;
        height: 55px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    .trending-title {
        font-size: 0.85rem;
        word-break: break-word;
    }

    /* Populares Section */
    .populares-container {
        padding: 1rem 0.8rem;
        border-radius: 8px;
        max-width: 100%;
        overflow: hidden;
    }
    .populares-header-row {
        flex-direction: column;
        gap: 0.6rem;
        align-items: flex-start;
        max-width: 100%;
    }
    .populares-container .populares-header {
        font-size: 1.2rem;
    }
    .populares-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        max-width: 100%;
    }
    .populares-card {
        padding: 1rem;
        max-width: 100%;
        overflow: hidden;
        word-break: break-word;
    }
    .populares-title {
        font-size: 0.9rem;
    }
    .populares-desc {
        font-size: 0.8rem;
    }

    /* Banners Section */
    .banners-section {
        margin: 1.5rem auto 2rem auto;
        padding: 0 0.8rem;
        gap: 1rem;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
        grid-template-columns: 1fr !important;
    }
    .promo-banner {
        padding: 1rem 1rem;
        min-height: auto;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        max-width: 100%;
        overflow: hidden;
    }
    .banner-loja h3,
    .banner-oferta h3 {
        font-size: 1.1rem;
    }
    .banner-aproxime {
        padding: 1rem;
    }
    .banner-aproxime h3 {
        font-size: 1.1rem;
    }
    .aproxime-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 0.6rem;
        max-width: 100%;
    }
    .aprox-outline-btn {
        width: 100%;
        text-align: center;
    }
    .banner-oracao {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 1rem;
    }
    .oracao-content {
        max-width: 100%;
    }
    .oracao-actions {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    .oracao-text {
        max-width: 100%;
    }
    .placeholder-img {
        width: 100%;
        max-width: 120px;
        margin: 0 auto;
    }
    .oracao-title {
        font-size: 1.2rem;
    }

    /* Updates Grid */
    .updates-header-row {
        flex-direction: column;
        gap: 0.6rem;
        align-items: flex-start;
        max-width: 100%;
    }
    .updates-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        max-width: 100%;
    }
    .update-card {
        padding: 1rem;
        max-width: 100%;
        overflow: hidden;
        word-break: break-word;
    }
    .update-title {
        font-size: 0.95rem;
    }
    .update-snippet {
        font-size: 0.8rem;
    }

    /* Prayer Request Section */
    .prayer-form-row {
        grid-template-columns: 1fr;
    }
    .prayer-form {
        max-width: 100%;
    }
    .prayer-wall-header {
        padding: 1.2rem;
    }
    .prayer-wall-header h2 {
        font-size: 1.3rem;
    }
    .prayer-wall-header p {
        font-size: 0.85rem;
    }

    /* Bible Reader */
    .app-container {
        margin: 1rem auto;
        border-radius: 8px;
        max-width: 100%;
        width: 100%;
    }
    .sidebar {
        height: auto;
        min-height: auto;
        max-height: 250px;
        max-width: 100%;
    }
    .book-list-container {
        max-width: 100%;
        overflow-x: hidden;
    }
    .book-item {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    .reader-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.6rem;
        text-align: center;
    }
    .reader-header h2 {
        font-size: 1.3rem;
    }
    .verses-container {
        padding: 0.8rem;
        font-size: 0.95rem;
        max-height: 500px;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Daily View (Articles) */
    .daily-view {
        padding: 0 !important;
        max-width: 100%;
        overflow-x: hidden;
    }
    .daily-view img {
        max-height: 200px;
        max-width: 100%;
        border-radius: 6px;
    }
    .daily-view h2 {
        font-size: 1.2rem;
    }
    .daily-view .content {
        font-size: 0.9rem;
        line-height: 1.6;
        max-width: 100%;
        overflow-x: hidden;
        word-break: break-word;
    }
    .daily-view .content img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Footer */
    .site-footer {
        padding: 2rem 0.8rem 1rem 0.8rem;
        font-size: 0.8rem;
        width: 100%;
    }
    .footer-container {
        max-width: 100%;
        overflow-x: hidden;
    }
    .footer-top {
        max-width: 100%;
    }
    .footer-brand {
        min-width: unset;
        max-width: 100%;
    }
    .footer-logo {
        font-size: 2rem;
    }
    .footer-desc {
        font-size: 0.8rem;
        max-width: 100%;
    }
    .footer-buttons {
        flex-wrap: wrap;
        max-width: 100%;
    }
    .footer-links-grid {
        max-width: 100%;
        overflow-x: hidden;
    }
    .footer-copy {
        font-size: 0.75rem;
    }

    /* Cookie Banner */
    .cookie-banner {
        max-width: 100%;
    }
    .cookie-content {
        max-width: 100%;
    }
}

/* Animação do botão doar */
@keyframes doarHeartbeat {
    0% { transform: scale(1); box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3); }
    14% { transform: scale(1.08); box-shadow: 0 6px 18px rgba(212, 175, 55, 0.5); }
    28% { transform: scale(1); box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3); }
    42% { transform: scale(1.08); box-shadow: 0 6px 18px rgba(212, 175, 55, 0.5); }
    70% { transform: scale(1); box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3); }
    100% { transform: scale(1); box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3); }
}

.btn-doar-pulse {
    background-color: var(--accent-gold);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    animation: doarHeartbeat 2s infinite ease-in-out;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-doar-pulse:hover {
    background-color: #C5A031;
    color: #ffffff !important;
    animation: none;
    transform: scale(1.05);
}

@media (max-width: 400px) {
    .header-logo {
        font-size: 1.4rem;
    }
    .app-header .subtitle {
        font-size: 0.7rem;
    }
    .daily-buttons {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    .daily-btn {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    .resource-img {
        height: 120px;
    }
}

/* =========================================
   Related Articles & See Also Sections
   ========================================= */
.related-content-wrapper {
    margin-top: 3rem;
    background: transparent;
}

.related-articles-section {
    margin-bottom: 2rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.related-articles-section h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.8rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.see-also-section {
    background-color: #f0f7ff; /* Light blue tint */
    border-left: 5px solid #255EB3; /* Blue accent matching theme */
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.see-also-section h3 {
    font-size: 1.4rem;
    color: #255EB3;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.see-also-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.related-item {
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.related-item:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.related-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    background-color: #f0f0f0;
}

.related-item .item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1D2A3B;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    .see-also-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .see-also-grid {
        grid-template-columns: 1fr;
    }
}

