main{
    background-color: #f9f6f2;
}
.culture-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)), url('../images/bg.jpeg');
    background-size: cover;
    background-position: center;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.culture-hero .hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.culture-hero h2 {
    font-size: 3em;
    margin-bottom: 20px;
    font-family: 'Ma Shan Zheng', cursive;
    color: var(--secondary-color);
}
.culture-hero p{
    font-size: 1.5rem;
}
.culture-categories {
    padding: 60px 0;
    background-color: #f9f6f2;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-content {
    padding: 20px;
    text-align: center;
}

.category-content h3 {
    font-size: 1.5em;
    margin: 0 0 10px;
    font-family: 'Ma Shan Zheng', cursive;
    color: #8b0000;
}

.category-content p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.view-details {
    display: inline-block;
    padding: 8px 20px;
    background-color: #8b0000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-details:hover {
    background-color: #660000;
}

.culture-detail {
    padding: 60px 0;
    background-color: #fff;
}

.detail-content {
    display: none;
}

.detail-content.active {
    display: block;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.detail-text h4 {
    font-size: 1.3em;
    margin: 0 0 15px;
    color: #8b0000;
}

.detail-text p {
    font-size: 1em;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.detail-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.detail-gallery img:hover {
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    width: 70%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.modal-title {
    font-size: 2em;
    margin-bottom: 20px;
    font-family: 'Ma Shan Zheng', cursive;
    color: #8b0000;
}

.modal-description {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.modal-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}
