:root {
    --primary-color: #8B5CF6;
    --secondary-color: #F59E0B;
    --accent-color: #EC4899;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
}

.navbar {
    padding: 1rem 0;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #7C3AED;
    border-color: #7C3AED;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #faf5ff 0%, #fef3c7 100%);
}

.instrument-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

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

.instrument-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.icon-badge {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1rem;
    right: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: var(--secondary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-card {
    background: linear-gradient(135deg, #faf5ff 0%, #fef3c7 100%);
    border-radius: 12px;
    padding: 2rem;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

nav .nav-link:hover {
    color: var(--primary-color);
}


.navbar .nav-link.active {
    font-weight: 600;
    color: #0d6efd !important;
    /* or your theme color */
    border-bottom: 2px solid #0d6efd;
}

footer a:hover {
    color: white !important;
}

.list-unstyled li a {
    color: #fff;
}

.list-unstyled li a:hover {
    color: #fff;
    text-decoration: underline !important;
}


/* ................................................ */

.hero-section {
    padding-top: 100px !important;
    /* This ensures the padding is applied */
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    font-size: 1.75rem;
    color: #fff;
    background-color: var(--bs-primary);
    /* Uses Bootstrap's primary color */
    margin-bottom: 1rem;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* --- CSS for 'By The Numbers' --- */
.stat-item .stat-icon {
    font-size: 3rem;
    line-height: 1;
    color: var(--bs-primary);
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stat-item .stat-label {
    font-size: 1.1rem;
    color: var(--bs-gray-600);
    font-weight: 500;
}

/* --- NEW: CSS for FAQ Accordion --- */
.accordion-button {
    font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
    color: var(--bs-primary);
    background-color: var(--bs-primary-bg-subtle);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    /* Bootstrap primary focus color */
}

.accordion-item {
    border: 1px solid var(--bs-gray-200);
}

.accordion-item:first-of-type,
.accordion-item:first-of-type .accordion-button {
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}

.accordion-item:last-of-type,
.accordion-item:last-of-type .accordion-button.collapsed {
    border-bottom-left-radius: .25rem;
    border-bottom-right-radius: .25rem;
}

@media (max-width: 400px) {
    .hero-section h1.display-3 {
        padding-top: 30px;
        font-size: 2.5rem;
        /* Decrease font size on very small screens */
        line-height: 1.2;
    }
}



/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    display: none;
    /* <-- CHANGED */
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    background: #4154f1;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
}

.back-to-top i {
    font-size: 24px;
    color: #fff;
    /* line-height: 0; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.back-to-top:hover {
    background: #6776f4;
    color: #fff;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/*--------------------------------------------------------------
# event
--------------------------------------------------------------*/

.event-carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.45);
    /* Dark overlay */
    z-index: 1;
}

.event-carousel-item .carousel-caption {
    z-index: 2;
    text-align: left;
    bottom: 3rem;
    left: 8%;
    right: 8%;
}

.event-carousel-item img {
    height: 550px;
    object-fit: cover;
    object-position: center;
}

/* NEW STYLE: On small screens (mobile),
          make the big heading smaller so it fits.
        */
@media (max-width: 767px) {
    .event-carousel-item .carousel-caption h1 {
        font-size: 2.5rem;
        /* Smaller font for display-3 on mobile */
        font-weight: bold;
        margin-bottom: 0.5rem !important;
    }

    .event-carousel-item .carousel-caption h5 {
        font-size: 0.9rem;
    }

    .event-carousel-item .carousel-caption .lead {
        font-size: 1rem;
        /* Smaller lead text */
        margin-bottom: 1rem !important;
    }

    .event-carousel-item .carousel-caption .btn {
        font-size: 0.9rem;
        /* Smaller button */
    }

    .event-carousel-item .carousel-caption {
        bottom: 1.5rem;
        /* Position it a bit higher from the bottom */
    }
}


:root {
    --gallery-size: 200px;
    /* Thumbnail size */
    --gallery-gap: 15px;
    /* Gap between images */
    --gallery-hover-scale: 1.1;
    /* Scale factor on hover */
    --gallery-bg-color: rgba(0, 0, 0, 0.8);
    /* Modal background color */
}

.gallery {
    display: grid;
    gap: var(--gallery-gap);
    grid-template-columns: repeat(auto-fill, minmax(var(--gallery-size), 1fr));
    padding: var(--gallery-gap);
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(var(--gallery-hover-scale));
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Modal overlay styles */
.gallerymodal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gallery-bg-color);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding-top: 100px;
}

.gallerymodal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.gallerymodal.active {
    display: flex;
}

.gallerymodal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
    padding-top: 80px;
}

.error {
    color: red;
}