/* ===============================
   FONTS
================================ */
body {
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* ===============================
   HERO SECTION
================================ */
.hero-section {
    height: 35vh;
    min-height: 260px;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* ===============================
   CAROUSEL BASE
================================ */
#heroCarousel,
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    height: 100%;
}

.carousel-item {
    transition: transform 0.8s ease-in-out;
}

/* ===============================
   SLIDE LAYOUT
================================ */
.hero-slide {
    height: 100%;
}

/* ===============================
   IMAGE SECTION
================================ */
.hero-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===============================
   DIAGONAL DIVIDER
================================ */
.hero-image .divider {
    position: absolute;
    top: 0;
    right: -90px;
    width: 180px;
    height: 100%;
    background-color: var(--bs-primary);
    transform: skewX(-12deg);
    z-index: 2;
    pointer-events: none;
}

/* ===============================
   TEXT SECTION
================================ */
.hero-text {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 4.5rem;
    position: relative;
    z-index: 3;
}

.hero-text .content {
    max-width: 540px;
}

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.hero-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ===============================
   BUTTON
================================ */
.hero-text .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-text .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* ===============================
   CAROUSEL CONTROLS
================================ */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

/* ===============================
   INDICATORS
================================ */
.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
}

.carousel-indicators .active {
    background-color: #ffffff;
}

/* ===============================
   RESPONSIVE DESIGN
================================ */
@media (max-width: 991px) {
    .hero-text {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: auto;
    }

    .hero-image {
        height: 45vh;
    }

    .hero-image .divider {
        display: none;
    }

    .hero-text {
        height: auto;
        padding: 3rem 2rem;
        text-align: center;
    }

    .hero-text .content {
        margin: 0 auto;
    }
}

/* ===============================
   SMALL SCREENS
================================ */
@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}

/* ===============================
   NAVBAR BASE
================================ */
.diagonal-navbar {
    position: relative;
    padding: 0;
    min-height: 50px;
    overflow: hidden; /* critical */
}

/* ===============================
   BRAND BLOCK
================================ */
.navbar-brand-wrap {
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 4rem 0 1.75rem;
    background: var(--bs-primary);
    z-index: 2;

    /* TRUE 45° DIAGONAL CUT */
    clip-path: polygon(
        0 0,
        92% 0,
        100% 100%,
        0 100%
    );
}

/* BRAND TEXT */
.navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    margin: 0;
    color: #fff !important;
    white-space: nowrap;
}

/* ===============================
   NAV LINKS
================================ */
.navbar-nav .nav-link {
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: color 0.25s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffffff;
}

.navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

/* ===============================
   OFFCANVAS CLEANUP
================================ */
.offcanvas-body .nav-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.offcanvas-body .nav-item:last-child {
    border-bottom: none;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 991px) {
    .navbar-brand-wrap {
        clip-path: none;
        padding-right: 1.5rem;
    }
}

/* =============================== */
/* DROPDOWN Z-INDEX FIX */
/* =============================== */
.diagonal-navbar {
    z-index: 1050;
}

.offcanvas {
    z-index: 1060;
}

.dropdown-menu {
    z-index: 1070;
}

/* =============================== */
/* SIDEBAR STYLES */
/* =============================== */

.sidebar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.sidebar-title {
    color: #495057;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-secondary));
    border-radius: 2px;
}

.sidebar-links li {
    margin-bottom: 0.5rem;
}

.sidebar-links a {
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    display: block;
    border-radius: 8px;
    padding-left: 1rem;
}

.sidebar-links a:hover {
    color: var(--bs-primary);
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateX(5px);
}

.sidebar-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
    margin: 2rem 0;
}

#verseCarousel {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.8);
    padding: 1rem;
    margin: 1rem 0;
}

#verseCarousel .carousel-inner {
    height: auto;
}

#verseCarousel .carousel-item {
    transition: opacity 0.6s ease-in-out;
}

#verseCarousel .blockquote {
    font-style: italic;
    color: #495057;
    border-left: 4px solid var(--bs-primary);
    padding-left: 1rem;
    margin: 0;
}

#verseCarousel .blockquote-footer {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

#verseCarousel .carousel-control-prev,
#verseCarousel .carousel-control-next {
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#verseCarousel .carousel-control-prev {
    left: 10px;
}

#verseCarousel .carousel-control-next {
    right: 10px;
}

#verseCarousel .carousel-control-prev:hover,
#verseCarousel .carousel-control-next:hover {
    opacity: 1;
}

#verseCarousel .carousel-control-prev-icon,
#verseCarousel .carousel-control-next-icon {
    width: 12px;
    height: 12px;
}

.social-link {
    color: #6c757d;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: var(--bs-primary);
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateX(5px);
}

.social-link i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Responsive Sidebar */
@media (max-width: 991px) {
    .sidebar {
        margin-top: 2rem;
    }

    .sidebar-title {
        font-size: 1rem;
    }

    #verseCarousel {
        padding: 0.75rem;
    }
}

/* ===============================
   BOOKS & VIDEOS CARDS - REMOVE UNDERLINES
================================ */
#books-container a,
#videos-container a {
    text-decoration: none !important;
    color: inherit;
}

#books-container a *,
#videos-container a * {
    text-decoration: none !important;
}

#books-container a:hover,
#videos-container a:hover {
    text-decoration: none !important;
}

.book-card,
.video-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover,
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===============================
   MODERN SIDEBAR WIDGETS
================================ */
.sidebar-widget .card {
    /* No hover transform to prevent shake effect */
}

.sidebar-widget .card:hover {
    /* No hover transform to prevent shake effect */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

.sidebar-widget .card-header {
    border-bottom: none;
    font-size: 0.95rem;
}

.sidebar-widget .list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.sidebar-widget .list-group-item:last-child {
    border-bottom: none;
}

.sidebar-widget .list-group-item:hover {
    background-color: rgba(25, 135, 84, 0.08);
    padding-left: 1.25rem;
}

.sidebar-widget .list-group-item span {
    color: #495057;
    font-weight: 500;
}

.sidebar-widget .list-group-item:hover span {
    color: #198754;
}

/* Social Buttons */
.social-btn {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    color: #fff !important;
}

.social-btn.btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.social-btn.btn-outline-info:hover {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}

.social-btn.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
}

.social-btn.btn-outline-dark:hover {
    background-color: #212529;
    border-color: #212529;
}

.social-btn.btn-outline-success:hover {
    background-color: #198754;
    border-color: #198754;
}

/* Contact Info Widget */
.sidebar-widget .bg-opacity-10 {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Newsletter Form */
#newsletter-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

#newsletter-form .btn:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

/* Verse Carousel Indicators */
#verseCarousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 3px;
    border: none;
}

#verseCarousel .carousel-indicators button.active {
    width: 24px;
    border-radius: 4px;
}
