@charset "utf-8";

@import url('common.css');

.title-section {
    padding: 0;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url(../img/listbg.png);
}

.title-section h2 {
    color: #fff;
}

@media screen and (max-width:480px) {
    .title-section {
        height: 200px;
    }
}

/* tab menu */
.tab-menu {
    padding: 0;
    border-bottom: 1px solid #ddd;
}

.tab-menu ul {
    display: flex;
    justify-content: center;
    line-height: 40px;
}

.tab-menu ul li {
    height: 100%;
    border-right: 1px solid #ddd;
}

.tab-menu ul li:first-child {
    border-left: 1px solid #ddd;
}

.tab-menu ul li a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    color: var(--primary-dark);
    transition: 0.3s ease-out;
}

.tab-menu ul li a.active {
    color: #fff;
    background: var(--primary-dark);
}

@media screen and (max-width:980px){
    .tab-menu ul {
        flex-wrap: wrap;
    }
    .tab-menu ul li {
        border: 1px solid #ddd;
    }
}

@media screen and (max-width:480px) {
    .tab-menu ul {
        flex-direction: column;
        border: none;
    }

    .tab-menu ul li:first-child {
        border: none;
    }

    .tab-menu ul li {
        border-right: none;
        border-left: none;
        border-bottom: 1px solid #ddd;
    }

    .tab-menu ul li a {
        font-size: 15px;
        text-align: center;
    }

}

.tab-menu ul li a:hover {
    background: var(--primary-dark);
    color: #fff;
}


/* gallery section */

.gallery-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

@media screen and (max-width:480px) {
    .gallery-section {
        padding: 30px 15px;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.gallery-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: white;
    border: 1px solid #ddd;
    padding: 40px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 30%;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
}

.gallery-img-caption p:first-of-type {
    margin-top: 10px;
    font-size: 20px;
    font-weight: bold;
}

.gallery-img-caption p:last-of-type {
    color: #333;
}

.gallery-text {
    width: 70%;
}

.gallery-flex {
    display: flex;
    justify-content: space-between;
}

.gallery-flex img {
    width: 540px;
}

@media screen and (max-width:480px) {
    .gallery-flex {
        flex-direction: column;
        align-items: center;
    }

    .gallery-flex img {
        width: 80vw;
    }
}

.gallery-img img {
    margin-top: 20px;
    width: 100%;
}

.caption {
    font-size: 16px;
    color: #232323;
    text-decoration: none;
}

.description {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.download-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.download-btn {
    padding: 20px;
    background: var(--primary);
    color: #fff;
    transition: 0.3s ease-out;
}

.download-btn:hover {
    background: var(--primary-dark);
}

.brochure-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.brochure-btns a {
    display: block;
    color: #fff;
    background: var(--primary);
    padding: 20px;
}

.brochure-btns a:hover {
    background: var(--primary-dark);
}

@media screen and (max-width:480px) {
    .download-btn {
        padding: 15px;
        width: 100%;
        text-align: center;
    }
}

.program-grid {
    grid-template-columns: 1fr 1fr 1fr;
}

@media screen and (max-width: 480px) {
    .program-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr, 1fr, 1fr ;
    }
}

.program-item img {
    margin: 0;
    width: 25px;
    height: 25px;
    filter: invert(1);
}

.gallery-section:last-child .program-item img {
    filter: invert(0);
}