/* Import Google Sans Font */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Google Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Container for clean version (without ads) */
.container-clean {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.container-clean .main-content {
    width: 100%;
}

/* Top Navigation Bar */
.top-nav {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: #003CE2;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.calendar-icon {
    font-size: 2em;
}

.logo-image {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo-text {
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 18px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover {
    color: #003CE2;
}

.nav-menu a.active {
    color: #003CE2;
    border-bottom-color: #003CE2;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}

.region-selector-nav select,
.nav-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
    background: white;
    color: #333;
}

.lang-btn-nav {
    padding: 8px 16px;
    border: 1px solid #003CE2;
    border-radius: 5px;
    background: white;
    color: #003CE2;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn-nav:hover {
    background: #003CE2;
    color: white;
}

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

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Language Toggle Button (Mobile) */
.lang-toggle-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: 2px solid #003CE2;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9em;
    color: #003CE2;
    min-width: 50px;
    text-align: center;
}

.lang-toggle-mobile:hover {
    background: #003CE2;
    color: white;
}

.lang-toggle-mobile:active {
    transform: scale(0.95);
}

/* Region Selector in Header */
.header-region-selector {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 15px;
}

.header-region-selector label {
    color: white;
    font-weight: 600;
    font-size: 0.95em;
}

.header-region-selector select {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
    background: white;
    color: #333;
    min-width: 150px;
}

/* Header Styles */
header {
    background: #003CE2;
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-align: center;
    color: white;
}

header h2 {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

header p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 20px;
    opacity: 0.9;
    color: white;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.region-selector, .language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.region-selector label {
    font-weight: 600;
}

.region-selector select {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    background: white;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lang-btn {
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 5px;
    background: transparent;
    color: white;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: white;
    color: #003CE2;
}

.breadcrumb {
    margin-top: 20px;
    text-align: center;
    font-size: 0.95em;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Container Layout */
.container {
    max-width: 1400px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    gap: 20px;
    padding: 0 20px;
}

/* Main Content */
.main-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Sidebar Styles */
.sidebar-left, .sidebar-right {
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Ad Spaces */
.ad-space {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    border-radius: 5px;
}

.ad-header {
    min-height: 90px;
    margin: 0;
}

.ad-sidebar {
    min-height: 600px;
    writing-mode: vertical-rl;
    text-align: center;
}

.ad-content-top, .ad-content-bottom {
    min-height: 280px;
}

.ad-content-mid {
    min-height: 90px;
}

.ad-footer {
    min-height: 90px;
    margin: 0;
}

.ad-placeholder {
    color: #999;
    font-size: 0.9em;
    text-align: center;
    padding: 10px;
}

/* Months Grid */
.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.month-card {
    background: white;
    color: #333;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.month-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.month-card-header {
    background: #003CE2;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 10px;
}

.month-card-header h3 {
    font-size: 1.1em;
    margin: 0;
    font-weight: 600;
}

.mini-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    font-size: 0.75em;
}

.mini-cal-day-header {
    text-align: center;
    font-weight: 600;
    color: #666;
    padding: 4px 2px;
    font-size: 0.9em;
}

.mini-cal-date {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 2px;
    font-weight: 500;
    color: #333;
}

.mini-cal-date.empty {
    background: transparent;
}

.mini-cal-date.sunday {
    color: #d32f2f;
}

/* Calendar Styles */
.month-navigation, .date-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #003CE2;
    border-radius: 10px;
    color: white;
}

.nav-btn {
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 5px;
    background: transparent;
    color: white;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: white;
    color: #003CE2;
}

.calendar-container {
    margin: 30px 0;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 5px;
}

.calendar-day {
    background: #003CE2;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    border-radius: 5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.date-cell {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 20px 10px;
    text-align: center;
    min-height: 100px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date-cell:hover {
    background: #f0f0f0;
    border-color: #003CE2;
    transform: scale(1.05);
}

.date-number {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 5px;
}

.date-tithi {
    font-size: 0.85em;
    color: #666;
}

/* Panchangam info in calendar cells */
.date-panchangam-info {
    margin-top: 8px;
    font-size: 0.75em;
    line-height: 1.4;
}

.cal-tithi {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.cal-nakshatra {
    color: #666;
    font-size: 0.9em;
}

/* Special date indicators */
.amavasya-date {
    background: #f5f5f5 !important;
    border-color: #666 !important;
}

.amavasya-date .date-number {
    color: #000;
    font-weight: 700;
}

.pournami-date {
    background: #fffacd !important;
    border-color: #ffd700 !important;
}

.pournami-date .date-number {
    color: #000;
    font-weight: 700;
}

.empty-cell {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    cursor: default;
}

.empty-cell:hover {
    background: #fafafa;
    border-color: #f0f0f0;
    transform: none;
}

.today {
    background: #fff3cd;
    border-color: #ffc107;
}

/* Panchangam Details */
.panchangam-details {
    margin-top: 30px;
}

.info-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.info-card h3 {
    color: #003CE2;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-weight: 600;
    color: #666;
    font-size: 0.95em;
}

.info-value {
    font-size: 1.1em;
    color: #333;
    font-weight: 500;
}

.auspicious-card {
    border-color: #4caf50;
    background: #f1f8f4;
}

.auspicious-card h3 {
    color: #4caf50;
}

.inauspicious-card {
    border-color: #f44336;
    background: #fff5f5;
}

.inauspicious-card h3 {
    color: #f44336;
}

/* Festivals */
.festivals-section {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.festivals-section h2 {
    color: #003CE2;
    margin-bottom: 20px;
    text-align: center;
}

.festivals-table-container {
    overflow-x: auto;
}

.festivals-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.festivals-table thead {
    background: #003CE2;
    color: white;
}

.festivals-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1em;
}

.festivals-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.festivals-table tbody tr:hover {
    background: #f5f5f5;
    transition: background 0.2s ease;
}

.festivals-table tbody tr:last-child td {
    border-bottom: none;
}

.festivals-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.festival-tag {
    background: #003CE2;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: 500;
}

/* Info Section */
.info-section {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 10px;
}

.info-section h2 {
    color: #003CE2;
    margin-bottom: 20px;
}

.info-section ul {
    margin-left: 20px;
    line-height: 2;
}

.info-section li {
    margin-bottom: 10px;
}

.month-info {
    margin-top: 30px;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 0;
    margin-top: 40px;
}

footer p {
    padding: 20px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar-left, .sidebar-right {
        display: none;
    }
}

/* Tablet Responsive Styles */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 15px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .container-clean {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation Layout: Hamburger | Logo | Language Toggle */
    .nav-container {
        grid-template-columns: auto 1fr auto;
        gap: 10px;
    }

    .logo {
        justify-content: center;
        order: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        order: -1;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-top: 1px solid #e0e0e0;
        z-index: 999;
    }

    .nav-menu.mobile-active {
        display: flex;
    }

    .nav-menu a {
        border-bottom: none;
        border-left: 3px solid transparent;
        padding: 15px 20px;
    }

    .nav-menu a.active {
        border-left-color: #003CE2;
        border-bottom-color: transparent;
    }

    /* Hide original nav controls on mobile */
    .nav-controls {
        display: none;
    }

    .calendar-icon {
        font-size: 1.5em;
    }

    .logo-text {
        font-size: 1em;
    }

    /* Show mobile language toggle */
    .lang-toggle-mobile {
        display: flex;
        order: 1;
    }

    /* Show region selector in headers on mobile */
    .header-region-selector {
        display: flex;
    }

    /* Header Adjustments */
    header h1 {
        font-size: 1.6em;
    }

    header p {
        font-size: 0.95em;
    }

    .header-content {
        padding: 15px;
    }

    /* Controls */
    .controls {
        flex-direction: column;
        gap: 15px;
    }

    /* Months Grid - Keep Calendar Structure */
    .months-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .month-card {
        padding: 10px;
    }

    .mini-calendar {
        gap: 2px;
    }

    .mini-cal-day-header {
        font-size: 0.7em;
        padding: 4px 2px;
    }

    .mini-cal-date {
        font-size: 0.75em;
        padding: 4px 2px;
    }

    /* Calendar Cells - Maintain 7-Column Grid */
    .calendar-day {
        padding: 8px 3px;
        font-size: 0.85em;
    }

    .date-cell {
        padding: 10px 5px;
        min-height: 70px;
    }

    .date-number {
        font-size: 1.1em;
    }

    .date-tithi {
        font-size: 0.7em;
    }

    /* Content Spacing */
    .main-content {
        padding: 15px;
    }

    .container-clean {
        padding: 0 10px;
        margin: 15px auto;
    }

    /* Info Cards */
    .info-card {
        padding: 15px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Date Navigation */
    .date-navigation {
        flex-wrap: wrap;
        gap: 15px;
    }

    .date-navigation h2 {
        font-size: 1.4em;
        width: 100%;
        order: -1;
    }

    .nav-btn {
        flex: 1;
        min-width: 140px;
        justify-content: center;
        padding: 10px 15px;
    }

    .nav-btn span:not(.material-icons) {
        display: none;
    }

    .nav-btn .material-icons {
        font-size: 1.5em;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .site-footer {
        padding: 40px 15px 15px;
    }

    /* Festivals Table */
    .festivals-table-container {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .container, .container-clean {
        padding: 0 8px;
    }

    header h1 {
        font-size: 1.4em;
    }

    header p {
        font-size: 0.9em;
    }

    /* Keep calendar grid - just smaller */
    .months-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mini-cal-day-header {
        font-size: 0.65em;
        padding: 3px 1px;
    }

    .mini-cal-date {
        font-size: 0.7em;
        padding: 3px 1px;
    }

    /* Month Calendar - Keep 7 columns */
    .calendar-header-days,
    .calendar-dates {
        gap: 5px;
    }

    .calendar-day-header {
        padding: 8px 2px;
        font-size: 0.75em;
    }

    /* Date cells stay in 7-column grid */
    .date-cell {
        padding: 5px 2px;
        min-height: 60px;
        font-size: 0.8em;
    }

    .date-number {
        font-size: 1em;
    }

    .date-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .date-navigation h2 {
        font-size: 1.2em;
    }

    .nav-btn {
        width: 100%;
        padding: 12px;
    }

    /* Navigation Controls Stack */
    .nav-container {
        grid-template-columns: auto 1fr auto;
        padding: 0 10px;
    }

    .nav-controls {
        flex-direction: column;
        gap: 5px;
    }

    .nav-select, .lang-btn-nav {
        font-size: 0.75em;
        padding: 5px 8px;
    }

    /* Footer adjustments */
    .site-footer {
        padding: 30px 10px 10px;
    }

    .footer-section h3 {
        font-size: 1.2em;
    }

    .footer-section h4 {
        font-size: 1em;
    }

    /* Info Cards */
    .info-card {
        padding: 12px;
    }

    .info-card h3 {
        font-size: 1.2em;
    }

    .info-label {
        font-size: 0.85em;
    }

    .info-value {
        font-size: 1em;
    }
}

/* Footer Styles */
.site-footer {
    background: #000000;
    color: #fff;
    margin-top: 60px;
    padding: 50px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 30px;
    text-align: left;
}

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

.footer-main {
    max-width: 300px;
}

.footer-main > * {
    margin: 0;
    padding: 0;
    text-align: left;
}

.footer-logo {
    margin-bottom: 12px !important;
}

.footer-logo .material-icons {
    margin: 0;
    padding: 0;
    display: block;
}

.footer-logo-image {
    height: 50px;
    width: auto;
    display: block;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.5em;
    margin: 0 0 8px 0 !important;
    padding: 0;
    font-weight: 600;
    text-align: left;
}

.footer-section h4 {
    color: #fff;
    font-size: 1em;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: left;
}

.footer-section p {
    color: #999;
    line-height: 1.6;
    font-size: 0.9em;
    text-align: left;
    margin-bottom: 8px;
}

.footer-links {
    list-style: none;
    padding: 0;
    text-align: left;
}

.footer-links li {
    margin-bottom: 8px;
    color: #999;
    font-size: 0.9em;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9em;
}

.footer-links a:hover {
    color: #003CE2;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #999;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-made-with {
    margin: 0;
    font-size: 0.85em;
    text-align: left;
}

.footer-copyright {
    margin: 0;
    font-size: 0.85em;
    text-align: right;
}

/* FAQ Section Styles */
.faq-section {
    margin-top: 40px;
}

.faq-title {
    color: #003CE2;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: left;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    color: #003CE2;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    display: block;
}

.faq-answer {
    color: #333;
    line-height: 1.8;
    font-size: 1em;
    margin: 0;
}

.faq-answer p {
    margin: 0;
    color: #333;
    line-height: 1.8;
}

/* Festival Detail Page Styles */
.festival-subtitle {
    font-size: 1.2em;
    color: #ccc;
    margin-top: 10px;
}

.festival-detail-section {
    margin-bottom: 40px;
}

.festival-detail-section h2 {
    color: #fff;
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: 700;
}

.festival-detail-section h3 {
    color: #003CE2;
    font-size: 1.4em;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.festival-detail-section h4 {
    color: #003CE2;
    font-size: 1.2em;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.info-note {
    background: #e3f2fd;
    padding: 15px;
    border-left: 4px solid #003CE2;
    margin-top: 20px;
    border-radius: 4px;
    font-size: 0.95em;
}

.puja-steps, .significance-list {
    line-height: 1.8;
    color: #333;
}

.puja-steps li, .significance-list li {
    margin-bottom: 15px;
}

.puja-steps ul {
    margin-top: 10px;
    margin-left: 20px;
}

.puja-steps ul li {
    margin-bottom: 8px;
    list-style-type: circle;
}

.ritual-item {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ritual-item h4 {
    margin-top: 0;
}

.ritual-item ul {
    margin: 10px 0;
    line-height: 1.8;
}

.ritual-item ul li {
    margin-bottom: 8px;
}

.tradition-note {
    font-style: italic;
    color: #666;
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
}

.back-link-container {
    margin: 40px 0;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #003CE2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.back-link:hover {
    background: #0056b3;
}

.back-link .material-icons {
    font-size: 1.2em;
}

/* Date Navigation Styles */
.date-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.date-navigation .nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-navigation .nav-btn .material-icons {
    font-size: 1.2em;
}

.date-navigation h2 {
    color: white;
    font-size: 1.8em;
    margin: 0;
    text-align: center;
    flex: 1;
    font-weight: 600;
    min-width: 200px;
}

/* Info Card Styles */
.info-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.info-card h3 {
    color: #003CE2;
    font-size: 1.4em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #003CE2;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9em;
}

.info-value {
    color: #333;
    font-size: 1.1em;
    font-weight: 500;
}

.auspicious-card {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.auspicious-card h3 {
    color: #2e7d32;
    border-bottom-color: #4caf50;
}

.inauspicious-card {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.inauspicious-card h3 {
    color: #c62828;
    border-bottom-color: #f44336;
}

/* Month Calendar Date Block Styles */
.date-panchangam-data {
    margin-top: 8px;
    font-size: 0.75em;
    line-height: 1.5;
    text-align: left;
}

.date-num {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 5px;
}

.date-masam {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.date-tithi-full {
    color: #0066cc;
    font-weight: 600;
    margin-bottom: 3px;
}

.tithi-paksha {
    color: #666;
    font-size: 0.9em;
}

.tithi-time {
    color: #666;
    font-size: 0.9em;
    margin-left: 4px;
}

.date-nakshatra-full {
    color: #333;
    margin-bottom: 3px;
    font-size: 0.9em;
}

.naks-label {
    color: #666;
}

.naks-time {
    color: #666;
    font-size: 0.85em;
}

.date-kritika {
    color: #666;
    font-size: 0.85em;
    margin-bottom: 3px;
}

.date-durmu {
    color: #cc0000;
    font-size: 0.85em;
    margin-bottom: 2px;
}

.durmu-label {
    font-weight: 600;
}

.date-varjyam {
    color: #cc0000;
    font-size: 0.85em;
}

.varj-label {
    font-weight: 600;
}

.moon-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.5em;
    line-height: 1;
}

.amavasya-indicator {
    color: #000;
}

.pournami-indicator {
    color: #ffd700;
}

.loading-small {
    color: #999;
    font-size: 0.8em;
}

.calendar-date {
    position: relative;
}

/* Print Styles */
@media print {
    .ad-space, .controls, .breadcrumb, .site-footer, .nav-btn {
        display: none !important;
    }

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

/* Muhurtam Page Styles */
.year-selector-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.year-selector-section label {
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a1a;
}

.year-select {
    padding: 10px 20px;
    font-size: 1em;
    border: 2px solid #003CE2;
    border-radius: 6px;
    background: white;
    color: #003CE2;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-select:hover {
    background: #003CE2;
    color: white;
}

.muhurtam-categories {
    margin-bottom: 50px;
}

.section-title {
    color: #fff;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.category-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,60,226,0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #003CE2 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.category-icon .material-icons {
    font-size: 2.5em;
    color: white;
}

.category-card h3 {
    color: #003CE2;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 12px;
}

.category-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95em;
    margin: 0;
}

.about-muhurtam {
    margin-top: 50px;
}

.about-muhurtam h2 {
    color: #fff;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 25px;
}

.about-muhurtam h3 {
    color: #003CE2;
    font-size: 1.4em;
    margin: 25px 0 15px 0;
}

.muhurtam-factors {
    line-height: 1.8;
    color: #333;
    margin: 15px 0;
}

.muhurtam-factors li {
    margin-bottom: 10px;
}

.header-subtitle {
    font-size: 1.1em;
    color: #ccc;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .year-selector-section {
        flex-direction: column;
        align-items: flex-start;
    }
}
