:root {
    --imbila-black: #14100C;
    --imbila-gold: #B29660;
    --imbila-orange: #CC7B44;
    --imbila-bg: #f8f8f8;
}

.heading-font {
    font-family: 'Florent Bold', Georgia, serif;
}

body {
    font-family: 'Work Sans', sans-serif;
    background-color: var(--imbila-bg);
}

.bg-imbila-black { background-color: var(--imbila-black) !important; }
.text-imbila-gold { color: var(--imbila-gold) !important; }
.text-imbila-orange { color: var(--imbila-orange) !important; }
.bg-imbila-gold { background-color: var(--imbila-gold) !important; }
.bg-imbila-orange { background-color: var(--imbila-orange) !important; }

.btn-gold {
    background-color: var(--imbila-gold);
    border-color: var(--imbila-gold);
    color: var(--imbila-black);
    font-weight: 600;
}

.btn-gold:hover {
    background-color: var(--imbila-orange);
    border-color: var(--imbila-orange);
    color: var(--imbila-black);
}

.btn-outline-gold {
    border: 2px solid var(--imbila-gold);
    color: var(--imbila-gold);
    font-weight: 600;
    background: transparent;
}

.btn-outline-gold:hover {
    background-color: var(--imbila-gold);
    color: var(--imbila-black);
}

.hero-section {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    padding-top: 120px;
    padding-bottom: 100px;
}

.value-card {
    border-left: 4px solid var(--imbila-gold);
    transition: transform 0.3s ease;
}

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

.nav-link {
    font-weight: 500;
    color: var(--imbila-black) !important;
}

.nav-link:hover {
    color: var(--imbila-gold) !important;
}

.full-width-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.logo-placeholder {
    width: 180px;
    height: 60px;
    background: linear-gradient(45deg, var(--imbila-gold), var(--imbila-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border-radius: 4px;
}

.contact-info {
    background: linear-gradient(135deg, var(--imbila-black) 0%, #2a2a2a 100%);
}

/* Heading lines */
.heading-with-line {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.heading-with-line::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--imbila-gold);
}

.heading-with-line::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--imbila-orange);
}

/* Custom bullets */
.custom-bullets {
    list-style: none;
    padding-left: 0;
}

.custom-bullets li {
    padding-left: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.custom-bullets li::before {
    content: '\eb80';
    font-family: 'remixicon';
    font-weight: normal;
    position: absolute;
    left: 0;
    color: var(--imbila-gold);
    font-size: 1.2rem;
}

/* Column divider */
.column-divider {
    position: relative;
}

.column-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 2px;
    height: 80%;
    background: #B29660;
}

/* Lightbox styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.lightbox-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--imbila-black);
}

.whatsapp-float {
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Ensuring each contact item has enough breathing space */
.contact-info .col-md-3 {
  text-align: center;
}

/*Vertical spacing between rows on smaller screens */
.contact-info .row.gy-5 {
  row-gap: 3rem; /* increases space between rows */
}

/* Removing any hyperlink styling from WhatsApp */
.whatsapp-float {
  text-decoration: none !important;
  color: inherit !important;
  display: inline-block;
}
.whatsapp-float:hover {
  color: inherit !important;
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/*Make icons and text nicely spaced */
.contact-info i {
  margin-bottom: 1rem;
}

/* Responsive fine-tuning */
@media (max-width: 767.98px) {
  .contact-info .col-md-3 {
    margin-bottom: 2rem;
  }
}

.hero-img {
    border-left: 4px solid var(--imbila-gold);
    transition: transform 0.3s ease;
}

/* Ministry Projects & Partnerships - hover cards */
.ministry-section .hover-card {
  transition: all 0.3s ease;
  background-color: #fafafa; /* subtle default light background */
  cursor: pointer;
}

.ministry-section .hover-card:hover {
  transform: translateY(-4px); /* card lift */
  background-color: #fff8e7;    /* warm gold-tinted highlight */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Optional: make headings slightly grow on hover */
.ministry-section .hover-card:hover h5 {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Optional: subtle border glow on hover */
.ministry-section .hover-card:hover {
  border-color: var(--imbila-gold, #d4af37);
}

/* Smooth icon/element scaling if you want to add icons inside */
.ministry-section i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.ministry-section .hover-card:hover i {
  transform: scale(1.15);
  color: var(--imbila-gold, #d4af37);
}

/* Section heading underline (optional) */
.ministry-section .heading-with-line {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.ministry-section .heading-with-line::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--imbila-gold, #d4af37);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Responsive adjustment */
@media (max-width: 767.98px) {
  .ministry-section .hover-card {
    text-align: center;
  }
}

/* Hover effect for specific cards */
.hover-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Lift and subtle background change */
.hover-card:hover {
  transform: translateY(-4px);
  background-color: #fff8e7; /* subtle warm gold tint */
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* Icon animation */
.hover-card i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.hover-card:hover i {
  transform: scale(1.15);
  color: var(--imbila-gold, #d4af37);
}

/* Heading animation */
.hover-card:hover h5 {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Optional responsive fix */
@media (max-width: 767.98px) {
  .hover-card {
    text-align: center;
  }
}

/* Centered Navigation */
.navbar-nav {
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

@media (min-width: 992px) {
    .navbar-nav {
        transform: translateX(0);
    }
}

/* Bookstore Styles */
.book-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.book-image {
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

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

.book-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.price-tag {
    font-weight: 700;
    color: var(--imbila-gold);
    font-size: 1.2rem;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.cart-btn {
    transition: all 0.3s ease;
}

.cart-btn:hover {
    transform: scale(1.05);
}

.filter-btn {
    border-radius: 30px;
    padding: 8px 20px;
    margin: 5px;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: var(--imbila-gold);
    color: white;
    border-color: var(--imbila-gold);
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1100; /* Increased z-index */
    transition: right 0.3s ease;
    overflow-y: auto;
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1099; /* Just below cart sidebar */
    display: none;
}

.cart-overlay.active {
    display: block;
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    margin: 0 5px;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    font-weight: 600;
}

.book-detail-modal .modal-content {
    border-radius: 12px;
    overflow: hidden;
    z-index: 2001 !important;
}

.book-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.rating-stars {
    color: #FFC107;
}

.search-box {
    position: relative;
    margin-right: 15px;
}

.search-input {
    padding-right: 45px;
    border-radius: 30px;
    width: 250px;
    transition: all 0.3s ease;
}

.search-input:focus {
    width: 300px;
    box-shadow: 0 0 0 0.2rem rgba(178, 150, 96, 0.25);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    border: none;
    background: transparent;
    color: var(--imbila-gold);
    cursor: pointer;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.category-section {
    margin-bottom: 40px;
}

.category-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--imbila-gold);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--imbila-orange);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-methods img {
    height: 30px;
    margin-right: 10px;
}

.book-features {
    list-style: none;
    padding: 0;
}

.book-features li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}

.book-features li:before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--imbila-gold);
    font-weight: bold;
}

/* Full Page Bookstore Styles - FIXED Z-INDEX */
.bookstore-fullpage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1050; /* Reduced from 2000 to allow modals to appear on top */
    overflow-y: auto;
    display: none;
}

.bookstore-fullpage.active {
    display: block;
}

.bookstore-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.bookstore-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--imbila-black);
    cursor: pointer;
}

.bookstore-content {
    padding: 30px 0;
}

/* Enhanced Book Detail Styles */
.book-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cover-styles {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.cover-style {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cover-style.active {
    border-color: var(--imbila-gold);
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h5 {
    border-bottom: 2px solid var(--imbila-gold);
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.detail-section h5 .toggle-icon {
    transition: transform 0.3s ease;
}

.detail-section h5.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.detail-content {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.author-info {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.media-pack {
    margin-top: 30px;
    padding: 20px;
    background: #f0f0f0;
    border-radius: 8px;
    text-align: center;
}

/* Checkout Modal Styles */
.checkout-modal .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.checkout-tabs .nav-link {
    color: var(--imbila-black);
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    margin: 0 10px;
    padding: 10px 0;
}

.checkout-tabs .nav-link.active {
    color: var(--imbila-gold);
    border-bottom: 2px solid var(--imbila-gold);
    background: transparent;
}

.checkout-form .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.checkout-form .form-control:focus {
    border-color: var(--imbila-gold);
    box-shadow: 0 0 0 0.2rem rgba(178, 150, 96, 0.25);
}

.secure-badge {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.8rem;
    color: #28a745;
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .cover-styles {
        justify-content: center;
    }

    .navbar-nav {
        text-align: center;
    }
    
    .search-input {
        width: 200px;
    }
    
    .search-input:focus {
        width: 250px;
    }
}

/* Ensure 4 books per row */
@media (min-width: 992px) {
    .book-col {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* FIX: Ensure modals appear on top of bookstore */
.modal {
    z-index: 1060 !important; /* Higher than bookstore z-index */
}

.modal-backdrop {
    z-index: 1055 !important; /* Between bookstore and modal */
}

/* NEW: Series books section */
.series-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.series-book {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.series-book:hover {
    background: #fff8e7;
    transform: translateY(-2px);
}

.series-book img {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.series-book h6 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.series-book .price {
    font-weight: 600;
    color: var(--imbila-gold);
}

/* NEW: Quick cart actions */
.quick-cart-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.quick-cart-actions .btn {
    flex: 1;
}

/* NEW: Login icon styles */
.login-icon {
    transition: all 0.3s ease;
}

.login-icon:hover {
    color: var(--imbila-gold) !important;
    transform: scale(1.1);
}

/* NEW: Bookstore cart button */
.bookstore-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1101; /* Higher than cart sidebar */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Merch Styles */
.merch-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.merch-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.merch-image {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.merch-card:hover .merch-image {
    transform: scale(1.05);
}

/* Merch Detail Modal */
.merch-detail-modal .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.merch-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}


 /* Partners Section Styles */
/* Partners Section Styles */
/* Partners Section Styles */
    .partners-section {
        background-color: #f8f9fa !important;
        overflow: hidden;
    }
    
    /* Marquee Container */
    .partners-marquee-container {
        position: relative;
        width: 100%;
        overflow: hidden;
        padding: 2rem 0;
    }
    
    /* Marquee Animation */
    .partners-marquee {
        display: flex;
        animation: marquee-scroll 40s linear infinite;
        width: max-content;
    }
    
    .partners-marquee:hover {
        animation-play-state: paused;
    }
    
    /* Partner Items */
    .partner-item {
        flex-shrink: 0;
        padding: 0 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .partner-logo-svg {
        height: 60px;
        width: auto;
        max-width: 150px;
        filter: grayscale(100%);
        opacity: 0.7;
        transition: all 0.3s ease;
    }
    
    .partner-item:hover .partner-logo-svg {
        filter: grayscale(0%);
        opacity: 1;
        transform: scale(1.1);
    }
    
    /* Marquee Animation Keyframes */
    @keyframes marquee-scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }
    
    /* Gradient overlays for smooth edges */
    .partners-marquee-container::before,
    .partners-marquee-container::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 100px;
        z-index: 2;
        pointer-events: none;
    }
    
    .partners-marquee-container::before {
        left: 0;
        background: linear-gradient(90deg, #f8f9fa 0%, transparent 100%);
    }
    
    .partners-marquee-container::after {
        right: 0;
        background: linear-gradient(270deg, #f8f9fa 0%, transparent 100%);
    }
    
    /* Responsive adjustments */
    @media (max-width: 768px) {
        .partner-logo-svg {
            height: 50px;
            max-width: 120px;
        }
        
        .partner-item {
            padding: 0 1.5rem;
        }
        
        .partners-marquee {
            animation-duration: 30s;
        }
        
        .partners-marquee-container::before,
        .partners-marquee-container::after {
            width: 60px;
        }
    }
    
    @media (max-width: 576px) {
        .partner-logo-svg {
            height: 40px;
            max-width: 100px;
        }
        
        .partner-item {
            padding: 0 1rem;
        }
        
        .partners-marquee {
            animation-duration: 25s;
        }
        
        .partners-marquee-container::before,
        .partners-marquee-container::after {
            width: 40px;
        }
    }
    
    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        .partners-marquee {
            animation: none;
            justify-content: center;
            flex-wrap: wrap;
            gap: 2rem;
            width: 100%;
        }
        
        .partner-item {
            padding: 1rem;
        }
    }

