/* ~ CSS Comment code  */
/* *======== Sections =========== */
/* ? ------- Sub-sections -------- */
/* & ++++++++ more details ++++++++ */
/* !!!!!! Handle with care !!!!!!! */
/* ^^^^^^^ Optional Section ^^^^^^^ */
/* ----------- explanation --------- */

/* *========= CAROUSEL SECTION ========= */
#myCarousel .carousel-item {
    height: 550px;
    /* ? Your desired height */
}

#myCarousel .carousel-item img,
.feature_image img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.carousel-caption h1 {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* *========= FEATURETTE SECTION ========= */
.feature_section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.feature_container {
    width: 80%;
    display: flex;
    background:
        linear-gradient(202deg, rgba(1, 71, 1, 0.37) 0%, var(--accent_color) 50%),
        linear-gradient(135deg, #0000 20.5%, var(--primary_color) 0 29.5%, #0000 0) 0 50px,
        linear-gradient(45deg, #0000 8%, var(--primary_color) 0 17%, #0000 0 58%) 100px 0,
        linear-gradient(135deg, #0000 8%, var(--primary_color) 0 17%, #0000 0 58%, var(--primary_color) 0 67%, #0000 0),
        linear-gradient(45deg, #0000 8%, var(--primary_color) 0 17%, #0000 0 58%, var(--primary_color) 0 67%, #0000 0 83%, var(--primary_color) 0 92%, #0000 0),
        var(--accent_color);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin: var(--space-lg);
    overflow: hidden;
}

feature_container>div {
    flex: 1;
    min-width: 200px;
}

.feature_details {
    margin: 20px;
    padding: 20px;
    align-self: center;
}

.feature_details h1,
.feature_details p {
    margin-bottom: 20px;

}

.feature_details ul {
    line-height: 2;
    list-style: none;
    padding-left: 0;
}

.feature_details ul li::before {
    content: "\2714";
    padding: 10px;
}


/* *========= ABOUT DEPARTMENT SECTION ========= */
.department {
    padding: 0;
    color: var(--black_color);
}

.department_container {
    max-width: 1250px;
    margin: 0 auto;
    padding: var(--space-md);
    /* &
    background-color: var(--white_color); 
    box-shadow: var(--shadow-md);
    */
}

.button-container {
    width: max-content;
    margin: 0 3rem;
}

.overview-btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    justify-content: space-evenly;
    padding: 0.75rem 1.5rem;
    font-weight: var(--font-regular);
    transition: var(--transition);
    width: 12rem;
    border-radius: var(--radius-sm);
}

.transition-icon {
    transition: transform 0.3s ease;
}

.overview-btn[aria-expanded="true"] .transition-icon {
    transform: rotate(90deg);
}

.content-card {
    /* & background-color: var(--white_color); */
    border-left: 3px solid var(--primary_color);
    padding: var(--space-lg);
    animation: fadeIn 0.5s ease;
    margin-top: var(--space-lg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.department-name {
    color: var(--primary_color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: var(--font-bold);
}

.department-description {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--black_color);
}

.divider {
    height: 2px;
    background-color: var(--accent_color);
    margin: var(--space-lg) 0;
    border-radius: 1px;
}

/* ?------ Vision, Mission, Motto Sections ------ */
.vision-section,
.mission-section,
.motto-section {
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background-color: var(--accent_color);
    transition: var(--transition);
}

.vision-section:hover,
.mission-section:hover,
.motto-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.section-icon {
    color: var(--primary_color);
    margin-right: var(--space-sm);
}

.vision-section h4,
.mission-section h4,
.motto-section h4 {
    color: var(--primary_color);
    font-weight: var(--font-regular);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
}

.mission-section ul {
    padding-left: 1.5rem;
}

.mission-section li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.mission-section li::marker {
    color: var(--primary_color);
}

.motto-text {
    font-style: italic;
    font-size: var(--font-lg);
    text-align: center;
    font-weight: var(--font-regular);
    color: var(--primary_color);
}

.unordered .fa-solid {
    color: var(--primary_color);
}


/* *========= IMAGE GALLERY SECTION ========= */
.gallery_section {
    padding: var(--space-lg);
    background:
        linear-gradient(320deg, rgba(1, 71, 1, 0.37) 0%, var(--accent_color) 50%),
        linear-gradient(135deg, #0000 20.5%, var(--primary_color) 0 29.5%, #0000 0) 0 50px,
        linear-gradient(45deg, #0000 8%, var(--primary_color) 0 17%, #0000 0 58%) 100px 0,
        linear-gradient(135deg, #0000 8%, var(--primary_color) 0 17%, #0000 0 58%, var(--primary_color) 0 67%, #0000 0),
        linear-gradient(45deg, #0000 8%, var(--primary_color) 0 17%, #0000 0 58%, var(--primary_color) 0 67%, #0000 0 83%, var(--primary_color) 0 92%, #0000 0),
        var(--accent_color);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.gallery-container {
    max-width: 1500px;
    margin: 0 auto;
}

.masonry {
    columns: 4;
    column-gap: 13px;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.masonry-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
    transform-origin: center;
}

.masonry-item:hover img {
    transform: scale(1.05);
    filter: blur(3px);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* & background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent); */
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
    color: var(--white_color);
}

.masonry-item:hover .overlay {
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.overlay h3 {
    margin-bottom: var(--space-md);
    font-weight: var(--font-regular);
    font-size: var(--font-md);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.overlay p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.overlay .date {
    display: flex;
    align-items: center;
    font-size: var(--font-sm);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.overlay .date i {
    margin-right: 6px;
}

.masonry-item:hover .overlay h3,
.masonry-item:hover .overlay p,
.masonry-item:hover .overlay .date {
    transform: translateY(0);
    opacity: 1;
}


/* *========= FAQ SECTION ========= */
.FAQ_section {
    margin-bottom: 100px;
}

.FAQ_section .legend {
    margin-bottom: 30px;
}

.accordion button:not(.collapsed) {
    background-color: var(--primary_color);
    color: var(--white_color);
    box-shadow: none;
}

.accordion button:focus {
    box-shadow: none;
}

.about .text-start {
    margin-left: var(--space-sm);
}

/* *========= MEDIA QUERIES ========= */
/* ? ------ Feature Container ------ */
@media screen and (max-width: 980px) {
    .feature_container {
        flex-direction: column-reverse;
        width: 100%;
    }

    .feature_details {
        margin: 10px;
        padding: 10px;
    }

    .feature_details h1 {
        font-size: var(--font-xl);
    }

    .feature_details p {
        font-size: var(--font-md);
    }
}

/* ? ------ Department Section ------ */
@media (max-width: 768px) {
    .section-title {
        font-size: var(--font-lg);
    }

    .department-name {
        font-size: var(--font-lg);
    }

    .content-card {
        padding: 1.5rem;
    }
}

/* ? ------ Gallery / Masonry ------ */
@media (max-width: 1200px) {
    .masonry {
        columns: 2;
    }
}

@media (max-width: 768px) {
    .masonry {
        columns: 1;
    }
}

@media (max-width: 300px) {
    .masonry {
        columns: 1;
    }
}