/* Custom Styles and Theme */

:root {
    /* Theme Colors (Darker Saffron Palette) */
    --kirti-red: #B03A2E; /* Deep Terracotta Red */
    --kirti-saffron: #D46B00; /* Darker, Burnt Orange Saffron */
    --kirti-light: #FFEECC; /* Warm Cream Off-White (Updated) */
    --kirti-dark: #372A24; /* Deep Brown/Dark Text */
    
    /* Font Definitions */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Poppins', sans-serif;

    /* Dynamic Sizing (Used in header.php and logo_display.php) */
    --logo-full-size: 200px;
    --logo-nav-size: 40px; 
}

/* Base Styles */
body {
    font-family: var(--font-body);
    background-color: var(--kirti-light);
    color: var(--kirti-dark);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--kirti-dark);
}

/* Custom Color Utilities (Needed since Tailwind CDN was removed) */
.bg-kirti-red { background-color: var(--kirti-red) !important; }
.text-kirti-red { color: var(--kirti-red) !important; }
.bg-kirti-saffron { background-color: var(--kirti-saffron) !important; }
.text-kirti-saffron { color: var(--kirti-saffron) !important; }
.bg-kirti-dark { background-color: var(--kirti-dark) !important; } /* Added utility */
.text-kirti-dark { color: var(--kirti-dark) !important; } /* Added utility */
.text-kirti-light { color: var(--kirti-light) !important; }
.border-kirti-saffron { border-color: var(--kirti-saffron) !important; }


/* Button Styles */
.btn-kirti-saffron {
    background-color: var(--kirti-saffron);
    border-color: var(--kirti-saffron);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.btn-kirti-saffron:hover {
    background-color: var(--kirti-red);
    border-color: var(--kirti-red);
    color: var(--kirti-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* Navigation & Header Styles */
.navbar-brand img {
    max-height: var(--logo-nav-size); 
    width: auto;
    border-radius: 50%; /* Added for rounded logo */
}

/* General Layout Utilities (Replacing Tailwind) */
.d-flex.items-center { align-items: center; }
.d-flex.justify-center { justify-content: center; }
.w-10 { width: 2.5rem; } /* Equivalent to Tailwind w-10 */
.h-10 { height: 2.5rem; } /* Equivalent to Tailwind h-10 */
.mr-3 { margin-right: 0.75rem; }

/* Hero Carousel Styles */
.hero-carousel {
    height: 80vh; /* Responsive height */
    background-color: #f7f7f7; /* Fallback for slides */
}

.carousel-item {
    height: 80vh;
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

/* Section Separator */
.section-separator {
    height: 5px;
    width: 80px;
    background-color: var(--kirti-saffron);
    margin: 1rem auto;
    border-radius: 50px;
}

/* Book Scroller Styles (Responsive Grid/Horizontal Scroll) */
.book-scroller-container {
    overflow-x: auto; /* Enable horizontal scrolling for mobile */
    padding-bottom: 1rem;
}

.book-scroller-track {
    display: flex;
    gap: 1.5rem; /* Space between cards */
    padding: 0 1rem;
    min-width: fit-content; /* Ensures content stretches beyond container */
}

.book-card-item {
    min-width: 250px; /* Minimum size for scrollable cards on small screens */
    flex-shrink: 0;
}

/* Desktop/Large Screen Layout (4 columns - lg:grid-cols-4 replacement) */
@media (min-width: 992px) { /* Equivalent to Bootstrap 'lg' breakpoint */
    .book-scroller-container {
        overflow-x: hidden; /* Disable horizontal scroll on large screens */
    }
    .book-scroller-track {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        padding: 0;
        min-width: auto;
    }
    .book-card-item {
        min-width: auto;
        flex-shrink: 1;
    }
}
