/* ==========================================================================
   ODIACALENDAR.COM - HOMEPAGE SPECIFIC STYLESHEET
   File: /mycss/home.style.css
   ========================================================================== */

/* Universal Heading & Link Capitalization */
h1, h2, h3, h4,
.sec-banner-title,
.hero-cal-chip,
.panjika-month-chip,
.archive-year-btn,
.hub-view-btn,
.blog-card-h3,
.pg-btn {
    text-transform: uppercase !important;
    letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   THE UNIFIED CONTAINER: OUTER BORDER + FULL-WIDTH COLORED HEADER
   -------------------------------------------------------------------------- */
.pro-section-card {
    background: #ffffff;
    border: 1.5px solid var(--border-color, #cbd5e1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
    width: 100%;
}

/* Full Bleed Section Header */
.sec-banner-header {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
}

.sec-banner-title {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.35;
}

.sec-banner-title a {
    color: #0f172a;
    text-decoration: underline;
    text-decoration-color: #93c5fd;
}

.sec-banner-subtitle-or {
    font-family: 'Noto Sans Oriya', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-primary, #b84a0b);
}

@media (min-width: 768px) {
    .sec-banner-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 14px 22px;
    }
}

.pro-card-content {
    padding: 18px;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1ST SECTION: AD LEFT + CONTENT RIGHT (SIDE-BY-SIDE INSIDE CARD)
   -------------------------------------------------------------------------- */
.hero-unified-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.hero-ad-col {
    width: 100%;
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-ad-slot-box {
    width: 300px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
}

.hero-content-col {
    width: 100%;
    flex: 1 1 auto;
}

.hero-sub-p {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 14px;
}

.hero-cal-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
}

.hero-cal-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    color: var(--link-color, #0f4c81) !important;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: #93c5fd;
    min-height: 44px;
    box-sizing: border-box;
}

.hero-cal-chip:hover {
    background: var(--brand-subtle, #fae8d4);
    border-color: var(--brand-primary, #b84a0b);
}

@media (min-width: 480px) {
    .hero-cal-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .hero-unified-grid {
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
    }
    .hero-ad-col {
        width: 300px;
    }
}

/* --------------------------------------------------------------------------
   CANONICAL CALENDARS (320x180 IMAGE & 2-LINE MONTH BUTTONS)
   -------------------------------------------------------------------------- */
.panji-block-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.panji-thumb-wrap {
    width: 100%;
    max-width: 320px;
    text-align: center;
    flex-shrink: 0;
}

.panji-cover-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    display: block;
    margin: 0 auto;
}

.panji-months-col {
    width: 100%;
    flex: 1 1 auto;
}

.panji-months-grid-3col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.panjika-month-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: var(--link-color, #0f4c81) !important;
    text-decoration: underline;
    text-decoration-color: #93c5fd;
    min-height: 52px;
    line-height: 1.3;
    box-sizing: border-box;
}

.panjika-month-chip:hover {
    background: #ffffff;
    border-color: var(--brand-primary, #b84a0b);
}

.panjika-month-chip.active-month {
    background: #8b3a2b !important;
    color: #ffffff !important;
    border-color: #5c2419 !important;
    text-decoration: none !important;
}

.panjika-month-chip.active-month .chip-line-sub,
.panjika-month-chip.active-month .chip-line-main {
    color: #ffffff !important;
}

.chip-line-main {
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    display: block;
}

.chip-line-sub {
    font-size: 13px;
    font-weight: 800;
    color: var(--link-color, #0f4c81);
    display: block;
    margin-top: 2px;
}

.panji-about-text {
    font-size: 15px;
    line-height: 1.65;
    background: #f8fafc;
    border-left: 4px solid var(--brand-primary, #b84a0b);
    border-radius: 0 8px 8px 0;
    padding: 12px 14px;
    margin-bottom: 14px;
    color: #1e293b;
}

.panji-archive-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px dashed #cbd5e1;
    padding-top: 12px;
}

.archive-label {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

.archive-year-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: var(--link-color, #0f4c81);
    text-decoration: none;
    min-height: 36px;
}

.archive-year-btn.active-year {
    background: #475569;
    color: #ffffff !important;
    border-color: #334155;
}

@media (min-width: 480px) {
    .panji-months-grid-3col {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 768px) {
    .panji-block-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }
    .panji-cover-img {
        width: 320px;
        height: 180px;
    }
}

/* --------------------------------------------------------------------------
   CALENDAR TABLE: CENTERED DATES & VIBRANT EVENT COLORS
   -------------------------------------------------------------------------- */
.calendar-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    box-sizing: border-box;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 680px;
}

.calendar-table th {
    background: #0f172a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 4px;
    text-align: center;
    border: 1px solid #334155;
    text-transform: uppercase;
}

.calendar-table th.sun {
    background: #991b1b;
}

.calendar-table td {
    border: 1px solid #cbd5e1;
    height: 110px;
    vertical-align: middle;
    text-align: center;
    padding: 4px;
    position: relative;
    box-sizing: border-box;
}

.calendar-table td.empty {
    background: #f8fafc;
}

.calendar-table td.is-today-cell {
    outline: 3px solid #059669 !important;
    outline-offset: -3px;
    background-color: #ecfdf5 !important;
}

.today-chip {
    position: absolute;
    top: 3px;
    right: 3px;
    background: #059669;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
}

/* Event Cell Background Colors */
.calendar-table td.bg-festivals { background: #ffedd5 !important; }
.calendar-table td.bg-ekadashi  { background: #dbeafe !important; }
.calendar-table td.bg-sankranti { background: #fef08a !important; }
.calendar-table td.bg-purnima   { background: #f3e8ff !important; }
.calendar-table td.bg-amavasya  { background: #e2e8f0 !important; }

.cal-cell-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    min-height: 94px;
    box-sizing: border-box;
}

.cal-event-top-en {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 1px 2px;
}

.cal-center-dates {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.cal-num-en {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
}

.cal-num-en.sun-color {
    color: #b91c1c;
}

.cal-num-or {
    font-family: 'Noto Sans Oriya', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #475569;
}

.cal-event-bottom-or {
    font-family: 'Noto Sans Oriya', sans-serif;
    font-size: 12px;
    font-weight: 700;
    width: 100%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 1px 2px;
}

.ev-theme-festivals { color: #9a3412; }
.ev-theme-ekadashi  { color: #1e40af; }
.ev-theme-sankranti { color: #854d0e; }
.ev-theme-purnima   { color: #6b21a8; }
.ev-theme-amavasya  { color: #1e293b; }

.legend-bar-pro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 800;
}

.legend-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.12);
    text-transform: uppercase;
}
.legend-chip.festivals { background: #ffedd5; color: #9a3412; }
.legend-chip.ekadashi  { background: #dbeafe; color: #1e40af; }
.legend-chip.sankranti { background: #fef08a; color: #854d0e; }
.legend-chip.purnima   { background: #f3e8ff; color: #6b21a8; }
.legend-chip.amavasya  { background: #e2e8f0; color: #1e293b; }

/* --------------------------------------------------------------------------
   UPCOMING OBSERVES & BLOG GRID
   -------------------------------------------------------------------------- */
.two-col-flat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.flat-event-list {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 14px;
}

.event-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #cbd5e1;
    gap: 10px;
}
.event-row:last-child { border-bottom: none; }
.event-name { font-size: 15.5px; font-weight: 800; color: #0f172a; }
.event-subname { font-size: 13.5px; font-weight: 500; color: #475569; margin-top: 2px; }
.event-badge {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .two-col-flat-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Blog Section */
.blog-home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (min-width: 680px) {
    .blog-home-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.blog-preview-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.blog-badge-tag {
    display: inline-block;
    align-self: flex-start;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.blog-card-h3 {
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 6px;
}

.blog-card-h3 a {
    color: var(--link-color, #0f4c81) !important;
    text-decoration: underline;
}

.blog-card-odia-sub {
    font-family: 'Noto Sans Oriya', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--brand-primary, #b84a0b);
    display: block;
    margin-bottom: 8px;
}

.blog-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 12px;
}

.blog-card-link-act {
    font-size: 13px;
    font-weight: 800;
    color: var(--link-color, #0f4c81);
    text-decoration: underline;
}

.blog-pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: var(--link-color, #0f4c81);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.pg-btn.active {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
}

.pg-btn.disabled {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
    pointer-events: none;
}
