/* =============================================================
   TamilCalendar.com – Main Stylesheet
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Tamil:wght@400;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --orange-deep:   #E65100;
    --orange-mid:    #F57F17;
    --orange-light:  #FFF8F0;
    --red-dark:      #7B1C1C;
    --red-mid:       #b91c1c;
    --text-main:     #1a1a2e;
    --text-muted:    #6b7280;
    --border:        #fed7aa;
    --white:         #ffffff;
    --card-bg:       #fffbf5;
}

body {
    font-family: 'Inter', 'Noto Sans Tamil', sans-serif;
    background: #f5f0eb;
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.6;
}

a { color: var(--orange-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- TOP BORDER STRIPE ---- */
.tc-top-border {
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        #b91c1c 0px, #b91c1c 20px,
        #f59e0b 20px, #f59e0b 40px,
        #b91c1c 40px, #b91c1c 60px,
        #16a34a 60px, #16a34a 80px
    );
}

/* ---- UTILITY BAR ---- */
.tc-utility-bar {
    background: linear-gradient(180deg, #4a1515 0%, #5c1d1d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 5px 20px;
    font-size: 12px;
    border-bottom: 1px solid rgba(251,191,36,0.3);
}
.tc-utility-item { display: flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 4px; }
.tc-clock { color: #fbbf24; font-family: 'Courier New', monospace; font-weight: 600; letter-spacing: 1px; }
.tc-u-label { color: rgba(254,202,202,0.85); font-size: 11px; letter-spacing: 0.3px; }

/* ---- HEADER WRAPPER (sticky) ---- */
.tc-header-wrap { position: sticky; top: 0; z-index: 100; }

/* ---- HEADER ---- */
.tc-header {
    background: linear-gradient(180deg, #7f1d1d 0%, #991b1b 50%, #7f1d1d 100%);
    color: white;
    padding: 0 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    border-bottom: 3px solid #fbbf24;
    position: relative;
}
.tc-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 10% 50%, rgba(251,191,36,0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 50%, rgba(251,191,36,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.tc-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
}

/* ---- LOGO ---- */
.tc-logo-link { display: flex; align-items: center; gap: 10px; color: white; text-decoration: none; flex-shrink: 0; }
.tc-logo-img { height: 42px; width: 42px; display: block; border-radius: 5px; border: 2px solid #fbbf24; object-fit: cover; }
.tc-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.tc-logo-ta { font-size: 1em; font-weight: 700; color: #fbbf24; text-shadow: 1px 1px 2px rgba(0,0,0,0.3); letter-spacing: 0.2px; }
.tc-logo-en { font-size: 0.75em; color: rgba(255,255,255,0.85); letter-spacing: 0.4px; }

/* ---- DESKTOP NAV ---- */
.tc-nav { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.tc-nav-sitemap { display: none; }

/* Direct nav links */
.tc-nav > a {
    color: #fef3c7;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    padding: 10px 9px;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    position: relative;
    border: none;
    background: none;
    border-radius: 0;
}
.tc-nav > a::before {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 3px;
    background: #fbbf24;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.tc-nav > a:hover::before { width: 80%; }
.tc-nav > a:hover { color: #fbbf24; background: rgba(251,191,36,0.1); text-decoration: none; }

/* ---- DROPDOWN TRIGGER ---- */
.tc-nav-group { position: relative; }
.tc-nav-group > .tc-nav-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #fef3c7;
    padding: 10px 9px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    user-select: none;
    background: none;
    border: none;
    position: relative;
}
.tc-nav-group > .tc-nav-trigger::before {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 3px;
    background: #fbbf24;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.tc-nav-group:hover > .tc-nav-trigger::before,
.tc-nav-group.open > .tc-nav-trigger::before { width: 80%; }
.tc-nav-group > .tc-nav-trigger:hover,
.tc-nav-group:hover > .tc-nav-trigger,
.tc-nav-group.open > .tc-nav-trigger { color: #fbbf24; background: rgba(251,191,36,0.1); }

.tc-caret { font-size: 0.65em; opacity: 0.75; display: inline-block; transition: transform 0.2s; }
.tc-nav-group.open .tc-caret { transform: rotate(180deg); }

/* ---- DROPDOWN PANEL ---- */
.tc-dropdown {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: linear-gradient(180deg, #fff 0%, #fefce8 100%);
    min-width: 210px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    padding: 8px 0;
    z-index: 1001;
    border: 2px solid #fbbf24;
    border-top: none;
}
.tc-dropdown.tc-dropdown-right { left: auto; right: 0; }
.tc-nav-group:hover .tc-dropdown,
.tc-nav-group.open .tc-dropdown { display: block; }
.tc-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #7f1d1d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.tc-dropdown a::before { content: '॥'; color: #f59e0b; font-weight: 700; flex-shrink: 0; }
.tc-dropdown a:hover { background: linear-gradient(90deg, #fef3c7, transparent); color: #991b1b; padding-left: 20px; }
.tc-dropdown-section {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #9ca3af;
    padding: 10px 16px 4px;
    margin-top: 4px;
    border-top: 1px solid rgba(251,191,36,0.3);
    border-left: 3px solid #f59e0b;
}
.tc-dropdown .tc-dropdown-section:first-child { border-top: none; margin-top: 0; }

/* ---- HAMBURGER ---- */
.tc-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; border-radius: 6px; transition: background 0.2s; }
.tc-hamburger:hover { background: rgba(255,255,255,0.15); }
.tc-hamburger span { display: block; width: 22px; height: 2px; background: white; margin: 5px 0; border-radius: 2px; transition: all 0.25s; }
.tc-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.tc-hamburger.open span:nth-child(2) { opacity: 0; }
.tc-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- MOBILE NAV PANEL ---- */
.tc-mobile-nav {
    display: none;
    background: linear-gradient(180deg, #7f1d1d 0%, #991b1b 100%);
    border-top: 1px solid rgba(251,191,36,0.2);
    border-bottom: 3px solid #fbbf24;
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
    padding: 10px 0 16px;
}
.tc-mobile-nav.open { display: block; }
.tc-mobile-nav a { display: block; color: #fef3c7; text-decoration: none; padding: 9px 20px; font-size: 13px; font-weight: 600; transition: background 0.15s; }
.tc-mobile-nav a:hover { background: rgba(251,191,36,0.1); color: #fbbf24; }
.tc-mobile-nav .tc-mob-section {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #fbbf24;
    padding: 14px 20px 5px;
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.tc-mobile-nav .tc-mob-section:first-child { border-top: none; margin-top: 0; }

/* ---- HEADER RESPONSIVE ---- */
@media (max-width: 768px) {
    .tc-utility-bar { display: none; }
    .tc-top-border { height: 4px; }
    .tc-nav { display: none; }
    .tc-hamburger { display: block; }
}

/* ---- PAGE WRAPPER ---- */
.tc-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 15px 40px;
}

/* ---- SEO CONTENT BLOCK ---- */
.seo-content-block {
    background: var(--orange-light);
    border: 1px solid #fcd9b0;
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 24px;
}
.seo-content-block h1 {
    font-size: 1.4em;
    color: var(--red-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}
.seo-content-block .seo-text {
    color: #374151;
    font-size: 0.95em;
    line-height: 1.75;
}
.seo-content-block .seo-text p { margin-bottom: 10px; }
.seo-content-block .seo-text p:last-child { margin-bottom: 0; }

/* ---- DC PAGE (Digital Calendar) ---- */
.digital-date-display {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 24px;
    background: var(--white);
    border: 1px solid #0000cc;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-radius: 4px;
    overflow: hidden;
}
.dateSection { background: #fff; padding: 15px 0 2px; text-align: center; }
.dateRow { display: flex; justify-content: center; align-items: flex-end; gap: 0; padding-bottom: 6px; flex-wrap: nowrap; }
.big { font-weight: 900; font-size: clamp(60px, 12vw, 120px); line-height: .85; letter-spacing: -2px; font-family: 'Arial Black', Impact, sans-serif; }
.d-col { color: #d21818; }
.m-col { color: #006600; }
.y-col { color: #000066; }
.sep { color: #888; font-size: clamp(30px, 6vw, 60px); line-height: .85; padding: 0 4px; }
.dateLabels { display: flex; justify-content: center; gap: 40px; padding: 4px 0; font-size: 0.7em; color: #555; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.dayName { font-size: 1.4em; font-weight: 800; color: #333; text-transform: uppercase; letter-spacing: 2px; margin: 6px 0; text-shadow: 1px 1px 2px rgba(0,0,0,0.1); }

.dc-header {
    background: linear-gradient(135deg, #b91c1c 0%, #d84315 50%, #f97316 100%);
    color: white;
    padding: 20px 20px 14px;
    text-align: center;
}
.dc-header h2 { font-size: 1.5em; margin-bottom: 6px; }
.dc-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.dc-badge { background: rgba(255,255,255,0.18); padding: 5px 12px; border-radius: 14px; font-size: 0.8em; font-weight: 600; border: 1px solid rgba(255,255,255,0.3); }

/* ---- PANCHANG CARDS ROW ---- */
.panchang-cards-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}
@media (max-width: 640px) { .panchang-cards-row { grid-template-columns: 1fr; } }
.panchang-card-box { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.07); border: 1px solid var(--border); }
.panchang-card-header { background: linear-gradient(135deg, #ea580c 0%, #f97316 100%); color: white; padding: 10px 16px; font-weight: 700; font-size: 1em; display: flex; align-items: center; gap: 8px; }
.panchang-card-header.warning { background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%); }
.panchang-card-header.success { background: linear-gradient(135deg, #15803d 0%, #22c55e 100%); }
.panchang-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px dotted var(--border); font-size: 0.9em; }
.panchang-row:last-child { border-bottom: none; }
.panchang-row-label { color: #92400e; font-weight: 600; }
.panchang-row-value { color: var(--red-mid); font-weight: 700; text-align: right; }
.panchang-row-value span { display: block; font-size: 0.8em; color: var(--text-muted); font-weight: 400; }

/* ---- PANCHA ANGA GRID ---- */
.pancha-anga-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 20px; }
@media (max-width: 900px) { .pancha-anga-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .pancha-anga-grid { grid-template-columns: repeat(2, 1fr); } }
.pancha-anga-item { background: var(--card-bg); border-radius: 10px; padding: 12px; text-align: center; border: 1px solid #fecaca; min-height: 110px; display: flex; flex-direction: column; }
.pancha-anga-item.highlight { background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 100%); border-color: #f97316; border-width: 2px; }
.pancha-anga-label { font-size: 10px; color: var(--red-mid); text-transform: uppercase; margin-bottom: 4px; font-weight: 700; letter-spacing: 0.5px; }
.pancha-anga-value { font-size: 14px; font-weight: 700; color: #92400e; line-height: 1.4; flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* ---- SECTION HEADING ---- */
.section-title { display: flex; align-items: center; gap: 10px; color: var(--red-mid); font-size: 1.1em; font-weight: 700; margin: 24px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #fde68a; }
.section-title:first-child { margin-top: 0; }
.section-icon { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; background: #fef3c7; border-radius: 7px; font-size: 14px; }

/* ---- TIMING GRID ---- */
.timing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.timing-item { background: var(--card-bg); padding: 14px 18px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border); }
.timing-item.bad { background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%); border-left: 4px solid #ef4444; }
.timing-item.good { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-left: 4px solid #22c55e; }
.timing-label { color: #92400e; font-weight: 600; font-size: 0.9em; }
.timing-value { font-weight: 700; color: var(--red-mid); font-size: 0.95em; text-align: right; }

/* ---- NAV BUTTONS ---- */
.tc-page-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0 10px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border);
}
.tc-page-nav a {
    background: linear-gradient(135deg, #b91c1c 0%, #E65100 100%);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}
.tc-page-nav a:hover { opacity: 0.85; }
.tc-page-nav a.secondary {
    background: white;
    color: var(--orange-deep);
    border: 1.5px solid var(--border);
}
.tc-page-nav a.secondary:hover { background: var(--orange-light); }

/* ---- FAQ SECTION ---- */
.faq-section { margin: 28px 0; }
.faq-section h2 { font-size: 1.1em; color: var(--red-mid); margin-bottom: 14px; font-weight: 700; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.faq-q { background: var(--card-bg); padding: 14px 18px; font-weight: 600; color: #374151; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 1.2em; color: var(--orange-deep); font-weight: 700; }
.faq-a { padding: 12px 18px 14px; background: white; color: var(--text-muted); font-size: 0.9em; line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q::after { content: '−'; }

/* ---- MONTHLY GRID ---- */
.monthly-grid-wrapper { overflow-x: auto; margin-bottom: 24px; }
.monthly-grid { width: 100%; border-collapse: collapse; min-width: 560px; }
.monthly-grid th { background: linear-gradient(135deg, #b91c1c 0%, #E65100 100%); color: white; padding: 10px 8px; text-align: center; font-size: 0.85em; font-weight: 700; }
.monthly-grid td { vertical-align: top; padding: 6px; border: 1px solid #fde8cc; min-height: 80px; background: white; font-size: 0.82em; }
.monthly-grid td.today { background: #fff7ed; border: 2px solid #f97316; }
.monthly-grid td.empty { background: #fafafa; }
.mc-day-num { font-size: 1.1em; font-weight: 800; color: var(--red-dark); margin-bottom: 2px; }
.mc-day-num a { color: var(--red-dark); text-decoration: none; }
.mc-day-num a:hover { text-decoration: underline; }
.mc-tithi { font-size: 0.78em; color: #92400e; font-weight: 600; line-height: 1.3; }
.mc-nak { font-size: 0.75em; color: #1d4ed8; font-weight: 500; line-height: 1.3; }
.mc-festival { font-size: 0.72em; color: #15803d; font-weight: 700; line-height: 1.3; margin-top: 2px; }
.mc-sunday { background: #fff5f5 !important; }
.mc-weekend-label { color: #dc2626 !important; }

/* ---- TODAY INTENT PAGE ---- */
.today-intent-page { }
.intent-hero {
    background: linear-gradient(135deg, #b91c1c 0%, #d84315 50%, #E65100 100%);
    color: white;
    padding: 24px 24px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}
.intent-hero h1 { font-size: 1.5em; margin-bottom: 6px; }
.intent-hero .intent-date { font-size: 1em; opacity: 0.85; }
.intent-timing-box {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}
.intent-timing-header {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 1.05em;
}
.intent-timing-body { padding: 16px 18px; }
.intent-timing-value { font-size: 2em; font-weight: 900; color: var(--red-dark); text-align: center; padding: 10px 0; font-family: 'Arial Black', Impact, sans-serif; }
.intent-timing-note { font-size: 0.85em; color: var(--text-muted); text-align: center; margin-top: 4px; }
.intent-weekday-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.intent-weekday-table th { background: var(--card-bg); padding: 8px 10px; text-align: left; font-size: 0.82em; color: var(--red-mid); font-weight: 700; border-bottom: 2px solid var(--border); }
.intent-weekday-table td { padding: 8px 10px; font-size: 0.88em; border-bottom: 1px dotted var(--border); }
.intent-weekday-table tr.today-row td { background: #fff7ed; font-weight: 700; color: var(--orange-deep); }

/* ---- ERROR BOX ---- */
.error-box { background: #fef2f2; border: 2px solid #fecaca; padding: 24px; border-radius: 12px; text-align: center; color: #dc2626; }

/* ---- FOOTER ---- */
.tc-footer { background: #7B1C1C; color: #fecaca; padding: 36px 20px 20px; margin-top: 40px; }
.tc-footer-inner { max-width: 1100px; margin: 0 auto; }
.tc-footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-bottom: 28px; }
@media (max-width: 1000px) { .tc-footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .tc-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .tc-footer-grid { grid-template-columns: 1fr; } }
.tc-footer-col h3 { color: #fde68a; font-size: 0.9em; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.tc-footer-col ul { list-style: none; }
.tc-footer-col ul li { margin-bottom: 5px; }
.tc-footer-col ul li a { color: #fecaca; font-size: 0.85em; text-decoration: none; transition: color 0.2s; }
.tc-footer-col ul li a:hover { color: #fde68a; }
.tc-footer-desc p { font-size: 0.82em; line-height: 1.6; color: rgba(254,202,202,0.8); margin-top: 10px; }
.tc-footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 16px; text-align: center; }
.tc-footer-bottom p { font-size: 0.8em; color: rgba(254,202,202,0.7); }

/* ---- BREADCRUMB ---- */
.tc-breadcrumb { font-size: 0.82em; color: var(--text-muted); margin-bottom: 14px; }
.tc-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.tc-breadcrumb a:hover { color: var(--orange-deep); }
.tc-breadcrumb span { margin: 0 6px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .tc-logo-ta { font-size: 0.95em; }
    .seo-content-block h1 { font-size: 1.15em; }
}
@media (max-width: 480px) {
    .intent-timing-value { font-size: 1.5em; }
    .panchang-cards-row { grid-template-columns: 1fr; }
}

/* ========================================================
   OBSERVANCE CLUSTER PAGES (Phase 2)
   ======================================================== */

/* Hero */
.obs-hero { background: var(--white); border-radius: var(--radius); padding: 28px 24px 20px; margin-bottom: 20px; box-shadow: var(--shadow-sm); text-align: center; }
.obs-hero-icon { font-size: 2.5em; line-height: 1; margin-bottom: 8px; }
.obs-hero-title { font-size: 1.55em; font-weight: 700; color: var(--text-dark); line-height: 1.25; margin: 0 0 6px; }
.obs-hero-ta { display: block; font-size: 0.6em; font-weight: 500; color: var(--text-muted); margin-top: 4px; }
.obs-hero-tithi { font-size: 0.88em; color: var(--text-muted); margin: 0; }

/* Year tabs */
.obs-year-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.obs-year-tab { background: var(--white); border: 1px solid var(--border); color: var(--text-muted); text-decoration: none; padding: 6px 16px; border-radius: 20px; font-size: 0.85em; transition: all 0.2s; }
.obs-year-tab:hover { border-color: var(--orange-deep); color: var(--orange-deep); }
.obs-year-tab.active { background: var(--orange-deep); border-color: var(--orange-deep); color: var(--white); }

/* Sections */
.obs-section { background: var(--white); border-radius: var(--radius); padding: 20px 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.obs-section-title { font-size: 1.05em; font-weight: 700; color: var(--text-dark); margin: 0 0 14px; border-bottom: 2px solid var(--orange-light); padding-bottom: 8px; }

/* Date table */
.obs-table-wrap { overflow-x: auto; }
.obs-table { width: 100%; border-collapse: collapse; font-size: 0.88em; }
.obs-table th { background: var(--orange-light); color: var(--orange-deep); font-weight: 600; padding: 9px 12px; text-align: left; border-bottom: 2px solid var(--orange-deep); }
.obs-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.obs-table tr:last-child td { border-bottom: none; }
.obs-table tr:hover td { background: #fff7ed; }
.obs-table a { color: var(--orange-deep); text-decoration: none; font-weight: 500; }
.obs-table a:hover { text-decoration: underline; }

/* Month grid */
.obs-month-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.obs-month-card { display: flex; flex-direction: column; background: #fff7ed; border: 1px solid var(--orange-light); border-radius: 8px; padding: 12px 10px; text-decoration: none; transition: all 0.2s; }
.obs-month-card:hover { border-color: var(--orange-deep); box-shadow: 0 2px 8px rgba(234,88,12,0.12); transform: translateY(-1px); }
.obs-month-card--none { opacity: 0.6; }
.obs-month-name { font-weight: 600; color: var(--text-dark); font-size: 0.88em; }
.obs-month-date { font-size: 0.82em; margin-top: 2px; font-weight: 500; }
.obs-month-none { color: var(--text-muted) !important; font-style: italic; }
.obs-month-cta { font-size: 0.78em; color: var(--orange-deep); margin-top: 4px; }

/* Significance */
.obs-significance p { line-height: 1.7; color: var(--text-secondary); font-size: 0.9em; margin-bottom: 12px; }
.obs-significance p:last-child { margin-bottom: 0; }

/* Activities */
.obs-activity-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.obs-activity-list li { background: #fff7ed; border-left: 3px solid var(--orange-deep); padding: 8px 12px; border-radius: 0 6px 6px 0; font-size: 0.88em; color: var(--text-secondary); }

/* Year links */
.obs-year-links { display: flex; gap: 10px; flex-wrap: wrap; }
.obs-year-link { background: var(--white); border: 1px solid var(--border); color: var(--text-secondary); text-decoration: none; padding: 8px 18px; border-radius: 8px; font-size: 0.88em; transition: all 0.2s; }
.obs-year-link:hover { border-color: var(--orange-deep); color: var(--orange-deep); }
.obs-year-link.active { background: var(--orange-deep); border-color: var(--orange-deep); color: var(--white); }

/* Other observances grid */
.obs-other-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.obs-other-card { display: flex; flex-direction: column; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 14px 10px; text-decoration: none; transition: all 0.2s; text-align: center; }
.obs-other-card:hover { border-color: var(--orange-deep); box-shadow: 0 2px 8px rgba(234,88,12,0.1); }
.obs-other-icon { font-size: 1.6em; }
.obs-other-name { font-size: 0.85em; font-weight: 600; color: var(--text-dark); margin-top: 4px; }
.obs-other-ta { font-size: 0.78em; color: var(--text-muted); }

/* FAQ */
.obs-faq .faq-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.obs-faq .faq-item:last-child { border-bottom: none; }
.obs-faq .faq-q { font-size: 0.92em; font-weight: 600; color: var(--text-dark); margin: 0 0 6px; }
.obs-faq .faq-a { font-size: 0.86em; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* No-date box */
.obs-no-date { text-align: center; padding: 30px 20px; color: var(--text-muted); }
.obs-no-date a { color: var(--orange-deep); }

/* Date detail card (month page) */
.obs-date-card { border-left: 4px solid var(--orange-deep); }
.obs-date-title { font-size: 1.1em; font-weight: 700; color: var(--text-dark); margin: 0 0 12px; }
.obs-date-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.obs-meta-item { background: #fff7ed; border: 1px solid var(--orange-light); padding: 5px 12px; border-radius: 20px; font-size: 0.84em; color: var(--text-secondary); }

/* Panchanga table inside month page */
.obs-panchanga h3 { font-size: 0.9em; font-weight: 600; color: var(--text-muted); margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.obs-panchanga-table { width: 100%; border-collapse: collapse; font-size: 0.87em; margin-bottom: 16px; }
.obs-panchanga-table th { text-align: left; padding: 7px 12px; background: var(--orange-light); color: var(--orange-deep); font-weight: 600; width: 140px; border-bottom: 1px solid var(--border); }
.obs-panchanga-table td { padding: 7px 12px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }

/* Button */
.obs-btn { display: inline-block; background: var(--orange-deep); color: var(--white); text-decoration: none; padding: 10px 20px; border-radius: 8px; font-size: 0.88em; font-weight: 600; transition: background 0.2s; }
.obs-btn:hover { background: var(--orange-600, #ea580c); }

/* Month navigation */
.obs-month-nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.obs-nav-btn { background: var(--white); border: 1px solid var(--border); color: var(--text-secondary); text-decoration: none; padding: 8px 16px; border-radius: 8px; font-size: 0.85em; transition: all 0.2s; }
.obs-nav-btn:hover { border-color: var(--orange-deep); color: var(--orange-deep); }

/* Daily page contextual observance block */
.obs-daily-links { background: #fff7ed; border: 1px solid var(--orange-light); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.obs-daily-links h3 { font-size: 0.9em; font-weight: 700; color: var(--text-dark); margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.obs-daily-links-grid { display: flex; flex-direction: column; gap: 10px; }
.obs-daily-card { display: flex; align-items: flex-start; gap: 12px; background: var(--white); border-radius: 8px; padding: 12px 14px; }
.obs-daily-icon { font-size: 1.5em; flex-shrink: 0; }
.obs-daily-info { display: flex; flex-direction: column; flex: 1; }
.obs-daily-info strong { font-size: 0.9em; color: var(--text-dark); }
.obs-daily-ta { font-size: 0.8em; color: var(--text-muted); }
.obs-daily-cta-links { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.obs-daily-cta-links a { font-size: 0.82em; color: var(--orange-deep); text-decoration: none; }
.obs-daily-cta-links a:hover { text-decoration: underline; }

/* Daily link button */
.obs-daily-link { margin-top: 12px; }

/* Responsive */
@media (max-width: 768px) {
    .obs-month-grid { grid-template-columns: repeat(3, 1fr); }
    .obs-other-grid { grid-template-columns: repeat(2, 1fr); }
    .obs-activity-list { grid-template-columns: 1fr; }
    .obs-month-nav { justify-content: center; }
}
@media (max-width: 480px) {
    .obs-month-grid { grid-template-columns: repeat(2, 1fr); }
    .obs-table { font-size: 0.78em; }
    .obs-table th, .obs-table td { padding: 6px 8px; }
    .obs-hero-title { font-size: 1.2em; }
}
