/* Brands Section Styles - Redesign */

/* General layout adjustments for the brands page */
.brands-page {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 5rem 0;
    background-color: #f9fafb; /* Lighter background */
    border-bottom: 1px solid #edf2f7; /* Subtle border */
    margin-bottom: 2rem;
}

.hero-content {
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem; /* Slightly reduced size */
    color: #1a202c; /* Darker, more modern text color */
    font-weight: 700; /* Slightly less bold */
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem; /* Slightly smaller subtitle */
    color: #718096; /* Muted subtitle color */
    max-width: 700px; /* Reduced max-width */
    margin: 0 auto;
    line-height: 1.5; /* Adjusted line height */
}

.search-container {
    display: flex;
    justify-content: center;
}

.search-bar {
    display: flex;
    max-width: 650px; /* Slightly wider search bar */
    width: 100%;
    border-radius: 0.75rem; /* More rounded search bar */
    overflow: hidden;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12); /* More pronounced shadow */
    transition: box-shadow 0.3s ease-in-out; /* Smooth shadow transition */
}

.search-bar:focus-within {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15); /* Enhanced shadow on focus */
}

.search-input {
    flex-grow: 1;
    padding: 1.3rem 1.75rem; /* Increased padding */
    font-size: 1.1rem; /* Slightly larger font size */
    border: none;
    outline: none;
    color: #333;
    font-weight: 500; /* Medium font weight for input text */
}

.search-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 1.3rem 2.25rem; /* Increased padding */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Added transform transition */
}

.search-button:hover {
    background-color: #0056b3;
    transform: scale(1.05); /* Slight scale up on hover */
}
/* Brands Section Styles - Redesign */

/* General layout adjustments for the brands page */
.brands-page {
    padding-top: 2rem;
    padding-bottom: 3rem;
}


/* Filter Bar Section */
.filter-bar-section {
    margin-bottom: 3rem; /* Increased margin */
}

.filter-bar {
    background-color: #fff;
    border-radius: 1rem; /* More rounded corners */
    padding: 2.25rem; /* Increased padding */
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08); /* Slightly stronger shadow */
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem; /* Increased gap */
    align-items: center;
    justify-content: space-between; /* Distribute items more evenly */
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Increased gap */
}

.filter-label {
    font-size: 1.05rem; /* Slightly larger font size */
    color: #555;
    white-space: nowrap;
    font-weight: 500; /* Medium font weight */
}

.filter-select {
    padding: 1.1rem 1.75rem; /* Increased padding */
    border: 1px solid #ccc;
    border-radius: 0.6rem; /* More rounded corners */
    font-size: 1.05rem; /* Slightly larger font size */
    color: #444;
    background-color: white;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position-x: right;
    background-position-y: center;
    padding-inline-end: 2.75rem; /* Increased padding end */
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Added shadow transition */
}

.filter-select:focus,
.filter-select:hover {
    border-color: #007bff;
    box-shadow: 0 0 0 0.125rem rgba(0, 123, 255, 0.25); /* Slightly stronger focus shadow */
}
/* Brands Section Styles - Redesign */

/* General layout adjustments for the brands page */
.brands-page {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 6rem 0; /* Increased padding for more visual space */
    background-color: #f8f9fa;
    border-radius: 1.25rem; /* Slightly more rounded corners */
    margin-bottom: 3rem; /* Increased margin for better section separation */
}

.hero-content {
    margin-bottom: 2.5rem; /* Increased margin */
}

.hero-title {
    font-size: 3.75rem; /* Slightly larger title */
    color: #2d3748;
    font-weight: 800; /* Stronger font weight */
    margin-bottom: 1.25rem; /* Increased margin */
    letter-spacing: -0.02em; /* Slight letter spacing adjustment */
}

.hero-subtitle {
    font-size: 1.35rem; /* Slightly larger subtitle */
    color: #5a677d; /* Slightly darker subtitle color */
    max-width: 850px; /* Slightly wider max-width for subtitle */
    margin: 0 auto;
    line-height: 1.6; /* Improved line height for readability */
}

.search-container {
    display: flex;
    justify-content: center;
}

.search-bar {
    display: flex;
    max-width: 650px; /* Slightly wider search bar */
    width: 100%;
    border-radius: 0.75rem; /* More rounded search bar */
    overflow: hidden;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12); /* More pronounced shadow */
    transition: box-shadow 0.3s ease-in-out; /* Smooth shadow transition */
}

.search-bar:focus-within {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15); /* Enhanced shadow on focus */
}

.search-input {
    flex-grow: 1;
    padding: 1.3rem 1.75rem; /* Increased padding */
    font-size: 1.1rem; /* Slightly larger font size */
    border: none;
    outline: none;
    color: #333;
    font-weight: 500; /* Medium font weight for input text */
}

.search-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 1.3rem 2.25rem; /* Increased padding */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Added transform transition */
}

.search-button:hover {
    background-color: #0056b3;
    transform: scale(1.05); /* Slight scale up on hover */
}
/* Brands Section Styles - Redesign */

/* General layout adjustments for the brands page */
.brands-page {
    padding-top: 2rem;
    padding-bottom: 3rem;
}



/* Brands Grid Section */
.brands-grid-section {
    padding: 2rem 0;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.brand-card {
    background-color: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.brand-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.brand-card-link {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically */
    text-decoration: none;
    color: inherit;
    padding: 2.5rem 2rem; /* Increased padding for better spacing */
}

.brand-logo {
    text-align: center;
    margin-bottom: 1.5rem; /* Reduced margin */
    width: 100%; /* Ensure logo area takes full width */
    display: flex;
    justify-content: center; /* Center logo image */
}

.brand-logo img {
    max-width: 80%; /* Further constrain logo width */
    max-height: 120px; /* Limit logo height */
    height: auto;
    border-radius: 0.5rem;
    transition: opacity 0.3s ease-in-out;
    object-fit: contain; /* Ensure image scales within container */
}

.brand-logo img:hover {
    opacity: 0.9;
}


.brand-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px; /* Reduced size */
    height: 100px; /* Reduced size */
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #666;
    font-size: 2.5rem; /* Adjusted font size */
    font-weight: 500;
    margin: 0 auto;
}


.brand-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem; /* Reduced margin */
    text-align: center;
    transition: color 0.3s ease-in-out;
}

.brand-card-link:hover .brand-name {
    color: #007bff;
}

.brand-description {
    font-size: 1rem;
    color: #666;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 1rem; /* Reduced margin */
    display: -webkit-box; /* Enable CSS multi-line truncation */
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #777;
    margin-top: 0.5rem; /* Added margin top */
}

.brand-meta span {
    display: block;
    text-align: center;
}

.brand-meta i {
    margin-inline-start: 0.5rem;
}


/* Pagination Section */
.pagination-section {
    padding: 3rem 0;
    display: flex;
    justify-content: center;
}

.minimalist-pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 2rem auto; /* Center the pagination horizontally */
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05); /* Reduced shadow */
    justify-content: space-between; /* Distribute items evenly */
}

.minimalist-pagination .page-numbers {
  display: flex;
}

.minimalist-pagination li {
    margin: 0;
}

.minimalist-pagination li a,
.minimalist-pagination li span {
    padding: 0.75rem 1.2rem; /* Further reduced padding */
    text-decoration: none;
    color: #444; /* Even darker color for readability */
    background-color: #fff;
    border-inline-start: 1px solid #f2f2f2; /* Lighter border */
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 2rem; /* Further reduced min-width */
    text-align: center;
    font-size: 0.9rem; /* Further reduced font-size */
}

.minimalist-pagination li:first-child a,
.minimalist-pagination li:first-child span {
    border-inline-start: none;
}

.minimalist-pagination li a:hover {
    background-color: #e9ecef; /* Light gray hover */
    color: #222;
}

.minimalist-pagination li.active span {
    background-color: #007bff;
    color: white;
    font-weight: 500;
}

.minimalist-pagination li.disabled span {
    color: #ccc;
    background-color: #f9f9f9;
    cursor: not-allowed;
}


/* Responsive Design Adjustments */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    .brand-card-link {
        padding: 2rem 1.5rem;
    }
    .brand-name {
        font-size: 1.4rem;
    }
    .brand-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .filter-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .filter-item {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    .filter-label {
        margin-bottom: 0.5rem;
    }
    .filter-select {
        width: 100%;
        font-size: 0.95rem;
        padding: 0.9rem 1.25rem;
        padding-inline-end: 2.5rem;
    }
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    .brand-card-link {
        padding: 1.75rem 1.25rem;
    }
    .brand-name {
        font-size: 1.3rem;
    }
    .brand-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .filter-bar {
        padding: 1.5rem;
    }
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    .brand-card-link {
        padding: 1.5rem 1rem;
    }
    .brand-logo {
        margin-bottom: 1rem;
    }
    .brand-initial {
        width: 90px;
        height: 90px;
        font-size: 2.2rem;
    }
    .brand-name {
        font-size: 1.2rem;
    }
    .brand-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .search-bar {
        max-width: 100%;
    }
    .search-input {
        font-size: 0.9rem;
        padding: 1rem;
    }
    .search-button {
        padding: 1rem 1.5rem;
    }
    .filter-bar {
        padding: 1rem;
    }
    .filter-options {
        gap: 1rem;
    }
    .brands-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    .brand-card-link {
        padding: 1.25rem;
    }
    .brand-logo {
        margin-bottom: 0.8rem;
    }
    .brand-initial {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    .brand-name {
        font-size: 1.1rem;
    }
    .brand-description {
        font-size: 0.8rem;
    }
    .brand-meta {
        font-size: 0.75rem;
    }
    .minimalist-pagination {
        margin: 1.5rem 0;
    }
    .minimalist-pagination li a,
    .minimalist-pagination li span {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}
