/* 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/magadh-tmt.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;

    }
}

/* FAQ Section */
.tmt-faq-section {
    padding: 60px 20px;
    background: #f9f9fc;
}

.tmt-faq-container {
    max-width: 900px;
    margin: auto;
}

.tmt-faq-container h2 {
    font-size: 2rem;
    color: #ee1d24;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
}

.tmt-faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.tmt-faq-question {
    width: 100%;
    padding: 18px 20px;
    text-align: left;
    background: #2e3192;
    color: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.tmt-faq-question:hover {
    background: #ee1d24;
}

.tmt-faq-question.active {
    background: #ee1d24;
}

.tmt-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #fff;
    padding: 0;
    /* closed state */
}

.tmt-faq-answer p {
    margin: 15px 0;
    line-height: 1.7;
    color: #444;
    font-size: 0.95rem;
}

.tmt-faq-answer.open {
    padding: 15px 20px;
    /* only add padding when open */
}

/* Responsive */
@media (max-width: 768px) {
    .tmt-faq-question {
        font-size: 0.95rem;
        padding: 15px 18px;
    }

    .tmt-faq-answer p {
        font-size: 0.9rem;
    }
}