/* Base Colors */
:root {
    --primary-blue: #004a87;
    --header-teal: #2c9db7;
}

/* 1440px Container */
.container-custom {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background-color: var(--header-teal);
    font-size: 13px;
}

/* Menu Hover Effect */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 14px;
    padding: 15px 15px !important;
}

.main-logo {
    max-height: 130px; 
    width: auto;
}

.text-primary-blue {
    color: #004a87; 
    font-family: 'Times New Roman', Times, serif; 
}

.title-wrapper h1 {
    line-height: 1.2;
}
@media (max-width: 768px) {
    .logo-section .d-flex {
        flex-direction: column;
        text-align: center;
    }
    .logo-wrapper {
        margin-right: 0 !important;
        margin-bottom: 15px;
    }
}

/* Mega Menu Logic */
@media (min-width: 992px) {
    .has-megamenu {
        position: static !important; /* Isse dropdown width pure header ki barabar ho sakti hai */
    }

    .megamenu {
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 0;
        border-radius: 0;
        border: none;
        border-bottom: 4px solid #008094;
    }

    /* Hover pe dikhane ke liye purana logic hi kaam karega */
    .has-megamenu:hover .megamenu {
        display: block;
    }
}

/* Megamenu Titles */
.megamenu-title {
    color: #004a87;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* Mega Links Styling */
.mega-links li {
    margin-bottom: 8px;
}

.mega-links li a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    transition: 0.2s;
    display: block;
}

.mega-links li a i {
    font-size: 0.7rem;
    color: #008094;
    margin-right: 5px;
}

.mega-links li a:hover {
    color: #008094;
    padding-left: 8px; /* Subtle slide effect */
}

/* --- Slider / Carousel Styling --- */
.slider-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.custom-slider-img {
    width: 100%;
    height: 620px; 
    object-fit: cover; 
    object-position: top center; 
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%; 
    background-color: #fff;
    border: 2px solid #004a87; 
    opacity: 0.7;
}

.carousel-indicators .active {
    background-color: #004a87; 
    opacity: 1;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 991px) {
    .custom-slider-img {
        height: auto; 
        min-height: 300px; 
    }
}

@media (max-width: 576px) {
    .custom-slider-img {
        min-height: 200px; 
    }
}
@media (max-width: 768px) {
    .custom-slider-img {
        height: 350px; 
    }
}

/* Departments Section */
.departments-section {
    background-color: #fcfcfc;
}

/* Teal Header Style */
.section-heading {
    background-color: #008080; /* Teal color from reference */
    font-size: 2rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}

/* 5 Column Grid for Desktop (Bootstrap doesn't have col-lg-2.4) */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 auto;
        width: 20%; /* Exactly 5 items in a row */
    }
}

/* Card Styling */
.dept-card {
    background: #eeeeee; 
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.dept-card:hover .dept-icon-img {
    transform: scale(1.1);
}

.icon-box {
    margin-bottom: 15px;
    height: 60px; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.dept-icon-img {
    max-width: 50px; 
    height: auto;
    transition: transform 0.3s ease;
}

.dept-card h5 {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 0;
}

/* Citizen Charter Strip */
.citizen-charter-strip {
    background-color: #008094; /* Teal color matching reference */
}

.citizen-charter-strip .btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    transition: all 0.3s;
}

.citizen-charter-strip .btn-outline-light:hover {
    background-color: #fff;
    color: #008094;
}

/* News Ticker Strip */
.news-ticker-strip {
    background-color: #330066; /* Deep Purple color from image */
    font-size: 0.95rem;
}

marquee {
    vertical-align: middle;
    font-weight: 500;
}

/* Container safety within strips */
.info-strips .container-custom {
    max-width: 1440px;
    margin: 0 auto;
}

/* Section Subheading (Teal border left) */
.section-subheading {
    color: #007385;
    font-weight: bold;
    font-size: 1.5rem;
    border-bottom: 2px solid #007385;
    display: inline-block;
    padding-bottom: 5px;
}

/* Notice Table Styling */
.notice-table-wrapper {
    border: 1px solid #dee2e6;
    /*max-height: 450px; /* Scrollbar agar notice zyada honge */*/
    overflow-y: auto;
}

.notice-table-wrapper .table td {
    padding: 12px 15px;
    font-size: 0.95rem;
}

.date-cell {
    width: 120px;
    color: #666;
    font-weight: 500;
}

.notice-table-wrapper a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.notice-table-wrapper a:hover {
    color: #007385;
}

/* Events Image Height */
.event-img {
    height: 550px;
    object-fit: cover;
}

/* Small Dots for Event Slider */
.event-indicators {
    bottom: 10px;
}

.event-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Responsive fixes */
@media (max-width: 991px) {
    .event-img {
        height: 250px;
    }
}

/* Stats Section */
.stats-section {
    background-color: #008094; /* Teal Blue background */
}

.stats-icon {
    width: 60px; /* Adjust size based on your images */
    height: auto;
    filter: brightness(0) invert(1); /* Agar icons black hain toh inhe white kar dega */
}

.stats-item {
    padding: 15px 20px;
    min-height: 100px;
}

.stats-item h4 {
    font-size: 1.5rem;
    line-height: 1.2;
}

/* Vertical divider lines fix for mobile */
@media (max-width: 767px) {
    .stats-item {
        border-start: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.3);
    }
    .stats-item:last-child {
        border-bottom: none;
    }
    .stats-icon {
        width: 45px;
    }
}

/* Ayushman Promo Section */
.ayushman-promo-section {
    background-color: #c2e0c6; /* Light Green background from image */
}

.hindi-text-wrapper {
    line-height: 1.6;
}

.hindi-title {
    color: #1a5e20; /* Dark Green */
    font-size: 2.2rem;
}

.hindi-subtitle {
    color: #ff8f00; /* Deep Orange/Golden */
    font-size: 2.5rem;
    text-transform: uppercase;
}

.hindi-footer {
    color: #1a5e20; /* Dark Green */
    font-size: 2.2rem;
}

.banner-img-box {
    border: 5px solid #fff;
    transition: transform 0.3s ease;
}

.banner-img-box:hover {
    transform: scale(1.02);
}

/* Responsive Font Sizes for Mobile */
@media (max-width: 991px) {
    .hindi-title, .hindi-footer {
        font-size: 1.5rem;
    }
    .hindi-subtitle {
        font-size: 1.8rem;
    }
}

/* Footer Styles */
.main-footer {
    background: url('https://rdjmmch.in/img/footer_image11.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

/* Ye dark overlay text ko visible banayega */
.footer-overlay {
    background: rgba(0, 0, 0, 0.85); /* Black overlay with 85% opacity */
}

.footer-heading {
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #0dcaf0; /* Cyan color underline */
}

/* Links Styling */
.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Social Icons */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #0dcaf0;
    transform: translateY(-3px);
}

/* Copyright Bar */
.copyright-bar {
    background-color: #008094; /* Teal color from header */
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #004a87;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    text-decoration: none;
}





/* Contact us  */

.page-title-section {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.title-divider {
    width: 60px;
    height: 3px;
    background-color: #008094;
}

/* Sidebar Nav */
.sidebar-nav ul li {
    background-color: #008094;
    margin-bottom: 5px;
    transition: 0.3s;
}

.sidebar-nav ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 12px 20px;
    font-weight: 500;
}

.sidebar-nav ul li:hover {
    background-color: #004a87;
}

.sidebar-nav ul li.active {
    background-color: #004a87;
    border-left: 5px solid #ffc107; /* Yellow accent */
}

/* Form Styling */
.contact-form-wrapper {
    background: #fff;
    border-top: 5px solid #198754 !important; /* Green top border like Google Forms */
}

.form-control {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #ccc;
    padding-left: 0;
}

.form-control:focus {
    box-shadow: none;
    border-color: #198754;
}

.contact-info-card h5 {
    font-size: 1.1rem;
}


.appointment-card {
    background-color: #fff;
    max-width: 1000px; /* Center focused look */
    margin: 0 auto;
    border-radius: 4px;
}

.appointment-header {
    background-color: #fdfdfd;
}

.appointment-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

/* Links underline style matching your screenshot */
.appointment-body a {
    color: #333;
    transition: color 0.3s;
}

.appointment-body a:hover {
    color: #008094;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .appointment-body p {
        font-size: 1rem;
    }
    .appointment-header h2 {
        font-size: 1.5rem;
    }
}

/* Event Cards Styling */
.event-card {
    border-radius: 15px; /* Thoda zyada rounded corners jaisa image mein hai */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

.event-card img {
    height: 200px;
    object-fit: cover; /* Image stretch nahi hogi */
}

.event-card .card-body {
    padding: 20px;
}

.event-card .card-title {
    color: #0056b3; /* Dark blue/teal jaisa image mein dikh raha hai */
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .event-card img {
        height: 180px;
    }
}


/* Course Detail Styles */
.lead-text {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
}

.bg-primary-blue {
    background-color: #004a87 !important;
}

.curriculum-wrapper .table {
    border-collapse: separate;
    border-spacing: 0;
}

.curriculum-wrapper .table thead th {
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.curriculum-wrapper .table tbody td {
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

/* Zebra striping for readability */
.curriculum-wrapper .table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.course-meta {
    border-radius: 0 8px 8px 0;
}

/* Responsive Table */
@media (max-width: 768px) {
    .curriculum-wrapper .table {
        font-size: 0.85rem;
    }
    .lead-text {
        font-size: 1rem;
    }
}


/* About Page Custom CSS */
.about-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
}

.quote-box h4 {
    font-style: italic;
    line-height: 1.5;
    font-family: 'Georgia', serif;
}

.bg-primary-blue {
    background-color: #004a87 !important;
}

.text-primary-blue {
    color: #004a87;
}

.strength-card {
    transition: transform 0.3s ease;
}

.strength-card:hover {
    transform: translateY(-10px);
}

.strength-card h5 {
    font-weight: 700;
    color: #004a87;
}

/* Paragraph spacing for better readability */
.society-info p {
    line-height: 1.8;
    color: #444;
    text-align: justify;
}