/* ===================================================== */
/* Reset */
/* ===================================================== */

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

html,
body {
    height: 100%;
    background: #000;
    font-family: 'Inter', sans-serif;
    color: #2b1c10;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
    background: none;
    border: none;
    cursor: pointer;
}


/* ===================================================== */
/* Page */
/* ===================================================== */

.page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 16px;
    box-sizing: border-box;
}

.pageBody {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.pageBodyInner {
    width: fit-content;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 24px;
}

.mainColumn {
    position: relative;
}

.mainColumnInner {
    display: flex;
    flex-direction: column;
    transform-origin: top left;
}


/* ============================================== */
/* Top Banner */
/* ============================================== */

.topBanner {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 390px;
    max-width: 1164px;
    box-sizing: border-box;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: linear-gradient(135deg, #3b2415, #2a1a10);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menuToggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
}

.menuToggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #EDBE69;
    border-radius: 2px;
}

.brandLogo {
    width: 34px;
    height: 34px;
}

.brandName {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #EDBE69;
    letter-spacing: 1px;
}

.langToggle {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}

.langOption {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #D7AA65;
}

.langOption.active {
    background: #D7AA65;
    color: #2a1a10;
}


/* ============================================== */
/* Layer 7 : Left Panel */
/* ============================================== */

.leftPanel {
    position: relative;
    width: 240px;
    flex-shrink: 0;
    border-radius: 20px;
    background: url('../PageIMG/leftMenu.webp') bottom center / cover no-repeat;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.closeMenu {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(43, 28, 16, 0.15);
    color: #2b1c10;
    font-size: 0.9rem;
}

.menuList {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 16px;
}

.menuItem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3b2415;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.35);
}

.menuItem:hover {
    background: rgba(255, 255, 255, 0.6);
}

.menuItem.active {
    background: #3b2415;
    color: #EDBE69;
}

.menuIcon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.menuBackdrop {
    display: none;
}


/* ============================================== */
/* Layer 1 : Base Background */
/* ============================================== */

.heroBg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.heroBg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ============================================== */
/* Layer 2 : Zodiac Wheel */
/* ============================================== */

.heroWheel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100vh;
    width: 100vh;
    z-index: 1;
    pointer-events: none;
}

.heroWheel img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
}


/* ============================================== */
/* Layer 3 : Main Parchment */
/* ============================================== */

.parchment {
    position: relative;
    z-index: 2;
    width: clamp(390px, calc(100vw - 32px), 900px);
    margin: 0 auto;
}

.parchment .content {
    position: relative;
    box-sizing: border-box;
    border-radius: 20px;
    border-style: solid;
    border-image: url('../PageIMG/mainCard2.webp') 170 fill / 86px / 0 stretch;
    padding: 178px 34px 36px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.parchment .tl,
.parchment .t,
.parchment .tr,
.parchment .l,
.parchment .r,
.parchment .bl,
.parchment .b,
.parchment .br {
    display: none;
}


/* ============================================== */
/* Layer 6 : Schedule Parchment */
/* ============================================== */

.scheduleParchment {
    margin-top: 20px;
}

.scheduleContent {
    position: relative;
    box-sizing: border-box;
    min-height: 160px;
    border-radius: 20px;
    border-style: solid;
    border-width: 53px;
    border-image: url('../PageIMG/schCard.webp') 90 fill / 53px / 0 stretch;
    padding: 20px 34px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.scheduleImg {
    position: absolute;
    right: 16px;
    top: 8px;
    width: 45px;
    pointer-events: none;
}

.scheduleImg img {
    width: 100%;
    height: auto;
    display: block;
}

.scheduleTextBox {
    margin-right: 69px;
    min-height: 45px;
}


/* ============================================== */
/* Layer 4 : Mandala */
/* ============================================== */

.cardMandala {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 28.89%;
    z-index: 3;
    pointer-events: none;
}

.cardMandala img {
    width: 100%;
    height: auto;
}


/* ===================================================== */
/* Header */
/* ===================================================== */

.pageHeader {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 73.33%;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.navButton {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.prevButton {
    margin-left: 70px;
}

.nextButton {
    margin-right: 70px;
}

.navButton img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.headerCenter {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dateBlock {
    cursor: pointer;
    user-select: none;
    background: rgba(253, 246, 227, 0.55);
    border-radius: 14px;
    padding: 8px 20px;
}

.dateBlock h1,
.dateBlock p {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dateBlock.dateFading h1,
.dateBlock.dateFading p {
    opacity: 0;
    transform: translateY(4px);
}

.dateBlock h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.dateBlock p {
    font-size: 1.2rem;
    opacity: 0.7;
    margin-top: 2px;
}


/* ===================================================== */
/* Calendar Popup */
/* ===================================================== */

.calendarPopup {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    z-index: 10;
    background: #fdf6e3;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform-origin: top center;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.calendarPopup.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.calendarHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.calendarNav {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    color: #2b1c10;
}

.calendarNav:hover {
    background: rgba(43, 28, 16, 0.08);
}

.calendarWeekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-size: 0.7rem;
    opacity: 0.6;
    margin-bottom: 4px;
}

.calendarGrid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 4px;
}

.calendarDay {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
}

.calendarDay:hover {
    background: rgba(215, 170, 101, 0.35);
}

.calendarDay.muted {
    opacity: 0.3;
}

.calendarDay.selected {
    background: #D7AA65;
    color: #2a1a10;
    font-weight: 700;
}

.sectionTitle {
    position: absolute;
    top: 136px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 5;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}



/* ===================================================== */
/* Hero Cards */
/* ===================================================== */

.heroCards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 267px));
    justify-content: center;
    gap: 12px;
}

.infoCard {
    aspect-ratio: 855 / 265;
    background: url('../PageIMG/infoCard.webp') center / cover no-repeat;
    display: flex;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(43, 28, 16, 0.2);
}

.cardImage {
    width: 50px;
    height: 100%;
    flex-shrink: 0;
}

.cardContent {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px;
}

.cardTextTop {
    text-align: right;
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.8;
    margin-right: 6px;
    margin-top: 4px;
}

.cardTextBottom {
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}


/* ===================================================== */
/* Sun Timings */
/* ===================================================== */

.cardDivider {
    border: none;
    border-top: 1px solid #D7AA65;
    margin: 20px 0;
}

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

.timingsLeft {
    flex: 1 1 240px;
    min-width: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.timingsRight {
    flex: 2 1 240px;
    min-width: 240px;
}

.timingItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(253, 246, 227, 0.55);
    border-radius: 12px;
    padding: 10px 18px;
}

.timingIcon {
    width: 28px;
    height: 28px;
}

.timingIcon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.timingTime {
    font-size: 0.8rem;
}

.scheduleList {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scheduleRow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(43, 28, 16, 0.25);
}

.scheduleRow:nth-child(odd) {
    background: linear-gradient(135deg, #F2EAE0, #E6D9C8);
}

.scheduleRow:nth-child(even) {
    background: linear-gradient(135deg, #FBEEC4, #F5DFA0);
}

.scheduleSwatch {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
}

.scheduleLines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lineTitle,
.lineItem {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: rgba(59, 36, 21, 0.55);
}

.lineTitle {
    width: 30%;
}

.lineItem {
    width: 60%;
    margin-left: 10px;
    position: relative;
    background: rgba(59, 36, 21, 0.35);
}

.lineItem::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(59, 36, 21, 0.55);
}


/* ===================================================== */
/* Responsive */
/* ===================================================== */

@media (max-width: 900px) {

    .menuToggle {
        display: flex;
    }

    .leftPanel {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 240px;
        z-index: 50;
        border-radius: 0 20px 20px 0;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .leftPanel.menuOpen {
        transform: translateX(0);
    }

    .closeMenu {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .menuBackdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 40;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .menuBackdrop.open {
        opacity: 1;
        pointer-events: auto;
    }

    .parchment .content {
        border-width: 50px;
        border-image-width: 50px;
    }

    .scheduleContent {
        border-width: 32px;
        border-image-width: 32px;
    }

    .prevButton {
        margin-left: 20px;
    }

    .nextButton {
        margin-right: 20px;
    }

    .topBanner {
        padding: 12px 16px;
    }

    .brandName {
        font-size: 1.1rem;
    }
}

@media (max-width: 460px) {

    .parchment .content {
        border-width: 32px;
        border-image-width: 32px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .scheduleContent {
        border-width: 22px;
        border-image-width: 22px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .sectionTitle {
        font-size: 1.1rem;
    }

    .dateBlock h1 {
        font-size: 1.15rem;
    }

    .dateBlock p {
        font-size: 1rem;
    }

    .cardTextBottom {
        font-size: 0.85rem;
    }

    .cardTextTop {
        font-size: 0.7rem;
    }
}