:root {
    --primary-color: #f0ad4e; /* The yellow/gold in your logo */
}

body {
    font-family: "Segoe UI", Roboto, sans-serif;
    background-color: #f6f6f6;
}

/* Search Box Performance */
.search-group {
    max-width: 300px;
    border: 1px solid #ddd;
}

.search-group input:focus {
    box-shadow: none;
}

/* Alphabet Bar Scroller */
.alphabet-bar::-webkit-scrollbar {
    height: 4px;
}

.alphabet-box {
    width: 30px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Featured Card Design */
.featured-card {
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: scale(1.01);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* Sidebar Styling */
.extra-small {
    font-size: 0.75rem;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #b68d40;
    color: white;
    z-index: 1000;
}

/* Speed Optimization: Lazy Loading is used in HTML, 
   but we also want to ensure no CLS (Cumulative Layout Shift) */
img {
    height: auto;
    max-width: 100%;
}

.button-primary {
    background: #b68d40;
}

.border-primary {
    border: 1px solid #b68d40 !important;
}

/* Carousel Arrows Styling from image */
.carousel-arrow {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: #d2c1a1; /* Pale gold from the original layout */
    color: #444;
    transition: all 0.2s ease;
}

.carousel-arrow:hover {
    background-color: #d2c1a1;
    color: white;
    border-color: #d2c1a1;
}

/* Font Card Styling - Material Design Feel */
.font-product-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.font-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08) !important;
}

/* Ensure images always fit and maintain ratio */
.font-product-card .card-img-container {
    height: 0;
    padding-bottom: 60%; /* Aspect ratio (image height / width) */
    background-color: #f1f1f1; /* Placeholder color before load */
    overflow: hidden;
}

.font-product-card .card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Meta Data Alignment (Designer & Date) */
.font-product-card .card-meta {
    gap: 5px;
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
    flex-wrap: wrap; /* Helps on very small screens */
}

.font-product-card .card-meta span {
    display: flex;
    align-items: center;
    white-space: nowrap; /* Keeps date together */
}

/* Optional: 'Free' badge on image */
.font-license-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(92, 184, 92, 0.85); /* Green */
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* --- Responsiveness for the Grid --- */
/* (Bootstrap handles this, but custom tweaks can be added here) */
@media (max-width: 576px) {
    .font-product-card .card-meta {
        justify-content: start !important; /* Stack them on mobile */
    }
}

.font-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #ffffff;
}

.font-card:hover {
    /* transform: translateY(-8px); */
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.1),
        0 10px 10px rgba(0, 0, 0, 0.05) !important;
}

/* Maintain aspect ratio for font previews */
.preview-wrapper {
    background-color: #f8f9fa;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.font-preview-img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    /* transition: transform 0.5s ease; */
}

.font-card:hover .font-preview-img {
    /* transform: scale(1.05); */
}

/* License Badge */
.license-badge {
    background-color: #28a745; /* Success Green */
    font-size: 0.7rem;
    padding: 5px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Button Styling matching your yellow theme */
.btn-warning {
    background-color: #f0ad4e;
    border-color: #f0ad4e;
    color: #fff;
}

.btn-warning:hover {
    background-color: #ec971f;
    border-color: #d58512;
    color: #fff;
}

a {
    color: #b68d40;
    text-decoration: none;
}

/* Pagination Container */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Remove default list styles */
.pagination ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 8px; /* Space between buttons */
    align-items: center;
}

/* Individual Link Styling */
.pagination ul li a,
.pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    text-decoration: none;
    color: #555;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Hover Effect */
.pagination ul li a:hover {
    border-color: #b68d40;
    color: #b68d40;
    background-color: #fffdf9;
}

/* Active Page Styling */
.pagination ul li a.active {
    background-color: #b68d40; /* Your theme yellow */
    border-color: #b68d40;
    color: #fff;
    box-shadow: 0 4px 10px rgba(240, 173, 78, 0.3);
}

/* Dots (...) Styling */
.pagination ul li span.dots {
    border: none;
    background: transparent;
    cursor: default;
    color: #999;
}

/* Arrows Styling (Optional: making them look slightly bigger) */
.pagination li:first-child a,
.pagination li:last-child a {
    font-size: 18px;
    font-weight: bold;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .pagination ul {
        gap: 4px;
    }
    .pagination ul li a {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

.active-nav {
    color: #b68d40;
}

.img-border-1 {
    border: 1px solid;
}

.text-primary {
    color: #b68d40 !important;
}
