/* Global Styles */
:root {
    --primary-color: #0A1A3A;
    --accent-color: #FFAA00;
    --text-color: #fff;
    --light-bg: #f8f9fa;
    --card-radius: 16px;
    --text-dark: #333;
}

body {
    color: var(--text-dark);
    background-color: var(--primary-color);
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-brand {
    padding: 0.25rem 0;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.temple-name {
    color: white;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.temple-tagline {
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    margin: 0 0.1rem;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 6px;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--accent-color);
}

/* Language Selector Styling - Common */
.language-selector .btn-accent,
.language-selector-mobile .btn-accent {
    padding: 0.35rem 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.language-selector .btn-accent:hover,
.language-selector-mobile .btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.language-selector .dropdown-menu,
.language-selector-mobile .dropdown-menu {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    padding: 0.5rem 0;
    min-width: 10rem;
    margin-top: 0.5rem;
}

.language-selector .dropdown-item,
.language-selector-mobile .dropdown-item {
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.language-selector .dropdown-item:hover,
.language-selector .dropdown-item.active,
.language-selector-mobile .dropdown-item:hover,
.language-selector-mobile .dropdown-item.active {
    background-color: var(--accent-color);
    color: white;
}

/* Mobile Language Selector */
.language-selector-mobile .btn-accent {
    padding: 0.3rem 0.75rem;
    font-size: 0.9rem;
}

/* Mobile navbar with no toggle button */
@media (max-width: 991px) {
    .navbar .container {
        justify-content: space-between;
    }
    
    .navbar-brand {
        flex: 1;
    }
    
    .language-selector-mobile {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}

.main-content {
    background-color: var(--primary-color);
    min-height: calc(100vh - 70px);
    padding-bottom: 2rem;
}

.section-title {
    color: var(--text-color);
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Custom Button Styles */
.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: #e69900;
    border-color: #e69900;
    color: white;
}

/* Card Styles */
.temple-card {
    border-radius: var(--card-radius);
    background-color: rgba(255, 255, 255, 0.95);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.temple-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    background-color: #fff;
}

.service-card-link {
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    height: 100%;
}

.card-hover-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.temple-card:hover .card-hover-indicator {
    opacity: 1;
    transform: scale(1);
}

/* Banner Carousel */
.banner-carousel {
    margin-bottom: 2rem;
}

.banner-carousel .carousel-item img {
    height: 500px;
    /* object-fit: cover; */
}

/* Today's Darshan Section */
.darshan-section {
    border: 3px solid var(--accent-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    margin-bottom: 2rem;
    background-color: transparent;
    transition: all 0.3s ease;
}

.darshan-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    border-color: #FFA500;
}

.darshan-title {
    background-color: var(--accent-color);
    color: white;
    padding: 0.7rem;
    text-align: center;
    margin-bottom: 0;
    font-size: 1.3rem;
}

.darshan-content {
    padding: 1rem 0.8rem;
}

.darshan-times {
    margin-bottom: 0.8rem;
}

.time-row {
    display: flex;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.time-row:last-child {
    border-bottom: none;
}

.time-icon {
    margin-right: 10px;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.time-value {
    color: white;
    font-size: 1rem;
}

.today-festival-info {
    padding-top: 0.4rem;
    margin-top: 0.2rem;
    border-top: 1px dashed white;
}

.tithi-nakshatra-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    /* margin-bottom: 8px; */
}

.info-badge {
    background-color: rgba(255, 170, 0, 0.2);
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
}

.info-badge i {
    color: var(--accent-color);
    margin-right: 5px;
}

.festival-name {
    font-size: 1rem;
    color: white;
    font-weight: bold;
    margin-top: 6px;
    display: flex;
    align-items: center;
}

.festival-name i {
    color: var(--accent-color);
    margin-right: 8px;
}

.today-festival-name i {
    color: var(--accent-color);
    margin-right: 8px;
}

/* Services Grid */
.services-grid .service-icon-wrapper {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 8px rgba(255, 170, 0, 0.3);
    transition: all 0.3s ease;
}

.services-grid .accent-card {
    background: linear-gradient(145deg, var(--primary-color), #162a56);
    border: 2px solid var(--accent-color);
    color: white;
}

.services-grid .accent-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, #162a56, var(--primary-color));
}

.services-grid .accent-card:hover .service-icon-wrapper {
    transform: scale(1.1);
    background-color: #e69900;
}

.service-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

/* Aarti Player */
.aarti-section {
    margin-top: 1.5rem;
}

.audio-player-container {
    margin-bottom: 1rem;
}

.audio-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.play-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    background-color: #e69900;
}

.play-button i {
    font-size: 0.9rem;
}

.aarti-name {
    font-size: 1.1rem;
    color: white;
    font-weight: 500;
}

.audio-progress-container {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0.6rem 0;
    overflow: hidden;
}

.audio-progress {
    height: 100%;
    background-color: var(--accent-color);
    width: 0;
}

.audio-time {
    display: flex;
    justify-content: flex-end;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.view-all-link {
    display: block;
    color: var(--accent-color);
    text-align: center;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    color: white;
}

/* Darshan Gallery */
.darshan-gallery-section {
    margin-bottom: 2rem;
}

.gallery-header {
    margin-bottom: 1.5rem;
}

.gallery-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-container {
    position: relative;
}

.gallery-navigation-controls {
    margin-bottom: 1rem;
}

.gallery-nav-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.gallery-nav-btn:hover {
    background-color: #e69900;
    transform: scale(1.1);
}

.gallery-date-display {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.badge.bg-accent {
    background-color: var(--accent-color);
}

.gallery-column {
    max-width: 700px;
    margin: 0 auto;
}

.gallery-item-container {
    width: 100%;
    margin-bottom: 2rem;
}

.gallery-item-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.gallery-item-header {
    background-color: var(--accent-color);
    color: white;
    padding: 0.7rem 1.2rem;
    text-align: center;
}

.gallery-item-header h5 {
    margin-bottom: 0;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: none;
    height: auto;
}

.gallery-item img {
    width: 100%;
    height: auto; /* Allow natural height */
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

/* Calendar Page */
.calendar-container {
    background-color: white;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 1rem;
}

.calendar-day {
    height: 100px;
    border: 1px solid #ddd;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background-color: var(--light-bg);
}

.calendar-day.festival {
    background-color: rgba(255, 170, 0, 0.2);
    border-color: var(--accent-color);
}

.calendar-day .date {
    font-weight: bold;
}

.calendar-day .tithi {
    font-size: 0.8rem;
    color: #666;
}

.calendar-day .festival {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* All Aarti Page */
/* Player Banner - Redesigned Layout */
.player-banner {
    background-color: rgba(10, 26, 58, 0.98);
    border-top: 3px solid var(--accent-color);
    height: auto;
    min-height: 120px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    padding: 15px;
    transition: all 0.3s ease;
    transform: translateY(100%);
}

.player-banner.visible {
    transform: translateY(0);
}

/* New Player Bar Layout */
.player-bar-new {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Title Row */
.player-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-info-new h4 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Controls Row */
.player-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.player-time-display {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    min-width: 90px;
    white-space: nowrap;
}

.player-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

/* Progress Bar Row */
.player-progress-row {
    width: 100%;
}

.player-progress-row .progress-container {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.player-progress-row .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #FFA500);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.player-bar {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.player-bar-left {
    display: flex;
    align-items: center;
    width: 25%;
    min-width: 200px;
}

.player-bar-center {
    flex-grow: 1;
    padding: 0 20px;
    cursor: pointer;
}

.player-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 35%;
}

.mini-album {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #e69900 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.mini-album i {
    font-size: 20px;
    color: white;
}

.player-info h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.time-display {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.play-pause-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-pause-btn:hover {
    background-color: #e69900;
    transform: scale(1.1);
}

.control-btn {
    background: none;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    font-size: 1rem;
}

.control-btn.circle-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.control-btn.circle-btn:hover {
    /* background-color: var(--accent-color); */
    transform: scale(1.1);
}

.control-btn.play-btn {
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    font-size: 1.2rem;
}

.control-btn.play-btn:hover {
    transform: scale(1.15);
}

.control-btn:hover {
    color: white;
}

.control-btn.active {
    color: var(--accent-color);
    background-color: rgba(255, 165, 0, 0.2);
}

.control-btn.repeat-all,
.control-btn.repeat-one {
    color: var(--accent-color);
    background-color: rgba(255, 165, 0, 0.2);
}

.volume-control {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.volume-control i {
    color: white;
    margin-right: 8px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-bar {
    height: 100%;
    width: 70%;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.current-track-info {
    text-align: center;
    padding: 1rem;
}

.album-art {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #e69900 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.album-art i {
    font-size: 60px;
    color: white;
    opacity: 0.9;
}

.current-track-info h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.current-track-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Player Controls */
.player-controls {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.time-progress {
    display: flex;
    align-items: center;
    color: white;
    margin-bottom: 1.5rem;
}

.progress-container {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin: 0 10px;
    cursor: pointer;
    flex-grow: 1;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 3px;
    background-color: var(--accent-color);
    width: 0;
    transition: width 0.1s linear;
    pointer-events: none;
}

.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    padding: 0.5rem;
    margin: 0 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    color: var(--accent-color);
}

.control-btn.active {
    color: var(--accent-color);
}

.control-btn.repeat-all::after {
    content: 'all';
    font-size: 8px;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.control-btn.repeat-one::after {
    content: '1';
    font-size: 10px;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.play-pause-btn {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.play-pause-btn:hover {
    background-color: #e69900;
    color: white;
    transform: scale(1.05);
}

.play-pause-btn i {
    font-size: 1.4rem;
}

.volume-container {
    display: flex;
    align-items: center;
    color: white;
}

.volume-container i {
    margin-right: 10px;
}

.volume-slider {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    flex-grow: 1;
}

.volume-bar {
    height: 100%;
    border-radius: 2px;
    background-color: var(--accent-color);
    width: 70%;
    transition: width 0.1s linear;
}

/* Track List */
.track-list-container {
    margin-top: 2rem;
}

.list-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.list-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 3px;
    background-color: var(--accent-color);
}

.track-list {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--card-radius);
    overflow: hidden;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.track-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.track-item.active {
    background-color: rgba(255, 170, 0, 0.15);
}

.track-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: white;
    transition: all 0.3s ease;
}

.track-item:hover .track-play-btn,
.track-item.active .track-play-btn {
    background-color: var(--accent-color);
}

.track-info {
    flex-grow: 1;
}

.track-info h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1rem;
}

.track-info p {
    font-size: 0.8rem;
    margin-bottom: 0;
}

.track-badges {
    margin-right: 15px;
}

.badge.bg-accent {
    background-color: var(--accent-color);
}

.track-actions {
    display: flex;
    align-items: center;
}

.action-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

/* Modal for images with zoom functionality */
.image-zoom-container {
    position: relative;
    overflow: auto;
    max-height: 75vh;
    cursor: grab;
    background: #000;
}

.image-zoom-container:active {
    cursor: grabbing;
}

.img-modal-content {
    max-width: 100%;
    max-height: 75vh;
    margin: 0 auto;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.img-modal-content.zoomed {
    max-width: none;
    max-height: none;
    cursor: move;
}

/* Zoom controls */
.zoom-controls {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.zoom-controls .btn {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.zoom-controls .btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Fullscreen mode styles */
.modal.fullscreen-mode {
    padding: 0 !important;
}

.modal.fullscreen-mode .modal-dialog {
    margin: 0;
    max-width: 100%;
    width: 100%;
    height: 100vh;
}

.modal.fullscreen-mode .modal-content {
    height: 100vh;
    border-radius: 0;
    border: none;
}

.modal.fullscreen-mode .modal-body {
    max-height: calc(100vh - 60px);
}

.modal.fullscreen-mode .image-zoom-container {
    max-height: calc(100vh - 60px);
}

.modal.fullscreen-mode .img-modal-content {
    max-height: calc(100vh - 60px);
}

/* Landscape Mode Popup Width Adjustment for Mobile */
@media (max-width: 900px) or (orientation: landscape) {
    .modal-dialog {
        max-width: 800px !important;
        width: 95% !important;
        margin: 1rem auto;
    }
    
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* Additional landscape adjustments */
@media (min-width: 568px) and (max-width: 900px) and (orientation: landscape) {
    .modal-dialog {
        max-width: 750px !important;
    }
}

/* RTL Support for Gujarati and Hindi */
.lang-hi,
.lang-gu {
    direction: rtl;
    text-align: right;
}

/* Responsive adjustments */
/* Responsive Navbar */
@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-collapse {
        background-color: rgba(10, 26, 58, 0.97);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-nav {
        margin-bottom: 1rem !important;
        text-align: center;
    }
    
    .temple-name {
        font-size: 16px;
    }
    
    .temple-tagline {
        font-size: 0.7rem;
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.7rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-dark .navbar-nav .nav-link::after {
        bottom: 3px;
    }
    
    .navbar-dark .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .language-selector-mobile {
        margin-right: 0.5rem;
    }
    
    .navbar-toggler {
        margin-left: 0.3rem;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.4rem 0.6rem;
    }
    
    .navbar-brand {
        max-width: 60%;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .temple-name {
        font-size: 0.85rem;
    }
    
    .temple-tagline {
        font-size: 0.6rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.4rem;
    }
    
    .navbar-toggler-icon {
        width: 1.1em;
        height: 1.1em;
    }
    
    .language-selector-mobile .btn-accent {
        padding: 0.25rem 0.6rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .banner-carousel .carousel-item img {
        height: 200px;
    }
    
    .gallery-column {
        max-width: 95%;
    }
    
    .gallery-item-header h5 {
        font-size: 1rem;
    }
    
    .calendar-day {
        height: 80px;
        font-size: 0.9rem;
    }
    
    .temple-card {
        padding: 0.8rem !important;
    }
    
    .services-grid .service-icon-wrapper {
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }
    
    .service-title {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    
    .card-hover-indicator {
        display: none;
    }
    
    .time-row {
        padding: 0.3rem 0;
    }
    
    .tithi-nakshatra-row {
        justify-content: center;
    }
    
    .festival-name {
        justify-content: center;
    }
    
    .gallery-header .row {
        text-align: center;
    }
    
    .gallery-navigation-controls {
        justify-content: center !important;
        margin-top: 1rem;
    }
    
    /* Music Player Responsive */
    .album-art {
        width: 140px;
        height: 140px;
    }
    
    .current-track-info {
        margin-bottom: 1.5rem;
    }
    
    .control-buttons {
        flex-wrap: wrap;
    }
    
    .control-btn {
        margin: 0 8px;
    }
    
    .track-item {
        padding: 0.8rem;
    }
    
    .track-info h4 {
        font-size: 0.9rem;
    }
    
    .track-play-btn {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
    }
    
    .time-progress {
        margin-bottom: 1rem;
    }
    
    /* Player Banner Responsive - New Layout */
    .player-banner {
        padding: 10px;
        min-height: 110px;
    }
    
    .player-bar-new {
        gap: 8px;
    }
    
    .player-title-row {
        gap: 10px;
    }
    
    .mini-album {
        width: 40px;
        height: 40px;
    }
    
    .mini-album i {
        font-size: 16px;
    }
    
    .player-info-new h4 {
        font-size: 0.9rem;
    }
    
    .player-controls-row {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .player-time-display {
        font-size: 0.75rem;
        min-width: 70px;
    }
    
    .player-buttons {
        gap: 8px;
        flex: 1;
        min-width: 200px;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .control-btn.play-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .volume-control {
        display: none;
    }
    
    /* Old player bar styles for backward compatibility */
    .player-bar {
        flex-wrap: wrap;
    }
    
    .player-bar-left {
        width: 50%;
        min-width: 150px;
    }
    
    .player-bar-center {
        order: 3;
        width: 100%;
        padding: 0;
        margin-top: 5px;
    }
    
    .player-bar-right {
        width: 50%;
        justify-content: flex-end;
    }
    
    .player-info h4 {
        max-width: 120px;
    }
}

/* New Styles for Player Banner */
.circle-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.circle-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.play-btn {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
}

.play-btn:hover {
    transform: scale(1.1);
}

.player-info h4 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Simple Header with Back Button */
.simple-page-header {
    padding: 15px 0;
    margin-bottom: 20px;
}

.page-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
}

.simple-back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.simple-back-button:hover {
    color: var(--accent-color);
    transform: translateX(-3px);
}



/* Responsive Styles for Back Button */
@media (max-width: 767px) {
    .simple-page-header {
        padding: 12px 0;
    }
    
    .page-title {
        font-size: 1.3rem;
    }
    
    .simple-back-button {
        width: 24px;
        height: 24px;
        margin-right: 10px !important;
        font-size: 1.1rem;
    }
}

@media (max-width: 575px) {
    .simple-page-header {
        padding: 10px 0;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .simple-back-button {
        width: 20px;
        height: 20px;
        margin-right: 8px !important;
        font-size: 1rem;
    }
}
