/* ===== ROOT VARIABLES ===== */
:root {
    /* Primary Colors */
    --musk-rose-pink: #D4A5A5;
    --musk-rose-light: #F5E6E8;
    --musk-rose-lighter: #FDF8F8;
    --golden-yellow: #D4AF37;
    --golden-light: #F5E6B3;
    --royal-indigo: #3D348B;
    --indigo-light: #6B5FA8;
    --silver: #C0C0C0;
    --silver-light: #F0F0F0;
    
    /* Semantic Colors */
    --text-primary: #2D2A32;
    --text-secondary: #5A5660;
    --text-muted: #8A8690;
    --white: #FFFFFF;
    --success: #4CAF50;
    --warning: #FF9800;
    
    /* Gradients */
    --gradient-header: linear-gradient(135deg, var(--musk-rose-pink) 0%, var(--golden-yellow) 100%);
    --gradient-page: linear-gradient(180deg, var(--silver-light) 0%, var(--musk-rose-lighter) 100%);
    --gradient-card: linear-gradient(145deg, var(--white) 0%, var(--musk-rose-lighter) 100%);
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Spacing */
    --header-height: 60px;
    --container-max: 1200px;
    --section-padding: 60px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(61, 52, 139, 0.08);
    --shadow-md: 0 4px 20px rgba(61, 52, 139, 0.12);
    --shadow-lg: 0 8px 40px rgba(61, 52, 139, 0.16);
    
    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--gradient-page);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    background: var(--gradient-header);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--royal-indigo);
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    margin-top: 10px;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

/* Style for the new Wedly logo image (400x155 scaled down) */
.logo-image {
    /* CRITICAL: Scale the logo to fit the header height (60px) */
    height: 80px; 
    width: auto; /* Maintain aspect ratio (will be approx 190px wide) */
    margin-right: 5px; /* Add small margin if you want space before the nav */

}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    opacity: 0.9;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--gradient-header);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.mandala-bg {
    position: absolute;
    top: 50%;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%);
}

.mandala-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.year-highlight {
    color: var(--golden-light);
    display: block;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 30px;
}

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

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

.hero-visual {
    position: relative;
}

.kalash-icon {
    font-size: 8rem;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.float-item {
    position: absolute;
    font-size: 2rem;
    animation: floatRandom 4s ease-in-out infinite;
}

.float-item:nth-child(1) {
    top: 0;
    left: -30px;
    animation-delay: 0s;
}

.float-item:nth-child(2) {
    top: 50%;
    right: -40px;
    animation-delay: 1s;
}

.float-item:nth-child(3) {
    bottom: 0;
    left: 20px;
    animation-delay: 2s;
}

@keyframes floatRandom {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(10px, -10px) rotate(10deg); }
}

/* ===== YEAR NAVIGATION ===== */
.year-nav-section {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid rgba(212, 165, 165, 0.2);
}

.year-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.year-tab {
    padding: 12px 30px;
    border: 2px solid var(--musk-rose-pink);
    background: var(--white);
    color: var(--musk-rose-pink);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s;
}

.year-tab:hover {
    background: var(--musk-rose-light);
}

.year-tab.active {
    background: var(--gradient-header);
    border-color: transparent;
    color: var(--white);
}

/* ===== FILTERS SECTION ===== */
.filters-section {
    padding: 30px 0;
    background: var(--white);
    border-bottom: 1px solid rgba(212, 165, 165, 0.2);
}

.filters-section .container {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.filters-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}

.filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 10px 14px;
    border: 2px solid var(--silver);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--musk-rose-pink);
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: var(--silver-light);
    padding: 5px;
    border-radius: var(--radius-sm);
}

.view-btn {
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    color: var(--royal-indigo);
}

.view-btn.active {
    background: var(--white);
    color: var(--royal-indigo);
    box-shadow: var(--shadow-sm);
}

/* ===== CALENDAR VIEW ===== */
.calendar-section {
    padding: var(--section-padding) 0;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.cal-nav-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--musk-rose-pink);
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--musk-rose-pink);
    transition: all 0.3s;
}

.cal-nav-btn:hover {
    background: var(--musk-rose-pink);
    color: var(--white);
}

.calendar-month-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--royal-indigo);
    min-width: 220px;
    text-align: center;
}

.calendar-grid {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--gradient-header);
    padding: 15px 0;
}

.calendar-header span {
    text-align: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: rgba(212, 165, 165, 0.1);
    padding: 1px;
}

.calendar-day {
    background: var(--white);
    min-height: 100px;
    padding: 10px;
    position: relative;
    cursor: default;
    transition: all 0.3s;
}

.calendar-day:hover {
    background: var(--musk-rose-lighter);
}

.calendar-day.other-month {
    background: var(--silver-light);
    opacity: 0.5;
}

.calendar-day.today {
    border: 2px solid var(--royal-indigo);
}

.calendar-day.has-muhurat {
    cursor: pointer;
}

.calendar-day.has-muhurat::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    
    /* ENHANCEMENT START */
    width: 14px; /* Increased Size */
    height: 14px; /* Increased Size */
    border: 2px solid var(--white); /* White Circle Border */
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1); /* Subtle Ring Shadow */
    
    background: var(--success);
    border-radius: 50%;
    
    /* Animation */
    animation: pulse 1.5s infinite ease-in-out; 
    /* ENHANCEMENT END */
}

/* Ensure the animation keyframes are defined */
@keyframes pulse {
    0% { transform: translateX(-50%) scale(1); opacity: 1; }
    50% { transform: translateX(-50%) scale(1.1); opacity: 0.9; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* Update color overrides for the animated dot */
.calendar-day.weekend.has-muhurat::after {
    background: var(--golden-yellow);
}

.calendar-day.long-weekend.has-muhurat::after {
    background: var(--royal-indigo);
}

.calendar-day.holiday.has-muhurat::after {
    background: var(--musk-rose-pink);
}

.calendar-day.weekend.has-muhurat::after {
    background: var(--golden-yellow);
}

.calendar-day.long-weekend.has-muhurat::after {
    background: var(--royal-indigo);
}

.calendar-day.holiday.has-muhurat::after {
    background: var(--musk-rose-pink);
}

.day-number {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.calendar-day.weekend .day-number {
    color: var(--musk-rose-pink);
}

.day-tithi {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.day-holiday {
    font-size: 0.65rem;
    color: var(--royal-indigo);
    font-weight: 500;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-dot {
    /* Updated Size */
    width: 18px; 
    height: 18px; 
    border-radius: 50%;
    /* Added border for consistency with the calendar dot */
    border: 2px solid var(--white); 
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); 
}

.legend-dot.auspicious { background: var(--success); }
.legend-dot.weekend { background: var(--golden-yellow); }
.legend-dot.long-weekend { background: var(--royal-indigo); }
.legend-dot.holiday { background: var(--musk-rose-pink); }

/* ===== LIST VIEW ===== */
.list-section {
    padding: var(--section-padding) 0;
}

.list-section.hidden {
    display: none;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.list-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--royal-indigo);
}

.results-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dates-list {
    display: grid;
    gap: 16px;
}

.date-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid var(--success);
}

.date-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.date-card.weekend {
    border-left-color: var(--golden-yellow);
}

.date-card.long-weekend {
    border-left-color: var(--royal-indigo);
}

.date-card.holiday {
    border-left-color: var(--musk-rose-pink);
}

.date-box {
    text-align: center;
    padding: 10px 15px;
    background: var(--musk-rose-lighter);
    border-radius: var(--radius-sm);
    min-width: 70px;
}

.date-day-num {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--royal-indigo);
    line-height: 1;
}

.date-month {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.date-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.date-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.date-meta span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.date-rating {
    color: var(--golden-yellow);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.date-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.date-tag {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.date-tag.weekend {
    background: rgba(212, 175, 55, 0.15);
    color: var(--golden-yellow);
}

.date-tag.long-weekend {
    background: rgba(61, 52, 139, 0.1);
    color: var(--royal-indigo);
}

.date-tag.holiday {
    background: rgba(212, 165, 165, 0.2);
    color: var(--musk-rose-pink);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--section-padding) 0;
}

.cta-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.cta-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-header);
}

.cta-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.cta-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--royal-indigo);
    margin-bottom: 10px;
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.cta-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-btn.primary {
    background: var(--gradient-header);
    color: var(--white);
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.cta-btn.secondary:hover {
    background: var(--royal-indigo);
    color: var(--white);
}

/* ===== MONTH LINKS SECTION ===== */
.month-links-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--royal-indigo);
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.month-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.month-link-card {
    background: var(--gradient-card);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(212, 165, 165, 0.2);
    position: relative;
}

.month-link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.month-link-card.highlight {
    border-color: var(--golden-yellow);
    background: linear-gradient(145deg, var(--white) 0%, rgba(212, 175, 55, 0.1) 100%);
}

.month-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--royal-indigo);
    margin-bottom: 4px;
}

.muhurat-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.popular-tag {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--golden-yellow);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== COMMUNITY SECTION ===== */
.community-section {
    padding: var(--section-padding) 0;
}

.community-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.community-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.community-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.community-card.hindu { border-color: #FF9800; }
.community-card.jain { border-color: #4CAF50; }
.community-card.gujarati { border-color: #E91E63; }
.community-card.marwari { border-color: #9C27B0; }

.community-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.community-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.community-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.date-count {
    display: inline-block;
    padding: 6px 16px;
    background: var(--musk-rose-lighter);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--royal-indigo);
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

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

.faq-item {
    border-bottom: 1px solid rgba(212, 165, 165, 0.2);
}

.faq-question {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--musk-rose-pink);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    /* Use a faster transition for better feel */
    transition: max-height 0.5s ease-in-out; 
}

.faq-item.active .faq-answer {
    /* Use a large value to ensure it fits any content */
    max-height: 500px; 
    /* You must also adjust this transition in your CSS for the icon: */
}
.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gradient-header);
    padding: 40px 0 20px;
    border-top: 3px solid var(--royal-indigo);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-content {
    margin-bottom: 20px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-tagline {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-copyright {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--silver-light);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
}

.modal-close:hover {
    background: var(--musk-rose-pink);
    color: var(--white);
}

.modal-header {
    background: var(--gradient-header);
    padding: 30px 25px;
    text-align: center;
}

.modal-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.modal-date {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 4px;
}

.modal-day {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.modal-body {
    padding: 25px;
}

.panchang-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.panchang-item {
    background: var(--musk-rose-lighter);
    padding: 12px;
    border-radius: var(--radius-sm);
}

.panchang-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.panchang-value {
    font-weight: 600;
    color: var(--royal-indigo);
}

.rating-section {
    text-align: center;
    padding: 16px;
    background: var(--gradient-card);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.rating-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.star-rating {
    font-size: 1.5rem;
    color: var(--golden-yellow);
    letter-spacing: 4px;
}

.tags-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    justify-content: center;
}

.modal-notes {
    background: var(--silver-light);
    padding: 16px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--musk-rose-pink);
}

.modal-notes p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid rgba(212, 165, 165, 0.2);
}

.modal-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.modal-btn.primary {
    background: var(--gradient-header);
    color: var(--white);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .community-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
        --section-padding: 40px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 30px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .year-tabs {
        gap: 6px;
    }
    
    .year-tab {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .filters-section .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .calendar-day {
        min-height: 70px;
        padding: 6px;
    }
    
    .day-number {
        font-size: 0.85rem;
    }
    
    .day-tithi,
    .day-holiday {
        display: none;
    }
    
    .date-card {
        grid-template-columns: auto 1fr;
    }
    
    .date-rating {
        grid-column: 1 / -1;
        text-align: left;
    }
    
    .cta-wrapper {
        grid-template-columns: 1fr;
    }
    
    .community-cards {
        grid-template-columns: 1fr;
    }
    
    .panchang-details {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .filters-wrapper {
        grid-template-columns: 1fr;
    }
    
    .month-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}