/* ===== MAIN STYLES FOR MAHALAXMI TEMPLE WEBSITE ===== */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --background-color: #f8f9fa;
    --text-color: #333;
    --sidebar-color: #2c3e50;
    --header-gradient-start: #007bff;
    --header-gradient-end: #0056b3;
}

/* ===== PUROHIT DESKTOP ALIGNMENT (>=1200px) ===== */
@media (min-width: 1200px) {
    .purohit-content,
    .purohit-name,
    .purohit-name-mr,
    .purohit-temple,
    .purohit-temple-mr {
        text-align: center;
    }
}

/* ===== NEWS BADGE POSITIONING OVERRIDE ===== */
.news-image-container {
    position: relative !important;
}

.news-image-container .image-count-badge {
    position: absolute !important;
    top: 10px;
    right: 10px;
    z-index: 5;
    background-color: #ffffff;
    border-radius: 5px;
    padding: 0px 5px 0px 5px;
}

/* ===== GLOBAL STYLES ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--background-color) 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    overflow-x: hidden;
    padding-top: 60px; /* Add padding for fixed navbar */
}

/* ===== FIXED NAVBAR STYLES ===== */
.navbar-orange {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--header-gradient-start) 85%, #000 15%), 
        color-mix(in srgb, var(--header-gradient-end) 85%, #000 15%)) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    padding: 0.75rem 1rem;
    min-height: 60px;
}

/* ===== HEADER STYLES ===== */
.header {
    background: linear-gradient(135deg, var(--header-gradient-start) 0%, var(--header-gradient-end) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== CONTENT SECTION STYLES ===== */
.content-section {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;}

.main-centered-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== AARTI SANGRAHA STYLES ===== */
.group-card {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px #0001;
    border-radius: 8px;
    overflow: hidden;
}

.group-card .card-body {
    padding: 1.25rem;
}

.aarti-viewer {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px #0001;
    padding: 1rem;
}

.aarti-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.25rem;
    font-size: 1.75rem;
}

.aarti-content {
    font-size: 1.25rem;
    line-height: 1.9;
    white-space: pre-wrap;
    margin-top: 0;
    padding-top: 0;
}

.aarti-content p {
    margin: 0.6em 0;
}

.aarti-content div {
    margin: 0.6em 0;
}

.aarti-content > :first-child,
.aarti-content p:first-child,
.aarti-content h1:first-child,
.aarti-content h2:first-child,
.aarti-content h3:first-child,
.aarti-content h4:first-child,
.aarti-content h5:first-child,
.aarti-content h6:first-child,
.aarti-content ul:first-child,
.aarti-content ol:first-child,
.aarti-content div:first-child {
    margin-top: 0 !important;
}

/* ===== DEITY CARD STYLES ===== */
.deity-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 550px;
    display: flex;
    flex-direction: column;
}

.deity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.deity-image {
    height: 336px;
    object-fit: cover;
    width: 100%;
    flex-shrink: 0;
}

.deity-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.deity-name {
    color: #333;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
    text-align: center;
}

.deity-name-mr {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
    text-align: center;
}

.deity-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
    overflow: hidden;
    min-height: 0;
}

.read-more-btn {
    background: linear-gradient(135deg, #ff8800, #ff6600);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    text-align: center;
    text-decoration: none;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #ff6600, #ff4400);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 136, 0, 0.3);
    color: white;
}

/* ===== GALLERY STYLES ===== */
.album-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.album-icon {
    transition: transform 0.3s ease;
}

.album-card:hover .album-icon {
    transform: scale(1.1);
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.05);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    color: white;
    font-size: 2rem;
}

.modal-fullscreen .modal-body {
    padding: 0;
}

#photoViewerImage {
    max-width: 100%;
    height: auto;
}

/* ===== COMMITTEE CARD STYLES ===== */
.committee-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.committee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.committee-image {
    height: 280px;
    object-fit: cover;
    width: 100%;
    flex-shrink: 0;
}

.committee-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.committee-name {
    color: #333;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
}

.committee-position {
    color: #ff6600;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.committee-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    overflow: hidden;
}

/* ===== PUROHIT CARD STYLES ===== */
.purohit-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.purohit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.purohit-image {
    height: 280px;
    object-fit: cover;
    width: 100%;
    flex-shrink: 0;
}

.purohit-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.purohit-name {
    color: #333;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
}

.purohit-specialization {
    color: #ff6600;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.purohit-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    overflow: hidden;
}

/* ===== NEWS CARD STYLES ===== */
.news-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
    flex-shrink: 0;
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    color: #333;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.news-date {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.news-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    overflow: hidden;
}

/* ===== UTSAV CARD STYLES ===== */
.utsav-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.utsav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.utsav-image {
    height: 336px;
    object-fit: cover;
    width: 100%;
    flex-shrink: 0;
}

.utsav-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.utsav-name {
    color: #333;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
    text-align: center;
}

.utsav-name-mr {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
    text-align: center;
}

.know-more-btn {
    background: linear-gradient(135deg, #ff8800, #ff6600);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
}

.know-more-btn:hover {
    background: linear-gradient(135deg, #ff6600, #ff4400);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 136, 0, 0.3);
    color: white;
}

/* ===== CONTACT FORM STYLES ===== */
.contact-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 2rem;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.contact-info-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info-card i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* ===== SOCIAL INITIATIVES STYLES ===== */
.initiative-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.initiative-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.initiative-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
    flex-shrink: 0;
}

.initiative-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.initiative-title {
    color: #333;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.initiative-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    overflow: hidden;
}

/* ===== HALL INFORMATION STYLES ===== */
.hall-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hall-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.hall-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
    flex-shrink: 0;
}

.hall-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hall-title {
    color: #333;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.hall-capacity {
    color: #ff6600;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hall-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    overflow: hidden;
}

/* ===== PRASAD KAUL STYLES ===== */
.prasad-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.prasad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.prasad-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
    flex-shrink: 0;
}

.prasad-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.prasad-title {
    color: #333;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.prasad-price {
    color: #ff6600;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.prasad-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    overflow: hidden;
}

/* ===== UNSUBSCRIBE PAGE STYLES ===== */
.unsubscribe-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.unsubscribe-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.unsubscribe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.unsubscribe-card .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.unsubscribe-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ===== TABLE STYLES ===== */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--header-gradient-end) 100%);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

/* ===== MOBILE CARD LAYOUT ===== */
.mobile-card {
    display: none;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.mobile-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--header-gradient-end) 100%);
    color: white;
    padding: 1rem;
    text-align: center;
}

.mobile-card-body {
    padding: 1rem;
}

/* ===== COMMITTEE TYPE BADGES ===== */
.committee-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.committee-type.core {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.committee-type.substitute {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

/* ===== COMMITTEE DESIGNATION ===== */
.committee-designation {
    color: #ff6600;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* ===== PUROHIT SPECIALIZATION ===== */
.purohit-specialization {
    color: #ff6600;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

/* ===== NEWS DATE ===== */
.news-date {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* ===== UTSAV DATE ===== */
.utsav-date {
    color: #ff6600;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ===== HALL CAPACITY ===== */
.hall-capacity {
    color: #ff6600;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ===== PRASAD PRICE ===== */
.prasad-price {
    color: #ff6600;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ===== SECTION TITLES ===== */
.section-title {
    color: #333;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* ===== CONTACT SECTION TITLES ===== */
.contact-section-title {
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* ===== MAP CARD ===== */
.map-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 2rem;
}

/* ===== CONTACT INFO CARD ===== */
.contact-info-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info-card i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    /* Body padding for fixed navbar */
    body {
        padding-top: 80px; /* Increased padding for mobile navbar */
    }
    
    /* Fixed navbar mobile adjustments */
    .navbar-orange {
        min-height: 80px;
        padding: 1rem 1.25rem;
    }
    
    /* Header adjustments */
    .header {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header p {
        font-size: 0.95rem;
    }
    
    /* Content section adjustments */
    .content-section {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    .main-centered-content {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Unsubscribe card adjustments */
.unsubscribe-card {
    padding: 2rem 1rem;
}

/* ===== CAROUSEL STYLES ===== */
.carousel-outer {
    width: 100%;
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.carousel {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

.carousel-inner {
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.carousel-item {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    transition: transform 0.6s ease-in-out;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 2rem 1rem 1rem;
    text-align: center;
    border-radius: 0;
}

.carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Ensure no gaps and smooth transitions */
.carousel-inner,
.carousel-item,
.carousel-item img {
    border: none;
    outline: none;
    box-sizing: border-box;
}

/* Fix Bootstrap carousel transition issues */
.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    display: block;
}

.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
    transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
    transform: translateX(-100%);
}

/* Prevent page flashing during transitions */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* ===== CAROUSEL MOBILE RESPONSIVE ===== */
@media (max-width: 767px) {
    .carousel-item img {
        height: 250px;
    }
    
    .carousel-caption {
        padding: 1rem 0.5rem 0.5rem;
    }
    
    .carousel-caption h5 {
        font-size: 1.2rem;
    }
}

@media (min-width: 768px) {
    .carousel-item img {
        height: 400px;
    }
}

@media (min-width: 992px) {
    .carousel-item img {
        height: 500px;
    }
}

@media (min-width: 1200px) {
    .carousel-item img {
        height: 600px;
    }
}

/* ===== NEWS CARD STYLES ===== */
.news-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 3rem;
}

.image-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    z-index: 2;
    pointer-events: none;
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.news-title-alt {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #6c757d;
    line-height: 1.3;
}

.news-description {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more-btn {
    background: linear-gradient(135deg, #ff8800, #ff6600);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 100%;
    margin-top: auto;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #ff6600, #ff4400);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 136, 0, 0.3);
    color: white;
    text-decoration: none;
}

/* ===== NEWS MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .news-card {
        margin-bottom: 1rem;
    }
    
    .news-image-container {
        height: 180px;
    }
}

/* ===== NEWS DETAIL STYLES ===== */
.news-date-display {
    text-align: center;
    font-size: 1.1rem;
    color: #6c757d;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.news-image-slider {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    height: 500px;
    position: relative;
}

#newsImageCarousel {
    border-radius: 12px;
    height: 100% !important;
}

#newsImageCarousel .carousel-inner {
    height: 100% !important;
}

#newsImageCarousel .carousel-item {
    height: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#newsImageCarousel .carousel-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.news-content-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.news-content p {
    margin-bottom: 1.5rem;
}

.news-content h1, .news-content h2, .news-content h3, .news-content h4, .news-content h5, .news-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.news-content ul, .news-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.news-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.back-to-news-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
    border: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-news-btn:hover {
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
}

.image-view-toggle {
    text-align: center;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.image-view-toggle .btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

/* ===== NEWS DETAIL MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .news-image-slider {
        height: 300px;
    }
    
    #newsImageCarousel .carousel-item img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        transition: transform 0.3s ease;
        background-color: #f8f9fa;
    }
    
    .news-content {
        font-size: 1rem;
    }
    
    .news-content-card {
        padding: 1.5rem;
    }
}

/* ===== PUROHIT CARD STYLES ===== */
.purohit-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.purohit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.purohit-image {
    height: 250px;
    object-fit: cover;
    width: 100%;
    flex-shrink: 0;
}

.purohit-image-placeholder {
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.purohit-image-placeholder i {
    font-size: 4rem;
    color: #adb5bd;
}

.purohit-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.purohit-name {
    color: #333;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.purohit-name-mr {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.purohit-temple {
    color: #ff6600;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: center;
}

.purohit-temple-mr {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
    text-align: center;
}

/* ===== PUROHIT MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .purohit-card {
        height: auto;
        min-height: 490px;
        margin-bottom: 1rem;
    }
    
    .purohit-image,
    .purohit-image-placeholder {
        height: 278px;
    }
    
    .purohit-image-placeholder i {
        font-size: 3rem;
    }
    
    .purohit-content {
        padding: 1rem;
    }
    
    .purohit-name {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
        text-align: center;
    }
    
    .purohit-name-mr {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .purohit-temple {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
        text-align: center;
    }
    
    .purohit-temple-mr {
        font-size: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .purohit-card {
        min-height: 440px;
        margin-bottom: 0.75rem;
    }
    
    .purohit-image,
    .purohit-image-placeholder {
        height: 240px;
    }
    
    .purohit-image-placeholder i {
        font-size: 2.5rem;
    }
    
    .purohit-content {
        padding: 0.75rem;
    }
    
    .purohit-name {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
        text-align: center;
    }
    
    .purohit-name-mr {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
        text-align: center;
    }
    
    .purohit-temple {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
        text-align: center;
    }
    
    .purohit-temple-mr {
        font-size: 0.75rem;
    text-align: center;
    }
}

/* ===== PRASAD KAUL STYLES ===== */
.prasad-item {
    max-width: 800px;
    margin: 0 auto;
}

.prasad-title {
    color: #333;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.2;
}

.prasad-title-mr {
    color: #666;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.3;
}

.prasad-description {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.prasad-description h1, .prasad-description h2, .prasad-description h3, 
.prasad-description h4, .prasad-description h5, .prasad-description h6 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.prasad-description p {
    margin-bottom: 1rem;
}

.prasad-description ul, .prasad-description ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.prasad-description li {
    margin-bottom: 0.5rem;
}

.prasad-description blockquote {
    border-left: 4px solid #ff6600;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.prasad-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* ===== PRASAD KAUL MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .prasad-title {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }
    
    .prasad-title-mr {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .prasad-description {
        font-size: 1rem;
        line-height: 1.6;
        text-align: left;
    }
    
    .prasad-description h1, .prasad-description h2, .prasad-description h3, 
    .prasad-description h4, .prasad-description h5, .prasad-description h6 {
        margin-top: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .prasad-description ul, .prasad-description ol {
        padding-left: 1.5rem;
    }
    
    .prasad-description blockquote {
        padding-left: 0.75rem;
        margin: 1.2rem 0;
    }
}

@media (max-width: 576px) {
    .prasad-title {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .prasad-title-mr {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .prasad-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .prasad-description h1, .prasad-description h2, .prasad-description h3, 
    .prasad-description h4, .prasad-description h5, .prasad-description h6 {
        margin-top: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .prasad-description ul, .prasad-description ol {
        padding-left: 1.2rem;
    }
    
    .prasad-description blockquote {
        padding-left: 0.6rem;
        margin: 1rem 0;
        font-size: 0.9rem;
    }
    
    .prasad-description img {
        border-radius: 6px;
        margin: 0.75rem 0;
    }
}

/* ===== SOCIAL INITIATIVES STYLES ===== */
.initiative-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.initiative-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.initiative-image {
    height: 250px;
    object-fit: cover;
    width: 100%;
    flex-shrink: 0;
}

.initiative-image-placeholder {
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.initiative-image-placeholder i {
    font-size: 4rem;
    color: #adb5bd;
}

.initiative-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.initiative-title {
    color: #333;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.3;
}

.initiative-title-mr {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.3;
}

/* ===== SOCIAL INITIATIVES MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .initiative-card {
        height: auto;
        min-height: 400px;
        margin-bottom: 1rem;
    }
    
    .initiative-image,
    .initiative-image-placeholder {
        height: 180px;
    }
    
    .initiative-image-placeholder i {
        font-size: 3rem;
    }
    
    .initiative-content {
        padding: 1rem;
    }
    
    .initiative-title {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .initiative-title-mr {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    /* Modal optimizations */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-body img {
        max-height: 200px;
    }
}

@media (max-width: 576px) {
    .initiative-card {
        min-height: 350px;
        margin-bottom: 0.75rem;
    }
    
    .initiative-image,
    .initiative-image-placeholder {
        height: 150px;
    }
    
    .initiative-image-placeholder i {
        font-size: 2.5rem;
    }
    
    .initiative-content {
        padding: 0.75rem;
    }
    
    .initiative-title {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .initiative-title-mr {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    /* Modal optimizations for small screens */
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    .modal-body img {
        max-height: 150px;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-body h4 {
        font-size: 1rem;
    }
    
    .modal-body h5 {
        font-size: 0.9rem;
    }
    
    .modal-body .lead {
        font-size: 0.9rem;
    }
}



/* ===== UTSAV MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .utsav-card {
        height: 400px;
        margin-bottom: 1rem;
    }
    
    .utsav-image {
        height: 240px;
    }
    
    .utsav-content {
        padding: 1rem;
    }
    
    .utsav-name {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .utsav-name-mr {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .know-more-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Modal optimizations */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-body img {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .utsav-card {
        height: 400px;
        margin-bottom: 0.75rem;
    }
    
    .utsav-image {
        height: 240px;
    }
    
    .utsav-content {
        padding: 1rem;
    }
    
    .utsav-name {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .utsav-name-mr {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .know-more-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Modal optimizations for small screens */
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    .modal-body img {
        max-height: 225px;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-body h4 {
        font-size: 1rem;
    }
    
    .modal-body .lead {
        font-size: 0.9rem;
    }
}
    
    /* Aarti title adjustments */
    .aarti-title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .aarti-content {
        font-size: 1.2rem;
        line-height: 1.8;
    }
    
    /* Deity card adjustments */
    .deity-card {
        height: 400px;
        margin-bottom: 1rem;
    }
    
    .deity-image {
        height: 240px;
    }
    
    .deity-content {
        padding: 1rem;
    }
    
    .deity-name {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .deity-name-mr {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .deity-description {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    /* Photo item adjustments */
    .photo-item {
        aspect-ratio: 4/3;
    }
    
    /* Typography scaling */
    h1, .h1 { font-size: 1.75rem; line-height: 1.3; }
    h2, .h2 { font-size: 1.5rem; line-height: 1.3; }
    h3, .h3 { font-size: 1.25rem; line-height: 1.3; }
    h4, .h4 { font-size: 1.1rem; line-height: 1.3; }
    h5, .h5 { font-size: 1rem; line-height: 1.3; }
    h6, .h6 { font-size: 0.9rem; line-height: 1.3; }
    
    .display-1 { font-size: 2.5rem; }
    .display-2 { font-size: 2rem; }
    .display-3 { font-size: 1.75rem; }
    .display-4 { font-size: 1.5rem; }
    .display-5 { font-size: 1.25rem; }
    .display-6 { font-size: 1.1rem; }
    
    /* Spacing adjustments */
    .mb-5 { margin-bottom: 2rem !important; }
    .mb-4 { margin-bottom: 1.5rem !important; }
    .mb-3 { margin-bottom: 1rem !important; }
    .mb-2 { margin-bottom: 0.75rem !important; }
    .mb-1 { margin-bottom: 0.5rem !important; }
    
    .mt-5 { margin-top: 2rem !important; }
    .mt-4 { margin-top: 1.5rem !important; }
    .mt-3 { margin-top: 1rem !important; }
    .mt-2 { margin-top: 0.75rem !important; }
    .mt-1 { margin-top: 0.5rem !important; }
    
    .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .py-2 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
    .py-1 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
    
    .px-5 { padding-left: 2rem !important; padding-right: 2rem !important; }
    .px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
    .px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
    .px-2 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
    .px-1 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
    
    /* Component optimizations */
    .card { border-radius: 0; }
    .card-body { padding: 1rem; }
    .card-header { padding: 0.75rem 1rem; }
    
    .btn { font-size: 0.9rem; padding: 0.5rem 1rem; }
    .btn-sm { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
    .btn-lg { font-size: 1rem; padding: 0.75rem 1.5rem; }
    
    .form-control { font-size: 1rem; padding: 0.75rem; }
    .form-label { font-size: 0.9rem; margin-bottom: 0.5rem; }
    
    .list-group-item { padding: 0.75rem; }
    .badge { font-size: 0.75rem; }
    .lead { font-size: 1rem; }
    .small { font-size: 0.8rem; }
}

@media (max-width: 576px) {
    /* Body padding for fixed navbar */
    body {
        padding-top: 65px; /* Adjusted padding for smaller mobile navbar */
    }
    
    /* Fixed navbar small mobile adjustments */
    .navbar-orange {
        min-height: 65px;
        padding: 0.7rem 0.8rem;
    }
    
    /* Header adjustments */
    .header {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .header p {
        font-size: 0.9rem;
    }
    
    /* Content section adjustments */
    .content-section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        margin-bottom: 2rem;        
    }
    .main-centered-content {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Ultra-compact typography */
    h1, .h1 { font-size: 1.5rem; line-height: 1.2; }
    h2, .h2 { font-size: 1.3rem; line-height: 1.2; }
    h3, .h3 { font-size: 1.1rem; line-height: 1.2; }
    h4, .h4 { font-size: 1rem; line-height: 1.2; }
    h5, .h5 { font-size: 0.9rem; line-height: 1.2; }
    h6, .h6 { font-size: 0.8rem; line-height: 1.2; }
    
    .display-1 { font-size: 2rem; }
    .display-2 { font-size: 1.75rem; }
    .display-3 { font-size: 1.5rem; }
    .display-4 { font-size: 1.25rem; }
    .display-5 { font-size: 1.1rem; }
    .display-6 { font-size: 1rem; }
    
    /* Ultra-compact spacing */
    .mb-5 { margin-bottom: 1.5rem !important; }
    .mb-4 { margin-bottom: 1.25rem !important; }
    .mb-3 { margin-bottom: 0.75rem !important; }
    .mb-2 { margin-bottom: 0.5rem !important; }
    .mb-1 { margin-bottom: 0.25rem !important; }
    
    .mt-5 { margin-top: 1.5rem !important; }
    .mt-4 { margin-top: 1.25rem !important; }
    .mt-3 { margin-top: 0.75rem !important; }
    .mt-2 { margin-top: 0.5rem !important; }
    .mt-1 { margin-top: 0.25rem !important; }
    
    .py-5 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .py-4 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
    .py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
    .py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
    .py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
    
    .px-5 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
    .px-4 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
    .px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
    .px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
    .px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
    
    /* Ultra-compact components */
    .card-body { padding: 0.75rem; }
    .card-header { padding: 0.5rem 0.75rem; }
    
    .btn { font-size: 0.85rem; padding: 0.4rem 0.8rem; }
    .btn-sm { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
    .btn-lg { font-size: 0.9rem; padding: 0.6rem 1.2rem; }
    
    .form-control { font-size: 0.9rem; padding: 0.6rem; }
    .form-label { font-size: 0.8rem; margin-bottom: 0.4rem; }
    
    .list-group-item { padding: 0.6rem; }
    .badge { font-size: 0.7rem; }
    .lead { font-size: 0.9rem; }
    .small { font-size: 0.75rem; }
}

/* ===== HALL INFORMATION STYLES ===== */
.hall-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.hall-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.hall-image {
    height: 300px;
    object-fit: cover;
    width: 100%;
    flex-shrink: 0;
}

.hall-image-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hall-image-placeholder i {
    font-size: 4rem;
    color: #adb5bd;
}

.hall-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hall-name {
    color: #333;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
}

.hall-name-mr {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.hall-capacity {
    background: linear-gradient(135deg, #ff8800, #ff6600);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.hall-capacity i {
    margin-right: 0.5rem;
}

.hall-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    overflow: hidden;
}

.hall-description p {
    margin-bottom: 0.5rem;
}

.hall-description ul, .hall-description ol {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.hall-description li {
    margin-bottom: 0.25rem;
}

/* ===== HALL INFORMATION MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .hall-card {
        height: auto;
        min-height: 526px;
        margin-bottom: 1rem;
    }
    
    .hall-image,
    .hall-image-placeholder {
        height: 226px;
    }
    
    .hall-image-placeholder i {
        font-size: 3rem;
    }
    
    .hall-content {
        padding: 1rem;
    }
    
    .hall-name {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .hall-name-mr {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .hall-capacity {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .hall-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .hall-description ul, .hall-description ol {
        padding-left: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hall-card {
        min-height: 460px;
        margin-bottom: 0.75rem;
    }
    
    .hall-image,
    .hall-image-placeholder {
        height: 180px;
    }
    
    .hall-image-placeholder i {
        font-size: 2.5rem;
    }
    
    .hall-content {
        padding: 0.75rem;
    }
    
    .hall-name {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .hall-name-mr {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .hall-capacity {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }
    
    .hall-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .hall-description ul, .hall-description ol {
        padding-left: 1rem;
    }
}

/* ===== HISTORY CONTENT STYLES ===== */
.history-content {
    line-height: 1.7;
    font-size: 1.05rem;
    color: #444;
}

.history-content h1,
.history-content h2,
.history-content h3,
.history-content h4,
.history-content h5,
.history-content h6 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.history-content h1 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.history-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.history-content ul,
.history-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.history-content blockquote {
    background: linear-gradient(135deg, rgba(var(--primary-color), 0.1) 0%, rgba(var(--accent-color), 0.1) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    font-style: italic;
}

/* ===== HISTORY MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .history-content {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .history-content h1,
    .history-content h2,
    .history-content h3 {
        font-size: 1.3rem;
    }
    
    .history-content h4,
    .history-content h5,
    .history-content h6 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .history-content {
        font-size: 0.95rem;
    }
    
    .history-content h1,
    .history-content h2,
    .history-content h3 {
        font-size: 1.2rem;
    }
    
    .history-content h4,
    .history-content h5,
    .history-content h6 {
        font-size: 1rem;
    }
    
    .history-content ul,
    .history-content ol {
        padding-left: 1.5rem;
    }
}

/* ===== UTSAV YADI STYLES ===== */
.utsav-badge {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff8c00 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mahina-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.paksha-badge {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.tithi-badge {
    background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.yajman-info {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    font-weight: 500;
}

.mahina-badge small,
.paksha-badge small,
.tithi-badge small {
    display: block;
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 0.2rem;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.no-data i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.page-description {
    background: linear-gradient(135deg, rgba(var(--primary-color), 0.1) 0%, rgba(var(--accent-color), 0.1) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-switcher .btn {
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ===== UTSAV YADI MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .table-responsive {
        display: none;
    }
    
    .mobile-card {
        display: block;
    }
    
    .mobile-card-header h5 {
        font-size: 1rem;
    }
    
    .mobile-card-body {
        padding: 1.2rem;
    }
    
    .mobile-card-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.6rem;
        padding: 0.4rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-card-row:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .mobile-card-label {
        font-weight: 600;
        color: var(--primary-color);
        min-width: 70px;
        font-size: 0.9rem;
    }
    
    .mobile-card-value {
        text-align: right;
        flex: 1;
        margin-left: 0.5rem;
    }
    
    .mobile-card-value .mahina-badge,
    .mobile-card-value .paksha-badge,
    .mobile-card-value .tithi-badge {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .mobile-card-value .yajman-info {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .page-description {
        padding: 1rem;
    }
    
    .page-description h4 {
        font-size: 1.1rem;
    }
    
    .page-description p {
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) {
    .mobile-card {
        display: none;
    }
    
    .table-responsive {
        display: block;
    }
}

@media (max-width: 576px) {
    .page-description {
        padding: 0.75rem;
    }
    
    .page-description h4 {
        font-size: 1rem;
    }
    
    .page-description p {
        font-size: 0.85rem;
    }
    
    .mobile-card-header h5 {
        font-size: 0.9rem;
    }
    
    .mobile-card-body {
        padding: 1rem;
    }
    
    .mobile-card-row {
        margin-bottom: 0.5rem;
        padding: 0.3rem 0;
    }
    
    .mobile-card-label {
        font-size: 0.8rem;
        min-width: 60px;
    }
    
    .mobile-card-value {
        font-size: 0.8rem;
    }
    
    .mobile-card-value .mahina-badge,
    .mobile-card-value .paksha-badge,
    .mobile-card-value .tithi-badge {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }
    
    .mobile-card-value .yajman-info {
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
    }
}
