/* browse-categories.css */
.browse-categories-section {
    width: 100%;
    font-family: "Spinnaker", sans-serif;
}

.categories-header {
    background-color: #002d5b;
    /* Dark blue from design */
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.categories-header h2 {
    font-family: "Spinnaker", sans-serif;
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 400;
}

.categories-header p {
    font-family: "Spinnaker", sans-serif;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.5;
}

.popular-categories {
    background-color: #ffffff;
    padding: 60px 0;
}

.popular-categories .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.popular-categories h3 {
    font-family: "Spinnaker", sans-serif;
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 400;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.category-card {
    background-color: #f0f4f7;
    /* Light grey/blue background for the card */
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-thumb {
    width: 100%;
    height: 150px;
    position: relative;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-info {
    padding: 15px 10px;
}

.category-info h4 {
    font-size: 18px;
    color: #002d5b;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.category-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Alphabetical Browse Section */
.alphabet-browse-section {
    background-color: #ffffff;
    padding: 20px 0 60px 0;
}

.alphabet-browse-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.alphabet-browse-section h3 {
    font-family: "Spinnaker", sans-serif;
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 400;
}

.alphabet-filter {
    font-family: "Spinnaker", sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.alphabet-filter span {
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.alphabet-filter span:hover,
.alphabet-filter span.active {
    color: #002d5b;
    font-weight: bold;
}

.all-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.all-category-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.all-category-thumb {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.all-category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.all-category-info h4 {
    font-size: 18px;
    color: #333;
    margin: 10px 0 5px 0;
}

.all-category-info p {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.btn-view-all {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #002d5b;
    color: #002d5b;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-view-all:hover {
    background-color: #002d5b;
    color: #fff;
}

@media (max-width: 992px) {
    .all-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .all-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .all-categories-grid {
        grid-template-columns: 1fr;
    }
}
