* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #f97316;
    --primary-dark: #ea580c;
    --bg-light: #ffffff;
    --bg-cream: #fef7f0;
    --bg-section: #f9f9f9;
    --text-dark: #1a1a2e;
    --text-secondary: #555555;
    --text-muted: #777777;
    --border-light: #e5e5e5;
    --gradient-start: #f97316;
    --gradient-end: #ea580c;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Noto Sans Tamil', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

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

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}

.nav-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-section);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: var(--bg-cream);
    border-color: var(--primary-orange);
}

.lang-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.hero-carousel {
    position: relative;
    height: 60vh;
    min-height: 350px;
    max-height: 500px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    padding: 20px;
    max-width: 800px;
}

.temple-logo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: block;
    border: 4px solid var(--primary-orange);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.4);
    background: white;
    object-fit: contain;
}

.location-badge {
    display: inline-block;
    background: var(--primary-orange);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.temple-name-en {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.temple-name-ta {
    font-family: 'Noto Sans Tamil', sans-serif;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.icon {
    width: 18px;
    height: 18px;
}

.social-links {
    padding: 60px 20px;
    background: var(--bg-cream);
    text-align: center;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 500px;
    margin: 0 auto;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
}

.social-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.social-card.whatsapp .social-icon-circle {
    background: white;
    border: 2px solid #25d366;
}

.social-card.whatsapp .social-icon-circle svg {
    color: #25d366;
}

.social-card.instagram .social-icon-circle {
    background: white;
    border: 2px solid #e1306c;
}

.social-card.instagram .social-icon-circle svg {
    color: #e1306c;
}

.social-card.youtube .social-icon-circle {
    background: white;
    border: 2px solid #ff0000;
}

.social-card.youtube .social-icon-circle svg {
    color: #ff0000;
}

.social-icon-circle svg {
    width: 35px;
    height: 35px;
}

.social-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.events-section {
    background: var(--bg-light);
}

.events-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.events-header svg {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
}

.events-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
}

.event-card {
    background: linear-gradient(135deg, #fff9f5 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(249, 115, 22, 0.15);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-orange), var(--primary-dark));
}

.event-card::after {
    content: '🙏';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.3;
}

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

.event-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-title svg {
    width: 22px;
    height: 22px;
    color: var(--primary-orange);
    flex-shrink: 0;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(249, 115, 22, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--primary-dark);
    font-weight: 500;
}

.event-meta svg {
    width: 14px;
    height: 14px;
    color: var(--primary-orange);
}

.event-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 5px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.sidebar-header svg {
    width: 20px;
    height: 20px;
    color: var(--primary-orange);
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.timing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.timing-label {
    font-weight: 500;
    color: var(--text-dark);
}

.timing-value {
    background: var(--bg-cream);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.timing-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 15px;
    font-style: italic;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #128c7e;
}

.contact-btn svg {
    width: 22px;
    height: 22px;
}

.call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.call-btn:hover {
    background: var(--primary-orange);
    color: white;
}

.call-btn svg {
    width: 20px;
    height: 20px;
}

.footer {
    background: var(--bg-light);
    padding: 50px 20px;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.footer-section h3 svg {
    width: 20px;
    height: 20px;
    color: var(--primary-orange);
}

.footer-address {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-link-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.footer-link-btn.whatsapp {
    border-color: #25d366;
    color: #25d366;
}

.footer-link-btn svg {
    width: 16px;
    height: 16px;
}

.footer-social-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
}

.footer-social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link.whatsapp {
    background: white;
    border: 2px solid #25d366;
    color: #25d366;
}

.footer-social-link.instagram {
    background: white;
    border: 2px solid #e1306c;
    color: #e1306c;
}

.footer-social-link.youtube {
    background: white;
    border: 2px solid #ff0000;
    color: #ff0000;
}

.footer-social-link:hover {
    transform: scale(1.1);
}

.footer-social-link svg {
    width: 22px;
    height: 22px;
}

.map-container {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 16px;
    }
    
    .nav-logo {
        width: 40px;
        height: 40px;
    }
    
    .nav-title {
        font-size: 0.9rem;
    }
    
    .nav-subtitle {
        display: none;
    }
    
    .lang-toggle {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .hero-carousel {
        height: 55vh;
        min-height: 320px;
        max-height: 450px;
    }
    
    .temple-logo {
        width: 100px;
        height: 100px;
    }
    
    .temple-name-en {
        font-size: 1.8rem;
    }
    
    .temple-name-ta {
        font-size: 1rem;
    }
    
    .social-grid {
        gap: 20px;
    }
    
    .social-icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .social-icon-circle svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 50vh;
        min-height: 280px;
        max-height: 380px;
    }
    
    .temple-logo {
        width: 80px;
        height: 80px;
    }
    
    .temple-name-en {
        font-size: 1.4rem;
    }
    
    .temple-name-ta {
        font-size: 0.9rem;
    }
    
    .location-badge {
        font-size: 0.75rem;
        padding: 5px 15px;
    }
    
    .social-grid {
        gap: 15px;
    }
    
    .social-icon-circle {
        width: 55px;
        height: 55px;
    }
    
    .social-label {
        font-size: 0.8rem;
    }
}

.admin-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.admin-header {
    text-align: center;
    margin-bottom: 40px;
}

.admin-header h1 {
    color: var(--primary-orange);
    margin-bottom: 10px;
}

.admin-form {
    background: var(--bg-section);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.form-group textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(249, 115, 22, 0.4);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-orange);
}
