:root {
    --primary-color: #28295C;
    --secondary-color: #CA8828;
    --accent-purple: #6366f1;
    --text-dark: #1f2937;
    --text-light: #62748E;
}

/* Categories Hero Section */
.categories-hero {
    background-image: url('../img/header-grid-reverse.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    text-align: center;
}

.categories-hero-content{
    padding: 8rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out both;
    animation-delay: 0.2s;
}

.select-wrapper {
  position: relative; /* Essential for positioning the pseudo-element */
  display: inline-block; /* Ensures the wrapper only takes up necessary width */
}

select {
  /* Hide the native arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.select-wrapper::after {
  content: '▼'; /* Unicode character for a down arrow */
  position: absolute;
  top: 50%;
  right: 10px; /* Adjust as needed to position the icon */
  transform: translateY(-50%); /* Vertically center the icon */
  pointer-events: none; /* Prevents the icon from interfering with select clicks */
  color: #555; /* Adjust icon color */
  font-size: 14px; /* Adjust icon size */
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

.categories-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.categories-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Categories Grid */
.categories-content{
    padding: 0 0 5rem;
}

.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.category-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
    z-index: 1;
    transition: all 0.3s ease;
}

.category-card:hover::before {
    background: linear-gradient(45deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-label {
    position: absolute;
    bottom: 25px;
    left: 25px;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    z-index: 2;
    transition: all 0.3s ease;
    transform: translateY(0);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.category-card:hover .category-label {
    transform: translateY(-8px);
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    font-size: 1.3rem;
}

/* Staggered animation for category cards */
.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }
.category-card:nth-child(7) { animation-delay: 0.7s; }
.category-card:nth-child(8) { animation-delay: 0.8s; }
.category-card:nth-child(9) { animation-delay: 0.9s; }
.category-card:nth-child(10) { animation-delay: 1.0s; }
.category-card:nth-child(11) { animation-delay: 1.1s; }
.category-card:nth-child(12) { animation-delay: 1.2s; }

.category-card.animate-in {
    animation: slideInUp 0.8s ease-out both;
}

.partner-card-container {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #FFFFFF;    
    border: 1px solid #E2E8F0;
    text-align: center;
}

.partner-card{
    height: 200px;
    justify-items: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.partner-name{
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.3s ease;
    text-decoration: underline;
    text-decoration-color: var(--text-light);
}

.partner-description p, 
.partner-description h5, 
.partner-description h6,
.partner-description span,
.partner-description a,
.partner-description li,
.partner-description ul,
.partner-description ol,
.partner-description strong,
.partner-description em,
.partner-description b,
.partner-description i,
.partner-description small,
.partner-description mark {
    font-size: 1rem !important;
    color: var(--text-light) !important;
    margin-top: 0.5rem !important;
}

.partner-details-modal-content{
    background: #fff !important;
    border-radius: 24px !important;
    box-shadow: 0px 22px 48px 0px #071E5E0A !important;
    padding: 0 !important;
}

.partner-details-modal-content-header {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #F1F5F9;
    background: #F8FAFC;
    padding: 20px;
    border-radius: 24px 24px 0 0;
}

.partner-details-modal-content-header img {
    max-width: 130px;
    height: auto;
}

.close-button {
    font-size: .8rem;
    color: #64748B;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
    gap: 0.2rem;
}

.close-button:hover {
    color: var(--primary-color);
}

.partner-social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.partner-social-links a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.partner-social-links a:hover {
    color: var(--primary-color);
}


@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .categories-hero-content {
        padding: 4rem 0;
    }

    .categories-title {
        font-size: 2.5rem;
    }

    .category-card {
        height: 200px;
    }

    .category-label {
        font-size: 1rem;
        bottom: 15px;
        left: 15px;
    }

    .partner-card {
        height: 160px;
    }
    .partner-name {
        font-size: 1rem;
    }
    .partner-details-modal-content-header {
        padding: 15px;
        border-radius: 16px 16px 0 0;
    }
    .close-button {
        font-size: 0.75rem;
    }
    .partner-social-links a {
        font-size: 1rem;
    }
    .partner-social-links {
        gap: 10px;
    }
    .partner-details-modal-content {
        padding: 20px;
    }
    .partner-details-modal-content-header img {
        max-width: 100px;
    }
    .partner-details-modal-content-header h5 {
        font-size: 1.2rem;
    }
    .partner-details-modal-content-header p {
        font-size: 0.9rem;
    }
    .partner-details-modal-content-header .close-button {
        font-size: 0.6rem;
    }
    .partner-details-modal-content-header .partner-social-links {
        margin-top: 5px;
    }
} 

@media (max-width: 576px) {
    .categories-hero-content {
        padding: 2rem 0;
    }

    .categories-title {
        font-size: 2rem;
    }

    .category-card {
        height: 180px;
    }

    .category-label {
        font-size: 0.9rem;
        bottom: 10px;
        left: 10px;
    }
}   
