:root {
    --primary: #C41E3A;
    --primary-dark: #9B1830;
    --accent: #E67E22;
    --accent-light: #F5A623;
    --bg-cream: #FAF7F2;
    --bg-light: #F5F0EB;
    --text-dark: #2C2C2C;
    --text-muted: #666666;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(196, 30, 58, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
}

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

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

/* Top Bar */
.top-bar {
    background: var(--text-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.85);
}

.top-bar a:hover {
    color: var(--accent-light);
}

.top-bar .social-icons a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-left: 6px;
    font-size: 0.9rem;
}

.top-bar .social-icons a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Header */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 70px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 16px !important;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-accent:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.92), rgba(155, 24, 48, 0.88));
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(230, 126, 34, 0.15), transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 650px;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    margin: 5px 8px 5px 0;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-cream);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title .divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0 auto 15px;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Book Cards */
.book-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.book-card .book-cover {
    height: 280px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-card .book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.book-card:hover .book-cover img {
    transform: scale(1.05);
}

.book-card .book-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-card .category-badge {
    display: inline-block;
    background: rgba(196, 30, 58, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.book-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.book-card h3 a {
    color: var(--text-dark);
}

.book-card h3 a:hover {
    color: var(--primary);
}

.book-card .author {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.book-card .description {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex: 1;
    margin-bottom: 15px;
}

.book-card .card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Value Cards */
.value-card {
    text-align: center;
    padding: 35px 25px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.value-card .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.5rem;
}

.value-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-left: 4px solid var(--primary);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--accent);
}

.service-card .icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.service-card h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Mission/Vision Cards */
.mv-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.mv-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay span {
    color: var(--white);
    font-weight: 500;
}

/* Video Cards */
.video-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.video-card .thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-card .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(196, 30, 58, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.video-card:hover .play-btn {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card .video-body {
    padding: 20px;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.page-banner h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 15px;
}

.page-banner p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 15px;
}

.cta-section p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Newsletter */
.newsletter-section {
    background: var(--bg-cream);
    padding: 60px 0;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    border-radius: 8px 0 0 8px;
    border: 2px solid #ddd;
    padding: 12px 16px;
}

.newsletter-form .btn {
    border-radius: 0 8px 8px 0;
}

/* Footer */
.main-footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.main-footer h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: 'Merriweather', serif;
}

.main-footer a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    padding: 4px 0;
}

.main-footer a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

.main-footer .footer-logo img {
    height: 80px;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
}

/* Forms */
.form-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.form-label {
    font-weight: 600;
    margin-bottom: 6px;
}

/* Book Details */
.book-detail-cover {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.book-detail-cover img {
    width: 100%;
}

.theme-badge {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 4px;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

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

/* Filter Bar */
.filter-bar {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

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

/* Homepage Enhancements */
.home-hero.hero-section {
    background: none;
    min-height: auto;
    padding: 0;
    display: block;
    position: relative;
    overflow: visible;
}

.home-hero.hero-section::before {
    display: none;
}

.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-slide {
    min-height: 88vh;
}

.hero-slide .container {
    padding-bottom: 5.5rem;
}

.hero-carousel .carousel-item {
    transition: opacity 0.9s ease-in-out;
}

.hero-slide {
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
}

.hero-slide-bg {
    position: absolute;
    inset: -8%;
    background-size: cover;
    background-position: center;
    transform: scale(1.12);
    filter: blur(4px) saturate(1.15);
    z-index: 0;
}

.carousel-item.active .hero-slide-bg {
    animation: heroKenBurns 14s ease-out forwards;
}

@keyframes heroKenBurns {
    from {
        transform: scale(1.12);
    }

    to {
        transform: scale(1.22);
    }
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(115deg, rgba(24, 8, 12, 0.88) 0%, rgba(155, 24, 48, 0.78) 42%, rgba(196, 30, 58, 0.72) 100%),
        linear-gradient(to top, rgba(17, 17, 17, 0.55) 0%, transparent 38%);
}

.hero-slide-theme-faith .hero-slide-overlay {
    background:
        linear-gradient(115deg, rgba(18, 10, 12, 0.9) 0%, rgba(120, 18, 36, 0.82) 45%, rgba(196, 30, 58, 0.68) 100%),
        radial-gradient(circle at 18% 22%, rgba(230, 126, 34, 0.28), transparent 34%),
        linear-gradient(to top, rgba(17, 17, 17, 0.58) 0%, transparent 40%);
}

.hero-slide-theme-books .hero-slide-overlay {
    background:
        linear-gradient(120deg, rgba(12, 18, 28, 0.9) 0%, rgba(88, 20, 38, 0.8) 38%, rgba(196, 30, 58, 0.7) 100%),
        radial-gradient(circle at 82% 18%, rgba(245, 166, 35, 0.22), transparent 30%),
        linear-gradient(to top, rgba(17, 17, 17, 0.58) 0%, transparent 40%);
}

.hero-slide-theme-media .hero-slide-overlay {
    background:
        linear-gradient(125deg, rgba(10, 16, 24, 0.92) 0%, rgba(52, 24, 66, 0.78) 40%, rgba(155, 24, 48, 0.72) 100%),
        radial-gradient(circle at 72% 72%, rgba(230, 126, 34, 0.24), transparent 32%),
        linear-gradient(to top, rgba(17, 17, 17, 0.58) 0%, transparent 40%);
}

.hero-slide-pattern {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
}

.hero-slide-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 2;
    pointer-events: none;
}

.hero-slide-glow-one {
    width: 280px;
    height: 280px;
    top: 10%;
    right: 8%;
    background: rgba(230, 126, 34, 0.28);
    animation: heroGlowFloat 10s ease-in-out infinite alternate;
}

.hero-slide-glow-two {
    width: 220px;
    height: 220px;
    bottom: 18%;
    left: 6%;
    background: rgba(255, 255, 255, 0.12);
    animation: heroGlowFloat 12s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlowFloat {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(0, -18px, 0);
    }
}

.hero-slide::before,
.hero-slide::after {
    display: none;
}

.hero-slide .container {
    position: relative;
    z-index: 3;
}

.hero-slide .hero-content {
    position: relative;
    z-index: 3;
}

.hero-carousel-indicators {
    bottom: 6.5rem;
    margin-bottom: 0;
    gap: 0.35rem;
    z-index: 4;
}

.hero-carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    opacity: 1;
    transition: var(--transition);
}

.hero-carousel-indicators .active {
    background: var(--white);
    transform: scale(1.15);
}

.hero-carousel-control {
    width: auto;
    padding: 0 1rem;
    opacity: 1;
}

.hero-carousel-control-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.hero-carousel-control:hover .hero-carousel-control-icon {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
}

.home-hero .hero-content p {
    margin-left: 0;
    margin-right: 0;
}

.home-hero .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.65rem;
}

.home-hero .hero-buttons .btn {
    margin: 0;
}

.hero-book-showcase {
    position: relative;
    min-height: 430px;
    width: 100%;
}

.hero-book-showcase-seven {
    max-width: 360px;
    margin-left: auto;
    margin-right: 0;
}

.hero-book-cover {
    position: absolute;
    width: 108px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    transition: var(--transition);
}

.hero-book-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-book-cover:hover {
    transform: translateY(-8px) scale(1.04);
    z-index: 8;
}

.hero-book-showcase-seven .hero-book-cover-1 {
    left: 0;
    top: 48px;
    transform: rotate(-14deg);
    z-index: 1;
}

.hero-book-showcase-seven .hero-book-cover-2 {
    left: 52px;
    top: 18px;
    transform: rotate(-8deg);
    z-index: 2;
}

.hero-book-showcase-seven .hero-book-cover-3 {
    left: 104px;
    top: 0;
    transform: rotate(-2deg);
    z-index: 3;
}

.hero-book-showcase-seven .hero-book-cover-4 {
    left: 156px;
    top: 10px;
    transform: rotate(4deg);
    z-index: 4;
}

.hero-book-showcase-seven .hero-book-cover-5 {
    left: 208px;
    top: 28px;
    transform: rotate(10deg);
    z-index: 5;
}

.hero-book-showcase-seven .hero-book-cover-6 {
    left: 64px;
    top: 168px;
    transform: rotate(-6deg);
    z-index: 2;
}

.hero-book-showcase-seven .hero-book-cover-7 {
    left: 148px;
    top: 152px;
    transform: rotate(6deg);
    z-index: 3;
}

.hero-book-badge {
    position: absolute;
    left: 0;
    bottom: 18px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    padding: 1rem 1.15rem;
    border-radius: 14px;
    box-shadow: var(--shadow);
    text-align: center;
    z-index: 9;
}

.hero-book-badge strong {
    display: block;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--primary);
}

.hero-book-badge span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-weight: 600;
}

.home-hero .hero-content h1,
.home-hero .hero-content p {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
}

.hero-eyebrow-light {
    background: rgba(255, 255, 255, 0.12);
}

.section-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.divider-left {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.lead-text {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.home-about-section {
    padding-top: 40px;
}

.home-stats-strip {
    background: transparent;
    padding: 0;
    margin-top: calc(-1 * var(--home-stat-overlap));
    margin-bottom: calc(var(--home-stat-overlap) - 1.5rem);
    position: relative;
    z-index: 6;
    --home-stat-overlap: 3.75rem;
}

.home-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    min-height: calc(var(--home-stat-overlap) * 2);
}

.home-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(196, 30, 58, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.home-stat-card strong {
    display: block;
    font-size: 1.5rem;
    line-height: 1.1;
    color: var(--text-dark);
}

.home-stat-card span {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.home-about-visual {
    position: relative;
    background: linear-gradient(135deg, var(--bg-cream), var(--bg-light));
    border-radius: 20px;
    padding: 2.5rem;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-about-logo {
    max-height: 260px;
    width: auto;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.home-about-accent-card {
    position: absolute;
    right: -10px;
    bottom: -10px;
    max-width: 240px;
    background: var(--white);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: var(--shadow-hover);
    border-left: 4px solid var(--accent);
}

.home-about-accent-card i {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.home-about-accent-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.home-about-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.home-about-highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-dark);
}

.home-about-highlight i {
    color: var(--primary);
    margin-top: 0.15rem;
}

.books-carousel-wrapper {
    position: relative;
}

.books-carousel {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.5rem 0.25rem 1rem;
    scrollbar-width: none;
}

.books-carousel::-webkit-scrollbar {
    display: none;
}

.books-carousel-item {
    flex: 0 0 min(100%, 280px);
    scroll-snap-align: start;
}

.books-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.books-carousel-nav:hover {
    background: var(--primary);
    color: var(--white);
}

.books-carousel-prev {
    left: -12px;
}

.books-carousel-next {
    right: -12px;
}

.home-mv-card {
    padding-top: 2.5rem;
}

.mv-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(196, 30, 58, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.author-meta {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.home-quick-links {
    padding-top: 50px;
    padding-bottom: 50px;
}

.home-quick-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-dark);
    transition: var(--transition);
}

.home-quick-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    color: var(--text-dark);
}

.home-quick-link i {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(196, 30, 58, 0.1);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.home-quick-link strong {
    font-size: 1.05rem;
}

.home-quick-link span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    height: 100%;
    border-top: 4px solid var(--primary);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.news-card-date {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.news-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.news-card h4 a {
    color: var(--text-dark);
}

.news-card h4 a:hover {
    color: var(--primary);
}

.news-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.news-card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.92rem;
}

.home-cta-content {
    max-width: 760px;
    margin: 0 auto;
}

.home-videos-section .category-badge {
    display: inline-block;
    background: rgba(196, 30, 58, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
}

/* Admin styles moved to admin.css */

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }

    .hero-section p {
        margin-left: auto;
        margin-right: auto;
    }

    .home-stats-strip {
        --home-stat-overlap: 3rem;
        margin-bottom: calc(var(--home-stat-overlap) - 1rem);
    }

    .hero-slide .container {
        padding-bottom: 4.5rem;
    }

    .hero-carousel-indicators {
        bottom: 5.5rem;
    }

    .home-hero .hero-content {
        text-align: center;
    }

    .home-hero .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero .hero-buttons {
        justify-content: center;
    }

    .hero-book-showcase-seven {
        max-width: 320px;
        min-height: 360px;
        margin: 1rem auto 0;
    }

    .hero-book-showcase-seven .hero-book-cover {
        width: 88px;
    }

    .hero-book-showcase-seven .hero-book-cover-1 { left: 0; top: 36px; }
    .hero-book-showcase-seven .hero-book-cover-2 { left: 42px; top: 12px; }
    .hero-book-showcase-seven .hero-book-cover-3 { left: 84px; top: 0; }
    .hero-book-showcase-seven .hero-book-cover-4 { left: 126px; top: 8px; }
    .hero-book-showcase-seven .hero-book-cover-5 { left: 168px; top: 22px; }
    .hero-book-showcase-seven .hero-book-cover-6 { left: 52px; top: 132px; }
    .hero-book-showcase-seven .hero-book-cover-7 { left: 118px; top: 120px; }

    .hero-book-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
    }

    .home-about-accent-card {
        position: static;
        max-width: none;
        margin-top: 1.5rem;
    }

    .books-carousel-nav {
        display: none;
    }

    .navbar-brand img {
        height: 55px;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .book-card .book-cover {
        height: 220px;
    }

    .hero-buttons .btn {
        display: inline-flex;
        width: auto;
        margin: 0;
    }

    .home-hero .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .home-hero .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .hero-slide-bg {
        filter: blur(2px) saturate(1.1);
    }

    .carousel-item.active .hero-slide-bg {
        animation: none;
        transform: scale(1.12);
    }

    .hero-slide-glow {
        display: none;
    }

    .hero-carousel-control {
        display: none;
    }

    .hero-carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item,
    .hero-slide {
        min-height: 78vh;
    }
}

/* Placeholder images */
.book-placeholder {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-cream));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
}

.book-placeholder i {
    opacity: 0.3;
}

/* Lightbox override */
.lb-data .lb-caption {
    font-size: 14px;
    font-weight: 500;
}

/* Alert messages */
.alert-success-custom {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error-custom {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
