/* Hero Section */
.slider-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 90vh;
    /* Premium full-height feel */
    min-height: 600px;
    position: relative;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.3);
    /* Base overlay */
}

/* Premium Gradient Overlay */
.slider-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

#slider-image1 {
    background-image: url("../../images/pages/home/student_gathering.jpeg");
}

#slider-image2 {
    background-image: url("../../images/pages/home/conference_img.jpg");
}

#slider-image3 {
    background-image: url("../../images/pages/home/globle_graduation_img.jpg");
}

.carousel-caption {
    z-index: 2;
    bottom: 20%;
    text-align: left !important;
    left: 10%;
    right: 10%;
}

.carousel-caption h1 {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.carousel-caption p {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.carousel-caption .btn {
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.4);
    transition: all 0.3s ease;
}

.carousel-caption .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(var(--bs-primary-rgb), 0.6);
}

/* Sections Global */
h3.h3 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

h3.h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--bs-primary);
    border-radius: 2px;
}

/* Partners Section */
#partners-section {
    background-color: var(--bs-body-bg);
    padding: 5rem 0;
}

#partners-section-cards img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.4s ease;
    cursor: pointer;
}

#partners-section-cards img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Premium Cards (Opportunities, Events, Resources) */
.card-container,
.resource-category-card,
.volunteer-stat-card,
.get-involved-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bs-body-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.card-container:hover,
.resource-category-card:hover,
.volunteer-stat-card:hover,
.get-involved-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.card img {
    transition: transform 0.6s ease;
}

.card:hover img {
    transform: scale(1.05);
}

/* Specific Section Heights & Backgrounds */
#opportunities-section,
#upcoming-events-section,
#getting-in-touch-section {
    padding: 5rem 0;
    background-color: var(--bs-body-bg);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--bs-primary), #4f46e5);
    /* Modern blue gradient */
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #4f46e5, var(--bs-primary));
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] .card-container,
[data-bs-theme="dark"] .resource-category-card,
[data-bs-theme="dark"] .volunteer-stat-card,
[data-bs-theme="dark"] .get-involved-card {
    background: #1e293b;
    /* Slate 800 */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .card-container:hover,
[data-bs-theme="dark"] .resource-category-card:hover,
[data-bs-theme="dark"] .volunteer-stat-card:hover,
[data-bs-theme="dark"] .get-involved-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Select2 Customization to match */
.select2-container .select2-selection--single {
    height: 50px;
    border-radius: 12px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

[data-bs-theme="dark"] .select2-container .select2-selection--single {
    background-color: #1e293b;
    border-color: #334155;
    color: white;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .slider-image {
        height: 70vh;
    }

    .carousel-caption h1 {
        font-size: 2.5rem;
    }

    .carousel-caption {
        bottom: 10%;
        margin-bottom: 0;
    }

    .card-container {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    #upcoming-events-section-cards {
        height: auto;
        flex-wrap: nowrap;
        overflow-x: scroll;
    }

    #partners-section-cards {
        overflow-x: scroll;
    }
}