/*
Theme Name: ystudy
Theme URI: https://www.ystudy.co.il/
Author: ystudy Team
Author URI: https://www.ystudy.co.il/
Description: תבנית וורדפרס שמחה, מודרנית וצבעונית עבור פורטל הלימודים, האקדמיה והבגרויות ystudy. מותאמת באופן מלא ל-RTL, נגישות WCAG 2.1 AA, משיכת תפריטים אוטומטית ומחשבון ציונים אינטראקטיבי.
Version: 3.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ystudy
Domain Path: /languages
*/

/* -------------------------------------------------------------
 * 1. Global Reset & Base Typography (Heebo RTL)
 * ------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-yellow: #fde047;
    --primary-yellow-dark: #eab308;
    --primary-yellow-light: #fefce8;
    --primary-purple: #7c3aed;
    --primary-purple-dark: #3b0764;
    --primary-sky: #0284c7;
    --primary-sky-light: #e0f2fe;
    --primary-emerald: #059669;
    --primary-emerald-light: #ecfdf5;
    --primary-pink: #ec4899;
    --primary-orange: #f97316;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-page: #f8fafc;
    --card-bg: #ffffff;
    --radius-card: 1.25rem;
    --radius-pill: 9999px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}
a:hover {
    color: var(--primary-pink);
}

img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

.site-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
}

/* -------------------------------------------------------------
 * 2. News Ticker
 * ------------------------------------------------------------- */
#ystudy-ticker {
    background: #fefce8;
    border-bottom: 1px solid #fef08a;
    padding: 0.45rem 0;
    font-size: 0.825rem;
    color: #713f12;
}
.ticker-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ticker-badge {
    background: #fbbf24;
    color: #3b0764;
    font-weight: 900;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    margin-left: 0.5rem;
    display: inline-block;
}

/* -------------------------------------------------------------
 * 3. Header & WordPress Navigation Menus
 * ------------------------------------------------------------- */
.site-header {
    background: #ffffff;
    border-bottom: 3px solid #fde68a;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1.5rem;
}
.site-brand-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}
.brand-logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25);
}
.brand-title {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--primary-purple-dark);
    letter-spacing: -0.5px;
    line-height: 1.1;
    display: block;
}
.brand-tagline {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 700;
    display: block;
}

/* Main Nav Menu */
.ystudy-main-nav {
    display: flex;
    align-items: center;
}
.ystudy-nav-menu, .menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.ystudy-nav-menu li, .menu li {
    position: relative;
}
.ystudy-nav-menu a, .menu a {
    display: block;
    padding: 0.45rem 0.85rem;
    font-weight: 800;
    font-size: 0.9rem;
    color: #1e293b;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}
.ystudy-nav-menu a:hover, .menu a:hover,
.ystudy-nav-menu .current-menu-item > a, .menu .current-menu-item > a {
    background: #fef08a;
    color: var(--primary-purple-dark);
}
/* Dropdown sub-menus */
.ystudy-nav-menu .sub-menu, .menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 2px solid #fef08a;
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 200px;
    display: none;
    list-style: none;
    z-index: 110;
}
.ystudy-nav-menu li:hover > .sub-menu, .menu li:hover > .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.btn-calc-action {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #ffffff !important;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
    white-space: nowrap;
}
.btn-calc-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

/* Mobile Toggle */
.ystudy-menu-toggle {
    display: none;
    background: #fef08a;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--primary-purple-dark);
}

/* Mobile Drawer */
.ystudy-mobile-drawer {
    display: none;
}

@media (max-width: 960px) {
    .ystudy-main-nav {
        display: none;
    }
    .ystudy-menu-toggle {
        display: block;
    }
    .ystudy-mobile-drawer.active {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        z-index: 9999;
        box-shadow: -5px 0 25px rgba(0,0,0,0.15);
        padding: 1.5rem;
        overflow-y: auto;
    }
    .mobile-drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        border-bottom: 2px solid #fef08a;
        padding-bottom: 0.5rem;
    }
    .ystudy-mobile-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
    }
    .ystudy-mobile-drawer ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    .ystudy-mobile-drawer a {
        font-size: 1rem;
        font-weight: 800;
        color: #0f172a;
        display: block;
        padding: 0.5rem;
        border-radius: 0.5rem;
    }
    .ystudy-mobile-drawer a:hover {
        background: #fef9c3;
    }
}

/* -------------------------------------------------------------
 * 4. Section Blocks & Headers
 * ------------------------------------------------------------- */
.site-main {
    padding-top: 2rem;
    padding-bottom: 4rem;
}
.ystudy-block {
    margin-bottom: 3.5rem;
}
.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #fef08a;
    padding-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.block-header.border-orange { border-bottom-color: #fed7aa; }
.block-header.border-sky { border-bottom-color: #bae6fd; }
.block-header.border-emerald { border-bottom-color: #a7f3d0; }
.block-header.border-purple { border-bottom-color: #ddd6fe; }
.block-header.border-pink { border-bottom-color: #fbcfe8; }
.block-header.border-yellow { border-bottom-color: #fde047; }

.block-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.block-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.bg-yellow-gradient { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #3b0764; }
.bg-orange-gradient { background: linear-gradient(135deg, #f97316, #fb923c); color: #ffffff; }
.bg-sky-gradient { background: linear-gradient(135deg, #0284c7, #38bdf8); color: #ffffff; }
.bg-emerald-gradient { background: linear-gradient(135deg, #059669, #34d399); color: #ffffff; }
.bg-purple-gradient { background: linear-gradient(135deg, #7c3aed, #a855f7); color: #ffffff; }
.bg-pink-gradient { background: linear-gradient(135deg, #ec4899, #f43f5e); color: #ffffff; }

.block-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    margin: 0;
}
.block-subtitle {
    font-size: 0.825rem;
    color: #64748b;
    margin: 0;
}

.block-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 800;
    font-size: 0.8125rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-yellow { background: #fef9c3; color: #713f12; border: 1px solid #fde047; }
.btn-orange { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }
.btn-sky { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.btn-emerald { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.btn-yellow:hover, .btn-orange:hover, .btn-sky:hover, .btn-emerald:hover {
    transform: translateY(-2px);
}

/* -------------------------------------------------------------
 * 5. Bento Grid Layout
 * ------------------------------------------------------------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}
.bento-card {
    background: #ffffff;
    border: 2px solid #fef08a;
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.bento-hero {
    grid-column: span 7;
}
.bento-mid {
    grid-column: span 5;
}
.bento-standard {
    grid-column: span 6;
}

.card-thumb-link {
    position: relative;
    overflow: hidden;
    display: block;
}
.bento-hero .card-thumb-link { height: 250px; }
.bento-mid .card-thumb-link { height: 180px; }
.bento-standard .card-thumb-link { height: 170px; }

.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.bento-card:hover .bento-img {
    transform: scale(1.03);
}

.fallback-thumb-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.bg-purple-grad { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.bg-yellow-grad { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-sky-grad { background: linear-gradient(135deg, #0284c7, #0369a1); }
.bg-emerald-grad { background: linear-gradient(135deg, #059669, #047857); }
.fallback-icon { font-size: 3rem; }

.card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.75rem;
    backdrop-filter: blur(4px);
}
.badge-yellow { background: rgba(254, 240, 138, 0.95); color: #713f12; border: 1px solid #fde047; }
.badge-emerald { background: rgba(209, 250, 229, 0.95); color: #065f46; border: 1px solid #a7f3d0; }
.badge-purple { background: rgba(243, 232, 255, 0.95); color: #581c87; border: 1px solid #ddd6fe; }
.badge-orange { background: rgba(254, 215, 170, 0.95); color: #7c2d12; border: 1px solid #fdba74; }

.bento-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.bento-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}
.bento-title {
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}
.bento-hero .bento-title { font-size: 1.35rem; }
.bento-title a { color: #0f172a; }
.bento-title a:hover { color: var(--primary-purple); }

.bento-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.5;
}
.bento-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #fef9c3;
    padding-top: 0.75rem;
}
.read-more-link {
    color: var(--primary-purple);
    font-weight: 800;
    font-size: 0.85rem;
}
.read-more-link:hover {
    color: var(--primary-pink);
}

@media (max-width: 860px) {
    .bento-hero, .bento-mid, .bento-standard {
        grid-column: span 12;
    }
}

/* -------------------------------------------------------------
 * 6. Reels Stories Block
 * ------------------------------------------------------------- */
.reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.reel-card {
    background: #ffffff;
    border: 2px solid #fed7aa;
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
    height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.08);
    transition: transform 0.2s ease;
}
.reel-card:hover {
    transform: translateY(-4px);
}
.reel-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.reel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fallback-reel-bg {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    width: 100%;
    height: 100%;
}
.reel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.05) 100%);
}
.reel-content {
    position: relative;
    z-index: 2;
    padding: 1.25rem;
    color: #ffffff;
}
.reel-tag {
    display: inline-block;
    background: #f97316;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.5rem;
}
.reel-title {
    font-size: 1.05rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.reel-title a { color: #ffffff; }
.reel-desc {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.reel-link {
    font-size: 0.8rem;
    font-weight: 800;
    color: #fed7aa;
}

/* -------------------------------------------------------------
 * 7. Spotlight Tech Section
 * ------------------------------------------------------------- */
.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}
.spotlight-card {
    background: #ffffff;
    border: 2px solid #bae6fd;
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.05);
    transition: transform 0.2s ease;
}
.spotlight-card:hover {
    transform: translateY(-3px);
}
.spotlight-thumb-link {
    height: 180px;
    overflow: hidden;
    position: relative;
    display: block;
}
.spotlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.spotlight-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: #0284c7;
    margin-bottom: 0.4rem;
    display: inline-block;
}
.spotlight-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.spotlight-title {
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}
.spotlight-title a { color: #0f172a; }
.spotlight-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex: 1;
}
.spotlight-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e0f2fe;
    padding-top: 0.75rem;
}
.text-sky { color: #0284c7; }

/* -------------------------------------------------------------
 * 8. Lead Split Layout
 * ------------------------------------------------------------- */
.split-layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}
.split-main-col {
    grid-column: span 6;
}
.split-side-col {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (max-width: 860px) {
    .split-main-col, .split-side-col { grid-column: span 12; }
}
.split-lead-card {
    background: #ffffff;
    border: 2px solid #a7f3d0;
    border-radius: var(--radius-card);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.split-thumb-link {
    height: 240px;
    position: relative;
    display: block;
}
.split-lead-img { width: 100%; height: 100%; object-fit: cover; }
.split-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.split-title { font-size: 1.25rem; font-weight: 900; margin-bottom: 0.5rem; }
.split-title a { color: #0f172a; }
.split-excerpt { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; flex: 1; }
.text-emerald { color: #059669; }

.split-mini-card {
    background: #ffffff;
    border: 1px solid #a7f3d0;
    border-radius: 1rem;
    padding: 0.85rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.split-mini-thumb {
    width: 65px;
    height: 65px;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
    background: #ecfdf5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.mini-img { width: 100%; height: 100%; object-fit: cover; }
.split-mini-body { flex: 1; }
.mini-date { font-size: 0.7rem; color: #94a3b8; display: block; margin-bottom: 0.2rem; }
.mini-title { font-size: 0.95rem; font-weight: 800; line-height: 1.3; margin: 0 0 0.25rem 0; }
.mini-title a { color: #0f172a; }
.mini-link { font-size: 0.75rem; color: #059669; font-weight: 800; }

/* -------------------------------------------------------------
 * 9. Interactive Calculator Block
 * ------------------------------------------------------------- */
.calculator-section {
    background: #ffffff;
    border: 3px solid #fde68a;
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.12);
}
.calc-header {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #fef08a;
    padding-bottom: 1rem;
}
.calc-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.calc-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}
.calc-main-title { font-size: 1.45rem; font-weight: 900; color: #0f172a; margin: 0 0 0.25rem 0; }
.calc-subtitle { font-size: 0.85rem; color: #64748b; margin: 0; }

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.calc-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.calc-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
}
.calc-input-pair {
    display: flex;
    gap: 0.5rem;
}
.calc-input, .calc-select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 2px solid #cbd5e1;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
    background: #f8fafc;
}
.calc-input:focus, .calc-select:focus {
    border-color: var(--primary-purple);
    background: #ffffff;
}

.calc-results-panel {
    background: #fefce8;
    border: 2px dashed #fde047;
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.calc-scores-display {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.score-box {
    text-align: center;
}
.score-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #713f12;
    margin-bottom: 0.25rem;
}
.score-value {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
}
.text-green { color: #059669; }
.text-purple { color: #7c3aed; }
.score-divider {
    width: 2px;
    height: 45px;
    background: #fef08a;
}
.calc-verdict {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: #3b0764;
    background: #ffffff;
    padding: 0.65rem;
    border-radius: var(--radius-pill);
    border: 1px solid #fef08a;
}

/* -------------------------------------------------------------
 * 10. Timeline & Tabs Blocks
 * ------------------------------------------------------------- */
.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.timeline-card {
    background: #ffffff;
    border: 2px solid #ddd6fe;
    border-radius: var(--radius-card);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}
.timeline-badge {
    align-self: flex-start;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.timeline-card-title { font-size: 1.1rem; font-weight: 900; margin-bottom: 0.5rem; }
.timeline-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; flex: 1; }
.timeline-status { font-size: 0.75rem; font-weight: 800; }
.status-urgent { color: #dc2626; }
.status-info { color: #0284c7; }
.status-success { color: #059669; }

.tabs-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.ystudy-tab-btn {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}
.ystudy-tab-btn.active, .ystudy-tab-btn:hover {
    background: #fef08a;
    border-color: #fde047;
    color: #3b0764;
}
.tabs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.tab-card {
    background: #ffffff;
    border: 1px solid #fde047;
    border-radius: var(--radius-card);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}
.tab-card-date { font-size: 0.75rem; color: #94a3b8; margin-bottom: 0.4rem; }
.tab-card-title { font-size: 1.05rem; font-weight: 900; margin-bottom: 0.5rem; }
.tab-card-title a { color: #0f172a; }
.tab-card-excerpt { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; flex: 1; }
.tab-card-link { font-size: 0.8rem; font-weight: 800; color: var(--primary-purple); }

/* -------------------------------------------------------------
 * 11. Video & Inspiration Quotes
 * ------------------------------------------------------------- */
.video-section {
    background: #0f172a;
    border-radius: var(--radius-card);
    padding: 2rem;
    color: #ffffff;
}
.video-live-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-bottom: 0.5rem;
}
.video-title { font-size: 1.5rem; font-weight: 900; margin-bottom: 0.25rem; }
.video-subtitle { font-size: 0.85rem; color: #94a3b8; margin-bottom: 1.5rem; }
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}
.video-card {
    background: #1e293b;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #334155;
}
.video-thumbnail {
    height: 170px;
    background: linear-gradient(135deg, #3b0764, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.play-btn-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    padding-right: 3px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.video-info { padding: 1.25rem; }
.video-card-title { font-size: 1.05rem; font-weight: 900; margin-bottom: 0.4rem; color: #ffffff; }
.video-card-desc { font-size: 0.8rem; color: #94a3b8; }

.quotes-section {
    background: #fefce8;
    border: 2px dashed #fef08a;
    border-radius: var(--radius-card);
    padding: 2.5rem 1.5rem;
    text-align: center;
}
.quotes-icon { font-size: 2.5rem; margin-bottom: 0.5rem; display: block; }
.quotes-heading { font-size: 1.1rem; font-weight: 900; color: #713f12; margin-bottom: 0.75rem; }
.quotes-text {
    font-size: 1.45rem;
    font-weight: 900;
    color: #3b0764;
    max-width: 750px;
    margin: 0 auto 0.75rem;
    line-height: 1.4;
}
.quotes-author { font-size: 0.85rem; color: #64748b; font-weight: 700; }

/* -------------------------------------------------------------
 * 12. Trending Articles Ranked 1-5
 * ------------------------------------------------------------- */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.trending-card {
    background: #ffffff;
    border: 2px solid #fbcfe8;
    border-radius: 1rem;
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.05);
}
.trending-rank {
    font-size: 1.75rem;
    font-weight: 900;
    color: #ec4899;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.trending-title {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
    flex: 1;
    margin-bottom: 0.5rem;
}
.trending-title a { color: #0f172a; }
.trending-date { font-size: 0.7rem; color: #94a3b8; }

/* -------------------------------------------------------------
 * 13. Single Post & General Article Styles
 * ------------------------------------------------------------- */
.single-post-container, .single-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 1.5rem;
}
.post-breadcrumbs {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.post-header {
    margin-bottom: 2rem;
}
.post-category-badge {
    background: #fef08a;
    color: #3b0764;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-bottom: 0.75rem;
}
.post-main-title, .entry-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 1rem;
}
.post-meta-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
}
.post-featured-image {
    margin: 2rem 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 2px solid #fef08a;
}
.post-content, .entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1e293b;
}
.post-content p, .entry-content p {
    margin-bottom: 1.5rem;
}
.post-content h2, .entry-content h2 {
    font-size: 1.65rem;
    font-weight: 900;
    color: #0f172a;
    margin: 2.5rem 0 1rem;
    border-bottom: 2px solid #fef08a;
    padding-bottom: 0.5rem;
}
.post-content h3, .entry-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    margin: 2rem 0 0.75rem;
}
.post-content ul, .entry-content ul,
.post-content ol, .entry-content ol {
    margin: 0 1.5rem 1.5rem;
    line-height: 1.8;
}
/* Highlighted Text Links inside content */
.post-content a, .entry-content a {
    color: #6b21a8;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: #fde047;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: #faf5ff;
    transition: all 0.2s ease;
}
.post-content a:hover, .entry-content a:hover {
    background: #fef08a;
    color: #3b0764;
    text-decoration-color: #ec4899;
}

/* -------------------------------------------------------------
 * 14. Footer Layout & Required Partner Links
 * ------------------------------------------------------------- */
.site-footer {
    background: #ffffff;
    border-top: 3px solid #fde68a;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}
.footer-top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer-brand-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-purple-dark);
    margin-bottom: 0.5rem;
}
.footer-brand-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.footer-section-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1rem;
    border-bottom: 2px solid #fef08a;
    padding-bottom: 0.4rem;
    display: inline-block;
}
.footer-links-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.9rem;
}
.footer-partner-link {
    color: var(--primary-purple);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.footer-partner-link:hover {
    color: var(--primary-pink);
    transform: translateX(-3px);
}

.footer-quote-bar {
    border-top: 1px solid #fde68a;
    padding-top: 1.5rem;
    text-align: center;
}
.footer-inspiration-quote {
    font-size: 0.95rem;
    color: #6b21a8;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.footer-copy {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* -------------------------------------------------------------
 * 15. Accessibility & Cookie Banner
 * ------------------------------------------------------------- */
.ystudy-acc-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #7c3aed;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ystudy-acc-modal {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 270px;
    background: #ffffff;
    border: 2px solid #7c3aed;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 99999;
}
.ystudy-acc-modal.active { display: block; }
.acc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}
.acc-action-btn {
    width: 100%;
    padding: 0.45rem;
    margin-bottom: 0.4rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-align: right;
}
.acc-action-btn:hover { background: #fef08a; }

.ystudy-cookie-banner {
    position: fixed;
    bottom: -150px;
    right: 20px;
    left: 20px;
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    border: 2px solid #fde047;
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: bottom 0.4s ease;
}
.ystudy-cookie-banner.visible { bottom: 20px; }
.cookie-banner-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.cookie-close-btn { background: none; border: none; font-size: 1.25rem; cursor: pointer; }
.cookie-text { font-size: 0.8125rem; color: #475569; margin-bottom: 0.75rem; line-height: 1.5; }
.cookie-accept-btn {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
}
