/* ===================================
   RELIGIOUS TEXTS - FRESH START
   Simple, clean styles only
   ================================== */

/* Homepage Hero - Compact */
.rt-hero {
    background: linear-gradient(135deg, #422504 0%, #2a1602 100%);
    padding: 25px 0;
    text-align: center;
    color: white;
}

.rt-hero-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.rt-hero-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.95;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
}

/* Homepage Dual CTA - 50/50 */
.rt-dual-cta {
    background-color: #DABF75;
    padding: 25px 0;
}

.rt-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.rt-guide-cta,
.rt-featured-compact {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.rt-guide-cover,
.rt-featured-cover {
    width: 100px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.rt-guide-content h2,
.rt-featured-text h3 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 20px;
    margin-bottom: 5px;
    color: #422504;
}

.rt-featured-text h3 {
    font-size: 16px;
}

.rt-guide-content p,
.rt-featured-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
}

.rt-featured-series {
    display: inline-block;
    background-color: #DABF75;
    color: #422504;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Homepage Categories - Full Width */
.rt-categories {
    padding: 40px 0;
    background-color: white;
}

.rt-categories .container {
    max-width: none;
    padding: 0 40px;
}

.rt-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.rt-category-card {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #422504;
}

.rt-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(66, 37, 4, 0.2);
}

.rt-category-image {
    position: absolute;
    width: 100%;
    height: 100%;
}

.rt-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rt-category-card:hover .rt-category-image img {
    transform: scale(1.05);
}

.rt-category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    color: white;
}

.rt-category-content h3 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 20px;
    margin-bottom: 8px;
    color: white;
}

.rt-category-content p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
}

.rt-category-count {
    font-size: 12px;
    font-weight: 700;
    color: #DABF75;
    text-transform: uppercase;
}

/* ===================================
   SIDEBAR ADS - Compact Layout
   ================================== */

.rt-sidebar-book {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e5e5e5;
}

.rt-sidebar-cover-link {
    flex-shrink: 0;
    display: block;
}

.rt-sidebar-cover {
    width: 70px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rt-sidebar-info {
    flex: 1;
    min-width: 0;
}

.rt-sidebar-subtitle {
    font-size: 11px;
    font-style: italic;
    color: #A8904F;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* ===================================
   MOBILE RESPONSIVE
   ================================== */

@media (max-width: 768px) {

    /* --- Header: tighter on mobile --- */
    .header-content {
        padding: 10px 0;
    }

    .logo-icon {
        height: 30px;
        margin-right: 10px;
    }

    .logo h1 {
        font-size: 18px;
        letter-spacing: 0.5px;
    }

    /* --- Hero: compact --- */
    .rt-hero {
        padding: 15px 0;
    }

    .rt-hero-title {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .rt-hero-subtitle {
        font-size: 12px;
    }

    /* --- Dual CTA: horizontal rows, not stacked cards --- */
    .rt-dual-cta {
        padding: 12px 0;
    }

    .rt-dual-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rt-guide-cta,
    .rt-featured-compact {
        flex-direction: row;
        text-align: left;
        padding: 10px 12px;
        gap: 12px;
        align-items: center;
    }

    .rt-guide-cover,
    .rt-featured-cover {
        width: 60px;
    }

    .rt-guide-content h2 {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .rt-guide-content p {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .rt-featured-text h3 {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .rt-featured-subtitle {
        font-size: 11px;
        margin-bottom: 6px;
    }

    /* Hide KU badge on mobile to save space */
    .rt-featured-compact > a > div[style*="background: linear-gradient"],
    .rt-featured-text > a > div[style*="background: linear-gradient"] {
        display: none;
    }

    .btn-sm {
        padding: 5px 10px;
        font-size: 11px;
    }

    /* --- Categories: tighter grid --- */
    .rt-categories {
        padding: 20px 0;
    }

    .rt-categories .container {
        padding: 0 12px;
    }

    .rt-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .rt-category-card {
        aspect-ratio: 4 / 3;
    }

    .rt-category-content {
        padding: 10px;
    }

    .rt-category-content h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .rt-category-content p {
        display: none;
    }

    .rt-category-count {
        font-size: 10px;
    }

    /* --- Sidebar: compact on mobile --- */
    .rt-sidebar-book {
        gap: 10px;
        padding: 10px;
        margin-bottom: 8px;
    }

    .rt-sidebar-cover {
        width: 50px;
    }

    .rt-sidebar-info h4 {
        font-size: 13px !important;
    }

    .rt-sidebar-subtitle {
        font-size: 10px;
        margin-bottom: 6px;
    }

    /* --- Book page: single column --- */
    div[style*="grid-template-columns: 1fr 300px"] {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .rt-hero-title {
        font-size: 18px;
    }

    .rt-hero-subtitle {
        font-size: 11px;
    }

    .rt-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .rt-category-content h3 {
        font-size: 13px;
    }
}

/* Ultra-wide screens */
@media (min-width: 1800px) {
    .rt-categories .container {
        padding: 0 60px;
    }

    .rt-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 30px;
    }
}