/* Language website pages (Hindi / English) — Drishti-inspired layout */

.language-site-page {
    background: #f4f4f4;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.language-site-page main {
    margin-top: 0 !important;
}

/* ----- Header area (menu stays dynamic; visual polish only) ----- */
.language-site-page .main-nav {
    background: #ececec;
    padding: 0;
    box-shadow: none;
    border-bottom: 1px solid #d8d8d8;
}

.language-site-page .main-nav .container-fluid,
.language-site-page .main-nav .container {
    padding: 10px 15px;
    flex-wrap: nowrap;
    overflow: visible;
}

.language-site-page .navbar-collapse {
    overflow: visible;
}

.language-site-page .news-marquee .container,
.language-site-page .news-marquee .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

.language-site-page .navbar-nav {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 2px;
    overflow: visible;
}

.language-site-page .nav-item.custom-dropdown:hover,
.language-site-page .nav-item.custom-dropdown.show,
.language-site-page .nav-item.custom-dropdown:focus-within {
    z-index: 1025;
}

.language-site-page .nav-link {
    color: #222;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 10px;
    text-transform: none;
}

.language-site-page .nav-link:hover,
.language-site-page .nav-item.custom-dropdown.show > .custom-toggle {
    color: #c0392b;
}

.language-site-page .nav-item.custom-dropdown .custom-toggle::after {
    content: " ▾";
    color: #c0392b;
    font-size: 11px;
}

.language-site-page .news-marquee {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 16px;
}

.language-site-page .news-marquee span {
    color: #c0392b;
    font-weight: 600;
    font-size: 14px;
}

/* ----- Hero carousel (full width, natural image size) ----- */
.language-site-page .site-banner-wrap {
    background: #fff;
    margin-bottom: 0;
}

.language-site-page .site-banner-carousel .site-banner-slide-wrap {
    min-height: 0;
    background: #fff;
}

.language-site-page .site-banner-carousel .site-banner-img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
    background: #fff;
}

.language-site-page .site-banner-carousel .carousel-control-prev-icon,
.language-site-page .site-banner-carousel .carousel-control-next-icon {
    filter: invert(1) grayscale(100);
    background-color: rgba(192, 57, 43, 0.85);
    border-radius: 50%;
    padding: 18px;
}

/* ----- Promo strip ----- */
.lang-promo-strip {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 20px;
    text-align: center;
}

.lang-promo-strip p {
    margin: 0;
    color: #c0392b;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* ----- Page sections ----- */
.lang-site-content {
    padding: 28px 0 40px;
}

/* ----- Drishti-style explore tiles (2×3) ----- */
.lang-explore {
    margin-bottom: 28px;
}

.lang-explore__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.lang-explore-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 118px;
    padding: 18px 20px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lang-explore-tile:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.lang-explore-tile__label {
    position: relative;
    z-index: 2;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    max-width: 58%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.lang-explore-tile__icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    font-size: 3.25rem;
    opacity: 0.35;
    line-height: 1;
}

.lang-explore-tile__icon i {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    color: transparent;
}

.lang-explore-tile--coral {
    background: linear-gradient(135deg, #e07a6f 0%, #d4645a 100%);
}

.lang-explore-tile--orange {
    background: linear-gradient(135deg, #f59a3d 0%, #e8841f 100%);
}

.lang-explore-tile--magenta {
    background: linear-gradient(135deg, #e84393 0%, #d63384 100%);
}

.lang-explore-tile--teal {
    background: linear-gradient(135deg, #3db8a9 0%, #2a9d8f 100%);
}

.lang-explore-tile--purple {
    background: linear-gradient(135deg, #9b7fd4 0%, #7c5cbf 100%);
}

.lang-explore-tile--cyan {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
}

/* ----- Drishti-style 3-card row ----- */
.lang-hero-cards {
    margin-bottom: 28px;
}

.lang-hero-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.lang-home-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    min-height: 420px;
}

.lang-home-card__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    color: #fff;
}

.lang-home-card__icon {
    font-size: 1.1rem;
    opacity: 0.95;
}

.lang-home-card__title {
    flex: 1 1 auto;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    min-width: 0;
}

.lang-home-card--quiz .lang-home-card__head {
    background: linear-gradient(90deg, #1a8a7d 0%, #2bbbad 100%);
}

.lang-home-card--affairs .lang-home-card__head {
    background: linear-gradient(90deg, #5b3f9e 0%, #7b5bb8 100%);
}

.lang-home-card--new .lang-home-card__head {
    background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%);
}

.lang-quiz-dots {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.lang-quiz-dot {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-quiz-dot.is-active {
    background: #fff;
    color: #1a8a7d;
    border-color: #fff;
}

.lang-home-card__body {
    flex: 1 1 auto;
    padding: 16px;
    background: #fafafa;
    min-height: 0;
}

.lang-home-card__body--quiz {
    background: #fff;
}

.lang-home-card__body--scroll {
    max-height: 300px;
    overflow-y: auto;
    padding: 12px 16px;
}

.lang-home-card__body--scroll::-webkit-scrollbar {
    width: 5px;
}

.lang-home-card__body--scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.lang-quiz-panel__text {
    font-size: 14px;
    line-height: 1.55;
    color: #333;
    margin-bottom: 14px;
}

.lang-quiz-options {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lang-quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 6px;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    background: #fafafa;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.lang-quiz-option:hover {
    background: #f0faf9;
    border-color: #2bbbad;
}

.lang-quiz-option input {
    margin-top: 3px;
    flex-shrink: 0;
}

.lang-home-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: #fff;
}

.lang-home-card__btn {
    display: inline-block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.lang-home-card__btn:hover {
    background: #f5f5f5;
    color: #222;
}

.lang-home-card__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.lang-quiz-nav {
    margin-left: auto;
}

.lang-affairs-list,
.lang-whatsnew-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lang-affairs-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.lang-affairs-item:last-child {
    border-bottom: none;
}

.lang-affairs-item__cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    background: #eee;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.lang-affairs-item__title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin: 0 0 6px;
    line-height: 1.45;
}

.lang-affairs-item__date {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.lang-affairs-item__date i {
    margin-right: 4px;
}

.lang-whatsnew-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.lang-whatsnew-item:last-child {
    border-bottom: none;
}

.lang-whatsnew-item__date {
    font-size: 12px;
    color: #888;
    margin: 0 0 4px;
}

.lang-whatsnew-item__date i {
    margin-right: 4px;
}

.lang-whatsnew-item__title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.45;
    text-decoration: none;
}

a.lang-whatsnew-item__title:hover {
    color: #c0392b;
}

.lang-home-card__empty {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 24px 12px;
    margin: 0;
}

.lang-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 28px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.lang-section__head {
    background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%);
    color: #fff;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lang-section__body {
    padding: 20px;
}

/* YouTube grid */
.lang-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.lang-video-card {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    background: #fff;
}

.lang-video-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.lang-video-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.lang-video-card__body {
    padding: 14px 16px;
}

.lang-video-card__cat {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lang-video-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin: 6px 0 12px;
    line-height: 1.4;
}

.lang-video-card__link {
    color: #c0392b;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.lang-video-card__link:hover {
    text-decoration: underline;
}

/* Updates + Quiz row */
.lang-updates-row {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.lang-updates-panel {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    min-height: 360px;
}

.lang-updates-carousel {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    background: #fafafa;
}

.lang-updates-carousel .carousel-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.lang-updates-list {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 6px;
}

.lang-update-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.15s ease;
}

.lang-update-item:last-child {
    border-bottom: none;
}

.lang-update-item:hover {
    background: #fafafa;
    padding-left: 8px;
}

.lang-update-item h6 {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.45;
}

.lang-update-item .meta {
    font-size: 12px;
    color: #888;
}

.lang-update-item .meta .cat {
    color: #c0392b;
    font-weight: 600;
}

/* Quiz sidebar */
.lang-quiz-panel .lang-section__head {
    background: linear-gradient(90deg, #922b21 0%, #c0392b 100%);
}

.lang-quiz-list {
    max-height: 400px;
    overflow-y: auto;
}

.lang-quiz-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.lang-quiz-item:last-child {
    border-bottom: none;
}

.lang-quiz-item h6 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
}

.lang-quiz-item .date {
    font-size: 12px;
    color: #c0392b;
}

.lang-quiz-btn {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    white-space: nowrap;
    text-decoration: none;
}

.lang-quiz-btn:hover {
    background: #922b21;
    color: #fff;
}

.lang-empty {
    text-align: center;
    color: #999;
    padding: 24px;
    font-size: 14px;
}

/* Scrollbars */
.lang-updates-list::-webkit-scrollbar,
.lang-quiz-list::-webkit-scrollbar {
    width: 4px;
}

.lang-updates-list::-webkit-scrollbar-thumb,
.lang-quiz-list::-webkit-scrollbar-thumb {
    background: #c0392b;
    border-radius: 4px;
}

@media (max-width: 992px) {
    .language-site-page .main-nav .container-fluid,
    .language-site-page .main-nav .container {
        flex-wrap: wrap;
    }

    .language-site-page .navbar-nav {
        flex-wrap: wrap;
    }

    .lang-hero-cards__grid {
        grid-template-columns: 1fr;
    }

    .lang-home-card {
        min-height: 0;
    }

    .lang-updates-row {
        grid-template-columns: 1fr;
    }

    .lang-updates-panel {
        grid-template-columns: 1fr;
    }

    .lang-updates-carousel .carousel-item img {
        height: 220px;
    }
}

@media (max-width: 1200px) and (min-width: 993px) {
    .lang-hero-cards__grid {
        grid-template-columns: 1fr 1fr;
    }

    .lang-home-card--quiz {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .lang-explore__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lang-explore-tile {
        min-height: 100px;
    }

    .lang-explore-tile__label {
        font-size: 0.95rem;
        max-width: 65%;
    }
}

@media (max-width: 576px) {
    .language-site-page .navbar-nav {
        justify-content: flex-start;
    }

    .lang-explore__grid {
        grid-template-columns: 1fr;
    }

    .lang-video-grid {
        grid-template-columns: 1fr;
    }
}
