:root {
    --primary: #2C3E50;
    --accent: #1BBC9B;
    --accent-light: #48C9B0;
    --bg-body: #F8F9FA;
    --text-primary: #2C3E50;
    --text-muted: #7F8C8D;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ========================================
   Hero Carousel Overrides
   ======================================== */
.carousel-item img {
    transition: transform 5s ease;
}
.carousel-item.active img {
    transform: scale(1.05);
}

/* ========================================
   Navbar — Glass Effect
   ======================================== */
.public-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.public-navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.public-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.public-navbar .navbar-brand i {
    color: var(--accent);
    font-size: 1.4rem;
}

.public-navbar .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: var(--accent);
}

/* Search form in navbar */
.search-form .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px 0 0 8px;
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.9);
}

.search-form .form-control:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.search-form .btn-search {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 0.4rem 0.75rem;
    transition: background 0.2s ease;
}

.search-form .btn-search:hover {
    background: var(--primary);
}

/* ========================================
   Footer
   ======================================== */
.public-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 0;
    margin-top: 4rem;
}

.public-footer h5,
.public-footer h6 {
    color: #fff;
    margin-bottom: 1rem;
}

.public-footer .text-muted-light {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Social media icon buttons in footer */
.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-btn:hover {
    background: var(--social-color, var(--accent));
    color: #fff;
    transform: translateY(-3px);
    border-color: transparent;
}

/* ========================================
   Hero Section with Slider
   ======================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 50vh;
}

.hero-section .carousel-item {
    transition: transform 1.5s ease-in-out, opacity 1.5s ease-in-out;
}

.hero-section .slider-image {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    transform: scale(1.05);
    transition: transform 5s ease-out;
}

.hero-section .carousel-item.active .slider-image {
    transform: scale(1);
}

.hero-section .carousel-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.hero-section .container {
    z-index: 1;
}

/* ========================================
   Hero Section with Slider
   ======================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-section .carousel-item {
    transition: transform 1.5s ease-in-out, opacity 1.5s ease-in-out;
}

.hero-section .slider-image {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    transform: scale(1.05);
    transition: transform 5s ease-out;
}

.hero-section .carousel-item.active .slider-image {
    transform: scale(1);
    animation: zoomOut 8s ease-out forwards;
}

.hero-section .carousel-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.hero-section .container {
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes zoomOut {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Global Helpers
   ======================================== */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ========================================
   Book Card
   ======================================== */
.book-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}

.book-card .book-cover {
    aspect-ratio: 2/3;
    overflow: hidden;
}

.book-card .book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-card .book-info {
    padding: 1rem;
}

.book-card .book-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card .book-author {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.book-card .book-year {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 0.5rem;
}

/* ========================================
   Buttons
   ======================================== */
.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-accent:hover {
    background: #5a4bd1;
    color: #fff;
    transform: translateY(-1px);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-whatsapp:hover {
    background: #1da851;
    color: #fff;
}

/* ========================================
   Pagination
   ======================================== */
.pagination .page-link {
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: var(--accent-light);
    color: #fff;
}

.pagination .page-item.active .page-link {
    background: var(--accent);
    color: #fff;
}

/* ========================================
   Hover Effects / Animations
   ======================================== */
.hover-transform {
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out !important;
}

.hover-transform:hover {
    transform: translateY(-5px) scale(1.02);
}

.hover-transform:hover img {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.hover-transform img {
    transition: box-shadow 0.25s ease-out;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .search-form {
        margin-top: 0.75rem;
        width: 100%;
    }
}
