:root {
    --primary: #FFD4FA;
    --secondary: #D8A300;
    --accent: #7A003C;
    --text-dark: #2d2d2d;
    --text-light: #555;
    --white: #ffffff;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-sans);
    background-color: var(--primary);
    color: var(--text-dark);
    line-height: 1.6;
    /* Lotus Pattern Background 
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); */
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--accent); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: #FF1493;
    backdrop-filter: blur(5px);
    border-bottom: 2px solid var(--secondary);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo {
    font-family: var(--font-serif);
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: bold;
}
.nav-links { display: flex; gap: 2rem; }
.nav-link {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #444;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent);
    font-weight: bold;
    border-bottom: 2px solid var(--accent);
}
.mobile-menu-btn { display: none; background: none; border: none; color: var(--accent); cursor: pointer; }

/* Main Content Wrapper */
#main-content { flex: 1; padding-bottom: 3rem; }
.page-section { display: none; animation: fadeIn 0.5s ease; }
.page-section.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Home Page */
.decorative-header-curve {
    width: 100%; height: 20px;
    background: rgba(216, 163, 0, 0.3);
    border-radius: 0 0 50% 50%;
    margin-bottom: 2rem;
}
.home-header { 
    text-align: center; 
    margin-bottom: 3rem; 
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sanskrit-heading { font-size: 1.8rem; margin-bottom: 1.5rem; font-weight: 500; text-align: center; }
.hero-logo-wrapper {
    position: relative; width: 200px; height: 200px; margin: 0 auto 1.5rem;
}
.hero-logo {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(216, 163, 0, 0.5);
    position: relative; z-index: 2;
}
.hero-glow {
    position: absolute; inset: 0;
    background: var(--secondary);
    filter: blur(20px); opacity: 0.3;
    border-radius: 50%;
}
.hero-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; text-align: center; }
.hero-tagline { font-family: var(--font-sans); font-size: 1.5rem; color: #555; font-weight: 300; margin-bottom: 1rem; text-align: center; }
.divider-gold { width: 100px; height: 3px; background: var(--secondary); margin: 0 auto; border-radius: 2px; }

.welcome-message { text-align: center; max-width: 800px; font-style: italic; font-size: 1.1rem; color: #333; margin: 0 auto 3rem; font-family: var(--font-serif); }

.principles-section { background: rgba(255,255,255,0.6); padding: 3rem 0; margin-bottom: 3rem; }
.section-title { text-align: center; margin-bottom: 2rem; position: relative; display: inline-block; left: 50%; transform: translateX(-50%); }
.section-title::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px; background: var(--secondary); }
.principles-list { list-style: none; max-width: 600px; margin: 0 auto; font-size: 1.1rem; }
.principles-list li { margin-bottom: 0.8rem; display: flex; align-items: center; }
.bullet { color: var(--secondary); font-size: 1.5rem; margin-right: 0.8rem; line-height: 1; }

.card { background: white; border-radius: 12px; padding: 2rem; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); }

.mission-vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.mission-card { border-top: 4px solid var(--accent); text-align: center; }
.vision-card { border-top: 4px solid var(--secondary); text-align: center; }
.icon-circle { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.icon-accent { color: var(--accent); }
.icon-secondary { color: var(--secondary); }

.social-section { text-align: center; padding: 2rem 0; }
.section-heading { margin-bottom: 2rem; }
.social-icons { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.social-item { display: flex; flex-direction: column; align-items: center; font-size: 0.9rem; color: #666; }
.icon-box { width: 60px; height: 60px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 0.5rem; color: var(--accent); border: 2px solid transparent; transition: 0.3s; }
.social-item:hover .icon-box { border-color: var(--secondary); }

/* About Page */
.header-block { margin-bottom: 3rem; }
.small-logo { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--secondary); margin-bottom: 1rem; }
.page-title { font-size: 2.5rem; margin-bottom: 1rem; }
.intro-text { max-width: 800px; margin: 2rem auto 0; font-size: 1.1rem; }
.principles-card { border-left: 4px solid var(--secondary); margin-bottom: 3rem; }
.principles-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.principles-grid span { color: var(--secondary); margin-right: 0.5rem; font-weight: bold; }
.mission-vision-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.mv-heading { border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.quote-box { background: white; padding: 3rem; border-radius: 12px; position: relative; text-align: center; border: 1px solid rgba(216, 163, 0, 0.3); }
.quote-mark { font-family: var(--font-serif); font-size: 4rem; color: var(--secondary); opacity: 0.2; position: absolute; line-height: 1; }
.quote-mark.left { top: 10px; left: 20px; }
.quote-mark.right { bottom: -20px; right: 20px; }
blockquote { font-family: var(--font-sans); font-style: italic; font-size: 1.2rem; color: #555; max-width: 600px; margin: 0 auto; }

/* Programs Page */
.filter-pills { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.pill { padding: 0.5rem 1.5rem; border-radius: 50px; border: 1px solid var(--secondary); background: none; color: var(--accent); cursor: pointer; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.pill:hover { background: var(--secondary); color: white; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.program-card { padding: 0; overflow: hidden; }
.thumbnail { position: relative; height: 200px; background: #ddd; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.program-card:hover img { transform: scale(1.05); }
.play-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.program-card:hover .play-overlay { opacity: 1; }
.program-card .content { padding: 1.5rem; }
.category { font-size: 0.75rem; color: var(--secondary); text-transform: uppercase; font-weight: bold; letter-spacing: 1px; }
.link-btn { color: var(--accent); font-weight: bold; font-size: 0.9rem; margin-top: 1rem; display: inline-block; }

/* Events Page */
.event-group { margin-bottom: 3rem; }
.group-title { padding-left: 1rem; border-left: 4px solid var(--secondary); margin-bottom: 1.5rem; color: #444; }
.past-events { opacity: 0.7; }
.event-card { display: flex; padding: 0; flex-direction: row; }
.event-image { width: 35%; position: relative; min-height: 200px; }
.event-image img { width: 100%; height: 100%; object-fit: cover; }
.event-details { padding: 2rem; width: 65%; display: flex; flex-direction: column; justify-content: space-between; }
.status-badge { position: absolute; top: 1rem; left: 1rem; padding: 0.25rem 0.75rem; border-radius: 20px; color: white; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; }
.status-badge.upcoming { background: var(--secondary); }
.status-badge.past { background: #999; }
.meta { display: flex; gap: 1rem; margin-bottom: 1rem; font-size: 0.9rem; color: #666; }
.btn { padding: 0.6rem 1.5rem; border-radius: 50px; cursor: pointer; font-weight: bold; transition: 0.3s; display: inline-block; font-size: 0.9rem; border: none; }
.btn-outline { border: 2px solid var(--accent); color: var(--accent); background: none; }
.btn-outline:hover { background: var(--accent); color: white; }

/* Get Involved */
.icon-lg { width: 80px; height: 80px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: var(--text-dark); }
.action-card { text-align: center; border-top: 4px solid var(--secondary); }
.action-card.highlight { transform: scale(1.05); z-index: 10; border-top-color: var(--accent); }
.btn-solid { background: var(--accent); color: white; }
.btn-solid:hover { opacity: 0.9; }
.cta-box { background: rgba(255,255,255,0.6); border: 1px solid white; padding: 3rem; margin-top: 3rem; border-radius: 12px; }

/* Contact Page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.contact-info { background: var(--accent); color: white; padding: 3rem; }
.contact-info h2 { color: var(--secondary); }
.info-item { display: flex; align-items: flex-start; margin-bottom: 1.5rem; }
.info-item .icon { margin-right: 1rem; font-size: 1.2rem; }
.contact-form { padding: 3rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: bold; margin-bottom: 0.5rem; color: #555; }
.form-group input, .form-group textarea { width: 100%; padding: 0.8rem; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--secondary); }
.full-width { width: 100%; }

/* Footer */
footer { background: var(--accent); color: white; padding: 4rem 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
.footer-col h3 { color: var(--secondary); font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 1rem; }
.footer-col.center { text-align: center; }
.footer-col.right { text-align: right; }
.footer-socials { display: flex; justify-content: center; gap: 1.5rem; font-size: 1.5rem; margin-bottom: 1rem; }
.footer-logo { color: var(--secondary); font-size: 1.8rem; margin-bottom: 0.5rem; }
.copyright { font-size: 0.8rem; opacity: 0.5; margin-top: 2rem; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute; top: 80px; left: 0; width: 100%; background: white;
        flex-direction: column; padding: 1rem 0; box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        text-align: center; gap: 0;
    }
    .nav-links.show { display: flex; }
    .nav-link { display: block; padding: 1rem; }
    .mobile-menu-btn { display: block; }
    
    .mission-vision-grid, .principles-grid, .mission-vision-split, .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .event-card { flex-direction: column; }
    .event-image { width: 100%; }
    .event-details { width: 100%; }
    .footer-col { text-align: center !important; }
}