/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Exact color variables from the React version */
    --background: hsl(36, 39%, 96%);
    --foreground: hsl(214, 48%, 25%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(214, 48%, 25%);
    --popover: hsl(0, 0%, 100%);
    --popover-foreground: hsl(214, 48%, 25%);
    --primary: hsl(43, 59%, 52%);
    --primary-foreground: hsl(214, 48%, 25%);
    --secondary: hsl(214, 48%, 25%);
    --secondary-foreground: hsl(36, 39%, 96%);
    --muted: hsl(36, 29%, 84%);
    --muted-foreground: hsl(214, 40%, 35%);
    --accent: hsl(353, 100%, 25%);
    --accent-foreground: hsl(36, 39%, 96%);
    --destructive: hsl(0, 84%, 60%);
    --destructive-foreground: hsl(36, 39%, 96%);
    --border: hsl(36, 29%, 84%);
    --input: hsl(36, 29%, 84%);
    --ring: hsl(43, 59%, 52%);
    --radius: 0.5rem;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

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

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.language-switcher button {
    background: none;
    border: 1px solid var(--primary);
    color: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-switcher button.active {
    background-color: var(--primary);
    color: var(--background);
}

.language-switcher button:hover {
    background-color: var(--primary);
    color: var(--background);
}

.donate-page .language-switcher button {
    border-color: var(--accent-foreground);
    color: var(--accent-foreground);
}

.donate-page .language-switcher button.active {
    background-color: var(--accent-foreground);
    color: var(--accent);
}

.donate-page .language-switcher button:hover {
    background-color: var(--accent-foreground);
    color: var(--accent);
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-brand a {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
    margin-left: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
    margin-top: 0;
    align-items: center;
}

.nav-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.highlight {
    color: var(--accent);
    font-weight: 600;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 1rem;
        gap: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}



.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 74, 90, 0.5);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 1rem;
    max-width: 64rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--background);
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--background);
    margin-bottom: 2rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-secondary {
    background-color: var(--background);
    color: var(--secondary);
    border: 2px solid var(--background);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: var(--background);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.btn-accent:hover {
    background-color: var(--secondary);
    color: var(--background);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--background);
}

.btn-full {
    width: 100%;
}

/* Introduction Section */
.intro-section {
    padding: 4rem 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.intro-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.intro-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card {
    padding: 1.5rem;
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Sections */
.section {
    padding: 4rem 0;
}

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

.bg-muted {
    background-color: var(--muted);
}

.bg-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.bg-accent {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

/* Cards */
.card {
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-content {
    padding: 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* Faravahar Divider */
.faravahar-divider {
    position: relative;
    height: 2px;
    background-color: var(--muted);
    margin: 2rem auto;
    width: 80%;
    max-width: 600px;
}

.divider-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background-color: var(--background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.divider-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

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

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 0 0 200px;
    padding: 1rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    text-align: center;
    border-radius: var(--radius);
    font-weight: 600;
    margin: 0 2rem;
}

.timeline-content {
    flex: 1;
    padding: 1.5rem;
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 2rem;
}

.timeline-content h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 40px;
    }
    
    .timeline-date,
    .timeline-content {
        margin: 0.5rem 0;
    }
}

/* Festival Cards */
.festival-card {
    padding: 2rem;
    background-color: var(--background);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.festival-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

/* Beliefs Grid */
.belief-card {
    padding: 2rem;
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.belief-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.belief-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Ceremony Cards */
.ceremony-card {
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

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

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(200, 134, 13, 0.2), rgba(200, 134, 13, 0.4));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.placeholder-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(200, 134, 13, 0.3);
    margin-bottom: 1rem;
    position: relative;
}

.placeholder-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(200, 134, 13, 0.6);
}

.ceremony-content {
    padding: 2rem;
}

.ceremony-content h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.ceremony-content h4 {
    color: var(--primary);
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.ceremony-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.ceremony-content li {
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

/* News Cards */
.news-card {
    padding: 2rem;
    background-color: var(--background);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-card.event .news-type {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.news-card.community .news-type {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.news-card.education .news-type {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.news-card h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

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

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--background);
}

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

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.amount-btn {
    padding: 0.75rem;
    border: 2px solid var(--border);
    background-color: var(--background);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.amount-btn:hover,
.amount-btn.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Contact Cards */
.contact-card {
    padding: 1.5rem;
    background-color: var(--background);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.contact-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-card h3 i {
    color: var(--primary);
}

.contact-card address {
    font-style: normal;
}

.contact-card a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary);
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: var(--secondary-foreground);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-address {
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.footer-address p {
    margin-bottom: 0.5rem;
}

.footer-address a {
    color: var(--secondary-foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-address a:hover {
    color: var(--primary);
}

.footer-logo {
    margin-top: 1rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--secondary-foreground);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-hours {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.footer-hours p {
    margin-bottom: 0.25rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(246, 245, 240, 0.2);
}

.footer-legal {
    margin: 1rem 0;
}

.footer-legal a {
    color: var(--secondary-foreground);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary);
}

.footer-cta {
    margin-top: 1rem;
}

.btn-phone {
    background-color: var(--background);
    color: var(--secondary);
    border: 2px solid var(--primary);
}

.btn-phone:hover {
    background-color: var(--primary);
    color: var(--secondary);
}

/* Donate Page Specific Styles */
.donate-page {
    background-color: var(--accent);
    color: var(--accent-foreground);
    min-height: 100vh;
}

.donate-page .header {
    background-color: var(--accent);
}

.donate-page .nav-brand a {
    color: var(--accent-foreground);
}

.donate-page .nav-link {
    color: var(--accent-foreground);
}

.donate-page .nav-link:hover,
.donate-page .nav-link.active {
    color: var(--primary);
}

.donate-hero {
    background-color: var(--accent);
    color: var(--accent-foreground);
    padding: 4rem 0;
    text-align: center;
}

.donate-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.donate-content {
    padding: 4rem 0;
}

.donate-content .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.donate-info h3 {
    color: var(--accent-foreground);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.donate-info p {
    color: var(--accent-foreground);
    margin-bottom: 1.5rem;
}

.donation-uses {
    margin-top: 2rem;
}

.donation-uses h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.donation-uses ul {
    list-style: none;
}

.donation-uses li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--accent-foreground);
}

.donation-uses i {
    color: var(--primary);
}

.donate-form-container {
    background-color: var(--background);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .donate-content .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.italic {
    font-style: italic;
}

.font-bold {
    font-weight: bold;
}

.font-semibold {
    font-weight: 600;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}