:root {
    --primary-color: #006837;
    --background-color: #fdfdfa;
    --panel-color: #ffffff;
    --text-color: #333333;
    --heading-color: #004d29;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Lato', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    margin: 0;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

.mt-0 {
    margin-top: 0px !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.mb-0 {
    margin-bottom: 0px !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.my-0 {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.text-center {
    text-align: center;
}

.text-start {
    text-align: start !important;
}

/* --- Header and Nav styles --- */
.main-header {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.top-bar {
    background-color: #fff;
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 2rem;
    /* Space between title and language switcher */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 100px;
    width: 100px;
}

.logo-text .title {
    font-family: var(--font-heading);
    margin: 0;
    color: var(--heading-color);
    font-size: 2.2rem;
    font-weight: bold;
}

.logo-text p {
    margin: 0px;
}

/* --- Language Switcher Styles --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-switcher {
    position: relative;
}

.language-switcher .dropdown-toggle {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s;
    background-color: #fff;
    cursor: pointer;
}

.language-switcher .dropdown-toggle:hover {
    background-color: #f5f5f5;
}

.language-switcher .dropdown-toggle .fa-chevron-down {
    font-size: 0.8em;
}

.language-switcher .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: white;
    min-width: 120px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1001;
    list-style: none;
    padding: 5px 0;
    margin: 0;
}

/* Desktop switcher uses hover to show */
.desktop-lang-switcher:hover .dropdown-menu {
    display: block;
}

.desktop-lang-switcher .dropdown-menu a {
    padding: 8px 15px;
    display: block;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.desktop-lang-switcher .dropdown-menu a:hover {
    background-color: #f5f5f5;
}

/* Mobile switcher uses JS 'active' class to show */
.mobile-lang-switcher.active .dropdown-menu {
    display: block;
}

.mobile-lang-switcher .dropdown-toggle {
    padding: 8px 10px;
    font-size: 1rem;
}

.mobile-lang-switcher .dropdown-menu a {
    padding: 10px 15px;
}

.main-nav {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.desktop-nav {
    display: none;
    justify-content: center;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-item>a,
.dropdown-toggle {
    color: #ffffff;
    text-decoration: none;
    padding: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.dropdown-toggle .fa-chevron-down {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.nav-item>a:hover,
.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 5px 5px;
    z-index: 100;
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 3px solid var(--primary-color);
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    padding: 12px 16px;
    display: block;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background-color: var(--primary-color);
    color: white;
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-sizing: border-box;
}

.side-menu.open {
    transform: translateX(0);
}

.side-menu .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.side-menu-nav {
    list-style: none;
    padding: 60px 0 0 0;
    margin: 0;
}

.side-menu-nav li a,
.side-menu-nav .submenu-toggle {
    color: white;
    text-decoration: none;
    display: block;
    padding: 5px 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s;
}

.side-menu-nav .submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.side-menu-nav li a:hover,
.side-menu-nav .submenu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.submenu {
    list-style: none;
    padding-left: 0;
    background-color: rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.side-menu-nav .language-submenu {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.submenu.open {
    max-height: 500px;
}

.submenu a {
    padding-left: 40px;
    font-size: 1rem;
    border-color: rgba(255, 255, 255, 0.1);
}

.arrow {
    transition: transform 0.3s;
    display: inline-block;
}

.has-submenu.active>.submenu-toggle .arrow {
    transform: rotate(180deg);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Main Content (Homepage and Inner Pages) --- */
main {
    padding: 0;
}

section {
    padding: 3rem 0;
}

h2 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    text-align: center;
    font-size: 2.2rem;
    margin: 0 0 2rem 0;
}

/* --- Homepage Specific Styles --- */
.hero-section {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 5rem 0;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin: 0 0 1rem 0;
}

.hero-content .tagline {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #ffffff;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

#welcome-panel {
    background-color: var(--background-color);
}

.welcome-text {
    margin: 0 auto 2.5rem auto;
    font-size: 1.1rem;
}

.key-features {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.feature-item {
    flex: 1;
    max-width: 200px;
    text-align: center;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item span {
    font-weight: bold;
    font-size: 1.1rem;
    display: block;
}

.btn-primary-outline {
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

#about {
    background-color: var(--panel-color);
}

/* --- Breadcrumb Section Styles --- */
.breadcrumb-section {
    background-color: #f5f5f5;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    align-items: center;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: '>';
    padding-right: 8px;
    color: #6c757d;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-color);
    font-weight: bold;
}

/* --- Inner Page Content Styles --- */
#page-content {
    background-color: #ffffff;
    min-height: 62vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* === UPDATED CODE START === */
#page-content h2 {
    display: inline-block;
    /* Makes the element wrap its content */
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
    text-align: left;
    /* Still useful for multi-line headings */
}

/* === UPDATED CODE END === */

/* --- Additional Inner Page Styles --- */
.page-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.detail-item h3 {
    margin-top: 0;
    color: var(--heading-color);
}

.styled-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: 0px;
}

.styled-list li {
    padding: 5px 0 5px 25px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.styled-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.board-grid-single {
    display: flex;
}

.board-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.board-card img {
    max-width: 100%;
}

.board-card h3 {
    margin-top: 0;
    margin-bottom: 0px;
    color: var(--heading-color);
}

.board-card p {
    margin-bottom: 0;
    margin-top: 5px;
}

.section-title-mt {
    margin-top: 3rem;
}

.disclaimer {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 1rem;
    border-radius: 4px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--background-color);
    padding: 0px 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.main-footer {
    background-color: var(--heading-color);
    color: #e0e0e0;
    text-align: center;
    margin-top: 50px;
    padding: 1px 0;
}

/* Default State (Mobile First) */
.desktop-lang-switcher {
    display: none;
    /* डेस्कटॉप वाला भाषा बटन मोबाइल पर छिपाएँ */
}

.mobile-lang-switcher {
    display: block;
    /* मोबाइल वाला भाषा बटन मोबाइल पर दिखाएँ */
}

/* --- Styles for Archives Page --- */
.archive-year {
    margin-bottom: 2.5rem;
}

.archive-year h3 {
    font-size: 1.8rem;
    color: var(--heading-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
}

.archive-issue {
    margin-bottom: 2rem;
}

.archive-issue h4 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    font-size: 0.95rem;
}

.article-table th,
.article-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

.article-table th {
    background-color: #f7f7f7;
    font-weight: bold;
}

.article-table tbody tr:hover {
    background-color: #f1f1f1;
}

.article-table td:last-child {
    width: 120px;
    text-align: center;
}

.btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-pdf:hover {
    background-color: var(--heading-color);
    color: #fff;
}


/* --- Style for the Details Table on Homepage --- */
.details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem auto;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.details-table td {
    padding: 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.details-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.details-table td:first-child {
    font-weight: bold;
    color: var(--heading-color);
    width: 30%;
    /* Adjust width as needed */
}

/* --- NEW STYLES for Archives Page Layout --- */
.archive-year h3 {
    font-size: 1.8rem;
    color: var(--heading-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: .5rem;
}

.archive-issue h4 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.article-entry {
    display: flex;
    gap: 1.5rem;
    /* Space between cover and details */
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #696969;
}

.article-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.article-cover {
    flex: 0 0 150px;
    /* Fixed width for the cover image */
}

.article-cover img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-cover a:hover img {
    transform: scale(1.03);
}

.article-details {
    flex: 1;
    /* Takes up the remaining space */
}

.article-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.article-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: var(--heading-color);
}

.article-meta {
    font-size: 0.9rem;
    color: #666;
    margin: 0rem;
    font-style: italic;
}

.abstract-heading {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.article-abstract {
    color: #555;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-pdf:hover {
    background-color: var(--heading-color);
}


/* Responsive adjustment for the new layout */
@media (max-width: 768px) {
    .article-entry {
        flex-direction: column;
        /* Stack image and text on mobile */
    }

    .article-cover {
        width: 150px;
        /* Keep image from stretching full width */
        margin-bottom: 1rem;
    }
}

@media (min-width: 992px) {
    .top-bar .container {
        justify-content: center;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .main-nav {
        display: block;
    }

    .mobile-lang-switcher {
        display: none;
        /* मोबाइल वाला भाषा बटन डेस्कटॉप पर छिपाएँ */
    }

    .desktop-lang-switcher {
        display: block;
        /* डेस्कटॉप वाला भाषा बटन डेस्कटॉप पर दिखाएँ */
    }

    .desktop-nav {
        display: flex;
    }
}

@media (max-width: 991px) {
    .main-nav {
        display: none;
    }

    .main-nav .container {
        justify-content: space-between;
    }

    .logo-text .title {
        font-size: 1.5rem;
    }

    .logo-img {
        height: 60px;
        width: 60px;
    }
}

@media (max-width: 768px) {
    .logo-text .title {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 50px;
        width: 50px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {

    .logo-text .title,
    .logo-text p {
        display: none;
    }
}


/* --- NEW: Owl Carousel Styles --- */
.slider-section {
    padding: 0;
    /* Remove padding for a full-width slider */
}

.owl-carousel .item img {
    width: 100%;
    height: auto;
    max-height: 450px;
    /* Optional: to control the slider height */
    object-fit: cover;
}

/* Customizing Navigation Arrows */
.owl-theme .owl-nav {
    margin-top: 0 !important;
}

.owl-theme .owl-nav [class*='owl-'] {
    color: #FFF !important;
    font-size: 3rem !important;
    background: rgba(0, 0, 0, 0.3) !important;
    margin: 0 !important;
    padding: 0 15px !important;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.3s;
}

.owl-theme .owl-nav [class*='owl-']:hover {
    background: rgba(0, 0, 0, 0.6) !important;
}

.owl-theme .owl-prev {
    left: 20px;
}

.owl-theme .owl-next {
    right: 20px;
}

/* Customizing Navigation Dots */
.owl-theme .owl-dots .owl-dot span {
    width: 12px !important;
    height: 12px !important;
    background: #ccc !important;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: var(--primary-color) !important;
}


/* Custom CSS for Contact Page */
.contact-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-left: 4px solid #006837;
}

.contact-card h3 {
    color: #006837;
    margin-bottom: 15px;
}

.contact-card p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 12px;
    margin-bottom: 20px;
}

.contact-form .form-control:focus {
    border-color: #006837;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

.contact-form textarea.form-control {
    height: 120px;
    resize: vertical;
}

.theme-btn {
    background-color: #006837;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    color: white;
    font-weight: 600;
    transition: background-color 0.3s;
}

.theme-btn:hover {
    background-color: #006837;
    color: white;
}

.sec-title h1 {
    color: #333;
    font-weight: 700;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }

    .contact-card,
    .contact-form {
        padding: 20px;
    }
}


.error {
    color: rgb(226, 19, 19) !important;
    display: flex;
    margin-top: -20px;
    /* margin-left: -14px; */

}


.error1 {
    color: rgb(226, 19, 19) !important;

}

.g-recaptcha {
margin-top: -12px;
}