/* Custom CSS for ಶ್ರೀ ಬಂದಾಂಬಿಕಾ ದೇವಿ, ಮಲ್ಲೇಶ್ವರ, ಕಡೂರು Temple */

:root {
    --primary-gold: #D4AF37;
    --secondary-gold: #FFD700;
    --dark-gold: #B8860B;
    --light-gold: #FFF8DC;
    --accent-gold: #F4E4BC;
    --text-dark: #2C2C2C;
    --text-light: #6C757D;
    --white: #FFFFFF;
    --black: #000000;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--dark-gold), var(--primary-gold)) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--white) !important;
}

.deity-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.navbar-brand i {
    color: var(--secondary-gold);
    margin-right: 0.5rem;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-gold) !important;
    transform: translateY(-2px);
}

.dropdown-menu {
    background: var(--white);
    border: 2px solid var(--primary-gold);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dropdown-item {
    color: var(--dark-gold);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--light-gold);
    color: var(--dark-gold);
}

/* Ensure dropdown toggle works properly */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Hero Section */
.hero-section {
    background: var(--light-gold) url('../images/temple-hero.jpg?v=3');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 76px;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--light-gold);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* 360° View Button */
.btn-warning {
    background: var(--secondary-gold);
    border-color: var(--secondary-gold);
    color: var(--text-dark);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-warning:hover {
    background: var(--dark-gold);
    border-color: var(--dark-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* 360° View Modal */
.modal-xl {
    max-width: 90%;
}

.modal-content {
    border: 2px solid var(--primary-gold);
    border-radius: 15px;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--white);
    border-bottom: 2px solid var(--primary-gold);
    border-radius: 13px 13px 0 0;
}

.modal-title {
    font-weight: 600;
}

.modal-footer {
    border-top: 2px solid var(--primary-gold);
    border-radius: 0 0 13px 13px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-gold), var(--primary-gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: var(--white);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--dark-gold);
    transform: translateY(-2px);
}

/* Announcements Section */
.announcements-section {
    background: var(--light-gold);
}

.announcement-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary-gold);
    transition: all 0.3s ease;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.announcement-header h4 {
    color: var(--dark-gold);
    margin: 0;
}

.date {
    background: var(--primary-gold);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* About Section */
.about-section {
    background: var(--light-gold);
}

.about-section h2 {
    color: var(--dark-gold);
    margin-bottom: 1.5rem;
    position: relative;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
}

.temple-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.temple-image img {
    transition: transform 0.3s ease;
}

.temple-image:hover img {
    transform: scale(1.05);
}

/* Services Section */
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--primary-gold);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.service-card h4 {
    color: var(--dark-gold);
    margin-bottom: 1rem;
}

/* Timings Section */
.timings-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px solid var(--accent-gold);
}

.timings-card h5 {
    color: var(--dark-gold);
    margin-bottom: 1rem;
}

/* Get Involved Section */
.involvement-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.involvement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--primary-gold);
}

.involvement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

.involvement-card h5 {
    color: var(--dark-gold);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark), #1a1a1a) !important;
}

.footer h5 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-gold);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-gold);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
    
    .announcement-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .date {
        margin-top: 0.5rem;
    }
    
    .service-card,
    .involvement-card {
        margin-bottom: 2rem;
    }

    /* Mobile dropdown fixes */
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        border: 1px solid var(--primary-gold);
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .dropdown-menu.show {
        display: block !important;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f8f9fa;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover {
        background-color: var(--light-gold);
        color: var(--dark-gold);
    }

    /* Ensure dropdown toggle works on mobile */
    .dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.255em;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
    }

    .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
            .deity-icon {
            width: 40px;
            height: 40px;
        }
    
    .btn-primary,
    .btn-outline-light {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gold);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gold);
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Section Headers */
section h2 {
    color: var(--dark-gold);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gold);
}

/* Button Styles */
.btn-outline-primary {
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Committee Page Styles */
.committee-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.committee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-gold);
}

.committee-header {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--white);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.committee-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 3px solid rgba(255,255,255,0.3);
}

.committee-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
}

.committee-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

.committee-content {
    padding: 2rem;
}

.committee-content h5 {
    color: var(--dark-gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.member-list {
    list-style: none;
    padding: 0;
}

.member-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--accent-gold);
}

.member-list li:last-child {
    border-bottom: none;
}

.committee-content ul {
    padding-left: 1.2rem;
}

.committee-content ul li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Page Header Styles */
.page-header {
    position: relative;
    background-attachment: fixed;
}

.page-header h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Member Card Styles */
.member-card {
    background: var(--light-gold);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid var(--accent-gold);
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-photo {
    flex-shrink: 0;
}

.member-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-gold);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.member-details {
    flex: 1;
}

.member-details h6 {
    color: var(--dark-gold);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.member-name {
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.member-address {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Responsive Committee Styles */
@media (max-width: 768px) {
    .committee-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .committee-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .committee-header h3 {
        font-size: 1.5rem;
    }
    
    .committee-content {
        padding: 1.5rem;
    }
    
    .member-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .member-img {
        width: 70px;
        height: 70px;
    }
}

/* Donation Page Styles */
.donation-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.donation-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px solid var(--light-gold);
    transition: all 0.3s ease;
}

.donation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--primary-gold);
}

.donation-card h3 {
    color: var(--dark-gold);
    margin-bottom: 1.5rem;
    text-align: center;
}

.donation-card h3 i {
    color: var(--primary-gold);
    margin-right: 0.5rem;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.qr-code-image {
    max-width: 300px;
    height: auto;
    border: 3px solid var(--primary-gold);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.qr-code-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.donation-info {
    background: var(--light-gold);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.donation-info h5 {
    color: var(--dark-gold);
    margin-bottom: 1rem;
    text-align: center;
}

.donation-info p {
    margin-bottom: 0.5rem;
}

.upi-id {
    color: var(--primary-gold);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Responsive Donation Styles */
@media (max-width: 768px) {
    .donation-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .qr-code-image {
        max-width: 250px;
    }
    
    .donation-info {
        padding: 1rem;
    }
}

/* Responsive adjustments for 360 view */
@media (max-width: 768px) {
    .hero-buttons .btn {
        margin-bottom: 10px;
        width: 100%;
    }
} 

/* Gallery Styles */
.gallery-upload-card {
    background: linear-gradient(135deg, var(--light-gold), var(--accent-gold));
    border: 2px solid var(--primary-gold);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.upload-area {
    border: 3px dashed var(--primary-gold);
    border-radius: 10px;
    padding: 3rem;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--dark-gold);
    background: var(--light-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.upload-area i {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.upload-area p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Gallery Filter Tabs */
.nav-pills .nav-link {
    color: var(--text-dark);
    background: var(--white);
    border: 2px solid var(--primary-gold);
    margin: 0 0.5rem;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background: var(--light-gold);
    color: var(--dark-gold);
    transform: translateY(-2px);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--white);
    border-color: var(--dark-gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Gallery Items */
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: var(--white);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-play-button i {
    color: var(--white);
    font-size: 1.5rem;
    margin-left: 3px;
}

.gallery-item:hover .video-play-button {
    background: var(--dark-gold);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-info h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--white);
}

.gallery-info p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-info .btn {
    background: var(--primary-gold);
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.gallery-info .btn:hover {
    background: var(--dark-gold);
    color: var(--white);
    transform: translateY(-2px);
}

/* Lightbox Modal */
#lightboxModal .modal-content {
    background: var(--white);
    border: 3px solid var(--primary-gold);
    border-radius: 15px;
}

#lightboxModal .modal-header {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--white);
    border-bottom: 2px solid var(--primary-gold);
    border-radius: 12px 12px 0 0;
}

#lightboxModal .modal-title {
    font-weight: 600;
    color: var(--white);
}

#lightboxModal .modal-body {
    padding: 2rem;
    text-align: center;
}

#lightboxModal img,
#lightboxModal video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .nav-pills .nav-link {
        margin: 0.25rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .gallery-item img,
    .gallery-item video,
    .video-thumbnail {
        height: 200px;
    }
    
    .gallery-overlay {
        padding: 1rem;
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0,0,0,0.9));
    }
    
    .gallery-info h5 {
        font-size: 1rem;
    }
    
    .gallery-info p {
        font-size: 0.8rem;
    }
    
    .video-play-button {
        width: 50px;
        height: 50px;
    }
    
    .video-play-button i {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .gallery-item img,
    .gallery-item video,
    .video-thumbnail {
        height: 180px;
    }
    
    .upload-area {
        padding: 1.5rem 0.5rem;
    }
    
    .upload-area i {
        font-size: 2rem;
    }
    
    .upload-area p {
        font-size: 0.9rem;
    }
} 