/**
 * Custom Lækning.is Styles
 * Global custom styles + Fræðsluefni pages
 */

/* ═══════════════════════════════════════════════
   LOGO TEXT — hide the white "LAEKNING" text beside logo
   The logo image itself already contains the name
   ═══════════════════════════════════════════════ */
.logo-text {
    display: none !important;
}

/* ═══════════════════════════════════════════════
   HEADER TOP BAR — readable text (site-wide)
   Fixes white-on-black text in the info bar
   ═══════════════════════════════════════════════ */

/* Top bar: light background with dark text */
.pix-top-bar,
.pix-top-bar.black {
    background: #f8fafc !important;
}
.pix-top-bar a,
.pix-top-bar li,
.pix-top-bar ul li,
.pix-top-bar i,
.header-topbarbox-1 li,
.header-topbarbox-1 a,
.header-topbarbox-1 i,
.header-topbarbox-2 a,
.header-topbarbox-2 li {
    color: #475569 !important;
}
.pix-top-bar a:hover,
.header-topbarbox-1 a:hover {
    color: #30d2b9 !important;
}

/* Info container in header (Tölvupóstur, Sími, Virkir dagar) */
.pix-header.black .row .row span,
.pix-header.black .row .row h4,
.pix-header.black .row .row h4 a,
.pix-header.pix-levels.black .pix-info span,
.pix-header.pix-levels.black .pix-info h4,
.pix-info-container,
.pix-info-container li,
.pix-info-container a,
.pix-info-container span,
.pix-info-container h4,
.pix-info-container p,
.pix-info-container i,
.pix-info-container .pix-info,
.pix-info-container .pix-info span,
.pix-info-container .pix-info h4,
.pix-text-right,
.pix-text-right li,
.pix-text-right a,
.pix-text-right span,
.pix-text-right h4,
.pix-text-right p,
.pix-text-right i {
    color: #475569 !important;
}
.pix-info-container a:hover,
.pix-text-right a:hover,
.pix-header.black .row .row h4 a:hover {
    color: #30d2b9 !important;
}

/* ═══════════════════════════════════════════════
   B&W filter for doctor/staff photos ONLY (site-wide)
   ═══════════════════════════════════════════════ */
/* Single doctor/staff page photo */
.service-page-item-image img {
    filter: grayscale(100%) !important;
}
/* Doctor/staff listing cards (WPBakery service-box-5) */
.staf .service-box-5 .pix-img-wrapper img,
.service-box-5 .pix-img-wrapper img {
    filter: grayscale(100%) !important;
}

/* ═══════════════════════════════════════════════
   Ferli eftir aðgerðir Page Styles
   ═══════════════════════════════════════════════ */

/* Hero */
.lk-ferli-hero {
    background: linear-gradient(135deg, #d1faf0 0%, #eafaf6 50%, #f0fdf9 100%);
    padding: 200px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.lk-ferli-hero::before {
    content: '';
    position: absolute;
    top: -40%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(48,210,185,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.lk-ferli-hero .container { position: relative; z-index: 2; }
.lk-ferli-hero .lk-breadcrumb {
    font-size: 13px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.lk-ferli-hero .lk-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}
.lk-ferli-hero .lk-breadcrumb a:hover { color: #1a8a78; }
.lk-ferli-hero .lk-breadcrumb .lk-bc-sep { color: #94a3b8; }
.lk-ferli-hero .lk-breadcrumb span[aria-current] { color: #1a8a78; font-weight: 600; }
.lk-ferli-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.lk-ferli-hero .lk-page-hero-sub {
    font-size: clamp(15px, 1.8vw, 18px);
    color: #475569;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Content area */
.lk-ferli-content {
    background: #eafaf6;
    padding: 64px 0 80px;
}
.lk-ferli-content .container {
    max-width: 800px;
}

/* Content Cards */
.fraedsla-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}
.fraedsla-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    margin-top: 0;
}
.fraedsla-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 12px;
}
.fraedsla-card-highlight {
    border-left: 4px solid #30d2b9;
}

/* Info Box */
.fraedsla-info-box {
    background: #f0fdf9;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 16px 0;
}
.fraedsla-info-box p {
    margin: 0;
    color: #1a8a78;
}

/* Warning Box */
.fraedsla-warning-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 16px 0;
}
.fraedsla-warning-box p {
    margin: 0;
    color: #78350f;
}

/* Timeline */
.fraedsla-timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 10px;
}
.fraedsla-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #30d2b9, #51f9df);
    border-radius: 3px;
}
.timeline-item {
    position: relative;
    padding-left: 22px;
    padding-bottom: 28px;
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: #30d2b9;
    border-radius: 50%;
    border: 3px solid #ccfbf1;
}
.timeline-badge {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, #30d2b9, #51f9df);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 8px;
}
.timeline-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}
.timeline-body p {
    margin-bottom: 4px;
}
.timeline-note {
    font-size: 14px;
    color: #64748b !important;
    font-style: italic;
}

/* CTA */
.lk-ferli-cta {
    background: linear-gradient(135deg, #d1faf0 0%, #eafaf6 50%, #f0fdf9 100%);
    padding: 72px 0;
}
.lk-ferli-cta .lk-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.lk-ferli-cta .lk-cta-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}
.lk-ferli-cta .lk-cta-text p {
    font-size: 16px;
    color: #475569;
    margin: 0;
    max-width: 460px;
    line-height: 1.6;
}
.lk-ferli-cta .lk-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.lk-ferli-cta .lk-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
}
.lk-ferli-cta .lk-btn-primary {
    background: linear-gradient(135deg, #30d2b9, #51f9df);
    color: #0f172a;
}
.lk-ferli-cta .lk-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(48,210,185,0.35);
}
.lk-ferli-cta .lk-btn-outline {
    background: #fff;
    color: #0f172a;
    border: 1.5px solid #e2e8f0;
}
.lk-ferli-cta .lk-btn-outline:hover {
    border-color: #30d2b9;
    color: #1a8a78;
}

/* Mobile */
@media (max-width: 768px) {
    .lk-ferli-hero {
        padding: 140px 0 48px;
    }
    .lk-ferli-hero h1 {
        font-size: 22px;
    }
    .lk-ferli-content {
        padding: 40px 0 56px;
    }
    .fraedsla-card {
        padding: 20px 16px;
        border-radius: 10px;
        margin-bottom: 18px;
    }
    .fraedsla-card h2 {
        font-size: 19px;
        margin-bottom: 12px;
    }
    .fraedsla-card p {
        font-size: 15px;
        line-height: 1.65;
    }
    .fraedsla-info-box,
    .fraedsla-warning-box {
        padding: 14px 16px;
        border-radius: 8px;
    }
    .fraedsla-info-box p,
    .fraedsla-warning-box p {
        font-size: 14px;
        line-height: 1.6;
    }
    .fraedsla-timeline {
        padding-left: 20px;
    }
    .timeline-item {
        padding-left: 18px;
        padding-bottom: 22px;
    }
    .timeline-item::before {
        left: -27px;
        width: 12px;
        height: 12px;
    }
    .timeline-badge {
        font-size: 12px;
        padding: 3px 12px;
    }
    .timeline-body h3 {
        font-size: 16px;
    }
    .timeline-body p {
        font-size: 14px;
    }
    .lk-ferli-cta { padding: 48px 0; }
    .lk-ferli-cta .lk-cta-inner {
        flex-direction: column;
        text-align: center;
    }
    .lk-ferli-cta .lk-cta-text p { margin: 0 auto; }
    .lk-ferli-cta .lk-cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .lk-ferli-cta .lk-btn {
        justify-content: center;
        width: 100%;
    }
}

/* Small phones */
@media (max-width: 400px) {
    .lk-ferli-hero { padding: 120px 0 36px; }
    .lk-ferli-hero h1 { font-size: 20px; }
    .fraedsla-card {
        padding: 16px 14px;
    }
    .fraedsla-card h2 {
        font-size: 17px;
    }
    .fraedsla-timeline {
        padding-left: 16px;
    }
    .timeline-item {
        padding-left: 14px;
    }
    .timeline-item::before {
        left: -22px;
        width: 10px;
        height: 10px;
    }
}
