/* ===================================
   BOSTON TELUGU SAHITYA VEDIKA - CSS
   Telugu Literary Website with Vertical Left Sidebar
   =================================== */

/* ===================================
   VARIABLES & RESET
   =================================== */
:root {
    /* Telugu Cultural Color Palette */
    --primary-color: #D97C0F;        /* Turmeric/Saffron */
    --primary-light: #FFA500;
    --primary-dark: #B8650A;
    --accent-color: #8B0000;         /* Temple Red */
    --accent-light: #CD5C5C;
    --gold: #FFD700;
    --cream: #FFF9E6;                /* Parchment */
    --white: #FFFFFF;
    
    /* Text Colors */
    --text-dark: #2c2416;
    --text-medium: #5a4a3a;
    --text-light: #8a7a6a;
    
    /* Background Colors */
    --bg-cream: #FFF9E6;
    --bg-light: #FFF5E1;
    --bg-white: #FFFFFF;
    
    /* Borders & Shadows */
    --border-light: #e8d5c4;
    --border-medium: #d4c0aa;
    --shadow: rgba(139, 0, 0, 0.1);
    --shadow-dark: rgba(139, 0, 0, 0.2);
    
    /* Typography */
    --font-telugu: 'Noto Sans Telugu', 'Tiro Telugu', sans-serif;
    --font-heading: 'Tiro Telugu', 'Noto Sans Telugu', serif;
    
    /* Spacing - Modern Compact Design */
    --spacing-xs: 0.3rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1.25rem;
    --spacing-xl: 1.5rem;
    
    /* Sidebar Width - Narrower */
    --sidebar-width: 220px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-telugu);
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--bg-cream);
    overflow-x: hidden;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ===================================
   LAYOUT
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   VERTICAL LEFT SIDEBAR NAVIGATION
   =================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--accent-color) 0%, #6B0000 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 4px 0 20px var(--shadow-dark);
    overflow: hidden;
}

.sidebar-header {
    padding: 0.5rem 0.3rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    text-align: center;
    flex-shrink: 0; /* Prevent shrinking */
}

.logo {
    margin-bottom: 0;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 0.3rem;
    display: block;
    border-radius: 50%;
    flex-shrink: 0;
}

.logo-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--gold) !important;
    margin-bottom: 0.3rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    font-family: 'Tiro Telugu', 'Noto Sans Telugu', serif !important;
}

.logo-subtitle {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-family: 'Noto Sans Telugu', sans-serif !important;
}

.logo-motif {
    color: var(--gold);
    font-size: 1.5rem;
    margin-top: var(--spacing-xs);
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    padding: 0.5rem 0;
    flex: 1;
    flex-shrink: 0;
}

.nav-menu li {
    margin-bottom: 0;
}

.nav-menu a {
    display: flex !important;
    align-items: center !important;
    padding: 0.65rem 0.8rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
    font-family: 'Noto Sans Telugu', sans-serif !important;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-menu a:active::after {
    width: 100%;
    height: 100%;
}

.nav-menu a:hover {
    background: rgba(255, 215, 0, 0.15);
    border-left-color: var(--gold);
    color: var(--white);
    transform: translateX(3px);
}

.nav-menu a.active {
    background: rgba(255, 215, 0, 0.2);
    border-left-color: var(--gold);
    color: var(--gold);
    transform: translateX(3px);
}

.nav-menu a:active {
    transform: scale(0.97) translateX(3px);
}

.nav-icon {
    font-size: 1.1rem !important;
    margin-right: 0.5rem !important;
    min-width: 1.2rem !important;
    flex-shrink: 0;
}

.nav-text {
    font-size: 0.85rem !important;
    font-family: 'Noto Sans Telugu', sans-serif !important;
    font-weight: 500 !important;
}

/* Sidebar Footer Decorative Rangoli */
.sidebar-footer-decorative {
    padding: var(--spacing-md);
    text-align:center;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    margin-top: auto;
}

.rangoli-decoration {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: block;
    opacity: 0.9;
    mix-blend-mode: screen;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    background: var(--accent-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px var(--shadow-dark);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   MAIN CONTENT AREA
   =================================== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-cream);
}

/* ===================================
   SIMPLIFIED HERO SECTION
   =================================== */
.hero-simple {
    background: var(--bg-light);
    padding: var(--spacing-md) var(--spacing-md);
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.hero-simple-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--accent-color);
}

.hero-simple-subtitle {
    font-size: 1rem;
    color: var(--text-medium);
    font-weight: 400;
    margin: 0;
}


/* ===================================
   SECTION TITLES
   =================================== */
.section-title {
    text-align: center;
    color: var(--accent-color);
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

/* Decorative line under section titles */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 20%, 
        var(--accent-color) 50%, 
        var(--primary-color) 80%, 
        transparent 100%);
    border-radius: 2px;
}

.section-title::before {
    content: '✦';
    position: absolute;
    bottom: -8px;
    left: 50%;
    margin-left: -80px;
    color: var(--primary-color);
    font-size: 16px;
}

/* ===================================
   MISSION SECTION
   =================================== */
.mission-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

/* Mission Section - Single Horizontal Row */
.mission-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.mission-card-compact {
    background: var(--bg-cream);
    padding: var(--spacing-sm);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--primary-color);
}

.mission-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px var(--shadow);
    border-top-color: var(--accent-color);
}

.card-icon-small {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.mission-card-compact h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
}

.mission-card-compact p {
    color: var(--text-medium);
    line-height: 1.4;
    font-size: 0.85rem;
}

@media (max-width: 968px) {
    .mission-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .mission-row {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   FEATURED SECTION
   =================================== */
.featured-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.featured-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-dark);
}

.featured-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-icon {
    font-size: 4rem;
    color: var(--white);
}

.featured-content {
    padding: var(--spacing-md);
}

.featured-content h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.featured-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* ===================================
   SIMPLIFIED EVENTS SECTION
   =================================== */
.events-section-simple {
    padding: var(--spacing-lg) 0;
    background: var(--bg-white);
}

.events-list {
    max-width: 800px;
    margin: 0 auto;
}

.event-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    margin-bottom: var(--spacing-sm);
    background: var(--bg-cream);
    transition: all 0.3s ease;
}

.event-item:hover {
    border-left-color: var(--accent-color);
    box-shadow: 0 2px 10px var(--shadow);
}

.event-date-simple {
    min-width: 90px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.event-info h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.05rem;
}

.event-info p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin: 0;
}

/* ===================================
   SIMPLE JOIN BUTTON SECTION
   =================================== */
.join-button-section {
    padding: var(--spacing-lg) 0;
    background: var(--bg-light);
    text-align: center;
}

.join-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.85rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.join-button:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.footer-tagline {
    font-style: italic;
    color: var(--primary-light);
    margin-bottom: var(--spacing-xs);
}

.footer-location,
.footer-established {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xs);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xs);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-link {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: scale(1.2);
    filter: brightness(1.3);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 968px) {
    :root {
        --sidebar-width: 250px;
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .nav-menu a {
        padding: 0.875rem 1.25rem;
    }
    
    .mission-grid,
    .featured-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* ===================================
   SAHITYAM PAGE STYLES
   =================================== */
.literary-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmin(450px, 1fr));
    gap: var(--spacing-lg);
}

.literary-piece {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 15px var(--shadow);
}

.literary-piece h3 {
    color: var(--accent-color);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.author-info {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.poem-content {
    line-height: 2;
    color: var(--text-medium);
}

.poem-content p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.publication-card {
    background: var(--bg-cream);
    padding: var(--spacing-md);
    border-radius: 12px;
    border-top: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.publication-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.publication-card h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.3rem;
}

.publication-author {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.publication-desc {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.publication-date {
    display: inline-block;
    color: var(--text-light);
    font-size: 0.9rem;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.theme-card {
    background: var(--bg-cream);
    padding: var(--spacing-md);
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.theme-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow);
}

.theme-card h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}

.theme-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.hero-compact {
    padding: var(--spacing-md) var(--spacing-md);
}

.hero-compact .hero-title {
    font-size: 2.5rem;
}

.hero-compact .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0;
}

/* ===================================
   CONTACT PAGE STYLES
   =================================== */
.contact-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.1rem;
    color: var(--text-medium);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-lg);
}

.contact-form-container {
    background: var(--bg-cream);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
}

.contact-form-container h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required {
    color: var(--accent-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-family: var(--font-telugu);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(217, 124, 15, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--spacing-sm);
}

.submit-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-dark);
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: var(--spacing-sm);
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
    display: block;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.info-card {
    background: var(--bg-cream);
    padding: var(--spacing-md);
    border-radius: 12px;
    border-top: 4px solid var(--primary-color);
}

.info-card h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.info-card p {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

.text-small {
    font-size: 0.9rem;
    color: var(--text-light);
}

.social-links-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.social-link-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-white);
    border-radius: 8px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-light);
}

.social-link-inline:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateX(5px);
    border-left-color: var(--accent-color);
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.guideline-card {
    background: var(--bg-cream);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border-left: 5px solid var(--accent-color);
}

.guideline-card h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
}

.guideline-card ul {
    list-style: none;
    padding-left: 0;
}

.guideline-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.guideline-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===================================
   ABOUT PAGE STYLES
   =================================== */
.about-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    margin-top: var(--spacing-md);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: var(--spacing-md);
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
}

.vm-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border-top: 5px solid var(--primary-color);
    box-shadow: 0 4px 20px var(--shadow);
}

.vm-card h2 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.75rem;
}

.vm-card p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.activity-card {
    background: var(--bg-cream);
    padding: var(--spacing-md);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px var(--shadow);
    border-left-color: var(--accent-color);
}

.activity-card h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.activity-card p {
    line-height: 1.6;
}

/* Responsive adjustments for contact page */
@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .vision-mission-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   MAGAZINE CARDS (Sahityam Page)
   =================================== */
.intro-text {
    text-align: center;
    color: var(--text-medium);
    font-size: 1.05rem;
    margin-bottom: var(--spacing-lg);
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-md);
}

.magazine-card {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border-light);
    border-top: 4px solid var(--primary-color);
    display: block;
    text-decoration: none;
}

.magazine-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px var(--shadow);
    border-top-color: var(--accent-color);
}

.magazine-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.magazine-card h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}

.magazine-url {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.magazine-desc {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Compact Magazine Cards with Logos */
.magazine-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-sm);
    max-width: 900px;
    margin: 0 auto;
}

.magazine-card-small {
    background: var(--bg-white);
    padding: var(--spacing-sm);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    display: block;
    text-decoration: none;
}

.magazine-card-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--shadow);
    border-color: var(--primary-color);
}

.magazine-logo {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: var(--spacing-xs);
    border-radius: 4px;
}

.magazine-card-small h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
    font-weight: 600;
}

.magazine-card-small .magazine-url {
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0;
}

@media (max-width: 768px) {
    .magazine-grid-compact {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .magazine-logo {
        height: 60px;
    }
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.info-card-alt {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px var(--shadow);
}

.info-card-alt h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.15rem;
}

.info-card-alt p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===================================
   UPDATED CONTACT/JOIN PAGE STYLES
   =================================== */
.traditional-motifs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-md) 0;
    background: var(--bg-light);
}

.rangoli-motif {
    width: 40px;
    height: 40px;
    background: conic-gradient(
        from 0deg,
        var(--primary-color) 0deg 90deg,
        var(--accent-color) 90deg 180deg,
        var(--gold) 180deg 270deg,
        var(--primary-color) 270deg 360deg
    );
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.diya-motif, .flower-motif {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.join-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.join-intro h2 {
    color: var(--accent-color);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.join-intro p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.join-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.join-form-container {
    background: var(--bg-cream);
    padding: var(--spacing-md);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.join-form-container h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.4rem;
}

.join-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.benefit-card {
    background: var(--bg-cream);
    padding: var(--spacing-md);
    border-radius: 10px;
    border-top: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px var(--shadow);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.benefit-card h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.benefit-card p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.contact-card {
    background: var(--bg-cream);
    padding: var(--spacing-md);
    border-radius: 10px;
    text-align: center;
    border-top: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.contact-card h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-icons a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

/* Responsive for new layouts */
@media (max-width: 968px) {
    .join-content {
        grid-template-columns: 1fr;
    }
    
    .magazine-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .traditional-motifs {
        gap: var(--spacing-md);
    }
    
    .rangoli-motif {
        width: 30px;
        height: 30px;
    }
    
    .diya-motif, .flower-motif {
        font-size: 1.5rem;
    }
}

/* ===================================
   COMPACT ABOUT PAGE STYLES
   =================================== */
.about-compact {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-compact p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.activities-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
    max-width: 900px;
    margin: 0 auto;
}

.activity-item-small {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: var(--bg-cream);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.activity-item-small:hover {
    border-left-color: var(--accent-color);
    transform: translateX(3px);
}

.activity-icon {
    font-size: 1.3rem;
}

/* ===================================
   COMPACT CONTACT FORM STYLES
   =================================== */
.contact-section-compact {
    padding: var(--spacing-lg) 0;
    background: var(--bg-white);
}

.contact-form-compact {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-cream);
    padding: var(--spacing-md);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.form-row-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.contact-form-compact input,
.contact-form-compact select,
.contact-form-compact textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: var(--font-telugu);
    font-size: 0.95rem;
    background: var(--bg-white);
    transition: all 0.3s ease;
}

.contact-form-compact input:focus,
.contact-form-compact select:focus,
.contact-form-compact textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form-compact textarea {
    margin-bottom: var(--spacing-sm);
    resize: vertical;
}

.message-textarea-wide {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 100px;
}

.submit-btn-compact {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.85rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn-compact:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.contact-info-compact {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-cream);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.info-icon {
    font-size: 1.3rem;
}

.social-compact {
    display: flex;
    gap: var(--spacing-xs);
}

.social-compact a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-compact a:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .form-row-compact {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   EVENT CAROUSEL STYLES
   =================================== */
.event-carousel-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

.event-carousel {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.event-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    background: var(--bg-cream);
}

.event-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.event-slide.active {
    display: block;
    opacity: 1;
}

.event-slide-content {
    display: grid;
    grid-template-columns: 60% 40%;
    height: 300px;  /* Fixed height instead of min-height */
}

.event-images {
    background: linear-gradient(135deg, #FFF5E1 0%, #FFF9E6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    position: relative;
    height: 300px;  /* Fixed height */
    overflow: hidden;
}

.event-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;  /* Contain instead of cover to show full image */
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.event-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    border-radius: 8px;
}

.event-image-placeholder span {
    font-size: 6rem;
    color: var(--white);
}

.event-details {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-white);
}

.event-title {
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.event-detail-item {
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

.event-label {
    display: none; /* Hide labels on frontend */
}

.event-value {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    display: block;
}

.event-detail-item:first-of-type .event-value {
    color: var(--primary-color);
    font-weight: 600;
}

.event-loading {
    padding: var(--spacing-xl);
    text-align: center;
}

.event-loading p {
    color: var(--text-medium);
    font-size: 1.1rem;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-medium);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: var(--accent-color);
    width: 30px;
    border-radius: 6px;
}

/* Responsive Event Carousel */
@media (max-width: 768px) {
    .event-slide-content {
        grid-template-columns: 1fr;
        height: auto;  /* Remove fixed height */
        min-height: auto;
    }
    
    .event-images {
        height: 200px;  /* Reduced height for mobile */
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .event-image {
        max-width: 95%;
        max-height: 95%;
        object-fit: contain;
        object-position: center;
    }
    
    .event-details {
        padding: var(--spacing-md);
        min-height: auto;  /* Allow text to flow naturally */
    }
    
    .event-title {
        font-size: 1.25rem;
    }
    
    .event-value {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .event-carousel-section {
        padding: var(--spacing-lg) 0;
    }
    
    .event-slide-content {
        height: auto;  /* Allow content to expand */
    }
    
    .event-images {
        height: 180px;  /* Even smaller on very small screens */
        min-height: 180px;
        padding: var(--spacing-sm);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .event-image {
        max-width: 95%;
        max-height: 95%;
        object-fit: contain;
        object-position: center;
    }
    
    .event-details {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .event-image-placeholder span {
        font-size: 4rem;
    }
    
    .event-title {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .event-value {
        font-size: 0.85rem;
    }
    
    .event-detail-item {
        margin-bottom: var(--spacing-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
