/* =============================================================================
   styles.css — Hero block styles for block_vidyanagari_hero.
   Loaded via $PAGE->requires->css() in block_vidyanagari_hero.php.
   ============================================================================= */

/* ── Strip outer Moodle block chrome ─────────────────────────────────────── */
.block_vidyanagari_hero.block {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
.block_vidyanagari_hero .card {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
.block_vidyanagari_hero .card-body { padding: 0 !important; }
.block_vidyanagari_hero .card-title,
.block_vidyanagari_hero .block-header { display: none !important; }
.block_vidyanagari_hero .card-text.content { margin-top: 0 !important; }

/* ── Hero block ───────────────────────────────────────────────────────────── */
.vn-hero {
    background: radial-gradient(120% 120% at 12% 0%, #1B3663 0%, #102546 48%, #0B1B34 100%);
    color: #EDF1F8;
    position: relative;
    overflow: hidden;
}
.vn-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .12;
    background-image: linear-gradient(#C99A3E 1px, transparent 1px);
    background-size: 100% 34px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 35%, transparent);
}
.vn-hero-in {
    display: flex;
    gap: 36px;
    align-items: center;
    padding: 52px 26px 30px;
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
}
.vn-hero-copy { flex: 1; min-width: 0; }
.vn-hero-eyebrow {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #DCB666;
    display: block;
    margin-bottom: 8px;
}
.vn-hero-copy h1 {
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: 39px;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: -.02em;
}
.vn-hero-copy > p {
    color: #9FB0CB;
    font-size: 15px;
    max-width: 56ch;
    margin: 0 0 26px;
}

/* ── Search bar ───────────────────────────────────────────────────────────── */
.vn-hero-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 8px 8px 8px 14px;
    max-width: 540px;
    box-shadow: 0 24px 60px -20px rgba(11,27,52,.45);
}
.vn-hero-search svg {
    width: 18px;
    height: 18px;
    stroke: #6B7285;
    fill: none;
    stroke-width: 1.8;
    flex: none;
}
.vn-hero-search input {
    flex: 1;
    border: 0;
    background: none;
    font-size: 14.5px;
    color: #131A26;
    padding: 6px 0;
    font-family: inherit;
}
.vn-hero-search input:focus { outline: none; }
.vn-hero-search input::placeholder { color: #6B7285; }
.vn-hero-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 6px;
    border: none;
    background: #C99A3E;
    color: #26200F;
    font-size: 13.5px;
    font-weight: 650;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.vn-hero-search-btn:hover { background: #DCB666; }

/* ── Quick links ──────────────────────────────────────────────────────────── */
.vn-hero-links {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #9FB0CB;
}
.vn-hero-links a { color: #DCB666; text-decoration: none; }
.vn-hero-links a:hover { text-decoration: underline; }

/* ── Tower illustration ───────────────────────────────────────────────────── */
.vn-hero-tower { flex: none; width: 230px; display: flex; justify-content: center; }
.vn-hero-tower svg { width: 200px; }
.vn-hero-tower .draw {
    stroke: rgba(255,255,255,.55);
    stroke-width: 1.5;
    fill: none;
    stroke-linejoin: round;
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: vnh-draw 2.6s ease-out .25s forwards;
}
.vn-hero-tower .glow {
    fill: #DCB666;
    opacity: 0;
    animation: vnh-glow .9s ease-out 2.1s forwards;
}
@keyframes vnh-draw { to { stroke-dashoffset: 0; } }
@keyframes vnh-glow { to { opacity: .9; } }
@media (prefers-reduced-motion: reduce) {
    .vn-hero-tower .draw { stroke-dashoffset: 0; animation: none; }
    .vn-hero-tower .glow { opacity: .9; animation: none; }
}

/* ── Stats bar ────────────────────────────────────────────────────────────── */
.vn-hero-stats {
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
    padding: 12px 26px 26px;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255,255,255,.1);
    max-width: 1180px;
    margin: 0 auto;
}
.vn-hero-stats > div { display: flex; flex-direction: column; gap: 2px; }
.vn-hero-stats b {
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: 26px;
    color: #DCB666;
    line-height: 1.1;
    font-weight: 600;
}
.vn-hero-stats span { font-size: 12px; color: #9FB0CB; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .vn-hero-tower { display: none; }
    .vn-hero-copy h1 { font-size: 29px; }
    .vn-hero-in { padding: 34px 20px 20px; }
}
