﻿/* ============================================================
   Eelu LibraryPro - design system (navbar, footer, landing)
   ============================================================ */

:root {
    --brand: #0b7bf2;
    --brand-dark: #0a63c9;
    --brand-soft: #e8f3fd;
    --navy: #142f4e;
    --ink: #0f1f33;
    --muted: #5b6b80;
    --line: #e7eef7;
    --page-bg: #f8fafd;
}

body {
    background-color: var(--page-bg);
    color: var(--ink);
}

/* ---------------- Navbar ---------------- */
.ls-navbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 12px rgba(15, 31, 51, 0.04);
    padding-top: .55rem;
    padding-bottom: .55rem;
}

.ls-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 800;
    font-size: 1.28rem;
    color: var(--ink) !important;
    text-decoration: none;
}

.ls-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.ls-toggler {
    border-color: var(--line);
}

.ls-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230f1f33' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.ls-nav-center {
    align-items: center;
    gap: .15rem;
    background: #f4f8fe;
    border-radius: 999px;
    padding: .3rem .4rem;
    margin-top: .75rem;
    flex-wrap: wrap;
}

.ls-nav-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: background .2s, color .2s;
    white-space: nowrap;
}

.ls-nav-link i {
    font-size: .9rem;
}

.ls-nav-link:hover {
    color: var(--brand);
    background: #fff;
}

.ls-nav-link.active {
    background: var(--brand-soft);
    color: var(--brand);
}

.ls-auth {
    align-items: center;
    gap: .5rem;
    margin-top: .75rem;
}

.ls-login {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1rem;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
}

.ls-login:hover {
    color: var(--brand);
}

.ls-register {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.25rem;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff !important;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(11, 123, 242, 0.28);
    transition: transform .15s, box-shadow .15s;
}

.ls-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(11, 123, 242, 0.34);
}

@media (min-width: 992px) {
    .ls-nav-center,
    .ls-auth {
        margin-top: 0;
    }
    .ls-auth {
        margin-left: auto;
    }
}

/* ---------------- Buttons ---------------- */
.btn-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: .8rem 1.6rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(11, 123, 242, 0.28);
    transition: transform .15s, box-shadow .15s;
}

.btn-brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(11, 123, 242, 0.36);
}

.btn-brand-outline {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    color: var(--brand) !important;
    border: 1.5px solid #bcd9fa;
    border-radius: 10px;
    padding: .8rem 1.6rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}

/* ---------------- Attention blink (hero CTA etc.) ---------------- */
@keyframes btn-blink {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(11, 123, 242, 0);
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 0%, transparent);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 9px rgba(11, 123, 242, 0.22);
        box-shadow: 0 0 0 9px color-mix(in srgb, var(--brand) 25%, transparent);
        transform: scale(1.03);
    }
}

.btn-blink {
    animation: btn-blink 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .btn-blink {
        animation: none;
    }
}

.btn-brand-outline:hover {
    border-color: var(--brand);
    box-shadow: 0 8px 20px rgba(11, 123, 242, 0.16);
}

/* ---------------- Hero ---------------- */
.ls-hero {
    background: linear-gradient(150deg, #e2f0fe 0%, #eaf7ff 55%, #eef8ff 100%);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: .85rem;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .74rem;
    font-weight: 700;
    color: #3f7fd1;
    margin-bottom: 1.1rem;
}

.hero-eyebrow::before {
    content: "";
    width: 42px;
    height: 2px;
    background: #9fc4ee;
    border-radius: 2px;
}

.hero-title {
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--ink);
    margin-bottom: 1.1rem;
}

.hero-title .accent {
    color: var(--brand);
}

.hero-lead {
    font-size: 1.06rem;
    color: #4a5c72;
    line-height: 1.6;
    max-width: 30rem;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-bottom: 1.75rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.15rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-feature {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    color: #33475f;
    font-size: .92rem;
}

.hero-feature i {
    color: #22b573;
    font-size: 1.1rem;
}

.hero-media {
    position: relative;
    height: 100%;
    min-height: 300px;
}

.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 31, 51, 0.14);
}

/* ---------------- Section headings ---------------- */
.section-head {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: .45rem;
}

.section-sub {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 0;
}

/* ---------------- Time slots ---------------- */
.slot-head-wrap {
    position: relative;
}

.slot-arrows {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.slot-head-wrap .slot-arrows {
    position: absolute;
    right: 0;
    top: .2rem;
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .slot-head-wrap .slot-arrows {
        position: static;
        margin-top: 1rem;
    }
}

.slot-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.slot-arrow:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.slot-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(15, 31, 51, 0.05);
    transition: transform .18s, box-shadow .18s;
}

.slot-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 31, 51, 0.1);
}

.slot-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    min-height: 78px;
}

.slot-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex: 0 0 auto;
}

.tint-amber { background: #fdf3d7; color: #f2b705; }
.tint-orange { background: #ffece0; color: #f2814b; }
.tint-green { background: #e2f6ea; color: #22b573; }
.tint-purple { background: #efe6fd; color: #8b5cf6; }
.tint-blue { background: #e2eefe; color: #2f80ed; }

.slot-name {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 .2rem;
}

.slot-desc {
    font-size: .82rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.35;
}

.slot-price {
    color: var(--brand);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: .75rem;
}

.slot-price span {
    font-size: .85rem;
    font-weight: 600;
    color: #5f8fd0;
    margin-left: .2rem;
}

.slot-time {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #3d4d61;
    font-size: .92rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.slot-time i {
    color: #7d8da3;
}

.slot-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .75rem 1rem;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.slot-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(11, 123, 242, 0.3);
}

.promo-card {
    position: relative;
    height: 100%;
    min-height: 220px;
    border-radius: 16px;
    padding: 1.75rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.9) 0 40px, transparent 41px),
        radial-gradient(circle at 20% 100%, rgba(255, 255, 255, 0.6) 0 60px, transparent 61px),
        linear-gradient(150deg, #e8f3fe 0%, #dcecfd 100%);
    border: 1px solid #dceafb;
}

.promo-title {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 1rem;
    max-width: 70%;
}

.promo-line {
    display: block;
    width: 42px;
    height: 4px;
    border-radius: 4px;
    background: var(--brand);
}

.promo-books {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 46%;
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(20, 47, 78, 0.18));
}

/* ---------------- Why choose us ---------------- */
.why-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    box-shadow: 0 6px 20px rgba(15, 31, 51, 0.05);
}

.why-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex: 0 0 auto;
}

.why-icon.tint-green { background: #e2f6ea; color: #22b573; }
.why-icon.tint-blue { background: #e2eefe; color: #2f80ed; }
.why-icon.tint-red { background: #fde7ec; color: #f43f5e; }

.why-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 .3rem;
}

.why-text {
    font-size: .9rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}

/* ---------------- How it works ---------------- */
.how-panel {
    background: linear-gradient(150deg, #e8f3fe 0%, #eef7ff 100%);
    border-radius: 22px;
    padding: 2rem;
}
.how-panel .section-title {
    font-size: 1.5rem;
}
.how-head {
    display: flex;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.how-head-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.how-caption {
    margin-left: auto;
    color: var(--muted);
    font-size: .95rem;
}

.how-inner {
    background: #fff;
    border-radius: 18px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 31, 51, 0.06);
}

.how-step {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.how-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    margin-bottom: .7rem;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(20, 60, 120, 0.25);
    position: relative;
    z-index: 2;
}

.how-inner .row {
    position: relative;
}

.how-inner .row::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 13%;
    right: 13%;
    border-top: 2px dashed #bcd4ef;
    z-index: 0;
}

.how-step-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: .75rem;
    border: 4px solid #fff;
    box-shadow: 0 0 0 6px #e8f3fe, 0 12px 24px rgba(20, 60, 120, 0.22);
    transition: transform .2s ease;
}

.how-step:hover .how-step-icon {
    transform: translateY(-4px) scale(1.04);
}

.how-step-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: .35rem;
}

.how-step-text {
    font-size: .86rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

.how-arrow {
    display: none;
}

/* ---------------- Footer ---------------- */
.ls-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.78);
    padding: 2.5rem 0 1.25rem;
    margin-top: 3rem;
}

.ls-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ls-footer-brand .ls-brand {
    color: #fff !important;
    font-size: 1.15rem;
}

.ls-footer-brand .ls-brand-icon {
    background: rgba(255, 255, 255, 0.12);
}

.ls-footer-tag {
    color: rgba(255, 255, 255, 0.6);
    font-size: .88rem;
    margin: .55rem 0 0;
}

.ls-footer-links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ls-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    transition: color .15s;
}

.ls-footer-links a:hover {
    color: #fff;
}

.ls-footer-social {
    display: flex;
    gap: .6rem;
}

.ls-social {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .15s;
}

.ls-social:hover {
    background: var(--brand);
    color: #fff;
}

.ls-footer-divider {
    border-color: rgba(255, 255, 255, 0.12);
    margin: 1.75rem 0 1rem;
    opacity: 1;
}

.ls-footer-copy {
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: .85rem;
    margin: 0;
}

/* ---------------- Static pages (About / FAQs / Contact) ---------------- */
.page-hero {
    padding: 2.5rem 3rem;
}

.page-hero .hero-title {
    margin-bottom: .6rem;
}

.page-hero .hero-lead {
    margin-bottom: 0;
}

.page-prose {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 2.25rem 2.5rem;
    box-shadow: 0 6px 20px rgba(15, 31, 51, 0.05);
    font-size: 1.02rem;
    line-height: 1.75;
    color: #33475f;
}

.page-prose p:last-child {
    margin-bottom: 0;
}

.page-prose h3,
.page-prose h4 {
    color: var(--ink);
    font-weight: 800;
    margin: 1.5rem 0 .6rem;
}

.page-prose h3:first-child,
.page-prose h4:first-child {
    margin-top: 0;
}

.page-prose ul,
.page-prose ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.page-prose li {
    margin-bottom: .35rem;
}

.page-prose a {
    color: var(--brand);
    font-weight: 600;
}

.page-prose blockquote {
    border-left: 4px solid var(--brand);
    background: var(--brand-soft);
    border-radius: 0 12px 12px 0;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    font-style: italic;
    color: var(--ink);
}

/* FAQ list */
.faq-search {
    max-width: 560px;
    margin: 0 auto 2rem;
    position: relative;
}

.faq-search i {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.faq-search input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .85rem 1.25rem .85rem 2.9rem;
    font-size: 1rem;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 31, 51, 0.05);
}

.faq-search input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 31, 51, 0.05);
    transition: border-color .15s, box-shadow .15s;
}

.faq-item.open,
.faq-item:hover {
    border-color: var(--brand);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: none;
    border: none;
    text-align: left;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
}

.faq-num {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 800;
}

.faq-item.open .faq-num {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
}

.faq-q-text {
    flex: 1 1 auto;
}

.faq-chev {
    flex: 0 0 auto;
    color: var(--brand);
    transition: transform .2s;
}

.faq-item.open .faq-chev {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

.faq-a-inner {
    padding: 0 1.5rem 1.4rem 4.1rem;
    color: #4a5c72;
    line-height: 1.7;
}

.faq-a-inner p:last-child {
    margin-bottom: 0;
}

/* Contact cards */
.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    height: 100%;
    text-align: center;
    box-shadow: 0 6px 20px rgba(15, 31, 51, 0.05);
    transition: transform .18s, box-shadow .18s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 31, 51, 0.1);
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
}

.contact-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 .4rem;
}

.contact-text {
    font-size: .93rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.contact-text a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-cta {
    margin-top: 2.5rem;
}

@media (max-width: 575.98px) {
    .page-hero {
        padding: 1.75rem 1.5rem;
    }
    .page-prose {
        padding: 1.5rem 1.25rem;
    }
    .faq-a-inner {
        padding-left: 1.5rem;
    }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 991.98px) {
    .ls-hero {
        padding: 2rem;
    }
    .hero-media {
        margin-top: 1.75rem;
        min-height: 240px;
    }
    .hero-media img {
        min-height: 240px;
    }
    .how-caption {
        margin-left: 0;
        width: 100%;
    }
    .how-arrow {
        display: none;
    }
    .how-inner .row::before {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .ls-hero {
        padding: 1.5rem;
        border-radius: 18px;
    }
    .hero-features {
        gap: 1rem;
    }
    .promo-title {
        max-width: 100%;
    }
    .ls-footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

