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

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, #fffde8 0%, #fff6b8 42%, #f5ea8a 100%);
    color: #fff4c2;
}

/* ============================= */
/* HEADER - DESKTOP (SINGLE LINE FIXED) */
/* ============================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(180deg, #7a0018 0%, #5a0012 100%);
    box-shadow: 0 2px 12px rgba(90,0,18,0.22);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
    flex-wrap: nowrap;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 55px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 32px;
    color: #ffd95a;
}

.logo span {
    font-size: 16px;
    color: #fff2b8;
}

/* MENU - DESKTOP (NO WRAPPING) */
.menu {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: visible;
}

.menu a {
    margin: 0;
    text-decoration: none;
    color: #fff4c2;
    font-weight: 500;
    padding: 8px 10px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 6px;
    transition: all 0.2s;
}

.menu a:hover,
.menu a.active {
    background: rgba(255, 217, 90, 0.18);
    color: #ffd95a;
}

/* ============================= */
/* ✅ NEW ACCOUNT BUTTON - COMBINED "My Account ▼" */
/* ============================= */
.account-menu {
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
}

.account-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    color: #fff4c2;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 16px;
    line-height: 1.2;
}

.account-button:hover {
    background: rgba(255, 217, 90, 0.18);
    color: #9a7a00;
}

.account-button:focus-visible {
    outline: 2px solid #ffd95a;
    outline-offset: 2px;
}

.account-caret {
    font-size: 12px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.account-button[aria-expanded="true"] .account-caret {
    transform: rotate(180deg);
}

/* DESKTOP ACCOUNT DROPDOWN */
.account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: linear-gradient(180deg, #7a0018 0%, #5a0012 100%);
    border: 1px solid rgba(122, 0, 24, 0.18);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(90, 0, 18, 0.22);
    display: none;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
}

.account-dropdown.show {
    display: flex;
}

.account-dropdown a {
    display: block;
    width: 100%;
    padding: 14px 18px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    border-bottom: 1px solid rgba(122, 0, 24, 0.12);
    transition: all 0.2s;
    white-space: nowrap;
}

.account-dropdown a:hover {
    background: #fff8cf;
    color: #9a7a00;
    padding-left: 22px;
}

.account-dropdown a:last-child {
    border-bottom: none;
}

.user-id {
    font-weight: 700;
    color: #7a0018 !important;
    background: #fff8f2 !important;
    pointer-events: none;
}

/* ============================= */
/* MOBILE MENU TOGGLE */
/* ============================= */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
    padding: 8px;
    border-radius: 6px;
    background: none;
    border: none;
}

/* ============================= */
/* SIDEBAR - DESKTOP HIDDEN */
/* ============================= */
.sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100%;
    background: linear-gradient(to bottom, #7a0018 0%, #4b000f 100%);
    padding: 25px;
    transition: 0.4s ease;
    z-index: 2000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar.active {
    right: 0;
}

.sidebar a {
    display: block;
    margin: 18px 0;
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 16px;
    line-height: 1.3;
}

.sidebar a:hover {
    background: rgba(255,255,255,0.1);
}

.close-btn {
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

/* OVERLAY */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 1500;
}

.sidebar-overlay.active {
    display: block;
}

/* ============================= */
/* MOBILE ACCOUNT MENU (SIDEBAR) - UPDATED */
/* ============================= */
.mobile-account-menu {
    width: 100%;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
}

.mobile-account-top {
    margin-bottom: 12px;
}

.mobile-account-toggle {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    padding: 12px;
    text-align: left;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-account-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-account-dropdown {
    display: none;
    flex-direction: column;
    padding-left: 12px;
    gap: 8px;
}

.mobile-account-dropdown.show {
    display: flex;
}

.mobile-account-dropdown a {
    color: #fff;
    padding: 12px 0 12px 16px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.mobile-account-dropdown a:hover {
    border-left-color: #ffd95a;
    background: rgba(255,255,255,0.05);
}

/* ============================= */
/* RESPONSIVE - MOBILE COMPACT SIDEBAR */
/* ============================= */
@media (max-width: 768px) {
    /* HIDE DESKTOP MENU */
    .menu {
        display: none;
    }

    .account-menu {
        display: none;
    }

    /* SHOW MOBILE TOGGLE */
    .menu-toggle {
        display: block;
    }

    /* COMPACT LOGO */
    .logo img {
        height: 40px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .logo span {
        font-size: 14px;
        white-space: nowrap;
    }

    /* ✅ MOBILE SIDEBAR - COMPACT SPACING */
    .sidebar {
        width: 250px;
        padding: 18px 18px 20px;
        right: -270px;
    }

    .sidebar a {
        margin: 8px 0;      /* ✅ REDUCED from 18px */
        padding: 8px 10px;  /* ✅ REDUCED from 12px */
        font-size: 15px;    /* ✅ SLIGHTLY SMALLER */
        line-height: 1.25;  /* ✅ TIGHTER LINE HEIGHT */
    }

    .close-btn {
        font-size: 22px;
        right: 16px;
        top: 14px;
    }

    /* COMPACT MOBILE ACCOUNT MENU */
    .mobile-account-menu {
        margin-top: 12px;
        padding-top: 12px;
    }

    .mobile-account-top {
        margin-bottom: 8px;
    }

    .mobile-account-toggle {
        padding: 10px 12px;
        font-size: 15px;
        line-height: 1.25;
    }

    .mobile-account-dropdown {
        padding-left: 6px;
        gap: 6px;
    }

    .mobile-account-dropdown a {
        padding: 8px 10px;
        font-size: 15px;
        line-height: 1.2;
        margin: 0;
    }

    /* OTHER MOBILE ADJUSTMENTS */
    .hero {
        padding: 60px 15px;
    }
}

/* DESKTOP ONLY */
@media (min-width: 769px) {
    .sidebar,
    .sidebar-overlay,
    .menu-toggle {
        display: none !important;
    }

    .menu {
        display: flex !important;
    }

    .mobile-account-menu {
        display: none !important;
    }
}

/* ============================= */
/* HERO */
/* ============================= */
.hero {
    text-align: center;
    padding: 100px 20px;
}

/* ============================= */
/* FORM */
/* ============================= */
.form-box {
    background: #fffbe0;
    padding: 25px;
    border-radius: 12px;
}

.row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.input-box {
    flex: 1;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(122, 0, 24, 0.18);
    border-radius: 8px;
}

/* ============================= */
/* SWADHYAYA */
/* ============================= */
/* ============================= */
/* SWADHYAYA */
/* ============================= */

.swadhyaya-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
}

/* TITLE */
.swadhyaya-title {
    font-size: 36px;
    color: #800000; /* MAROON */
    margin-bottom: 25px;
}

/* TABS */
.swadhyaya-tabs {
    margin-bottom: 30px;
}

.swadhyaya-tabs a {
    margin: 0 12px;
    font-size: 16px;
    text-decoration: none;
    color: #800000; /* MAROON */
    font-weight: 500;
}

.swadhyaya-tabs a.active {
    border-bottom: 2px solid #ffd700; /* GOLD */
    color: #000;
}

/* CARD */
.swadhyaya-card {
    max-width: 700px;
    margin: auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(122, 0, 24, 0.10);
    text-align: left;
    border: 2px solid #ffd700; /* GOLD FRAME */
    color: #222; /* MAIN TEXT */
}

/* TEXT CONTENT */
.swadhyaya-card p {
    color: #333;
    line-height: 1.7;
    font-size: 16px;
}

/* HEADINGS */
.section-title,
.content-title {
    text-align: center;
    color: #800000;
    margin-bottom: 20px;
}

/* LIST */
.swadhyaya-list {
    padding: 10px;
}

.list-item {
    margin-bottom: 12px;
}

.list-item a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

.list-item a:hover {
    color: #b8860b; /* GOLD */
}

/* TEXT BLOCK */
.text-content {
    line-height: 1.7;
    font-size: 16px;
    color: #222;
}

/* BACK BUTTON */
.back-btn {
    display: inline-block;
    margin-top: 20px;
    color: #800000;
    text-decoration: none;
    font-weight: 500;
}

.back-btn:hover {
    color: #b8860b;
}

/* ============================= */
/* MOBILE FIX */
/* ============================= */
@media (max-width: 768px) {

    .swadhyaya-container {
        text-align: left;
        padding: 15px;
    }

    .swadhyaya-title {
        font-size: 22px;
    }

    .swadhyaya-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .swadhyaya-tabs a {
        margin: 0;
        font-size: 14px;
    }

    .swadhyaya-card {
        padding: 15px;
    }

    .text-content {
        font-size: 15px;
        line-height: 1.6;
    }
}

.panchang-section{
    background:#ffffff; /* white for visibility */
    padding:40px;
    text-align:center;
    border-radius:12px;
    margin:40px 20px;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);
}

.panchang-section h2{
    color:#800000; /* maroon */
}

.panchang-section p{
    color:#000; /* 🔥 FORCE BLACK */
    font-weight:500;
}

.panchang-section b{
    color:#800000; /* labels in maroon */
}

.section-title,
.content-title {
    text-align: center;
    color: #7a0018;
    margin-bottom: 20px;
}
section h2 {
    color: #800000;
}

section p {
    color: #222;
    font-weight: 500;
}
.swadhyaya-list {
    padding: 10px;
}

.list-item {
    margin-bottom: 12px;
}

.list-item a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

.list-item a:hover {
    color: #9a7a00;
}

.text-content {
    line-height: 1.7;
    font-size: 16px;
}

.back-btn {
    display: inline-block;
    margin-top: 20px;
    color: #9a7a00;
    text-decoration: none;
}                                                               

/* ============================= */
/* WORSHIP PREMIUM CARDS */
/* ============================= */
.worship-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

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

.worship-box {
    background: #fffbe0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(122, 0, 24, 0.12);
    transition: 0.3s;
}

.worship-box:hover {
    transform: translateY(-5px);
}

.worship-box img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: top;
}

.worship-content {
    padding: 15px;
    text-align: center;
    background: linear-gradient(to bottom, #fffbe8 0%, #fff3bf 100%);
}

.worship-title {
    font-size: 16px;
    font-weight: bold;
    color: #5a0012;
    margin-bottom: 10px;
}

.worship-line {
    height: 1px;
    width: 60%;
    margin: 8px auto;
    background: #7a0018;
}

.worship-price {
    font-size: 16px;
    font-weight: bold;
    color: #5a0012;
}

.worship-date {
    font-size: 14px;
    color: #333;
}

/* Panchang */
.panchang-title {
    color: #8B0000;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.panchang-date {
    margin-top: 0;
    margin-bottom: 15px;
    color: #6a5510;
    font-weight: bold;
}

/* ============================= */
/* MOBILE FORM & OTHER */
/* ============================= */
@media (max-width: 768px) {
    .form-box {
        padding: 15px !important;
    }

    .row {
        display: block !important;
        margin-bottom: 10px !important;
    }

    .input-box {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    input, select, textarea {
        margin-bottom: 10px !important;
        padding: 10px !important;
    }

    .swadhyaya-container {
        text-align: left;
        padding: 15px;
    }

    .swadhyaya-title {
        font-size: 22px;
    }

    .swadhyaya-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .swadhyaya-tabs a {
        margin: 0;
        font-size: 14px;
    }

    .swadhyaya-card {
        padding: 15px;
    }

/* FULL PAGE HEIGHT */
html, body {
    height: 100%;
    margin: 0;
}

/* MAKE PAGE FLEX */
body {
    display: flex;
    flex-direction: column;
}

/* MAIN CONTENT SHOULD EXPAND */
.main-content {
    flex: 1;
}

/* FOOTER */
.footer {
    background: #800000;
    color: #fff;
    text-align: center;
    padding: 15px;
}

    /* 🔥 FORM SECTION HEADINGS */
.form-box h3,
.form-box label,
.form-box b,
.form-box .section-title {
    color: #800000 !important; /* MAROON */
    font-weight: 600;
}

/* 🔥 INPUT TEXT */
input, select, textarea {
    color: #222 !important; /* DARK TEXT */
    background: #ffffff;
}

/* 🔥 PLACEHOLDER FIX */
input::placeholder,
textarea::placeholder {
    color: #666 !important;
    opacity: 1;
}

/* 🔥 INPUT LABEL TEXT (like Boy Details, Girl Details) */
.form-box {
    color: #222;
}

/* 🔥 OPTIONAL – INPUT BORDER BETTER VISIBILITY */
input, select, textarea {
    border: 1px solid #ccc;
}

/* 🔥 BUTTON (KEEP CONSISTENT) */
button, .btn {
    background: #800000;
    color: #fff;
}
}