/**
 * NukeViet Content Management System
 * @version 4.x
 * @author VINADES.,JSC <contact@vinades.vn>
 * @copyright (C) 2009-2021 VINADES.,JSC. All rights reserved
 * @license GNU/GPL version 2 or any later version
 * @see https://github.com/nukeviet The NukeViet CMS GitHub project
 */

/* Các tùy chỉnh CSS của giao diện nên để vào đây */
.grid {
    display: grid;
    align-items: center;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.news {
    display: flex;
    flex-direction: column;
    padding: 50px 0;
}

.section-heading,
.tms-header {
    position: relative;
    border-bottom: 1px solid #dbdce0;
}

.albums-detail {
    padding: 30px 0;
}

.box {
    background: #fff;
    border-radius: 6px;
}

.box img {
    width: 100%;
    max-width: 100%;
}

.box-content {
    padding: 10px;
}

.section-heading::before,
.tms-header::before {
    content: '';
    border-bottom: 2px solid #b79930;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
}

.new__item {
    background-color: #fff;
    border-radius: 5px;
}

.new__item-img {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.new__item-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new__item-title {
    margin-bottom: 10px;
}

.new__item-title h2 {
    font-size: 13px;
}

.news__item-content {
    padding: 20px;
}

/* ===== Gallery Section ===== */
.gallery-section {
    padding: 60px 0;
    background: #fff;
}

.gallery-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.gallery-title {
    text-align: center;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 35px;
    color: #333;
    text-transform: uppercase;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(231, 84, 128, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #fff;
    font-size: 30px;
}

.d-flex {
    display: flex;
}

.gallery-img {
    background: #fff;
    padding: 5px;
    border-radius: 6px;
}

.album {
    padding: 10px;
}

#img_album {
    padding: 50px 0;
}

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

    .grid-3 {
        grid-template-columns: repeat(1, 1fr);
    }

    .news {
        padding: 20px 10px;
    }

    .page-title-layout,
    .gallery-section {
        padding: 30px 0 !important;
    }

    #img_album {
        padding: 30px 0;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

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

/* ===== Page Title Layout ===== */
.page-title-layout {
    position: relative;
    padding: 80px 0;
    background-image: url('../images/header.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    margin-bottom: 20px;
}

.page-title-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-title-layout .container {
    position: relative;
    z-index: 10;
}

.page-title-main {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.breadcrumbs-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.breadcrumbs-list li {
    display: inline-block;
    color: #ccc;
}

.breadcrumbs-list li i {
    margin: 0 5px;
    font-size: 12px;
}

.breadcrumbs-list li:first-child i {
    margin-left: 0;
    margin-right: 5px;
    font-size: 14px;
}

.breadcrumbs-list li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs-list li a:hover {
    color: #e75480;
}