/* ==========================================================================
   MedGO – közös modul-design
   --------------------------------------------------------------------------
   Egy helyen definiálja a tematikus modulok (NEAK-modulok, gyógyszerek,
   tünetek, toplisták, ügyelet stb.) fejlécét, keresőjét, szekciócímeit,
   kártyáit és címkéit. A régi, modulonként külön bevezetett osztálynevek
   (.hv-, .gp-, .ugyelet-, .medicine- …) ugyanide vannak kötve, így minden
   modul egyforma marad anélkül, hogy a markupot át kellene írni.
   ========================================================================== */

:root {
    --mg-brand: #00B074;
    --mg-brand-dark: #007a4f;
    --mg-ink: #16262c;
    --mg-muted: #6b7c83;
    --mg-line: #e4ebe8;
    --mg-tint: #f6fbf9;
}

/* --------------------------------------------------------------------------
   Fejléc
   -------------------------------------------------------------------------- */

.mg-hero,
.hv-hero,
.gp-hero,
.medicine-hero,
.vz-hero,
.fe-hero,
.wx-hero {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--mg-line);
    border-radius: 1.5rem;
    box-shadow: 0 18px 44px -26px rgba(14, 56, 42, .45);
    color: var(--mg-ink);
}

.mg-hero::before,
.hv-hero::before,
.gp-hero::before,
.medicine-hero::before,
.vz-hero::before,
.fe-hero::before,
.wx-hero::before {
    content: "";
    position: absolute;
    top: -160px;
    right: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 176, 116, .16) 0%, rgba(0, 176, 116, 0) 70%);
    pointer-events: none;
}

.mg-hero>*,
.hv-hero>*,
.gp-hero>*,
.medicine-hero>*,
.vz-hero>*,
.fe-hero>*,
.wx-hero>* {
    position: relative;
}

.mg-hero h1,
.hv-hero h1,
.gp-hero h1,
.medicine-hero h1,
.vz-hero h1,
.fe-hero h1,
.wx-hero h1 {
    color: var(--mg-ink);
    font-weight: 800;
    font-size: clamp(1.55rem, 3.6vw, 2.25rem);
    letter-spacing: -.02em;
    line-height: 1.2;
}

.mg-hero .lead,
.hv-hero .lead,
.gp-hero .lead,
.medicine-hero .lead,
.medicine-hero p,
.vz-hero .lead,
.fe-hero .lead,
.wx-hero .lead {
    color: var(--mg-muted);
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: 64ch;
}

.mg-hero.text-center .lead,
.sf-hero .lead {
    margin-left: auto;
    margin-right: auto;
}

.mg-hero .lead i,
.hv-hero .lead i,
.gp-hero .lead i {
    color: var(--mg-brand);
}

/* A hero-ban korábban fehér, áttetsző szövegek */
.mg-hero .opacity-75,
.medicine-hero .opacity-75,
.sf-hero .opacity-75 {
    opacity: 1 !important;
}

/* Sötét háttérre szánt gombok a világos fejlécben */
.mg-hero .btn-light,
.hv-hero .btn-light,
.gp-hero .btn-light,
.medicine-hero .btn-light,
.sf-hero .btn-light {
    background: var(--mg-brand);
    border-color: var(--mg-brand);
    color: #fff !important;
}

.mg-hero .btn-light:hover,
.hv-hero .btn-light:hover,
.gp-hero .btn-light:hover,
.medicine-hero .btn-light:hover,
.sf-hero .btn-light:hover {
    background: var(--mg-brand-dark);
    border-color: var(--mg-brand-dark);
}

.mg-hero .btn-outline-light,
.hv-hero .btn-outline-light,
.gp-hero .btn-outline-light,
.medicine-hero .btn-outline-light,
.sf-hero .btn-outline-light {
    background: #fff;
    border-color: #cfe3da;
    color: var(--mg-brand-dark);
}

.mg-hero .btn-outline-light:hover,
.hv-hero .btn-outline-light:hover,
.gp-hero .btn-outline-light:hover,
.medicine-hero .btn-outline-light:hover,
.sf-hero .btn-outline-light:hover {
    border-color: var(--mg-brand);
    background: var(--mg-tint);
    color: var(--mg-brand-dark);
}

/* Kis „eyebrow” címke a cím fölött */
.mg-eyebrow,
.ugyelet-pill,
.medicine-hero .badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #E6F7EF !important;
    color: var(--mg-brand-dark) !important;
    font-size: .8rem;
    font-weight: 700;
    padding: .35rem .9rem;
    border-radius: 999px;
}

/* Morzsamenü */
.mg-breadcrumb .breadcrumb-item a,
.hv-breadcrumb .breadcrumb-item a,
.gp-breadcrumb .breadcrumb-item a {
    color: var(--mg-muted);
    text-decoration: none;
}

.mg-breadcrumb .breadcrumb-item a:hover,
.hv-breadcrumb .breadcrumb-item a:hover,
.gp-breadcrumb .breadcrumb-item a:hover {
    color: var(--mg-brand-dark);
    text-decoration: underline;
}

.mg-breadcrumb .breadcrumb-item.active,
.hv-breadcrumb .breadcrumb-item.active,
.gp-breadcrumb .breadcrumb-item.active {
    color: var(--mg-ink);
    font-weight: 700;
}

.mg-breadcrumb .breadcrumb-item+.breadcrumb-item::before,
.hv-breadcrumb .breadcrumb-item+.breadcrumb-item::before,
.gp-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: #b9c6c1;
}

/* --------------------------------------------------------------------------
   Kereső
   -------------------------------------------------------------------------- */

.mg-search,
.hv-search,
.gp-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: .4rem;
    max-width: 620px;
    background: #fff;
    border: 1.5px solid #dfe8e4;
    border-radius: 1rem;
    padding: .3rem .3rem .3rem 2.5rem;
    box-shadow: 0 2px 12px rgba(14, 56, 42, .06);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mg-search::before,
.hv-search::before,
.gp-search::before {
    content: "\f002";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #9fb0a9;
    font-size: .95rem;
    pointer-events: none;
}

.mg-search:focus-within,
.hv-search:focus-within,
.gp-search:focus-within {
    border-color: var(--mg-brand);
    box-shadow: 0 0 0 4px rgba(0, 176, 116, .13);
}

.mg-search input,
.hv-search input,
.gp-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: .8rem .3rem;
    font-size: 1rem;
    color: var(--mg-ink);
}

.mg-search input::placeholder,
.hv-search input::placeholder,
.gp-search input::placeholder {
    color: #9aa9a4;
}

.mg-search input::-webkit-search-cancel-button,
.hv-search input::-webkit-search-cancel-button,
.gp-search input::-webkit-search-cancel-button {
    display: none;
}

.mg-search button,
.hv-search button,
.gp-search button {
    border: 0;
    border-radius: .8rem;
    padding: .75rem 1.5rem;
    font-weight: 700;
    background: var(--mg-brand);
    color: #fff;
    white-space: nowrap;
    transition: background .2s ease;
}

.mg-search button:hover,
.hv-search button:hover,
.gp-search button:hover {
    background: var(--mg-brand-dark);
}

.mg-search button i,
.hv-search button i,
.gp-search button i {
    display: none;
}

/* Űrlapos keresődobozok (település-választó stb.) a fejlécben */
.mg-searchbox {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-radius: 1rem;
    padding: .9rem;
    box-shadow: 0 2px 12px rgba(14, 56, 42, .06);
}

/* --------------------------------------------------------------------------
   Számok
   -------------------------------------------------------------------------- */

.mg-stats,
.hv-stats,
.gp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: .6rem;
    margin-top: 1.5rem;
    max-width: 620px;
}

.mg-stat,
.hv-stat,
.gp-stat {
    background: var(--mg-tint);
    border: 1px solid #e3efe9;
    border-radius: .9rem;
    padding: .7rem .9rem;
}

.mg-stat strong,
.hv-stat strong,
.gp-stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--mg-brand-dark);
    font-weight: 800;
    line-height: 1.1;
}

.mg-stat span,
.hv-stat span,
.gp-stat span {
    color: var(--mg-muted);
    font-size: .82rem;
}

.mg-stat.is-vacant,
.gp-stat.is-vacant {
    background: #FFFBF2;
    border-color: #F3E2BE;
}

.mg-stat.is-vacant strong,
.gp-stat.is-vacant strong {
    color: #a15c00;
}

/* Középre igazított fejlécben a kereső és a számok is középen állnak */
.mg-hero.text-center .mg-search,
.mg-hero.text-center .mg-stats,
.sf-hero .mg-stats {
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------------------
   Szekciócím
   -------------------------------------------------------------------------- */

.mg-section-title,
.hv-section-title,
.gp-section-title {
    position: relative;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--mg-ink);
    letter-spacing: -.01em;
    margin-bottom: 1rem;
    padding-left: .85rem;
}

.mg-section-title::before,
.hv-section-title::before,
.gp-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    bottom: .2em;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--mg-brand), #0b8f9b);
}

/* --------------------------------------------------------------------------
   Kártyák
   -------------------------------------------------------------------------- */

.mg-card,
.hv-card,
.gp-card {
    background: #fff;
    border: 1px solid var(--mg-line);
    border-radius: 1rem;
    padding: 1.2rem 1.35rem;
    margin-bottom: .85rem;
    box-shadow: 0 2px 10px rgba(43, 57, 64, .04);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mg-card:hover,
.hv-card:hover,
.gp-card:hover {
    border-color: #cfe3da;
    box-shadow: 0 10px 26px -16px rgba(14, 56, 42, .45);
}

.mg-card-head,
.hv-card-head,
.gp-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.mg-card-name,
.hv-card-name,
.gp-card-name {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 .35rem;
    line-height: 1.35;
}

.mg-card-name a:hover,
.hv-card-name a:hover,
.gp-card-name a:hover {
    color: var(--mg-brand-dark);
}

.mg-card-meta,
.hv-card-meta,
.gp-card-meta {
    color: var(--mg-muted);
    font-size: .92rem;
    line-height: 1.5;
}

.mg-card-meta i,
.hv-card-meta i,
.gp-card-meta i {
    color: var(--mg-brand);
    width: 1.1rem;
}

.mg-badge,
.hv-badge,
.gp-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 700;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: #E6F7EF;
    color: #00794f;
}

.mg-badge.is-vacant,
.hv-badge.is-vacant,
.gp-badge.is-vacant {
    background: #fff4e5;
    color: #a15c00;
}

.mg-badge.is-type,
.hv-badge.is-type,
.gp-badge.is-type {
    background: #eef3ff;
    color: #2f4fa8;
}

/* --------------------------------------------------------------------------
   Címkék
   -------------------------------------------------------------------------- */

.mg-pills,
.hv-pills,
.gp-pills,
.ms-treatments {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.mg-pill,
.hv-pill,
.gp-pill,
.ms-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .89rem;
    line-height: 1.3;
    text-decoration: none;
    color: #36474e;
    background: #fff;
    border: 1px solid var(--mg-line);
    border-radius: 999px;
    padding: .45rem .9rem;
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.mg-pill small,
.hv-pill small,
.gp-pill small,
.ms-tag small {
    color: #8d9c97;
    font-size: .78rem;
    font-weight: 600;
    background: #f1f5f3;
    border-radius: 999px;
    padding: .08rem .45rem;
}

.mg-pill i,
.hv-pill i,
.gp-pill i {
    color: var(--mg-brand);
}

.mg-pill:hover,
.hv-pill:hover,
.gp-pill:hover,
.ms-tag:hover {
    border-color: var(--mg-brand);
    background: var(--mg-tint);
    color: var(--mg-brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -8px rgba(0, 176, 116, .55);
}

.mg-pill:hover small,
.hv-pill:hover small,
.gp-pill:hover small,
.ms-tag:hover small {
    background: #e2f5ec;
    color: var(--mg-brand-dark);
}

.ms-tag.is-hl {
    background: #E6F7EF;
    color: #00794f;
    border-color: #bfe9d6;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Lista-rácsok
   -------------------------------------------------------------------------- */

.mg-grid,
.hv-grid,
.gp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: .6rem;
}

.mg-grid a,
.hv-grid a,
.gp-grid a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .15rem .6rem;
    background: #fff;
    border: 1px solid var(--mg-line);
    border-radius: .85rem;
    padding: .7rem .95rem;
    text-decoration: none;
    color: var(--mg-ink);
    font-size: .93rem;
    font-weight: 500;
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.mg-grid a span,
.hv-grid a span,
.gp-grid a span {
    margin-left: auto;
    flex: 0 0 auto;
    background: #f1f5f3;
    border-radius: 999px;
    padding: .12rem .55rem;
    color: var(--mg-muted);
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.mg-grid.is-stacked a,
.hv-grid.is-stacked a {
    flex-direction: column;
    align-items: flex-start;
}

.mg-grid.is-stacked a span,
.hv-grid.is-stacked a span {
    margin-left: 0;
    white-space: normal;
}

.mg-grid a:hover,
.hv-grid a:hover,
.gp-grid a:hover {
    border-color: var(--mg-brand);
    background: var(--mg-tint);
    color: var(--mg-brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -14px rgba(14, 56, 42, .6);
}

.mg-grid a:hover span,
.hv-grid a:hover span,
.gp-grid a:hover span {
    background: #e2f5ec;
    color: var(--mg-brand-dark);
}

.gp-grid a span.is-vacant {
    background: #fff4e5;
    color: #a15c00;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Kiemelt doboz
   -------------------------------------------------------------------------- */

.mg-callout,
.hv-callout,
.gp-callout {
    position: relative;
    background: var(--mg-tint);
    border: 1px solid #d8f1e5;
    border-left: 4px solid var(--mg-brand);
    border-radius: 1rem;
    padding: 1.2rem 1.35rem;
}

.mg-callout h2,
.hv-callout h2,
.gp-callout h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--mg-ink);
}

.mg-callout p,
.hv-callout p,
.gp-callout p {
    line-height: 1.65;
}

.gp-callout.is-vacant {
    background: #FFFBF2;
    border-color: #F3E2BE;
    border-left-color: #a15c00;
}

/* --------------------------------------------------------------------------
   Ikonos jellemző-kártyák
   -------------------------------------------------------------------------- */

.mg-feature,
.ugyelet-feature {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--mg-line);
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 2px 10px rgba(43, 57, 64, .04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.mg-feature:hover,
.ugyelet-feature:hover {
    border-color: #cfe3da;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px -16px rgba(14, 56, 42, .45);
}

.mg-feature-icon,
.ugyelet-feature-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: #E6F7EF;
    color: var(--mg-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* --------------------------------------------------------------------------
   GYIK
   -------------------------------------------------------------------------- */

.mg-faq-item,
.hv-faq-item,
.gp-faq-item {
    background: #fff;
    border: 1px solid var(--mg-line);
    border-radius: .9rem;
    margin-bottom: .6rem;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mg-faq-item:hover,
.hv-faq-item:hover,
.gp-faq-item:hover {
    border-color: #cfe3da;
}

.mg-faq-item[open],
.hv-faq-item[open],
.gp-faq-item[open] {
    border-color: #cfe3da;
    box-shadow: 0 10px 26px -18px rgba(14, 56, 42, .5);
}

.mg-faq-item summary,
.hv-faq-item summary,
.gp-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 1.2rem;
    font-weight: 700;
    color: var(--mg-ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.mg-faq-item summary::-webkit-details-marker,
.hv-faq-item summary::-webkit-details-marker,
.gp-faq-item summary::-webkit-details-marker {
    display: none;
}

.mg-faq-item summary::after,
.hv-faq-item summary::after,
.gp-faq-item summary::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--mg-brand);
    font-size: .85rem;
    transition: .2s;
}

.mg-faq-item[open] summary::after,
.hv-faq-item[open] summary::after,
.gp-faq-item[open] summary::after {
    transform: rotate(180deg);
}

.mg-faq-item[open] summary,
.hv-faq-item[open] summary,
.gp-faq-item[open] summary {
    color: var(--mg-brand-dark);
}

.mg-faq-answer,
.hv-faq-answer,
.gp-faq-answer {
    padding: 0 1.2rem 1.1rem;
    color: #5a6b73;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Forrásmegjelölés
   -------------------------------------------------------------------------- */

.mg-source,
.hv-source,
.gp-source {
    background: #fff;
    border: 1px solid var(--mg-line);
    border-radius: 1rem;
    padding: 1.3rem 1.5rem;
    font-size: .9rem;
    color: #5a6b73;
}

/* --------------------------------------------------------------------------
   Mobil
   -------------------------------------------------------------------------- */

@media (max-width: 575.98px) {

    .mg-hero,
    .hv-hero,
    .gp-hero,
        .medicine-hero,
            .vz-hero,
    .fe-hero,
    .wx-hero {
        border-radius: 1.1rem;
    }

    .mg-search,
    .hv-search,
    .gp-search {
        flex-direction: column;
        align-items: stretch;
        padding: .3rem;
    }

    .mg-search::before,
    .hv-search::before,
    .gp-search::before {
        top: 1.45rem;
        left: 1.1rem;
    }

    .mg-search input,
    .hv-search input,
    .gp-search input {
        padding-left: 2.2rem;
    }

    .mg-search button,
    .hv-search button,
    .gp-search button {
        width: 100%;
    }
}
