:root {
    --primary: #9c0808;
    /* The specific PDF Gold */
    --primary-hover: #9c0808;
    --dark: #0f1214;
    /* Deep Black */
    --darker: #0b0d0f;
    --light: #ffffff;
    --text-gray: #fff;
}

/* GENERAL RESET & TYPOGRAPHY */
html {
    font-size: 16px;
    /* Sets a solid base size for rem units */
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: var(--light);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor */
}

h1,
h2,
h3,
h4,
.serif {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

p {
    font-size: 1.05rem;
    /* Slightly larger than default for readability */
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

/* HELPERS */
.text-gold {
    color: var(--primary) !important;
}

.text-gray {
    color: var(--text-gray) !important;
}

.bg-darker {
    background-color: var(--darker);
}

.bg-black {
    background-color: #000;
}

.bg-gold {
    background-color: var(--primary);
}

.section-padding {
    padding: 100px 0;
}

.ls-2 {
    letter-spacing: 2px;
}

/* MAGIC CURSOR (PDF STYLE) */
.cb-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--light);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: difference;
}

.cb-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

/* NAVIGATION */
.navbar {
    padding: 20px 0;
    background: transparent;
    transition: all 0.4s ease;
}

.navbar-brand img {
    width: 20%;
    border-radius: 20px;
}

.navbar.scrolled {
    background: rgba(11, 13, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    color: var(--light) !important;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-left: 20px;
}

.btn-gold-nav {
    border: 1px solid var(--primary);
    padding: 5px 20px !important;
    border-radius: 30px;
}

.btn-gold-nav:hover {
    background: var(--primary);
    color: #fff !important;
}

/* HERO SLIDER */
.swiper {
    width: 100%;
    height: 100vh;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    background-image: url(/assets/gallery13.jpeg);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    z-index: 1;
}

.hero-content {
    z-index: 2;
    position: relative;
    max-width: 800px;
    opacity: 0;
    transform: translateY(50px);
}

.sub-heading {
    display: block;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

/* BUTTONS */
.btn-gold {
    background: var(--primary);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    border: none;
}

.btn-gold:hover {
    background: var(--primary-hover);
    transform: translateY(-5px);
    color: #fff;
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 1rem;
}

.btn-outline-gold:hover {
    background: var(--primary);
    color: #fff;
}

.link-gold {
    color: var(--primary);
    font-style: italic;
    font-family: 'Playfair Display';
    font-size: 1.25rem;
}

/* IMAGES & SHAPES */
.image-frame-tilt {
    position: relative;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.president-img-wrapper img {
    border-radius: 5px;
    filter: grayscale(20%);
    transition: 0.5s;
}

.president-img-wrapper:hover img {
    filter: grayscale(0%);
}

/* SOCIAL ICONS */
.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

/* PROGRAMS CARD */
.program-card {
    border-left: 3px solid var(--primary);
    padding-left: 20px;
    margin-bottom: 30px;
    transition: 0.3s;
}

.program-card:hover {
    padding-left: 30px;
}

/* BOOK CARD PLACEHOLDERS */
.book-card {
    text-align: center;
}

.book-cover-placeholder {
    width: 100%;
    /* height: 350px; */
    background: #1a1d20;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-family: serif;
}

/* GALLERY GRID */
.gallery-item {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, black, transparent);
    color: white;
}

/* --- QUOTE SLIDER STYLES --- */

/* Make the specific quote slider section tall enough */
.quoteSwiper {
    width: 100%;
}

/* Individual Slide Styling */
.quote-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* This creates the centering magic */
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Dark Overlay so text is readable on images */
.quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* 70% opacity black */
    z-index: 1;
}

/* Ensure text sits on top of overlay */
.quote-slide .container {
    z-index: 2;
}

/* Optional: Customize Swiper Arrows for this section */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary) !important;
    opacity: 0.5;
    transition: 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* --- MOBILE SPECIFIC TYPOGRAPHY & FIXES --- */
@media (max-width: 768px) {

    /* Increase body text size for mobile reading */
    html {
        font-size: 16px !important;
    }

    /* Disable Custom Cursor on Mobile (improves performance) */
    .cb-cursor,
    .cb-cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }

    h1 {
        font-size: 2.5rem;
    }

    /* Scale down huge headings */
    h2,
    h3,
    h4,
    h5 {
        font-size: 2rem;
    }

    /* Make paragraphs readable without zooming */
    p {
        font-size: 1.5rem;
        line-height: 1.6;
    }

    .text-uppercase,
    .link-gold,
    .btn-outline-gold {
        font-weight: 700;
        font-size: 1.2rem;
        background-color: #fff;
        padding: 5px;
        border-radius: 20px;
    }

    p,
    li {
        font-weight: 700 !important;
        color: #fff !important;
        font-size: 1.2rem !important;
    }

    .text-gray {
        color: #fff !important;
    }

    .section-padding {
        padding: 60px 0;
    }

    .navbar-collapse {
        background: #000;
        padding: 20px;
    }


    .book-cover-placeholder {
        overflow: hidden !important;
        /* padding: 10% !important; */
    }

    /* Center nav items on mobile */
    .nav-link {
        margin-left: 0;
        margin-bottom: 15px;
        text-align: center;
        font-size: 1.1rem;
    }

    .btn-gold-nav {
        display: inline-block;
        width: 100%;
        text-align: center;
    }

    /* Adjust Quote Slider Text */
    .quote-slide h3 {
        font-size: 1.5rem;
    }

    footer {
        margin: auto;
        padding: 10px;
    }
}