/* Button */
.button-hover.btn-warning {
    background-color: var(--theme-secondary-tint) !important;
    transition: all 0.3s ease;
}
.button-hover.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}
.btn-warning:disabled {
    background-color: var(--theme-secondary-tint) !important;
    border-color: var(--theme-secondary-tint) !important;
    opacity: 0.7; /* Makes it look unclickable but keeps the theme */
}

 /* Card */
.custom-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--bg-page);
    background-clip: border-box;

    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    height: 100%;

    overflow: hidden !important;
    text-align: center;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    border: 1px solid var(--theme-secondary);
    transition: transform 0.3s ease;
}

.custom-card:hover {
    transform: translateY(-5px);
}

.custom-card::before {
    content: '';
    background: linear-gradient(45deg, rgba(var(--rgb-secondary), 0.1) 0%, rgba(255,255,255,0.8) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
}

.custom-card > * {
    position: relative;
}

.custom-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 3rem;
    padding-bottom: 1rem;
    color: var(--text-main) !important;
    box-sizing: border-box;
}

.custom-text{
    text-align: center !important;
    font-weight: 600 !important;
}

.custom-card .display-5,
.custom-card .bi,
.custom-card h3,
.custom-card i,
.custom-card .btn-warning {
    color: var(--theme-primary) !important; /* #002366 Blue */
}

.border-warning {
    border-radius: 1rem !important;
    border-color: var(--theme-secondary) !important;
    overflow: hidden !important;
}

.bg-warning {
    background-color: var(--theme-secondary) !important;
}

.bg-warning.bg-opacity-10 {
    background-color: rgba(var(--rgb-secondary), 0.1) !important;
}

/* --- Accordion Custom Styling --- */
.accordion-custom .accordion-item {
    border-radius: 1rem !important;
    overflow: hidden;
    border: 1px solid var(--theme-secondary) !important;
    background-color: var(--bg-page);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Light Initial State */
.accordion-custom .accordion-button.collapsed {
    background-color: rgba(var(--rgb-secondary), 0.3) !important;
    color: black;
}

/* Darker Expanded State */
.accordion-custom .accordion-button:not(.collapsed) {
    background-color: rgba(var(--rgb-secondary), 0.8) !important;
    color: var(--text-main);
    font-weight: 700;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125); /* Subtle bottom divider */
}

/* Smooth arrow transition */
.accordion-custom .accordion-button::after {
    transition: transform 0.3s ease;
}

.accordion-custom .accordion-body {
    background-color: white; /* Clean white background for the answer */
    color: black;
    padding: 1.5rem;
    border-top: 1px solid rgba(var(--rgb-secondary), 0.1);
}

.accordion-custom .accordion-item:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 15px rgba(196, 0, 0, 0.15) !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .custom-container {
        padding: 2rem 1.5rem;
    }

    .custom-card h3 {
        font-size: 1.5rem;
    }

    .display-5 {
        font-size: 2.5rem;
    }
}
@media (max-width: 768px) {
    .custom-card {
        max-width: 270px;
        margin: 0 auto;
        float: none;
    }

    .custom-container {
        padding: 1.5rem 0.75rem !important;
    }
    .accordion-custom .accordion-button {
            font-size: 0.95rem;
            padding: 1rem;
        }
}

@media (max-width: 576px) {
    .custom-card {
        max-width: 270px;
        margin: 0 auto;
        float: none;
    }

    .custom-container {
        padding: 0.75rem 0.75rem !important;
    }
}


