/* Container */
.district-list-section {
    padding: 60px 5%;
    background: #f9f9f9;
}

.district-list-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #242176;
    /* Magadh Blue */
}

/* Grid Layout */
.district-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Card */
.district-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.district-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Image */
.district-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Content */
.district-content {
    padding: 20px;
    flex-grow: 1;
}

.district-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #242176;
}

.district-content p {
    font-size: 15px;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Meta Info */
.district-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
}

/* Button */
.read-more-btn {
    display: inline-block;
    background: #242176;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #ee1d24;
    /* Magadh Red */
}

/* Responsive */
@media (max-width: 1200px) {
    .district-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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



/* Hero Banner */
.districtdetail-hero {
    position: relative;
    background-image: url("/static/images/banner.webp");
    /* Static fallback image */
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.districtdetail-overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px 50px;
    border-radius: 10px;
    text-align: center;
}

.districtdetail-hero h1 {
    font-size: 40px;
    color: #fff;
}


/* Content Section */
.districtdetail-content {
    padding: 60px 8%;
    background: #fff;
}

.districtdetail-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.districtdetail-body {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: justify;

}

/* Gallery */
.districtdetail-gallery h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #242176;
    text-align: center;
}

.districtdetail-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.districtdetail-gallery-item img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Lightbox */
.districtdetail-lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    text-align: center;
}

.districtdetail-lightbox-content {
    max-width: 80%;
    max-height: 80vh;
}

.districtdetail-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.districtdetail-prev,
.districtdetail-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: #fff;
    user-select: none;
    padding: 10px;
}

.districtdetail-prev {
    left: 20px;
}

.districtdetail-next {
    right: 20px;
}

@media (max-width: 768px) {
    .districtdetail-hero h1 {
        font-size: 28px;
    }

    .districtdetail-body {
        font-size: 15px;

    }
}