/* Root Colors & Variables */
:root {
    --primary-color: #c41e3a;
    --secondary-color: #ffd700;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --text-color: #333;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a01730 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--secondary-color);
    color: var(--dark-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #c41e3a 0%, #a01730 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--dark-color);
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Quick Links */
.quick-links {
    padding: 80px 20px;
    background: white;
}

.quick-links h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.link-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.link-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.2);
}

.link-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.link-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.link-card p {
    color: #666;
    margin-bottom: 15px;
}

.link-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.link-btn:hover {
    color: var(--secondary-color);
}

/* About Preview */
.about-preview {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 80px 20px;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

/* Upcoming Events */
.upcoming-events {
    padding: 80px 20px;
    background: white;
}

.upcoming-events h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.events-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.event-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a01730 100%);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.3);
}

.event-date {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 5px 15px;
    border-radius: var(--border-radius);
    font-weight: bold;
    margin-bottom: 10px;
}

.event-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.event-card p {
    opacity: 0.95;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
}

/* Darshan Timing Section */
.darshan-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a01730 100%);
    color: white;
    padding: 80px 20px;
}

.darshan-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: white;
}

.darshan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.darshan-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.darshan-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.darshan-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.darshan-item p {
    margin: 0;
    opacity: 0.95;
}

/* Path of Devotion Section */
.path-of-devotion {
    background: white;
    padding: 80px 20px;
}

.path-of-devotion h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.devotion-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.devotion-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.devotion-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.devotion-text h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.devotion-text ul li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #555;
}

.devotion-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.devotion-placeholder {
    font-size: 8rem;
    opacity: 0.2;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Know More / Resources Section */
.know-more {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 80px 20px;
}

.know-more h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.resource-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.2);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
}

.resource-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.resource-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.resource-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.resource-link:hover {
    color: var(--secondary-color);
}

/* Kids Program Section */
.kids-program {
    background: white;
    padding: 80px 20px;
    text-align: center;
}

.kids-program h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.program-content {
    max-width: 800px;
    margin: 0 auto;
}

.program-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.program-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature {
    background: #f9f9f9;
    padding: 25px;
    border-radius: var(--border-radius);
    border: 2px solid var(--secondary-color);
    transition: var(--transition);
}

.feature:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.feature h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.feature p {
    font-size: 0.95rem;
    margin: 0;
}

.feature:hover h4,
.feature:hover p {
    color: var(--dark-color);
}
    background: linear-gradient(135deg, var(--primary-color) 0%, #a01730 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.page-content {
    padding: 40px 20px;
    line-height: 1.8;
}

.page-content h2 {
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-size: 1.8rem;
}

.page-content h3 {
    color: #555;
    margin: 20px 0 10px;
    font-size: 1.3rem;
}

.page-content p {
    margin-bottom: 15px;
    color: #666;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin: 30px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

table thead {
    background: var(--primary-color);
    color: white;
}

table th,
table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table tbody tr:hover {
    background: var(--light-color);
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e0e0e0;
}

.gallery-item-title {
    padding: 15px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(196, 30, 58, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Donation Styles */
.donation-amount {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.donation-btn {
    padding: 15px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.donation-btn:hover,
.donation-btn.selected {
    background: var(--primary-color);
    color: white;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-item {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-item-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .quick-links h2,
    .upcoming-events h2,
    .about-content h2,
    .darshan-section h2,
    .path-of-devotion h2,
    .know-more h2,
    .kids-program h2 {
        font-size: 1.8rem;
    }

    .devotion-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .devotion-placeholder {
        font-size: 5rem;
    }

    .resources-grid,
    .darshan-grid {
        grid-template-columns: 1fr;
    }

    table th,
    table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .links-grid,
    .events-preview,
    .resources-grid,
    .darshan-grid {
        grid-template-columns: 1fr;
    }

    .donation-amount {
        grid-template-columns: repeat(2, 1fr);
    }

    .path-of-devotion h2,
    .kids-program h2 {
        font-size: 1.5rem;
    }

    .devotion-placeholder {
        font-size: 3rem;
    }

    .program-features {
        grid-template-columns: 1fr;
    }
}
