/*
 * ═══════════════════════════════════════════════════════════
 *  pirivena-theme.css  —  Pirivena.lk Master Theme
 *  Include this ONE file in every page via header.php
 *  <link href="/assets/css/pirivena-theme.css" rel="stylesheet">
 * ═══════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════
   1. GOOGLE FONTS IMPORT
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Sinhala:wght@400;600;700;900&family=Sora:wght@400;600;700;800&display=swap');


/* ═══════════════════════════════════════════════════════════
   2. DESIGN TOKENS
   ═══════════════════════════════════════════════════════════ */
:root {
    /* Brand colours */
    --saffron:        #E8750A;
    --saffron-d:      #c05f00;
    --saffron-l:      #fff3e8;
    --maroon:         #8B0000;
    --gold:           #F4C430;

    /* Neutrals */
    --cream:          #FDFAF5;
    --ink:            #1A1208;
    --muted:          #7A6A55;
    --border:         #EDE3D4;
    --white:          #ffffff;

    /* Shadows */
    --shadow:         0 4px 24px rgba(232,117,10,.08);
    --shadow-h:       0 16px 48px rgba(232,117,10,.18);
    --shadow-maroon:  0 4px 18px rgba(139,0,0,.25);

    /* Typography */
    --font-base:      'Sora', 'Noto Sans Sinhala', sans-serif;

    /* Radii */
    --radius-sm:      10px;
    --radius-md:      16px;
    --radius-lg:      20px;
    --radius-xl:      24px;
    --radius-pill:    50px;

    /* Gradients */
    --grad-brand:     linear-gradient(135deg, var(--maroon) 0%, var(--saffron-d) 100%);
    --grad-hero:      linear-gradient(135deg, #8B0000 0%, #c05f00 50%, #E8750A 100%);
    --grad-bar:       linear-gradient(90deg, var(--maroon), var(--saffron));
}


/* ═══════════════════════════════════════════════════════════
   3. BASE RESET
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
    background:   var(--cream);
    font-family:  var(--font-base);
    color:        var(--ink);
    line-height:  1.75;
    overflow-x:   hidden;
}


/* ═══════════════════════════════════════════════════════════
   4. HERO SECTION  (.pv-hero)
   ═══════════════════════════════════════════════════════════ */
.pv-hero {
    background:  var(--grad-hero);
    padding:     64px 0 110px;
    position:    relative;
    overflow:    hidden;
}
.pv-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 10% 70%, rgba(244,196,48,.18) 0%, transparent 50%),
        radial-gradient(circle at 88% 15%, rgba(255,255,255,.06) 0%, transparent 40%);
    pointer-events: none;
}
.pv-hero::after {
    content: '';
    position: absolute; right: -90px; bottom: -90px;
    width: 400px; height: 400px; border-radius: 50%;
    border: 55px solid rgba(255,255,255,.04);
    pointer-events: none;
}
.pv-hero-inner  { position: relative; z-index: 2; }

/* Eyebrow badge */
.pv-eyebrow {
    display:     inline-flex;
    align-items: center;
    gap:         8px;
    background:  rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border:      1px solid rgba(255,255,255,.25);
    color:       #fff;
    border-radius: var(--radius-pill);
    padding:     6px 16px;
    font-size:   .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* Hero title */
.pv-hero-title {
    font-size:   clamp(1.6rem, 4.5vw, 2.8rem);
    font-weight: 900;
    color:       #fff;
    line-height: 1.18;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.pv-hero-title span { color: var(--gold); }

/* Hero subtitle */
.pv-hero-sub {
    color:        rgba(255,255,255,.82);
    font-size:    .95rem;
    max-width:    560px;
    line-height:  1.7;
    margin-bottom: 28px;
}

/* Hero stats row */
.pv-hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.pv-stat-num   { font-size: 1.6rem; font-weight: 900; color: var(--gold); line-height: 1; }
.pv-stat-lbl   {
    font-size:  .7rem;
    color:      rgba(255,255,255,.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Floating deco emojis */
.pv-hero-deco {
    position:   absolute;
    right:      6%;
    top:        50%;
    transform:  translateY(-50%);
    display:    flex;
    flex-direction: column;
    gap:        14px;
    z-index:    3;
}
.pv-deco-item {
    background:  rgba(255,255,255,.12);
    border:      1px solid rgba(255,255,255,.22);
    border-radius: 18px;
    padding:     14px 20px;
    font-size:   1.8rem;
    text-align:  center;
    backdrop-filter: blur(6px);
    animation:   pv-float 3s ease-in-out infinite;
}
.pv-deco-item:nth-child(2) { animation-delay: .7s; }
.pv-deco-item:nth-child(3) { animation-delay: 1.4s; }

@keyframes pv-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* SVG wave separator — place right after .pv-hero */
.pv-hero-wave {
    height:   60px;
    width:    100%;
    display:  block;
    margin-top: -2px;
}


/* ═══════════════════════════════════════════════════════════
   5. MAIN CONTENT WRAP  (.pv-wrap)
   ═══════════════════════════════════════════════════════════ */
.pv-wrap {
    background:    var(--white);
    border-radius: var(--radius-xl);
    border:        1.5px solid var(--border);
    box-shadow:    var(--shadow);
    margin-top:    -54px;
    position:      relative;
    z-index:       10;
    padding:       32px 28px 44px;
    overflow:      hidden;
    margin-bottom: 60px;
}
/* Top accent bar */
.pv-wrap::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height:   4px;
    background: var(--grad-bar);
}


/* ═══════════════════════════════════════════════════════════
   6. SECTION LABELS
   ═══════════════════════════════════════════════════════════ */
.pv-label {
    font-size:      .72rem;
    font-weight:    800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color:          var(--saffron);
    margin-bottom:  4px;
}
.pv-title {
    font-size:     clamp(1rem, 3vw, 1.4rem);
    font-weight:   900;
    color:         var(--ink);
    margin-bottom: 20px;
}


/* ═══════════════════════════════════════════════════════════
   7. CARDS  (.pv-card)
   ═══════════════════════════════════════════════════════════ */
.pv-card {
    background:    var(--white);
    border-radius: var(--radius-lg);
    border:        1.5px solid var(--border);
    box-shadow:    var(--shadow);
    overflow:      hidden;
    transition:    all .35s cubic-bezier(.34,1.56,.64,1);
    height:        100%;
}
.pv-card:hover {
    box-shadow: var(--shadow-h);
    transform:  translateY(-5px);
    border-color: rgba(232,117,10,.25);
}

/* Card with gradient header */
.pv-card-head {
    background:  var(--grad-brand);
    padding:     16px 20px;
    text-align:  center;
    position:    relative;
    overflow:    hidden;
}
.pv-card-head::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(244,196,48,.18) 0%, transparent 55%);
}
.pv-card-head h5,
.pv-card-head h4,
.pv-card-head h3 {
    color:     #fff;
    font-weight: 900;
    margin:    0;
    position:  relative;
    z-index:   1;
}
.pv-card-body { padding: 16px; }


/* ═══════════════════════════════════════════════════════════
   8. BUTTONS
   ═══════════════════════════════════════════════════════════ */

/* Primary */
.pv-btn {
    display:     inline-flex;
    align-items: center;
    gap:         8px;
    background:  var(--grad-brand);
    color:       var(--white);
    border:      none;
    border-radius: var(--radius-pill);
    padding:     10px 22px;
    font-family: var(--font-base);
    font-size:   .85rem;
    font-weight: 800;
    cursor:      pointer;
    text-decoration: none;
    box-shadow:  var(--shadow-maroon);
    transition:  opacity .2s, transform .2s, box-shadow .2s;
}
.pv-btn:hover {
    opacity:    .9;
    transform:  translateY(-2px);
    box-shadow: 0 8px 24px rgba(139,0,0,.3);
    color:      var(--white);
    text-decoration: none;
}

/* Ghost / outline */
.pv-btn-ghost {
    display:     inline-flex;
    align-items: center;
    gap:         8px;
    background:  var(--saffron-l);
    color:       var(--saffron-d);
    border:      1.5px solid rgba(232,117,10,.3);
    border-radius: var(--radius-pill);
    padding:     8px 18px;
    font-family: var(--font-base);
    font-size:   .82rem;
    font-weight: 800;
    cursor:      pointer;
    text-decoration: none;
    transition:  all .25s;
}
.pv-btn-ghost:hover {
    background: var(--grad-brand);
    color:      var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-maroon);
    text-decoration: none;
}

/* Full width */
.pv-btn-full {
    width:           100%;
    height:          50px;
    justify-content: center;
    border-radius:   var(--radius-md);
    font-size:       .92rem;
}


/* ═══════════════════════════════════════════════════════════
   9. BADGES & CHIPS
   ═══════════════════════════════════════════════════════════ */
.pv-badge {
    display:     inline-flex;
    align-items: center;
    gap:         6px;
    background:  var(--grad-brand);
    color:       var(--white);
    border-radius: var(--radius-pill);
    padding:     5px 16px 5px 6px;
    font-size:   .72rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.pv-badge-num {
    width:  28px; height: 28px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .82rem; font-weight: 900;
}

/* Chip variants */
.pv-chip {
    display:     inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    padding:     4px 12px;
    font-size:   .7rem;
    font-weight: 800;
    white-space: nowrap;
}
.pv-chip-saffron { background: var(--saffron-l); color: var(--saffron-d); border: 1px solid rgba(232,117,10,.25); }
.pv-chip-red     { background: #ffebee; color: #b71c1c; border: 1px solid #ffcdd2; }
.pv-chip-blue    { background: #e0f2fe; color: #0277bd; border: 1px solid #b3e0f7; }
.pv-chip-green   { background: #e8f5e9; color: #1b5e20; border: 1px solid #c8e6c9; }
.pv-chip-gold    { background: rgba(244,196,48,.2); color: #7a5700; border: 1px solid rgba(244,196,48,.4); }
.pv-chip-dark    { background: #f5f5f5; color: #333; border: 1px solid #ddd; }

/* NEW badge */
.pv-badge-new {
    display:     inline-flex;
    align-items: center;
    gap:         4px;
    background:  linear-gradient(135deg, #25ae63, #1a8a4e);
    color:       #fff;
    border-radius: var(--radius-pill);
    font-size:   .62rem;
    font-weight: 800;
    padding:     2px 9px;
    letter-spacing: .04em;
}


/* ═══════════════════════════════════════════════════════════
   10. CALLOUT / NOTE BOX
   ═══════════════════════════════════════════════════════════ */
.pv-callout {
    border-left: 4px solid var(--saffron);
    background:  var(--saffron-l);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding:     16px 20px;
    margin-bottom: 20px;
    font-size:   .88rem;
    font-weight: 600;
    color:       var(--ink);
    line-height: 1.75;
}
.pv-callout i { color: var(--saffron-d); margin-right: 8px; }


/* ═══════════════════════════════════════════════════════════
   11. CUSTOM LIST  (.pv-list)
   ═══════════════════════════════════════════════════════════ */
.pv-list { list-style: none; padding: 0; margin: 0; }
.pv-list li {
    display:     flex;
    align-items: flex-start;
    gap:         12px;
    padding:     10px 0;
    border-bottom: 1px solid var(--border);
    font-size:   .88rem;
    line-height: 1.7;
    color:       var(--muted);
}
.pv-list li:last-child { border-bottom: none; }
.pv-list li::before {
    content:      '';
    width:        8px; height: 8px;
    background:   var(--grad-brand);
    border-radius: 50%;
    flex-shrink:  0;
    margin-top:   7px;
}


/* ═══════════════════════════════════════════════════════════
   12. ICON BOX  (.pv-icon-box)
   ═══════════════════════════════════════════════════════════ */
.pv-icon-box {
    width:        44px; height: 44px;
    flex-shrink:  0;
    background:   var(--saffron-l);
    color:        var(--saffron-d);
    border:       1.5px solid rgba(232,117,10,.2);
    border-radius: var(--radius-sm);
    display:      flex;
    align-items:  center;
    justify-content: center;
    font-size:    1rem;
    transition:   background .3s, color .3s, border-color .3s;
}
/* Hover: parent .pv-card or .pv-doc-card triggers this */
.pv-card:hover .pv-icon-box,
.pv-doc-card:hover .pv-icon-box {
    background:  var(--grad-brand);
    color:       #fff;
    border-color: transparent;
}


/* ═══════════════════════════════════════════════════════════
   13. DOCUMENT ITEM CARD  (.pv-doc-card)
   ═══════════════════════════════════════════════════════════ */
.pv-doc-card {
    background:  var(--white);
    border:      1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding:     18px 20px;
    display:     flex;
    align-items: center;
    gap:         16px;
    text-decoration: none;
    color:       inherit;
    position:    relative;
    overflow:    hidden;
    transition:  all .3s cubic-bezier(.34,1.56,.64,1);
}
.pv-doc-card::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width:    4px;
    background: var(--grad-brand);
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .3s ease;
}
.pv-doc-card:hover {
    transform:    translateY(-4px);
    box-shadow:   var(--shadow-h);
    border-color: rgba(232,117,10,.3);
    color:        var(--ink);
    text-decoration: none;
}
.pv-doc-card:hover::before { transform: scaleY(1); }

.pv-doc-title {
    font-weight: 800; font-size: .92rem;
    color:       var(--ink); margin-bottom: 4px;
}
.pv-doc-desc {
    font-size:  .78rem; color: var(--muted); line-height: 1.5;
    display:    -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow:   hidden;
}
.pv-doc-arrow {
    color:    var(--muted);
    font-size: .8rem;
    flex-shrink: 0;
    opacity:  .5;
    transition: opacity .2s, transform .2s, color .2s;
}
.pv-doc-card:hover .pv-doc-arrow {
    opacity:  1;
    color:    var(--saffron-d);
    transform: translateX(4px);
}


/* ═══════════════════════════════════════════════════════════
   14. FORM INPUTS  (.pv-input-group)
   ═══════════════════════════════════════════════════════════ */
.pv-input-group {
    display:     flex;
    align-items: center;
    border:      1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow:    hidden;
    background:  var(--white);
    transition:  border-color .2s, box-shadow .2s;
}
.pv-input-group:focus-within {
    border-color: var(--saffron);
    box-shadow:   0 0 0 3px rgba(232,117,10,.12);
}
.pv-input-prefix {
    padding:     0 14px;
    color:       var(--muted);
    font-size:   .9rem;
    border-right: 1.5px solid var(--border);
    height:      48px;
    display:     flex;
    align-items: center;
    background:  var(--cream);
    flex-shrink: 0;
}
.pv-input-group input,
.pv-input-group select,
.pv-input-group textarea {
    flex:        1;
    height:      48px;
    border:      none;
    outline:     none;
    padding:     0 16px;
    font-family: var(--font-base);
    font-size:   .88rem;
    color:       var(--ink);
    background:  transparent;
}
.pv-input-group input::placeholder { color: #bfae9a; }
.pv-input-group textarea {
    height:  auto;
    padding: 12px 16px;
    resize:  vertical;
}

.pv-form-label {
    font-size:   .76rem;
    font-weight: 800;
    color:       var(--ink);
    margin-bottom: 6px;
    letter-spacing: .03em;
    display:     block;
}


/* ═══════════════════════════════════════════════════════════
   15. SEARCH BAR  (.pv-search)
   ═══════════════════════════════════════════════════════════ */
.pv-search {
    position:   relative;
    max-width:  480px;
    margin-bottom: 24px;
}
.pv-search input {
    width:       100%;
    padding:     12px 44px 12px 18px;
    border:      1.5px solid var(--border);
    border-radius: var(--radius-pill);
    background:  var(--cream);
    font-family: var(--font-base);
    font-size:   .85rem;
    color:       var(--ink);
    outline:     none;
    transition:  border-color .2s, box-shadow .2s;
}
.pv-search input:focus {
    border-color: var(--saffron);
    box-shadow:   0 0 0 3px rgba(232,117,10,.12);
}
.pv-search i {
    position:  absolute;
    right:     16px;
    top:       50%;
    transform: translateY(-50%);
    color:     var(--muted);
    font-size: .85rem;
    pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════
   16. ALERT / ERROR BOX
   ═══════════════════════════════════════════════════════════ */
.pv-alert-error {
    background: #fff0f0;
    border:     1.5px solid #ffcdd2;
    border-radius: var(--radius-md);
    padding:    12px 16px;
    color:      #b71c1c;
    font-size:  .82rem;
    font-weight: 600;
    display:    flex;
    align-items: flex-start;
    gap:        10px;
    margin-bottom: 20px;
}
.pv-alert-error i { margin-top: 2px; flex-shrink: 0; }

.pv-alert-info {
    background: var(--saffron-l);
    border:     1.5px solid rgba(232,117,10,.3);
    border-radius: var(--radius-md);
    padding:    12px 16px;
    color:      var(--saffron-d);
    font-size:  .82rem;
    font-weight: 600;
    display:    flex;
    align-items: flex-start;
    gap:        10px;
    margin-bottom: 20px;
}


/* ═══════════════════════════════════════════════════════════
   17. RESULTS / INFO BAR  (.pv-results-bar)
   ═══════════════════════════════════════════════════════════ */
.pv-results-bar {
    display:     flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap:   wrap;
    gap:         10px;
    padding:     12px 18px;
    background:  var(--cream);
    border-radius: var(--radius-md);
    border:      1.5px solid var(--border);
    margin-bottom: 20px;
    font-size:   .8rem;
    font-weight: 700;
    color:       var(--muted);
}
.pv-results-count { color: var(--saffron-d); font-weight: 900; font-size: .9rem; }


/* ═══════════════════════════════════════════════════════════
   18. EMPTY STATE  (.pv-empty)
   ═══════════════════════════════════════════════════════════ */
.pv-empty {
    text-align:   center;
    padding:      64px 24px;
    background:   var(--cream);
    border-radius: var(--radius-lg);
    border:       1.5px dashed var(--border);
}
.pv-empty i    { font-size: 3rem; color: var(--border); margin-bottom: 16px; display: block; }
.pv-empty p    { color: var(--muted); font-size: .9rem; margin: 0; }


/* ═══════════════════════════════════════════════════════════
   19. TOTAL DAYS BANNER  (.pv-banner)
   ═══════════════════════════════════════════════════════════ */
.pv-banner {
    background:    var(--grad-brand);
    border-radius: var(--radius-lg);
    padding:       24px 28px;
    text-align:    center;
    position:      relative;
    overflow:      hidden;
    margin-top:    24px;
}
.pv-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 40%, rgba(244,196,48,.15) 0%, transparent 55%);
}
.pv-banner h4 {
    color:     #fff;
    font-weight: 900;
    margin:    0;
    position:  relative;
    z-index:   1;
}
.pv-banner h4 span { color: var(--gold); font-size: 2rem; }


/* ═══════════════════════════════════════════════════════════
   20. TAB NAV  (.pv-tabs)
   ═══════════════════════════════════════════════════════════ */
.pv-tabs {
    display:         flex;
    gap:             8px;
    flex-wrap:       wrap;
    justify-content: center;
    margin-bottom:   36px;
}
.pv-tab-btn {
    display:     inline-flex;
    align-items: center;
    gap:         7px;
    background:  var(--cream);
    border:      1.5px solid var(--border);
    border-radius: var(--radius-pill);
    padding:     9px 18px;
    font-family: var(--font-base);
    font-size:   .8rem;
    font-weight: 700;
    color:       var(--muted);
    cursor:      pointer;
    transition:  all .25s;
    white-space: nowrap;
    text-decoration: none;
}
.pv-tab-btn:hover {
    border-color: var(--saffron);
    color:        var(--saffron-d);
    background:   var(--saffron-l);
    text-decoration: none;
}
.pv-tab-btn.active {
    background:   var(--grad-brand);
    color:        #fff;
    border-color: transparent;
    box-shadow:   0 4px 14px rgba(139,0,0,.25);
}
.pv-tab-btn i { font-size: .75rem; }

/* Tab panels */
.pv-panel         { display: none; }
.pv-panel.active  { display: block; animation: pv-fadeIn .3s ease; }

@keyframes pv-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════════════
   21. SHARE BUTTONS  (.pv-share)
   ═══════════════════════════════════════════════════════════ */
.pv-share        { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pv-share-label  {
    font-size:   .72rem; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase;
    color: rgba(255,255,255,.65);
}
.pv-share-btn {
    width:       38px; height: 38px;
    display:     inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background:  rgba(255,255,255,.15);
    border:      1px solid rgba(255,255,255,.25);
    color:       #fff;
    text-decoration: none;
    font-size:   .85rem;
    transition:  background .25s, color .25s, transform .2s;
}
.pv-share-btn:hover {
    background: var(--white);
    color:      var(--maroon);
    transform:  translateY(-2px);
    text-decoration: none;
}


/* ═══════════════════════════════════════════════════════════
   22. BACK NAV  (.pv-back)
   ═══════════════════════════════════════════════════════════ */
.pv-back {
    display:     inline-flex;
    align-items: center;
    gap:         8px;
    color:       var(--saffron-d);
    text-decoration: none;
    font-size:   .82rem;
    font-weight: 800;
    padding:     8px 16px;
    border:      1.5px solid rgba(232,117,10,.25);
    border-radius: var(--radius-pill);
    background:  var(--saffron-l);
    transition:  all .25s;
}
.pv-back:hover {
    background:   var(--grad-brand);
    color:        #fff;
    border-color: transparent;
    box-shadow:   var(--shadow-maroon);
    text-decoration: none;
}


/* ═══════════════════════════════════════════════════════════
   23. SIGNATURE BLOCK  (.pv-signature)
   ═══════════════════════════════════════════════════════════ */
.pv-signature {
    text-align:  center;
    padding:     24px;
    border-top:  1.5px solid var(--border);
    margin-top:  36px;
    background:  var(--saffron-l);
    border-radius: var(--radius-md);
}
.pv-signature-name { font-weight: 900; font-size: .95rem; color: var(--ink); }
.pv-signature-role { font-size: .78rem; color: var(--muted); margin-top: 3px; }


/* ═══════════════════════════════════════════════════════════
   24. CALENDAR GRID  (.pv-cal-*)
   ═══════════════════════════════════════════════════════════ */
.pv-cal-card {
    background:    var(--white);
    border-radius: var(--radius-lg);
    border:        1.5px solid var(--border);
    box-shadow:    var(--shadow);
    overflow:      hidden;
    transition:    all .3s;
    height:        100%;
}
.pv-cal-card:hover {
    box-shadow:   var(--shadow-h);
    transform:    translateY(-4px);
    border-color: rgba(232,117,10,.2);
}
.pv-cal-head {
    background:   var(--saffron-l);
    border-bottom: 1.5px solid var(--border);
    padding:      12px 16px;
    display:      flex;
    align-items:  center;
    justify-content: space-between;
}
.pv-cal-month-name  { font-weight: 900; font-size: .95rem; color: var(--ink); }
.pv-cal-days-badge  {
    display:     inline-flex; align-items: center; gap: 5px;
    background:  var(--white); border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    padding:     3px 12px; font-size: .7rem; font-weight: 800; color: var(--saffron-d);
}
.pv-cal-body    { padding: 12px; }
.pv-cal-wd-row  {
    display:       grid;
    grid-template-columns: repeat(7,1fr);
    text-align:    center; margin-bottom: 6px;
    padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.pv-cal-wd       { font-size: .65rem; font-weight: 800; color: var(--muted); padding: 2px 0; }
.pv-cal-wd:first-child { color: #c0392b; }
.pv-cal-days-row { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; }
.pv-cal-day      {
    aspect-ratio: 1/1;
    display:      flex; align-items: center; justify-content: center;
    font-size:    .8rem; font-weight: 600;
}
.pv-cal-day.school {
    background:  var(--grad-brand);
    color:       #fff; border-radius: 8px; font-weight: 800;
    box-shadow:  0 2px 6px rgba(139,0,0,.2);
}
.pv-cal-day.sunday { color: #c0392b; font-weight: 800; }

/* Calendar legend */
.pv-cal-legend {
    display:       flex; justify-content: center; gap: 24px; flex-wrap: wrap;
    margin-top:    24px; padding: 16px 20px;
    background:    var(--white); border-radius: var(--radius-md);
    border:        1.5px solid var(--border); box-shadow: var(--shadow);
}
.pv-legend-item  { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; }
.pv-legend-dot   {
    width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: .7rem;
}
.pv-legend-school  { background: var(--grad-brand); color: #fff; }
.pv-legend-holiday { background: var(--white); border: 1.5px solid var(--border); color: var(--muted); }
.pv-legend-sunday  { background: #fff5f5; border: 1.5px solid rgba(192,57,43,.2); color: #c0392b; }


/* ═══════════════════════════════════════════════════════════
   25. HOLIDAY CARD  (.pv-holiday-card)
   ═══════════════════════════════════════════════════════════ */
.pv-holiday-card {
    background:    var(--white);
    border:        1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding:       14px 16px;
    display:       flex;
    align-items:   flex-start;
    gap:           14px;
    transition:    all .25s;
    height:        100%;
}
.pv-holiday-card:hover {
    border-color: rgba(232,117,10,.35);
    box-shadow:   var(--shadow);
    transform:    translateY(-3px);
}
.pv-holiday-date {
    background:   var(--saffron-l);
    color:        var(--saffron-d);
    border:       1px solid rgba(232,117,10,.25);
    border-radius: var(--radius-sm);
    padding:      6px 12px;
    font-size:    .72rem; font-weight: 800;
    white-space:  nowrap; flex-shrink: 0;
    min-width:    90px; text-align: center;
}
.pv-holiday-name { font-size: .82rem; font-weight: 700; color: var(--ink); line-height: 1.45; }


/* ═══════════════════════════════════════════════════════════
   26. PROGRAM TABLE  (.pv-prog-*)
   ═══════════════════════════════════════════════════════════ */
.pv-prog-card {
    background:    var(--white);
    border-radius: var(--radius-lg);
    border:        1.5px solid var(--border);
    box-shadow:    var(--shadow);
    overflow:      hidden;
}
.pv-prog-head {
    background:   var(--saffron-l);
    border-bottom: 1.5px solid var(--border);
    padding:      16px 22px;
    display:      flex; align-items: center; gap: 10px;
}
.pv-prog-head h5 { font-weight: 900; font-size: .95rem; color: var(--ink); margin: 0; }
.pv-prog-head i  { color: var(--saffron); }
.pv-prog-scroll  { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.pv-prog-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.pv-prog-table thead th {
    background:  var(--cream); font-size: .68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
    padding: 12px 16px; border-bottom: 1.5px solid var(--border);
}
.pv-prog-table thead th:first-child { padding-left: 22px; }
.pv-prog-table tbody tr { transition: background .2s; }
.pv-prog-table tbody tr:not(.pv-prog-month):hover { background: var(--cream); }
.pv-prog-table tbody td {
    padding: 12px 16px; font-size: .82rem;
    border-bottom: 1px solid var(--border); vertical-align: top;
}
.pv-prog-table tbody td:first-child { padding-left: 22px; }
.pv-prog-table tbody tr:last-child td { border-bottom: none; }
.pv-prog-month td {
    background: var(--saffron-l); font-size: .72rem; font-weight: 900;
    text-transform: uppercase; letter-spacing: .1em; color: var(--saffron-d);
    padding: 10px 20px !important; border: none !important;
}


/* ═══════════════════════════════════════════════════════════
   27. GUIDELINE LIST  (.pv-guideline-*)
   ═══════════════════════════════════════════════════════════ */
.pv-guideline-card {
    background:    var(--white);
    border-radius: var(--radius-lg);
    border:        1.5px solid var(--border);
    box-shadow:    var(--shadow);
    padding:       28px;
}
.pv-guideline-item {
    display:     flex; gap: 14px; align-items: flex-start;
    padding:     14px 0; border-bottom: 1px solid var(--border);
}
.pv-guideline-item:last-child { border-bottom: none; padding-bottom: 0; }
.pv-guide-icon {
    width: 32px; height: 32px; flex-shrink: 0;
    background: rgba(37,174,99,.12); color: #25ae63;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; margin-top: 2px;
}
.pv-guide-text { font-size: .85rem; font-weight: 600; color: var(--muted); line-height: 1.75; }


/* ═══════════════════════════════════════════════════════════
   28. SPLIT LOGIN LAYOUT  (.pv-login-*)
   ═══════════════════════════════════════════════════════════ */
.pv-login-wrap {
    min-height:  100vh;
    display:     grid;
    grid-template-columns: 1fr 1fr;
    overflow:    hidden;
}
.pv-login-left {
    background:    var(--grad-hero);
    display:       flex; flex-direction: column;
    justify-content: center; align-items: flex-start;
    padding:       60px 52px;
    position:      relative; overflow: hidden;
}
.pv-login-left::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 15% 75%, rgba(244,196,48,.22) 0%, transparent 50%),
        radial-gradient(circle at 85% 20%, rgba(255,255,255,.07) 0%, transparent 40%);
    pointer-events: none;
}
.pv-login-right {
    background:  var(--cream);
    display:     flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding:     48px 40px;
    overflow-y:  auto;
}
.pv-login-form-wrap { width: 100%; max-width: 400px; }

.pv-brand-mark      { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.pv-brand-icon      {
    width: 46px; height: 46px;
    background:  var(--grad-brand);
    border-radius: var(--radius-sm);
    display:     flex; align-items: center; justify-content: center;
    font-size:   1.2rem; color: var(--gold);
    box-shadow:  var(--shadow-maroon);
}
.pv-brand-main { font-weight: 900; font-size: 1rem; color: var(--ink); line-height: 1; }
.pv-brand-sub  { font-size: .7rem; color: var(--muted); font-weight: 600; margin-top: 2px; }

.pv-form-heading { font-size: 1.4rem; font-weight: 900; color: var(--ink); margin-bottom: 4px; }
.pv-form-subhead { font-size: .82rem; color: var(--muted); margin-bottom: 28px; }

.pv-form-footer {
    text-align:   center; margin-top: 24px;
    padding-top:  20px; border-top: 1.5px solid var(--border);
}
.pv-form-footer p { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.pv-form-footer a {
    color: var(--saffron-d); font-weight: 800;
    text-decoration: none; font-size: .8rem;
}
.pv-form-footer a:hover { text-decoration: underline; }

.pv-forgot {
    display:    block; text-align: right;
    font-size:  .75rem; color: var(--muted);
    text-decoration: none; margin-top: 8px; font-weight: 600;
}
.pv-forgot:hover { color: var(--saffron-d); }

/* Feature list inside login left */
.pv-feature-list    { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.pv-feature-list li {
    display:     flex; align-items: center; gap: 12px;
    color:       rgba(255,255,255,.9); font-size: .83rem; font-weight: 600;
}
.pv-feature-icon {
    width: 34px; height: 34px; flex-shrink: 0;
    background: rgba(255,255,255,.15);
    border:     1px solid rgba(255,255,255,.25);
    border-radius: 10px;
    display:    flex; align-items: center; justify-content: center;
    font-size:  .85rem;
}


/* ═══════════════════════════════════════════════════════════
   29. PHASE ROW (Term summary)
   ═══════════════════════════════════════════════════════════ */
.pv-phase-row {
    padding:      12px 14px;
    border-radius: var(--radius-md);
    background:   var(--cream);
    border:       1.5px solid var(--border);
    margin-bottom: 10px;
    transition:   border-color .2s;
}
.pv-phase-row:last-child { margin-bottom: 0; }
.pv-phase-row:hover      { border-color: rgba(232,117,10,.3); }
.pv-phase-name   { font-size: .8rem; font-weight: 800; color: var(--maroon); margin-bottom: 5px; }
.pv-phase-period { font-size: .75rem; color: var(--muted); line-height: 1.45; }
.pv-phase-days   {
    display:     inline-flex; align-items: center; gap: 5px;
    background:  var(--saffron-l); color: var(--saffron-d);
    border:      1px solid rgba(232,117,10,.2);
    border-radius: var(--radius-pill);
    padding:     3px 12px; font-size: .7rem; font-weight: 800; margin-top: 6px;
}


/* ═══════════════════════════════════════════════════════════
   30. ENTRANCE ANIMATION UTILITY
   ═══════════════════════════════════════════════════════════ */
.pv-fade-in {
    opacity: 0;
    animation: pv-fadeIn .4s ease forwards;
}
.pv-fade-in:nth-child(1)  { animation-delay: .05s; }
.pv-fade-in:nth-child(2)  { animation-delay: .12s; }
.pv-fade-in:nth-child(3)  { animation-delay: .19s; }
.pv-fade-in:nth-child(4)  { animation-delay: .26s; }
.pv-fade-in:nth-child(5)  { animation-delay: .33s; }
.pv-fade-in:nth-child(6)  { animation-delay: .40s; }


/* ═══════════════════════════════════════════════════════════
   31. RESPONSIVE OVERRIDES
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .pv-hero-deco  { display: none; }
    .pv-login-wrap { grid-template-columns: 1fr; overflow-y: auto; }
    .pv-login-left { min-height: auto; padding: 44px 28px 36px; }
    .pv-login-right { padding: 36px 24px 48px; }
}
@media (max-width: 768px) {
    .pv-hero    { padding: 42px 0 96px; }
    .pv-wrap    { padding: 20px 14px 32px; margin-top: -40px; }
    .pv-tabs    { gap: 6px; }
    .pv-tab-btn { padding: 8px 14px; font-size: .75rem; }
    .pv-cal-day { font-size: .72rem; }
    .pv-prog-table thead { display: none; }
    .pv-prog-table tbody td { display: block; width: 100%; border-bottom: none; padding: 6px 14px; }
    .pv-prog-table tbody td:first-child  { padding-top: 12px; }
    .pv-prog-table tbody td:last-child   { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
    .pv-prog-month td { display: block; }
    .pv-search { max-width: 100%; }
}
@media (max-width: 480px) {
    .pv-tab-btn .pv-tab-label { display: none; }
    .pv-cal-day  { font-size: .65rem; }
    .pv-cal-wd   { font-size: .6rem; }
    .pv-login-left  { padding: 36px 20px 28px; }
    .pv-login-right { padding: 28px 16px 40px; }
}