/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-.temple-details li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.temple-timing {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.region-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.region-section h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}der-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Temple Card Styles */
.temple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.temple-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.temple-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.temple-image-container {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* 4:3 aspect ratio */
    background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
    border-radius: 12px 12px 0 0;
}

.temple-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain to show full image */
    object-position: center;
    transition: transform 0.5s ease;
    background-color: #f5f5f5; /* Light background for image padding */
    padding: 4px; /* Small padding around images */
}

/* Adjust card layout */
.temple-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 400px; /* Maximum width for better image display */
    margin: 0 auto; /* Center cards */
}

/* Grid adjustments */
.temple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .temple-image-container {
        padding-top: 66.67%; /* 3:2 aspect ratio for mobile */
    }
    .temple-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.temple-card {
    background-color: #f8f9fa;
    color: #333;
    overflow: hidden;
}

.temple-card:hover .temple-image {
    transform: scale(1.02); /* Subtle zoom on hover */
}

.temple-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect ratio */
    overflow: hidden;
}

.temple-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    transition: transform 0.3s ease-in-out;
}

/* Special handling for specific images */
.temple-image[src*="bodyguard-muniswaran.jpg"],
.temple-image[src*="kottai-veeran.jpg"],
.temple-image[src*="aathukovil.jpg"] {
    object-position: center top;
}

.temple-image-container.loading::before {
    opacity: 1;
}

@keyframes loading {
    0% { background-position: 200% 200%; }
    100% { background-position: -200% -200%; }
}

.temple-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #d35400;
}

.temple-content {
    padding: 1.5rem;
}

.temple-name {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.temple-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.temple-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.temple-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.temple-details ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.temple-details li {
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    color: #2c3e50;
}

.temple-details .icon {
    margin-right: 0.5rem;
    font-style: normal;
}

.temple-location {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.5rem 0 1rem;
}

.location-icon {
    margin-right: 0.5rem;
    font-style: normal;
}

.map-link {
    color: #2980b9;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    background: #ecf0f1;
    transition: all 0.2s ease;
}

.map-link:hover {
    background: #3498db;
    color: white;
}

.temple-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.puja-timing {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.temple-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    background: #e8f6f3;
    color: #16a085;
}
}

.temple-details li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.temple-timing {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}
    color: #333;
    background-color: #f8f9fa;
}

/* Navigation Styles */
.navbar {
    background: linear-gradient(135deg, #8b4513, #daa520);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    min-height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-image {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Google Ads Styles */
.top-ad-banner {
    background: #f8f9fa;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.content-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
}

/* Left Sidebar Styles */
.left-sidebar {
    width: 250px;
    position: sticky;
    top: 90px;
    height: fit-content;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.countries-sidebar {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
}

.countries-sidebar h3 {
    color: #8b4513;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3em;
    border-bottom: 2px solid #daa520;
    padding-bottom: 10px;
}

.countries-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.countries-menu li {
    margin-bottom: 5px;
}

.countries-menu .region-header {
    font-weight: bold;
    color: #8b4513;
    padding: 12px 0 8px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 15px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countries-menu .region-header:first-child {
    border-top: none;
    margin-top: 0;
}

.countries-menu a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95em;
    border-left: 3px solid transparent;
}

.countries-menu a:hover {
    background: linear-gradient(135deg, #daa520, #b8860b);
    color: white;
    transform: translateX(5px);
    border-left-color: #8b4513;
    box-shadow: 0 2px 10px rgba(218, 165, 32, 0.3);
}

.countries-menu a.active {
    background: linear-gradient(135deg, #8b4513, #daa520);
    color: white;
    border-left-color: #654321;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.main-content {
    flex: 1;
}

.right-sidebar-ad {
    width: 300px;
    position: sticky;
    top: 90px;
    height: fit-content;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #fff5ee, #f0f8ff);
    border-radius: 15px;
}

header h1 {
    font-size: 3rem;
    color: #8b4513;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

/* Section Styles */
.section {
    background: white;
    margin: 30px 0;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.section h2 {
    color: #8b4513;
    margin-bottom: 20px;
    font-size: 2rem;
    border-bottom: 3px solid #daa520;
    padding-bottom: 10px;
}

.section h3 {
    color: #b8860b;
    margin: 20px 0 15px 0;
    font-size: 1.3rem;
}

/* Card Styles */
.card, .deity-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 20px 0;
    transition: all 0.3s ease;
    border-left: 5px solid #daa520;
}

.card:hover, .deity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Grid Layouts */
.deity-grid, .ritual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #fff5ee, #f0f8ff);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border: 2px solid #daa520;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.1);
}

/* Lists */
.ritual-list ul, .temple-list {
    list-style: none;
    padding: 0;
}

.ritual-list li, .temple-list li {
    background: #f8f9fa;
    margin: 10px 0;
    padding: 15px;
    border-left: 4px solid #daa520;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ritual-list li:hover, .temple-list li:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

/* Image Styles */
.munees-head, .munees-head-small {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 5px;
}

.munees-head-large {
    height: 35px;
    width: 35px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 10px;
    box-shadow: 0 2px 8px rgba(218, 165, 32, 0.3);
}

.munees-head-nav {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 15px 0 5px;
    box-shadow: 0 3px 12px rgba(218, 165, 32, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Countries List */
.countries-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.country-tag {
    background: linear-gradient(135deg, #daa520, #b8860b);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(184, 134, 11, 0.3);
}

/* World Worship Page Layout */
.world-worship-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
}

.country-navigation {
    width: 250px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: 80vh;
    overflow-y: auto;
}

.country-navigation h3 {
    color: #b8860b;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.country-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.country-menu li {
    margin-bottom: 5px;
}

.country-menu .region-header {
    font-weight: bold;
    color: #8b4513;
    padding: 10px 0 5px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
    font-size: 0.9em;
}

.country-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.country-menu a:hover {
    background: linear-gradient(135deg, #b8860b, #daa520);
    color: white;
    transform: translateX(5px);
}

.country-menu a.active {
    background: linear-gradient(135deg, #b8860b, #daa520);
    color: white;
    box-shadow: 0 2px 10px rgba(184, 134, 11, 0.3);
}

.world-content {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
}

.country-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.country-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.country-content {
    margin-top: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-item {
    background: linear-gradient(135deg, #fff5ee, #f0f8ff);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #b8860b;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.global-stats {
    background: linear-gradient(135deg, #fff5ee, #f0f8ff);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border: 2px solid #b8860b;
}

.global-stats .stat-grid {
    gap: 30px;
}

.global-stats .stat-item {
    background: white;
    border: 2px solid #daa520;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.2);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #8b4513, #daa520);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .content-wrapper {
        flex-direction: column;
        padding: 10px;
        max-width: 100%;
    }

    .left-sidebar {
        width: 100%;
        position: relative;
        top: auto;
        max-height: none;
        order: -1;
        margin-bottom: 20px;
    }

    .countries-sidebar {
        padding: 15px;
    }

    .countries-menu {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 8px;
    }

    .countries-menu .region-header {
        grid-column: 1 / -1;
        text-align: center;
        margin: 10px 0 5px 0;
        padding: 8px 0;
        background: #f8f9fa;
        border-radius: 5px;
    }

    .countries-menu a {
        padding: 10px 8px;
        font-size: 0.85em;
        text-align: center;
    }

    .right-sidebar-ad {
        width: 100%;
        position: relative;
        top: auto;
        order: 1;
    }

    .world-worship-layout {
        flex-direction: column;
        padding: 10px;
    }
    
    .country-navigation {
        width: 100%;
        position: relative;
        max-height: none;
        margin-bottom: 20px;
    }
    
    .country-menu {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 5px;
    }
    
    .country-menu .region-header {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    header h1 {
        font-size: 2rem;
    }

    .deity-grid, .ritual-grid {
        grid-template-columns: 1fr;
    }
}
