/*
Theme Name: Birnagar Temple Theme
Theme URI: https://birnagar-temple.org
Description: A beautiful WordPress theme for Srila Bhaktivinod Thakur Janmasthan Temple Project
Author: Tota Gopinath das
Author URI: https://garuda.org.uk
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: birnagar-temple
Tags: temple, spiritual, donation, religious

Developed by: Garuda Consulting LTD UK
Website: https://garuda.org.uk
*/

/* ========================================
   CSS RESET & VARIABLES
======================================== */

:root {
    /* Vibrant Spiritual Color Palette */
    --color-primary: #7c9473;        /* Vibrant sage green - main brand color */
    --color-secondary: #fff8f0;      /* Warm ivory/cream - backgrounds */
    --color-dark: #2a4a2f;           /* Deep forest green - text */
    --color-accent: #ff8c42;         /* Spiritual saffron/orange - CTA buttons */
    --color-gold: #c9a961;           /* Temple gold - accents */
    --color-devotional: #e85d75;     /* Devotional pink - highlights */
    --color-sacred: #ffa726;         /* Sacred orange - special elements */
    --color-light-green: #a8d5a3;    /* Light spring green - soft backgrounds */
    --color-terracotta: #d97846;     /* Warm terracotta - alternate accent */

    /* Gradient colors for buttons and special sections */
    --gradient-primary: linear-gradient(135deg, #7c9473 0%, #5a8050 100%);
    --gradient-devotional: linear-gradient(135deg, #ff8c42 0%, #e85d75 100%);
    --gradient-gold: linear-gradient(135deg, #c9a961 0%, #a88749 100%);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER & NAVIGATION
======================================== */

.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo img {
    max-height: 80px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    color: var(--color-dark);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.mahamantra {
    text-align: center;
    background: var(--gradient-devotional);
    color: #fff;
    padding: 1.2rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 600;
}

/* ========================================
   HERO SECTION
======================================== */

.hero-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(60, 71, 56, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-devotional);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 140, 66, 0.4);
    color: #fff;
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--gradient-gold);
    color: #fff;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 12px 30px rgba(201, 169, 97, 0.4);
    filter: brightness(1.1);
    color: #fff;
}

/* ========================================
   DONATION WHEEL
======================================== */

.donation-wheel-section {
    padding: 5rem 0;
    background-color: #fff;
    text-align: center;
}

.donation-wheel-section h2 {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 3rem;
}

.donation-wheel {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.wheel-chart {
    width: 500px;
    height: 500px;
    margin: 0 auto 2rem;
}

.donation-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #ffefd5 100%);
    padding: 2.5rem;
    border-radius: 15px;
    transition: var(--transition);
    border: 2px solid var(--color-light-green);
    box-shadow: 0 4px 12px rgba(124, 148, 115, 0.2);
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(124, 148, 115, 0.3);
    border-color: var(--color-gold);
}

.stat-item h3 {
    color: var(--color-accent);
    font-size: 2.3rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* ========================================
   SECTIONS
======================================== */

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

/* Small Banner Section */
.small-banner {
    background: var(--gradient-primary);
    padding: 3.5rem 0;
    color: #fff;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.1);
}

.small-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.banner-text h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.banner-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.banner-image img {
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Mission Section */
.mission-section {
    background-color: #fff;
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.mission-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   TESTIMONIALS
======================================== */

.testimonials-section {
    background-color: var(--color-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.testimonial-stars {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: var(--color-dark);
}

/* ========================================
   EVENTS
======================================== */

.events-section {
    background-color: #fff;
}

.featured-event {
    background: linear-gradient(135deg, var(--color-secondary), #fff);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.event-content h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.event-quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.event-date {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-image img {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.events-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    overflow-x: auto;
}

.event-card {
    background: var(--color-secondary);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.event-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(106, 126, 99, 0.3);
}

.event-card-image {
    height: 200px;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-content {
    padding: 1.5rem;
}

.event-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.event-card-date {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-card-note {
    font-size: 0.95rem;
    color: var(--color-dark);
}

/* ========================================
   GALLERY
======================================== */

.gallery-section {
    background-color: var(--color-secondary);
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-tab {
    padding: 1rem 2rem;
    background: #fff;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.gallery-tab.active {
    background: var(--color-primary);
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(106, 126, 99, 0.7);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ========================================
   SONGS
======================================== */

.songs-section {
    background-color: #fff;
}

.songs-list {
    max-width: 800px;
    margin: 0 auto;
}

.song-item {
    background: var(--color-secondary);
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border-left: 5px solid var(--color-primary);
    transition: var(--transition);
    cursor: pointer;
}

.song-item:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateX(10px);
}

.song-title {
    font-size: 1.3rem;
    color: var(--color-dark);
    font-family: var(--font-heading);
}

/* ========================================
   BLOG / ARTICLES
======================================== */

.blog-section {
    background-color: var(--color-secondary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-card-image {
    height: 250px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 2rem;
}

.blog-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.blog-card-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.share-icons {
    display: flex;
    gap: 0.5rem;
}

.share-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-secondary);
    transition: var(--transition);
}

.share-icon:hover {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.2);
}

/* ========================================
   PROJECT PROGRESS TIMELINE
======================================== */

.progress-section {
    background-color: #fff;
    padding: 5rem 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    text-align: right;
    padding-right: calc(50% + 3rem);
}

.timeline-item.right {
    text-align: left;
    padding-left: calc(50% + 3rem);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--color-primary);
    transform: translateX(-50%);
    z-index: 10;
}

.timeline-item.completed .timeline-marker {
    background: var(--color-primary);
}

.timeline-item.completed .timeline-marker::after {
    content: '✓';
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

.timeline-item.ongoing .timeline-marker {
    border-color: #e91e63;
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(233, 30, 99, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(233, 30, 99, 0.8);
    }
}

.timeline-content {
    background: var(--color-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-title {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-description {
    line-height: 1.8;
}

.timeline-image {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: auto;
}

/* ========================================
   DONATION PAGE
======================================== */

.donate-section {
    background-color: var(--color-secondary);
    padding: 5rem 0;
}

.donate-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.6s forwards;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.donation-type,
.amount-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-button,
.amount-button {
    flex: 1;
    min-width: 150px;
    padding: 1rem;
    text-align: center;
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.radio-button:hover,
.amount-button:hover {
    background: var(--color-secondary);
}

.radio-button.active,
.amount-button.active {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(106, 126, 99, 0.5);
}

.form-input,
.form-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

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

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.submit-button {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ========================================
   MAP
======================================== */

.map-section {
    padding: 3rem 0;
    background-color: #fff;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

/* ========================================
   FOOTER
======================================== */

.site-footer {
    background: var(--color-dark);
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .featured-event {
        grid-template-columns: 1fr;
    }

    .timeline-item.left,
    .timeline-item.right {
        padding-left: 3rem;
        padding-right: 0;
        text-align: left;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        left: 15px;
    }

    .small-banner .container {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
