/* =================================================================
   JYOTISH CHILD THEME — Custom Stylesheet
   Version: 1.0.0
   
   This file is INDEPENDENT of Astra. Even if Astra is updated,
   this stylesheet remains intact in the child theme.
   ================================================================= */

/* -----------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ----------------------------------------------------------------- */
:root {
    /* Brand colours */
    --jy-primary:        #1a0533;
    --jy-primary-light:  #2d0857;
    --jy-secondary:      #2c0a6e;
    --jy-accent:         #FFD700;
    --jy-accent-hover:   #FFC300;
    --jy-accent-light:   rgba(255, 215, 0, 0.15);

    /* Text */
    --jy-text-light:     #ffffff;
    --jy-text-muted:     rgba(255, 255, 255, 0.70);
    --jy-text-dim:       rgba(255, 255, 255, 0.45);
    --jy-text-dark:      #1a0533;

    /* Surfaces */
    --jy-surface:        rgba(255, 255, 255, 0.06);
    --jy-surface-hover:  rgba(255, 255, 255, 0.12);
    --jy-border:         rgba(255, 215, 0, 0.20);
    --jy-border-strong:  rgba(255, 215, 0, 0.50);

    /* Layout */
    --jy-container:      1200px;
    --jy-header-h:       80px;
    --jy-radius:         12px;
    --jy-radius-lg:      20px;
    --jy-radius-circle:  50%;

    /* Shadows */
    --jy-shadow:         0 4px 24px rgba(0, 0, 0, 0.40);
    --jy-shadow-gold:    0 0 20px rgba(255, 215, 0, 0.25);
    --jy-shadow-card:    0 8px 32px rgba(0, 0, 0, 0.35);

    /* Typography */
    --jy-font:           'Poppins', 'Segoe UI', Arial, sans-serif;
    --jy-font-deva:      'Tiro Devanagari Sanskrit', serif;

    /* Transitions */
    --jy-transition:     0.3s ease;
    --jy-transition-slow:0.5s ease;

    /* Gradients */
    --jy-gradient-bg: linear-gradient(135deg, #0d0021 0%, #1a0533 35%, #0a1a4a 70%, #0d0021 100%);
    --jy-gradient-gold: linear-gradient(135deg, #FFD700, #FFA500);
    --jy-gradient-card: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

/* -----------------------------------------------------------------
   2. GLOBAL RESET & BASE
   ----------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--jy-primary);
    color: var(--jy-text-light);
    font-family: var(--jy-font);
    line-height: 1.6;
    overflow-x: hidden;
    /* Reset Astra's body padding */
    padding: 0 !important;
}

/* Override Astra page layout completely */
#page,
.ast-container,
.ast-header-break-point,
.entry-content,
.hfeed {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

a {
    color: var(--jy-accent);
    text-decoration: none;
    transition: color var(--jy-transition);
}
a:hover { color: var(--jy-accent-hover); }

img { max-width: 100%; height: auto; display: block; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* Utility container */
.jy-container {
    max-width: var(--jy-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Scroll offset for sticky header — anchor links land below the fixed nav */
#panchang-section,
#rashifal-section {
    scroll-margin-top: calc(var(--jy-header-h) + 16px);
}

/* -----------------------------------------------------------------
   3. HEADER
   ----------------------------------------------------------------- */
.jy-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 0, 33, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--jy-border);
    box-shadow: var(--jy-shadow);
    height: var(--jy-header-h);
}

.jy-header__inner {
    max-width: var(--jy-container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* --- Brand (LEFT) --- */
.jy-header__brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/* --- Navigation (RIGHT) --- */
.jy-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.jy-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.jy-nav__list li a {
    display: inline-block;
    padding: 8px 14px;
    color: var(--jy-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 8px;
    transition: background var(--jy-transition), color var(--jy-transition);
    white-space: nowrap;
    text-decoration: none;
}

.jy-nav__list li a:hover,
.jy-nav__list li.current-menu-item > a,
.jy-nav__list li.current_page_item > a {
    background: var(--jy-accent-light);
    color: var(--jy-accent);
}

/* Dropdown */
.jy-nav__list li {
    position: relative;
}
.jy-nav__list li ul {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #1a0533;
    border: 1px solid var(--jy-border);
    border-radius: var(--jy-radius);
    min-width: 180px;
    list-style: none;
    padding: 8px;
    box-shadow: var(--jy-shadow);
    z-index: 100;
}
.jy-nav__list li:hover > ul { display: block; }
.jy-nav__list li ul li a {
    display: block; padding: 8px 12px; border-radius: 6px;
    color: var(--jy-text-muted); font-size: 0.85rem;
}
.jy-nav__list li ul li a:hover { background: var(--jy-surface-hover); color: var(--jy-accent); }

/* Hamburger */
.jy-nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background var(--jy-transition);
}
.jy-nav__hamburger:hover { background: var(--jy-surface); }
.jy-nav__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--jy-accent);
    border-radius: 2px;
    transition: transform var(--jy-transition), opacity var(--jy-transition);
}
.jy-nav__hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.jy-nav__hamburger.is-active span:nth-child(2) { opacity: 0; }
.jy-nav__hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.jy-brand__link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.jy-brand__logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: var(--jy-radius-circle);
    border: 2px solid var(--jy-accent);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--jy-shadow-gold);
    background: var(--jy-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow var(--jy-transition), transform var(--jy-transition);
}
.jy-brand__logo-wrap:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.50);
    transform: scale(1.05);
}
.jy-brand__logo-wrap img,
.jy-brand__logo-wrap .custom-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--jy-radius-circle);
    display: block;
}
/* Ensure WP custom logo link doesn't add weird padding */
.jy-brand__logo-wrap .custom-logo-link {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
}
.jy-brand__logo {
    width: 100%; height: 100%; object-fit: contain;
    border-radius: var(--jy-radius-circle);
}

.jy-brand__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.jy-brand__name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--jy-accent);
    line-height: 1.2;
    letter-spacing: 0.02em;
    font-family: var(--jy-font-deva);
    white-space: nowrap;
}
.jy-brand__tagline {
    font-size: 0.72rem;
    color: var(--jy-text-muted);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* -----------------------------------------------------------------
   4. HERO SECTION
   ----------------------------------------------------------------- */
.jy-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jy-gradient-bg);
    overflow: hidden;
    text-align: center;
    padding: 80px 24px 120px;
}

/* Animated stars */
.jy-hero__stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.jy-star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: jy-twinkle 3s infinite alternate;
}
.jy-star:nth-child(odd)  { width: 2px; height: 2px; opacity: 0.6; }
.jy-star:nth-child(even) { width: 1px; height: 1px; opacity: 0.4; }
/* Scatter stars via nth-child pseudo-random positions */
.jy-star:nth-child(1)  { top: 5%;  left: 12%; animation-delay: 0.1s; }
.jy-star:nth-child(2)  { top: 15%; left: 80%; animation-delay: 0.4s; }
.jy-star:nth-child(3)  { top: 28%; left: 45%; animation-delay: 0.7s; }
.jy-star:nth-child(4)  { top: 8%;  left: 65%; animation-delay: 1.0s; }
.jy-star:nth-child(5)  { top: 40%; left: 22%; animation-delay: 1.3s; }
.jy-star:nth-child(6)  { top: 55%; left: 88%; animation-delay: 0.2s; }
.jy-star:nth-child(7)  { top: 70%; left: 33%; animation-delay: 0.9s; }
.jy-star:nth-child(8)  { top: 82%; left: 70%; animation-delay: 1.5s; }
.jy-star:nth-child(9)  { top: 18%; left: 5%;  animation-delay: 0.6s; }
.jy-star:nth-child(10) { top: 92%; left: 15%; animation-delay: 1.8s; }
.jy-star:nth-child(11) { top: 33%; left: 92%; animation-delay: 0.3s; }
.jy-star:nth-child(12) { top: 60%; left: 55%; animation-delay: 2.1s; }
.jy-star:nth-child(13) { top: 48%; left: 72%; animation-delay: 0.8s; }
.jy-star:nth-child(14) { top: 76%; left: 8%;  animation-delay: 1.4s; }
.jy-star:nth-child(15) { top: 22%; left: 38%; animation-delay: 2.4s; width: 3px; height: 3px; }
.jy-star:nth-child(16) { top: 88%; left: 50%; animation-delay: 0.5s; }
.jy-star:nth-child(17) { top: 11%; left: 28%; animation-delay: 1.7s; }
.jy-star:nth-child(18) { top: 65%; left: 18%; animation-delay: 2.0s; }
.jy-star:nth-child(19) { top: 38%; left: 60%; animation-delay: 0.15s; width: 2px; height: 2px; }
.jy-star:nth-child(20) { top: 95%; left: 42%; animation-delay: 1.2s; }
/* Extra stars for density */
.jy-star:nth-child(n+21) {
    top: calc(var(--i, 50) * 1%);
    left: calc(var(--j, 30) * 1%);
    animation-delay: calc(var(--d, 1) * 0.3s);
}
.jy-star:nth-child(21)  { top: 3%;  left: 52%; }
.jy-star:nth-child(22)  { top: 47%; left: 3%;  }
.jy-star:nth-child(23)  { top: 72%; left: 95%; }
.jy-star:nth-child(24)  { top: 25%; left: 77%; }
.jy-star:nth-child(25)  { top: 85%; left: 82%; }

@keyframes jy-twinkle {
    0%   { opacity: 0.2; transform: scale(0.8); }
    100% { opacity: 1;   transform: scale(1.3); }
}

/* Decorative large circles */
.jy-hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 0, 200, 0.15) 0%, transparent 70%);
    top: -150px; right: -150px;
    pointer-events: none;
}
.jy-hero::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 50, 150, 0.15) 0%, transparent 70%);
    bottom: -100px; left: -100px;
    pointer-events: none;
}

.jy-hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    animation: jy-fadeUp 0.9s ease both;
}

@keyframes jy-fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.jy-hero__badge {
    display: inline-block;
    background: var(--jy-accent-light);
    border: 1px solid var(--jy-border-strong);
    color: var(--jy-accent);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.jy-hero__title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--jy-text-light);
    margin-bottom: 20px;
    font-family: var(--jy-font-deva);
}
.jy-hero__title--accent {
    background: var(--jy-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jy-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--jy-text-muted);
    line-height: 1.8;
    margin-bottom: 36px;
}

.jy-hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Buttons */
.jy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--jy-transition);
    white-space: nowrap;
}
.jy-btn--primary {
    background: var(--jy-gradient-gold);
    color: #1a0533;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.35);
}
.jy-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.55);
    color: #1a0533;
}
.jy-btn--secondary {
    background: rgba(255,255,255,0.08);
    color: var(--jy-text-light);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
}
.jy-btn--secondary:hover {
    background: rgba(255,255,255,0.15);
    color: var(--jy-text-light);
    transform: translateY(-2px);
}
.jy-btn--outline {
    background: transparent;
    color: var(--jy-accent);
    border: 1.5px solid var(--jy-accent);
}
.jy-btn--outline:hover {
    background: var(--jy-accent);
    color: var(--jy-primary);
    transform: translateY(-2px);
}

/* Planet emojis row */
.jy-hero__planets {
    display: flex;
    gap: 16px;
    justify-content: center;
    font-size: 1.6rem;
    animation: jy-float 4s ease-in-out infinite alternate;
}
@keyframes jy-float {
    from { transform: translateY(0); }
    to   { transform: translateY(-6px); }
}
.jy-hero__planets span {
    cursor: default;
    transition: transform 0.2s;
    display: inline-block;
}
.jy-hero__planets span:hover { transform: scale(1.3); }

/* Scroll indicator */
.jy-hero__scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: jy-bounce 2s infinite;
}
.jy-scroll-arrow {
    display: block;
    width: 28px; height: 28px;
    border-right: 2px solid var(--jy-accent);
    border-bottom: 2px solid var(--jy-accent);
    transform: rotate(45deg);
    opacity: 0.6;
}
@keyframes jy-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* -----------------------------------------------------------------
   5. SECTION SHARED STYLES
   ----------------------------------------------------------------- */
.jy-section-header {
    text-align: center;
    margin-bottom: 48px;
}
.jy-section-badge {
    display: inline-block;
    font-size: 1.6rem;
    margin-bottom: 12px;
}
.jy-section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--jy-text-light);
    margin-bottom: 12px;
    font-family: var(--jy-font-deva);
}
.jy-section-title span { color: var(--jy-accent); }
.jy-section-subtitle {
    font-size: 1rem;
    color: var(--jy-text-muted);
}

/* -----------------------------------------------------------------
   6. PANCHANG SECTION
   ----------------------------------------------------------------- */
.jy-panchang {
    background: linear-gradient(180deg, #0d0021 0%, #130430 100%);
    padding: 80px 0;
}

/* Paksha banner */
.jy-panchang__paksha {
    text-align: center;
    margin-bottom: 32px;
}
.jy-paksha-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,215,0,0.05));
    border: 1px solid var(--jy-border-strong);
    color: var(--jy-accent);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Block sub-headings */
.jy-panchang__block-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--jy-accent);
    border-left: 3px solid var(--jy-accent);
    padding-left: 12px;
    margin: 32px 0 14px;
}

/* No data notice */
.jy-panchang__no-data {
    color: #f8a;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Grid variants */
.jy-panchang__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}
.jy-panchang__grid--4col {
    grid-template-columns: repeat(4, 1fr);
}
.jy-panchang__grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

.jy-panchang__card {
    background: var(--jy-gradient-card);
    border: 1px solid var(--jy-border);
    border-radius: var(--jy-radius);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    backdrop-filter: blur(8px);
    transition: border-color var(--jy-transition), transform var(--jy-transition), box-shadow var(--jy-transition);
}
.jy-panchang__card:hover {
    border-color: var(--jy-border-strong);
    transform: translateY(-2px);
    box-shadow: var(--jy-shadow-card);
}
.jy-panchang__card--featured {
    border-color: rgba(255, 215, 0, 0.40);
    background: linear-gradient(135deg, rgba(255,215,0,0.10), rgba(255,215,0,0.03));
}
.jy-panchang__card--warning {
    border-color: rgba(255, 100, 100, 0.35);
    background: linear-gradient(135deg, rgba(255,100,100,0.08), transparent);
}
.jy-panchang__card--auspicious {
    border-color: rgba(100, 220, 100, 0.35);
    background: linear-gradient(135deg, rgba(100,220,100,0.08), transparent);
}

.jy-panchang__icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}
.jy-panchang__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.jy-panchang__label {
    font-size: 0.70rem;
    color: var(--jy-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
}
.jy-panchang__value {
    font-size: 0.92rem;
    color: var(--jy-text-light);
    font-weight: 600;
    line-height: 1.35;
}
.jy-panchang__meta {
    font-size: 0.72rem;
    color: var(--jy-text-dim);
}

/* Progress bar */
.jy-progress-bar {
    height: 5px;
    background: rgba(255,255,255,0.10);
    border-radius: 50px;
    overflow: hidden;
    margin-top: 6px;
}
.jy-progress-bar__fill {
    height: 100%;
    background: var(--jy-gradient-gold);
    border-radius: 50px;
    transition: width 1s ease;
}
.jy-progress-label {
    font-size: 0.68rem;
    color: var(--jy-text-dim);
}

/* Meta footer */
.jy-panchang__meta-footer {
    font-size: 0.72rem;
    color: var(--jy-text-dim);
    text-align: center;
    margin: 24px 0 16px;
    line-height: 1.8;
}

.jy-panchang__cta { text-align: center; margin-top: 16px; }

/* ── Graha Table ── */
.jy-graha__table-wrap {
    overflow-x: auto;
    margin: 0 0 8px;
    border-radius: var(--jy-radius);
    border: 1px solid var(--jy-border);
}
.jy-graha__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.jy-graha__table thead tr {
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,215,0,0.05));
}
.jy-graha__table th {
    padding: 12px 16px;
    text-align: left;
    color: var(--jy-accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: 1px solid var(--jy-border);
    white-space: nowrap;
}
.jy-graha__table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background var(--jy-transition);
}
.jy-graha__table tbody tr:last-child { border-bottom: none; }
.jy-graha__table tbody tr:hover { background: rgba(255,215,0,0.04); }
.jy-graha__table td {
    padding: 11px 16px;
    color: var(--jy-text-muted);
    vertical-align: middle;
}
.jy-graha__planet {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.jy-graha__symbol {
    font-size: 1.4rem;
    line-height: 1;
}
.jy-graha__name { display: flex; flex-direction: column; }
.jy-graha__name small {
    font-size: 0.72rem;
    color: var(--jy-text-dim);
}
.jy-graha__longitude {
    font-family: monospace;
    color: var(--jy-text-light);
    white-space: nowrap;
}
.jy-graha__rashi {
    display: flex;
    flex-direction: column;
}
.jy-graha__rashi small { font-size: 0.72rem; color: var(--jy-text-dim); }
.jy-graha__position { font-size: 0.82rem; }

/* -----------------------------------------------------------------
   7. ZODIAC SECTION
   ----------------------------------------------------------------- */
.jy-zodiac {
    background: var(--jy-gradient-bg);
    padding: 80px 0;
}

.jy-zodiac__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.jy-zodiac__card {
    scroll-margin-top: calc(var(--jy-header-h) + 20px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px 20px;
    background: var(--jy-gradient-card);
    border: 1px solid var(--jy-border);
    border-radius: var(--jy-radius-lg);
    cursor: pointer;
    text-decoration: none;
    color: var(--jy-text-light);
    overflow: hidden;
    transition: transform var(--jy-transition), border-color var(--jy-transition),
                box-shadow var(--jy-transition);
    backdrop-filter: blur(8px);
}
.jy-zodiac__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--sign-color, #FFD700) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--jy-transition);
    border-radius: inherit;
}
.jy-zodiac__card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--sign-color, #FFD700);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4),
                0 0 20px color-mix(in srgb, var(--sign-color, #FFD700) 30%, transparent);
    color: var(--jy-text-light);
}
.jy-zodiac__card:hover::before { opacity: 0.10; }

.jy-zodiac__symbol {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 12px;
    color: var(--sign-color, #FFD700);
    position: relative;
    z-index: 1;
    transition: transform var(--jy-transition);
    filter: drop-shadow(0 2px 8px color-mix(in srgb, var(--sign-color, #FFD700) 50%, transparent));
}
.jy-zodiac__card:hover .jy-zodiac__symbol { transform: scale(1.15); }

.jy-zodiac__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}
.jy-zodiac__name-hi {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--jy-text-light);
    font-family: var(--jy-font-deva);
    margin: 0;
}
.jy-zodiac__name-en {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sign-color, #FFD700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.jy-zodiac__date {
    font-size: 0.72rem;
    color: var(--jy-text-dim);
}
.jy-zodiac__element {
    font-size: 0.72rem;
    color: var(--jy-text-muted);
    margin-top: 4px;
}

.jy-zodiac__arrow {
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-size: 1rem;
    color: var(--sign-color, #FFD700);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity var(--jy-transition), transform var(--jy-transition);
}
.jy-zodiac__card:hover .jy-zodiac__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* -----------------------------------------------------------------
   8. FEATURES SECTION
   ----------------------------------------------------------------- */
.jy-features {
    background: linear-gradient(180deg, #0d0021 0%, #080018 100%);
    padding: 80px 0;
    border-top: 1px solid var(--jy-border);
}

.jy-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.jy-feature__item {
    text-align: center;
    padding: 36px 24px;
    background: var(--jy-gradient-card);
    border: 1px solid var(--jy-border);
    border-radius: var(--jy-radius-lg);
    transition: transform var(--jy-transition), border-color var(--jy-transition),
                box-shadow var(--jy-transition);
}
.jy-feature__item:hover {
    transform: translateY(-4px);
    border-color: var(--jy-border-strong);
    box-shadow: var(--jy-shadow-card);
}
.jy-feature__icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    display: block;
}
.jy-feature__item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--jy-accent);
    margin-bottom: 10px;
    font-family: var(--jy-font-deva);
}
.jy-feature__item p {
    font-size: 0.88rem;
    color: var(--jy-text-muted);
    line-height: 1.7;
}

/* -----------------------------------------------------------------
   9. FOOTER
   ----------------------------------------------------------------- */
.jy-footer {
    background: #08001a;
    border-top: 1px solid var(--jy-border);
}

.jy-footer__top {
    padding: 60px 0 48px;
}

.jy-footer__inner {
    max-width: var(--jy-container);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.jy-footer__logo {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 2px solid var(--jy-accent);
    margin-bottom: 12px;
}
.jy-footer__site-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--jy-accent);
    margin-bottom: 4px;
    font-family: var(--jy-font-deva);
}
.jy-footer__tagline {
    font-size: 0.8rem;
    color: var(--jy-text-muted);
    margin-bottom: 12px;
}
.jy-footer__desc {
    font-size: 0.84rem;
    color: var(--jy-text-dim);
    line-height: 1.7;
}

.jy-footer__heading {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--jy-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--jy-border);
}

.jy-footer__links {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.jy-footer__links li a {
    font-size: 0.875rem;
    color: var(--jy-text-muted);
    text-decoration: none;
    transition: color var(--jy-transition), paddingLeft var(--jy-transition);
    display: inline-block;
}
.jy-footer__links li a:hover {
    color: var(--jy-accent);
    padding-left: 4px;
}

.jy-footer__bottom {
    border-top: 1px solid var(--jy-border);
    padding: 20px 0;
}
.jy-footer__bottom .jy-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
    grid-template-columns: none;
}
.jy-footer__copy {
    font-size: 0.825rem;
    color: var(--jy-text-dim);
}
.jy-footer__copy a { color: var(--jy-text-muted); }
.jy-footer__copy a:hover { color: var(--jy-accent); }
.jy-footer__disclaimer {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
}

/* -----------------------------------------------------------------
   10. RESPONSIVE — TABLET (≤ 900px)
   ----------------------------------------------------------------- */
@media (max-width: 900px) {
    :root { --jy-header-h: 70px; }

    /* Header: logo on right shrinks slightly */
    .jy-brand__logo-wrap { width: 54px; height: 54px; }
    .jy-brand__name { font-size: 1rem; }

    /* Footer grid */
    .jy-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .jy-footer__brand { grid-column: 1 / -1; }

    /* Zodiac grid */
    .jy-zodiac__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

    /* Panchang 4-col → 2-col on tablet */
    .jy-panchang__grid--4col { grid-template-columns: repeat(2, 1fr); }
}

/* -----------------------------------------------------------------
   11. RESPONSIVE — MOBILE (≤ 640px)
   ----------------------------------------------------------------- */
@media (max-width: 640px) {
    :root { --jy-header-h: 64px; }

    /* Header layout */
    .jy-header__inner { padding: 0 16px; }

    /* Show hamburger, hide desktop nav by default */
    .jy-nav__hamburger { display: flex; }
    .jy-nav__menu-wrap {
        display: none;
        position: fixed;
        top: var(--jy-header-h);
        left: 0; right: 0;
        background: rgba(13, 0, 33, 0.98);
        backdrop-filter: blur(20px);
        padding: 16px;
        border-bottom: 1px solid var(--jy-border);
        z-index: 999;
    }
    .jy-nav__menu-wrap.is-open { display: block; }
    .jy-nav__list { flex-direction: column; gap: 4px; }
    .jy-nav__list li a {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
    }
    .jy-nav__list li ul {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.04);
        border-radius: 8px;
        margin-top: 4px;
        padding: 4px;
    }

    /* Brand */
    .jy-brand__logo-wrap { width: 48px; height: 48px; }
    .jy-brand__tagline { display: none; }
    .jy-brand__name { font-size: 0.92rem; }

    /* Hero */
    .jy-hero { padding: 60px 16px 100px; min-height: 85vh; }
    .jy-hero__actions { flex-direction: column; align-items: center; }
    .jy-btn { width: 100%; max-width: 280px; justify-content: center; }
    .jy-hero__planets { font-size: 1.3rem; gap: 10px; flex-wrap: wrap; }

    /* Panchang */
    .jy-panchang { padding: 60px 0; }
    .jy-panchang__grid { grid-template-columns: 1fr; }
    .jy-panchang__grid--4col { grid-template-columns: repeat(2, 1fr); }
    .jy-panchang__grid--2col { grid-template-columns: 1fr; }
    .jy-graha__table { font-size: 0.78rem; }
    .jy-graha__table th, .jy-graha__table td { padding: 9px 10px; }

    /* Zodiac */
    .jy-zodiac { padding: 60px 0; }
    .jy-zodiac__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .jy-zodiac__card { padding: 20px 10px 16px; }
    .jy-zodiac__symbol { font-size: 2.2rem; }
    .jy-zodiac__name-hi { font-size: 0.9rem; }
    .jy-zodiac__name-en, .jy-zodiac__date, .jy-zodiac__element { display: none; }

    /* Features */
    .jy-features { padding: 60px 0; }
    .jy-features__grid { grid-template-columns: 1fr; }

    /* Footer */
    .jy-footer__top { padding: 36px 0 28px; }
    .jy-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
        padding: 0 16px;
    }
    .jy-footer__brand {
        grid-column: 1 / -1;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .jy-footer__desc { font-size: 0.8rem; }
    .jy-footer__bottom { padding: 16px 0; }
    .jy-footer__bottom .jy-footer__inner {
        padding: 0 16px;
        gap: 8px;
    }
    .jy-footer__copy {
        font-size: 0.78rem;
        line-height: 1.8;
        text-align: center;
        word-break: break-word;
    }
    .jy-footer__copy a {
        display: inline-block;
        white-space: nowrap;
    }
    .jy-footer__disclaimer {
        font-size: 0.72rem;
        text-align: center;
        padding: 0 8px;
    }
}

/* 2-column zodiac on very small screens */
@media (max-width: 380px) {
    .jy-zodiac__grid { grid-template-columns: repeat(2, 1fr); }
}

/* -----------------------------------------------------------------
   12. ACCESSIBILITY & UTILITIES
   ----------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--jy-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Hide Astra's default admin bar from interfering with sticky header */
#wpadminbar + #page .jy-header {
    top: 32px;
}
@media (max-width: 782px) {
    #wpadminbar + #page .jy-header { top: 46px; }
}

/* Ensure Astra's content wrappers don't conflict */
.ast-separate-container .entry-content,
.ast-article-post .entry-content {
    padding: 0 !important;
}

/* =================================================================
   NEWSLETTER SECTION
   ================================================================= */
.jy-newsletter {
    position: relative;
    background: linear-gradient(135deg, #0a0028 0%, #150440 50%, #0a1a40 100%);
    border-top: 1px solid var(--jy-border);
    border-bottom: 1px solid var(--jy-border);
    padding: 80px 0;
    overflow: hidden;
}
.jy-newsletter__stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.6;
}
.jy-newsletter__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left text */
.jy-newsletter__icon {
    font-size: 3rem;
    margin-bottom: 16px;
    line-height: 1;
}
.jy-newsletter__title {
    font-family: var(--jy-font-deva);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--jy-text-light);
    margin-bottom: 14px;
    line-height: 1.3;
}
.jy-newsletter__title span { color: var(--jy-accent); }
.jy-newsletter__subtitle {
    font-size: 0.92rem;
    color: var(--jy-text-muted);
    line-height: 1.75;
    margin-bottom: 20px;
}
.jy-newsletter__subtitle em {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--jy-text-dim);
    font-style: normal;
}
.jy-newsletter__benefits {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.jy-newsletter__benefits li {
    font-size: 0.88rem;
    color: var(--jy-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Right form */
.jy-newsletter__form-wrap {
    background: var(--jy-gradient-card);
    border: 1px solid var(--jy-border);
    border-radius: var(--jy-radius-lg);
    padding: 36px 32px;
    backdrop-filter: blur(10px);
}
.jy-newsletter__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--jy-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 7px;
    margin-top: 16px;
}
.jy-newsletter__label:first-of-type { margin-top: 0; }
.jy-newsletter__input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--jy-border);
    border-radius: var(--jy-radius);
    color: var(--jy-text-light);
    font-family: var(--jy-font);
    font-size: 0.95rem;
    padding: 12px 16px;
    outline: none;
    transition: border-color var(--jy-transition), background var(--jy-transition);
}
.jy-newsletter__input::placeholder { color: var(--jy-text-dim); }
.jy-newsletter__input:focus {
    border-color: var(--jy-border-strong);
    background: rgba(255,255,255,0.09);
}
.jy-newsletter__row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.jy-newsletter__row .jy-newsletter__input { flex: 1; }
.jy-newsletter__btn {
    background: var(--jy-gradient-gold);
    color: var(--jy-text-dark);
    border: none;
    border-radius: var(--jy-radius);
    padding: 12px 20px;
    font-family: var(--jy-font);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--jy-transition);
    flex-shrink: 0;
}
.jy-newsletter__btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--jy-shadow-gold);
}
.jy-newsletter__note {
    font-size: 0.72rem;
    color: var(--jy-text-dim);
    margin: 0;
    line-height: 1.6;
}
.jy-newsletter__success {
    background: rgba(100,220,120,0.10);
    border: 1px solid rgba(100,220,120,0.35);
    border-radius: var(--jy-radius);
    padding: 24px 20px;
    text-align: center;
    color: var(--jy-text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}
.jy-newsletter__success-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.jy-newsletter__success strong { color: var(--jy-text-light); display: block; margin-bottom: 8px; }
.jy-newsletter__success small { font-size: 0.85rem; color: var(--jy-text-muted); }

/* Newsletter responsive */
@media (max-width: 900px) {
    .jy-newsletter__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .jy-newsletter { padding: 60px 0; }
}
@media (max-width: 640px) {
    .jy-newsletter { padding: 48px 0; }
    .jy-newsletter__form-wrap { padding: 24px 18px; }
    .jy-newsletter__row { flex-direction: column; }
    .jy-newsletter__btn { width: 100%; padding: 14px; font-size: 1rem; }
    .jy-newsletter__icon { font-size: 2.2rem; }
}

/* =================================================================
   INNER PAGES — About / Contact / Privacy / Terms
   ================================================================= */

/* Dark bg override for inner pages (same as rashi page) */
.jy-inner-page body,
.jy-inner-page #page,
.jy-inner-page #content,
.jy-inner-page .site-content,
.jy-inner-page #primary,
.jy-inner-page #main {
    background: var(--jy-primary) !important;
    color: var(--jy-text-light) !important;
}

/* ── Page hero (compact) ── */
.jy-page-hero {
    position: relative;
    background: var(--jy-gradient-bg);
    padding: 90px 0 54px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--jy-border);
}
.jy-page-hero__stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.jy-page-hero__content { position: relative; z-index: 2; }
.jy-page-hero__back {
    display: inline-block;
    color: var(--jy-text-muted);
    font-size: 0.85rem;
    margin-bottom: 18px;
    transition: color var(--jy-transition);
}
.jy-page-hero__back:hover { color: var(--jy-accent); }
.jy-page-hero__icon { font-size: 3.2rem; margin-bottom: 14px; line-height: 1; }
.jy-page-hero__title {
    font-family: var(--jy-font-deva);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--jy-text-light);
    margin-bottom: 10px;
    line-height: 1.25;
}
.jy-page-hero__title span { color: var(--jy-accent); }
.jy-page-hero__subtitle {
    font-size: 1rem;
    color: var(--jy-text-muted);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Page main content wrapper ── */
.jy-page-content {
    background: linear-gradient(180deg, #0d0021 0%, var(--jy-primary) 100%);
    padding: 70px 0 80px;
}

/* ── Content sections ── */
.jy-page-section {
    margin-bottom: 48px;
}
.jy-page-section:last-child { margin-bottom: 0; }
.jy-page-section__title {
    font-family: var(--jy-font-deva);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--jy-accent);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--jy-border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.jy-page-section__body {
    color: var(--jy-text-muted);
    font-size: 0.97rem;
    line-height: 1.85;
}
.jy-page-section__body p { margin-bottom: 14px; }
.jy-page-section__body p:last-child { margin-bottom: 0; }
.jy-page-section__body ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.jy-page-section__body ul li {
    padding-left: 22px;
    position: relative;
}
.jy-page-section__body ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--jy-accent);
    font-size: 0.7rem;
    top: 5px;
}

/* ── Cards grid ── */
.jy-page-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 6px;
}
.jy-page-card {
    background: var(--jy-gradient-card);
    border: 1px solid var(--jy-border);
    border-radius: var(--jy-radius-lg);
    padding: 24px 20px;
    transition: border-color var(--jy-transition), transform var(--jy-transition);
}
.jy-page-card:hover {
    border-color: var(--jy-border-strong);
    transform: translateY(-3px);
}
.jy-page-card__icon { font-size: 2rem; margin-bottom: 12px; }
.jy-page-card__title {
    font-weight: 700;
    color: var(--jy-text-light);
    margin-bottom: 8px;
    font-size: 1rem;
}
.jy-page-card__text {
    font-size: 0.875rem;
    color: var(--jy-text-muted);
    line-height: 1.7;
}

/* ── Highlighted info box ── */
.jy-info-box {
    background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,215,0,0.03));
    border: 1px solid var(--jy-border-strong);
    border-radius: var(--jy-radius-lg);
    padding: 24px 28px;
    margin-bottom: 36px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.jy-info-box__icon { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }
.jy-info-box__body { flex: 1; }
.jy-info-box__title {
    font-weight: 700;
    color: var(--jy-accent);
    margin-bottom: 6px;
    font-size: 1rem;
}
.jy-info-box__text {
    color: var(--jy-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}
.jy-info-box__text a { color: var(--jy-accent); }

/* ── Two-column layout ── */
.jy-page-two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

/* ── Contact form ── */
.jy-contact-form {
    background: var(--jy-gradient-card);
    border: 1px solid var(--jy-border);
    border-radius: var(--jy-radius-lg);
    padding: 32px;
}
.jy-contact-form__title {
    font-family: var(--jy-font-deva);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--jy-text-light);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--jy-border);
}
.jy-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.jy-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}
.jy-form-group:last-child { margin-bottom: 0; }
.jy-form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--jy-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.jy-form-input,
.jy-form-textarea {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--jy-border);
    border-radius: var(--jy-radius);
    color: var(--jy-text-light);
    font-family: var(--jy-font);
    font-size: 0.95rem;
    padding: 12px 16px;
    transition: border-color var(--jy-transition), background var(--jy-transition);
    width: 100%;
    outline: none;
}
.jy-form-input::placeholder,
.jy-form-textarea::placeholder { color: var(--jy-text-dim); }
.jy-form-input:focus,
.jy-form-textarea:focus {
    border-color: var(--jy-border-strong);
    background: rgba(255,255,255,0.09);
}
.jy-form-textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
}
.jy-form-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--jy-gradient-gold);
    color: var(--jy-text-dark);
    border: none;
    border-radius: 50px;
    padding: 13px 32px;
    font-family: var(--jy-font);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--jy-transition);
    margin-top: 6px;
}
.jy-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--jy-shadow-gold);
}

/* ── Alert messages ── */
.jy-alert {
    border-radius: var(--jy-radius);
    padding: 14px 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.jy-alert--success {
    background: rgba(100,220,120,0.1);
    border: 1px solid rgba(100,220,120,0.35);
    color: #64dc78;
}
.jy-alert--error {
    background: rgba(255,100,100,0.1);
    border: 1px solid rgba(255,100,100,0.35);
    color: #ff9090;
}

/* ── Responsive inner pages ── */
@media (max-width: 900px) {
    .jy-page-two-col { grid-template-columns: 1fr; }
    .jy-page-hero { padding: 70px 0 40px; }
}
@media (max-width: 640px) {
    .jy-page-hero { padding: 56px 0 32px; }
    .jy-page-hero__icon { font-size: 2.5rem; }
    .jy-page-content { padding: 48px 0 60px; }
    .jy-form-row { grid-template-columns: 1fr; gap: 0; }
    .jy-contact-form { padding: 20px; }
    .jy-info-box { flex-direction: column; gap: 10px; padding: 18px; }
    .jy-page-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .jy-page-cards { grid-template-columns: 1fr; }
}

/* =================================================================
   RASHIFAL SECTION — Homepage (tabbed 12-rashi preview)
   ================================================================= */
.jy-rashifal-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--jy-primary) 0%, #120840 100%);
}

/* ── Tab bar ── */
.jy-rf-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.jy-rf-tab {
    background: var(--jy-surface);
    border: 1px solid var(--jy-border);
    color: var(--jy-text-muted);
    padding: 10px 28px;
    border-radius: 50px;
    font-family: var(--jy-font);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--jy-transition);
}
.jy-rf-tab:hover {
    background: var(--jy-surface-hover);
    color: var(--jy-text-light);
    border-color: var(--jy-border-strong);
}
.jy-rf-tab--active {
    background: var(--jy-gradient-gold);
    border-color: var(--jy-accent);
    color: var(--jy-text-dark);
    font-weight: 700;
}

/* ── Panel ── */
.jy-rf-panel { display: none; }
.jy-rf-panel--active { display: block; }
.jy-rf-no-data {
    text-align: center;
    padding: 40px;
    color: var(--jy-text-muted);
    font-size: 1.1rem;
}

/* ── 12-card grid ── */
.jy-rf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── Individual card ── */
.jy-rf-card {
    display: flex;
    flex-direction: column;
    background: var(--jy-gradient-card);
    border: 1px solid var(--jy-border);
    border-radius: var(--jy-radius-lg);
    padding: 20px;
    color: var(--jy-text-light);
    text-decoration: none;
    transition: all var(--jy-transition);
    min-height: 200px;
}
.jy-rf-card:hover {
    background: var(--jy-surface-hover);
    border-color: var(--jy-accent);
    transform: translateY(-4px);
    box-shadow: var(--jy-shadow-gold);
    color: var(--jy-text-light);
}
.jy-rf-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.jy-rf-card__symbol {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}
.jy-rf-card__header > div {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.jy-rf-card__name-hi {
    font-family: var(--jy-font-deva);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--jy-accent);
}
.jy-rf-card__name-en {
    font-size: 0.78rem;
    color: var(--jy-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.jy-rf-card__lucky {
    font-size: 0.8rem;
    background: var(--jy-accent-light);
    border: 1px solid var(--jy-border);
    border-radius: 6px;
    padding: 3px 8px;
    color: var(--jy-accent);
    white-space: nowrap;
}
.jy-rf-card__badge {
    font-size: 0.72rem;
    background: rgba(255,215,0,0.1);
    border: 1px solid var(--jy-border);
    border-radius: 6px;
    padding: 2px 7px;
    color: var(--jy-text-muted);
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jy-rf-card__text {
    font-family: var(--jy-font-deva);
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--jy-text-muted);
    flex: 1;
    margin-bottom: 14px;
}
.jy-rf-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--jy-border);
}
.jy-rf-card__element {
    font-size: 0.78rem;
    color: var(--jy-text-dim);
}
.jy-rf-card__more {
    font-size: 0.82rem;
    color: var(--jy-accent);
    font-weight: 600;
    transition: transform var(--jy-transition);
}
.jy-rf-card:hover .jy-rf-card__more {
    transform: translateX(4px);
}

/* =================================================================
   RASHI DETAIL PAGE
   ================================================================= */

/* ── Hero ── */
.jy-rashi-hero {
    position: relative;
    background: var(--jy-gradient-bg);
    padding: 80px 0 50px;
    overflow: hidden;
    text-align: center;
}
.jy-rashi-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.jy-rashi-hero__content {
    position: relative;
    z-index: 2;
}
.jy-rashi-hero__back {
    display: inline-block;
    color: var(--jy-text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
    transition: color var(--jy-transition);
}
.jy-rashi-hero__back:hover { color: var(--jy-accent); }

.jy-rashi-hero__symbol {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px rgba(255,215,0,0.5));
}
.jy-rashi-hero__title {
    font-family: var(--jy-font-deva);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--jy-accent);
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.jy-rashi-hero__en {
    font-family: var(--jy-font);
    font-size: 1rem;
    color: var(--jy-text-muted);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.jy-rashi-hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    margin: 18px 0 14px;
    color: var(--jy-text-muted);
    font-size: 0.9rem;
}
.jy-rashi-hero__lucky {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    font-size: 0.85rem;
    color: var(--jy-text-dim);
}

/* ── Prev/Next nav ── */
.jy-rashi-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--jy-surface);
    border-top: 1px solid var(--jy-border);
    border-bottom: 1px solid var(--jy-border);
    padding: 12px 24px;
    max-width: var(--jy-container);
    margin: 0 auto;
}
.jy-rashi-nav__link {
    font-size: 0.9rem;
    color: var(--jy-text-muted);
    transition: color var(--jy-transition);
}
.jy-rashi-nav__link:hover { color: var(--jy-accent); }
.jy-rashi-nav__current {
    font-size: 0.85rem;
    color: var(--jy-accent);
    font-weight: 600;
}

/* ── Tab bar (rashi page) ── */
.jy-rashi-tabs {
    display: flex;
    gap: 8px;
    margin: 32px 0 28px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--jy-border);
    padding-bottom: 0;
}
.jy-rashi-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--jy-text-muted);
    padding: 10px 22px 13px;
    font-family: var(--jy-font);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--jy-transition);
    margin-bottom: -1px;
}
.jy-rashi-tab:hover { color: var(--jy-text-light); }
.jy-rashi-tab--active {
    color: var(--jy-accent);
    border-bottom-color: var(--jy-accent);
    font-weight: 700;
}

/* ── Panel ── */
.jy-rashi-panel { display: none; padding-bottom: 60px; }
.jy-rashi-panel--active { display: block; }

/* ── Date badge ── */
.jy-rashi-date-badge {
    display: inline-block;
    background: var(--jy-accent-light);
    border: 1px solid var(--jy-border-strong);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.85rem;
    color: var(--jy-accent);
    margin-bottom: 28px;
}

/* ── Content blocks ── */
.jy-rashi-block {
    background: var(--jy-gradient-card);
    border: 1px solid var(--jy-border);
    border-radius: var(--jy-radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
}
.jy-rashi-block--love   { border-color: rgba(255,105,180,0.4); }
.jy-rashi-block--career { border-color: rgba(64,196,255,0.4); }
.jy-rashi-block--english { border-color: rgba(100,220,120,0.3); }

.jy-rashi-block__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--jy-border);
    background: rgba(255,255,255,0.03);
}
.jy-rashi-block__heading h2,
.jy-rashi-block__heading h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--jy-text-light);
    margin: 0;
}
.jy-rashi-block__lang-badge {
    background: var(--jy-accent-light);
    border: 1px solid var(--jy-border);
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--jy-accent);
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.jy-rashi-block__lang-badge--en {
    background: rgba(100,220,120,0.1);
    border-color: rgba(100,220,120,0.3);
    color: #64dc78;
}
.jy-rashi-block__body {
    padding: 20px 24px;
}
.jy-rashi-block--hindi .jy-rashi-block__body p {
    font-family: var(--jy-font-deva);
    font-size: 1rem;
    line-height: 1.9;
    color: var(--jy-text-muted);
    margin-bottom: 12px;
}
.jy-rashi-block--english .jy-rashi-block__body p,
.jy-rashi-block--love .jy-rashi-block__body p,
.jy-rashi-block--career .jy-rashi-block__body p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--jy-text-muted);
    margin-bottom: 12px;
}
.jy-rashi-block__body p:last-child { margin-bottom: 0; }

/* ── No data ── */
.jy-rashi-no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--jy-text-muted);
}
.jy-rashi-no-data span { font-size: 2.5rem; display: block; margin-bottom: 14px; }
.jy-rashi-no-data p { font-size: 1rem; line-height: 1.7; }

/* ── All 12 rashis bottom nav ── */
.jy-rashi-all-nav {
    padding: 40px 0 60px;
    border-top: 1px solid var(--jy-border);
    background: var(--jy-surface);
}
.jy-rashi-all-nav__title {
    text-align: center;
    color: var(--jy-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}
.jy-rashi-all-nav__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.jy-rashi-all-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: var(--jy-surface);
    border: 1px solid var(--jy-border);
    border-radius: var(--jy-radius);
    font-size: 0.8rem;
    color: var(--jy-text-muted);
    text-decoration: none;
    transition: all var(--jy-transition);
    min-width: 70px;
    font-family: var(--jy-font-deva);
}
.jy-rashi-all-nav__item:hover {
    border-color: var(--jy-accent);
    color: var(--jy-accent);
    background: var(--jy-accent-light);
}
.jy-rashi-all-nav__item--active {
    border-color: var(--jy-accent);
    background: var(--jy-accent-light);
    color: var(--jy-accent);
    font-weight: 700;
}
.jy-rashi-all-nav__item span:first-child { font-size: 1.5rem; }

/* ── Responsive — Rashifal (Homepage + Rashi Detail Page) ── */

/* Large tablet  ≤ 1100px — keep 3 columns */
@media (max-width: 1100px) {
    .jy-rf-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet  641px – 900px — 2 columns, show card text */
@media (max-width: 900px) {
    /* Homepage rashifal section */
    .jy-rashifal-section { padding: 60px 0; }
    .jy-rf-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .jy-rf-card { padding: 18px; flex-direction: column; }
    .jy-rf-card__text {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.86rem;
    }
    .jy-rf-card__lucky { display: flex; }

    /* Rashi hero */
    .jy-rashi-hero { padding: 60px 0 36px; }
    .jy-rashi-hero__symbol { font-size: 4rem; }
    .jy-rashi-hero__meta { gap: 8px 16px; }

    /* Rashi prev/next nav */
    .jy-rashi-nav { padding: 12px 16px; }
    .jy-rashi-nav__current { font-size: 0.8rem; }

    /* Content blocks */
    .jy-rashi-block__heading h2,
    .jy-rashi-block__heading h3 { font-size: 0.95rem; }

    /* All rashis grid */
    .jy-rashi-all-nav__grid { gap: 8px; }
}

/* Mobile  ≤ 640px — single column, show card text */
@media (max-width: 640px) {
    /* Homepage rashifal */
    .jy-rashifal-section { padding: 48px 0; }
    .jy-rf-tabs { gap: 8px; margin-bottom: 22px; }
    .jy-rf-tab { padding: 8px 16px; font-size: 0.85rem; }

    /* Single column — full width cards */
    .jy-rf-grid { grid-template-columns: 1fr; gap: 12px; }
    .jy-rf-card { padding: 16px; min-height: 0; flex-direction: column; }
    .jy-rf-card__symbol { font-size: 1.8rem; }
    .jy-rf-card__lucky { display: flex; }

    /* Text visible, clamped to 3 lines */
    .jy-rf-card__text {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.85rem;
        line-height: 1.55;
        margin-bottom: 10px;
    }
    .jy-rf-card__footer { padding-top: 8px; }
    .jy-rf-card__more { font-size: 0.78rem; }

    /* Rashi hero */
    .jy-rashi-hero { padding: 44px 0 26px; }
    .jy-rashi-hero__symbol { font-size: 3.2rem; }
    .jy-rashi-hero__meta {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        font-size: 0.82rem;
        margin: 14px 0 10px;
    }
    .jy-rashi-hero__lucky {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: 0.78rem;
    }

    /* Rashi prev/next nav */
    .jy-rashi-nav {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 10px 16px;
    }
    .jy-rashi-nav__link { font-size: 0.82rem; }
    .jy-rashi-nav__current { order: -1; }

    /* Rashi tabs */
    .jy-rashi-tabs { gap: 0; margin: 18px 0 16px; }
    .jy-rashi-tab {
        font-size: 0.82rem;
        padding: 9px 10px 12px;
        flex: 1;
        text-align: center;
    }

    /* Content blocks */
    .jy-rashi-panel { padding-bottom: 40px; }
    .jy-rashi-block { margin-bottom: 14px; }
    .jy-rashi-block__heading { padding: 12px 14px; gap: 8px; }
    .jy-rashi-block__heading h2,
    .jy-rashi-block__heading h3 { font-size: 0.88rem; }
    .jy-rashi-block__body { padding: 14px; }
    .jy-rashi-block--hindi .jy-rashi-block__body p,
    .jy-rashi-block--english .jy-rashi-block__body p,
    .jy-rashi-block--love .jy-rashi-block__body p,
    .jy-rashi-block--career .jy-rashi-block__body p {
        font-size: 0.88rem;
        line-height: 1.75;
    }
    .jy-rashi-block__lang-badge { font-size: 0.68rem; padding: 2px 8px; }

    /* Date badge */
    .jy-rashi-date-badge { font-size: 0.78rem; padding: 5px 14px; margin-bottom: 18px; }

    /* All rashis nav */
    .jy-rashi-all-nav { padding: 26px 0 36px; }
    .jy-rashi-all-nav__title { font-size: 0.78rem; margin-bottom: 18px; }
    .jy-rashi-all-nav__grid { gap: 7px; }
    .jy-rashi-all-nav__item { min-width: 56px; padding: 8px 10px; font-size: 0.72rem; }
    .jy-rashi-all-nav__item span:first-child { font-size: 1.15rem; }
}

/* Small phones  ≤ 480px */
@media (max-width: 480px) {
    .jy-rf-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .jy-rf-card { padding: 12px; }
    .jy-rf-card__header { gap: 8px; }
    .jy-rf-tab { padding: 7px 10px; font-size: 0.82rem; }

    .jy-rashi-hero__symbol { font-size: 2.8rem; }
    .jy-rashi-tabs { overflow-x: auto; }
    .jy-rashi-all-nav__item { min-width: 50px; font-size: 0.68rem; }
    .jy-rashi-all-nav__item span:first-child { font-size: 1rem; }

    /* Container side padding reduced */
    .jy-container { padding: 0 14px; }
}

/* Very small phones  ≤ 380px */
@media (max-width: 380px) {
    .jy-rf-grid { grid-template-columns: 1fr 1fr; }
    .jy-rf-card__name-en { display: none; }
    .jy-rashi-tab { font-size: 0.78rem; padding: 7px 8px 10px; }
    .jy-rashi-all-nav__item { min-width: 46px; }
}

