/* Fonts Import (Handled in Header, but defined here) */
:root {
    /* PREMIUM PALETTE */
    --primary-color: #0F172A;
    /* Deep Royal Navy */
    --secondary-color: #1E293B;
    /* Slate 800 */
    --accent-color: #D4AF37;
    /* Metallic Gold */
    --accent-glow: rgba(212, 175, 55, 0.4);

    --text-dark: #334155;
    --text-light: #64748B;
    --bg-light: #F8FAFC;
    /* Crisp White/Gray */
    --white: #ffffff;

    /* Font Families */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--bg-light);
    font-weight: 400;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* NAVBAR - PREMIUM GLASS */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    /* Deep Navy */
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    /* Subtle Gold Border */
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: var(--white) !important;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem !important;
    margin: 0 5px;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Space between icon and text */
}

.nav-link i {
    margin: 0 !important;
    /* Reset any margins to use flex gap */
}

.nav-link:hover {
    color: var(--accent-color) !important;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--primary-color) !important;
    background-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
    font-weight: 700;
}

/* White Hamburger Menu */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* HERO SECTION - CINEMATIC */
.carousel-item {
    height: 100vh;
    min-height: 600px;
    background: no-repeat center center scroll;
    background-size: cover;
}

.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient Overlay */
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}

.carousel-caption {
    bottom: 35%;
    z-index: 2;
}

.carousel-caption h1 {
    font-size: 4.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 10px;
}

.hero-title-container {
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.hero-top-text {
    letter-spacing: 3px;
    opacity: 0.9;
    font-size: calc(1.3rem + 0.6vw);
}

.hero-main-text {
    line-height: 1.1;
    font-size: calc(1.3rem + 2vw);
    white-space: nowrap;
    /* Prevents overflow if it's too long */
}

.carousel-caption p.lead {
    font-size: 1.4rem;
    font-family: var(--font-body);
    font-weight: 300;
    background: rgba(15, 23, 42, 0.7);
    /* Dark background for readability */
    backdrop-filter: blur(5px);
    padding: 15px 30px;
    border-radius: 2px;
    /* Sharp corners */
    border-left: 4px solid var(--accent-color);
}

/* STANDARD PAGE HEADER */
.page-header {
    background-position: center center;
    background-size: cover;
    min-height: 45vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -100px;
    /* Behind Navbar */
    padding-top: 190px;
    /* Sufficient space to clear modern high navbar */
    padding-bottom: 60px;
}

.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    z-index: 1;
}

.header-content-box {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 40px 60px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
}

.page-header h1 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.page-header .verse-ref {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
}

/* CARDS - SHARP & CLEAN */
.card,
.glass-card,
.news-card {
    border-radius: 2px;
    /* Sharp edges for modern feel */
    border: none;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Glass Card Specifics for Equal Height & Liquid Glass Effect */
.glass-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    /* Rounded corners */
    background: rgba(255, 255, 255, 0.4);
    /* Glass base */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Target only the main icon at the top of the card */
.glass-card>i,
.glass-card .main-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

/* Specific Style for Share Button to look Premium */
.btn-share {
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 6px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-share i {
    font-size: 1rem !important;
    /* Force smaller size */
    margin-bottom: 0 !important;
    margin-right: 8px;
    color: var(--accent-color);
}

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

.btn-share:hover i {
    color: white;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Apple Liquid Glass Effect */
.btn-liquid {
    background: rgba(0, 111, 255, 0.1);
    /* Subtle Blue Tint base */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    color: #0044cc;
    /* Deep Blue Text */
    font-weight: 700;
    border-radius: 50px;
    padding: 10px 25px;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    transition: all 0.3s ease;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Multimedia Tab Visibility Fix */
.nav-pills .nav-link.btn-liquid {
    background: rgba(15, 23, 42, 0.05) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    margin-bottom: 10px;
    opacity: 0.6;
}

.nav-pills .nav-link.btn-liquid.active {
    background: var(--primary-color) !important;
    color: var(--accent-color) !important;
    opacity: 1;
    border-color: var(--primary-color) !important;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.2);
}

.nav-pills .nav-link.btn-liquid:hover:not(.active) {
    opacity: 1;
    background: rgba(15, 23, 42, 0.1) !important;
}

.btn-liquid:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    background: rgba(0, 111, 255, 0.2);
    background: rgba(0, 111, 255, 0.2);
    background: rgba(0, 111, 255, 0.2);
    color: #003399;
}

/* MODAL GLASS EFFECT (Apple Liquid Glass Style) */
.modal-glass .modal-content {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.modal-glass .modal-header {
    background: rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.modal-glass .modal-title {
    color: var(--primary-color);
    font-weight: 700;
}

.modal-glass .modal-body {
    color: var(--primary-color);
}

.modal-glass .modal-footer {
    background: rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.modal-backdrop.glass-backdrop {
    background-color: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(8px);
}

/* News Cards */
.news-card {
    overflow: hidden;
    /* Ensure rounded corners clip image */
}

.news-card-img-wrapper {
    position: relative;
    height: 250px;
    /* Fixed height for consistency */
    overflow: hidden;
    background-color: #f1f5f9;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image fills box without distortion */
    transition: transform 0.5s ease;
}

.news-card:hover img {
    transform: scale(1.05);
    /* Zoom effect on hover */
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* BUTTONS */
.btn-primary,
.btn-gradient {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 2px;
    /* Sharp */
    background: var(--accent-color);
    border: none;
    color: var(--primary-color);
    transition: all 0.3s;
}

.btn-primary:hover,
.btn-gradient:hover {
    background: #c5a028;
    /* Darker Gold */
    color: var(--primary-color);
    box-shadow: 0 5px 15px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 2px;
}

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

/* FOOTER */
footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 80px 0 40px 0;
    font-size: 0.9rem;
}

footer h5 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

footer .bible-quote {
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
    color: white;
    font-style: italic;
    font-family: var(--font-heading);
}

footer a:hover {
    color: var(--accent-color);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary-color);
        padding: 20px;
        margin-top: 10px;
        border-top: 1px solid var(--accent-color);
    }

    .nav-item {
        margin-bottom: 5px;
        text-align: center;
    }

    .nav-link.active {
        background-color: transparent !important;
        color: var(--accent-color) !important;
        box-shadow: none;
        border: 1px solid var(--accent-color);
    }
}

@media (max-width: 768px) {
    .carousel-caption {
        bottom: 25%;
        padding: 0 15px;
    }

    .carousel-caption h1 {
        font-size: 2.2rem;
        /* Adjusted for Cinzel width */
        margin-bottom: 1rem;
        line-height: 1.2;
        border-bottom-width: 2px;
    }

    .carousel-caption p.lead {
        font-size: 1rem;
        padding: 10px 15px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .header-content-box {
        padding: 30px 20px;
    }

    /* Navbar Small Adjustments */
    .navbar-brand span.d-block.fw-bold {
        font-size: 0.95rem !important;
    }

    .hero-main-text {
        font-size: 1.5rem;
        white-space: nowrap;
        /* Force readable size on mobile */
    }

    .hero-top-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand span.d-block.fw-bold {
        font-size: 0.85rem !important;
    }

    .navbar-brand img {
        height: 40px !important;
    }

    .hero-main-text {
        font-size: 1.8rem;
    }
}

/* SOCIAL MEDIA ICONS - UNIFIED */
.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a,
.social-icons .btn {
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    color: var(--white) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    padding: 0 !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

.social-icons a:hover,
.social-icons .btn:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
    opacity: 0.9;
}

.social-fb {
    background-color: #1877F2 !important;
}

.social-tt {
    background-color: #010101 !important;
}

.social-wa {
    background-color: #25D366 !important;
}

.social-yt {
    background-color: #FF0000 !important;
}

.social-ig {
    background-color: #E4405F !important;
}