/* =========================
   GLOBAL DESIGN TOKENS
   ========================= */

:root {
    --vh-bg: #f6f7f5;
    --vh-surface: #ffffff;
    --vh-surface-soft: #fbfbfa;
    --vh-text: #24303d;
    --vh-text-muted: #5f6b76;
    --vh-heading: #1f2b37;
    --vh-border: rgba(36, 48, 61, 0.08);

    --vh-primary: #5f7f73;
    --vh-primary-hover: #4f6c61;
    --vh-primary-active: #456156;
    --vh-primary-soft: rgba(95, 127, 115, 0.10);
    --vh-focus-ring: rgba(95, 127, 115, 0.22);

    --vh-secondary: #e9eeeb;
    --vh-secondary-hover: #dce5e0;
    --vh-secondary-active: #d2dbd6;

    --vh-success: #6a8b7e;
    --vh-success-hover: #587568;
    --vh-success-active: #4d675c;

    --vh-shadow-sm: 0 8px 24px rgba(36, 48, 61, 0.06);
    --vh-shadow-md: 0 14px 34px rgba(36, 48, 61, 0.10);

    --vh-radius-sm: 14px;
    --vh-radius-md: 20px;
    --vh-radius-lg: 26px;

    --vh-transition: 0.22s ease;
}

/* =========================
   GENERAL STYLES
   ========================= */

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--vh-bg);
    color: var(--vh-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--vh-primary);
    text-decoration: none;
    transition: color var(--vh-transition);
}

a:hover {
    color: var(--vh-primary-hover);
}

.container {
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--vh-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.1rem, 3.6vw, 3.4rem);
}

h2 {
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
    margin-bottom: 0.75rem;
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

p {
    color: var(--vh-text-muted);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.12rem;
    font-weight: 400;
    color: var(--vh-text-muted);
}

.text-center .lead {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

/* Page heading consistency */
.text-center > h1.mt-5,
.specialist-header h1 {
    margin-bottom: 0.75rem;
}

/* =========================
   NAVBAR
   ========================= */

.navbar {
    background-color: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 14px rgba(36, 48, 61, 0.06);
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--vh-heading) !important;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.navbar-brand img {
    max-height: 40px;
    margin-left: 0;
}

.navbar-nav .nav-link {
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--vh-text) !important;
    transition: color var(--vh-transition);
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--vh-primary) !important;
}


/* =========================
   MOBILE NAVBAR DROPDOWN FIX
   ========================= */

@media (max-width: 991.98px) {
    .navbar .container-fluid {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 0.75rem;
    }

    .navbar-brand span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar-toggler {
        flex: 0 0 auto;
        margin-left: auto;
        order: 2;
    }

    .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        order: 3;
        text-align: right;
    }

    .navbar-nav {
        align-items: flex-end;
        padding-top: 1rem;
    }
}


/* =========================
   BUTTONS
   ========================= */

.btn {
    --bs-btn-focus-shadow-rgb: 95, 127, 115;
    border-radius: 999px;
    padding: 0.72rem 1.3rem;
    font-size: 0.98rem;
    font-weight: 600;
    transition:
        background-color var(--vh-transition),
        border-color var(--vh-transition),
        color var(--vh-transition),
        transform var(--vh-transition),
        box-shadow var(--vh-transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:focus,
.btn:focus-visible,
.btn:active,
.btn.active,
.show > .btn.dropdown-toggle {
    outline: none !important;
    box-shadow: 0 0 0 0.25rem var(--vh-focus-ring) !important;
}

/* PRIMARY */
.btn-primary {
    background-color: var(--vh-primary) !important;
    border-color: var(--vh-primary) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(95, 127, 115, 0.16);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:focus-visible {
    background-color: var(--vh-primary-hover) !important;
    border-color: var(--vh-primary-hover) !important;
    color: #fff !important;
    box-shadow: 0 12px 22px rgba(95, 127, 115, 0.20), 0 0 0 0.25rem var(--vh-focus-ring) !important;
}

.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: var(--vh-primary-active) !important;
    border-color: var(--vh-primary-active) !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem var(--vh-focus-ring) !important;
}

/* SUCCESS */
.btn-success {
    background-color: var(--vh-success) !important;
    border-color: var(--vh-success) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(106, 139, 126, 0.16);
}

.btn-success:hover,
.btn-success:focus,
.btn-success:focus-visible {
    background-color: var(--vh-success-hover) !important;
    border-color: var(--vh-success-hover) !important;
    color: #fff !important;
    box-shadow: 0 12px 22px rgba(106, 139, 126, 0.20), 0 0 0 0.25rem var(--vh-focus-ring) !important;
}

.btn-success:active,
.btn-success.active,
.show > .btn-success.dropdown-toggle {
    background-color: var(--vh-success-active) !important;
    border-color: var(--vh-success-active) !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem var(--vh-focus-ring) !important;
}

/* OUTLINE PRIMARY */
.btn-outline-primary {
    color: var(--vh-primary) !important;
    border-color: var(--vh-primary) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:focus-visible {
    color: #fff !important;
    background-color: var(--vh-primary) !important;
    border-color: var(--vh-primary) !important;
    box-shadow: 0 0 0 0.25rem var(--vh-focus-ring) !important;
}

.btn-outline-primary:active,
.btn-outline-primary.active,
.show > .btn-outline-primary.dropdown-toggle {
    color: #fff !important;
    background-color: var(--vh-primary-active) !important;
    border-color: var(--vh-primary-active) !important;
    box-shadow: 0 0 0 0.25rem var(--vh-focus-ring) !important;
}

/* OUTLINE SECONDARY */
.btn-outline-secondary {
    color: var(--vh-text) !important;
    border-color: rgba(36, 48, 61, 0.12) !important;
    background-color: transparent !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:focus-visible {
    color: var(--vh-text) !important;
    background-color: #eef1ef !important;
    border-color: rgba(36, 48, 61, 0.16) !important;
    box-shadow: 0 0 0 0.25rem var(--vh-focus-ring) !important;
}

.btn-outline-secondary:active,
.btn-outline-secondary.active,
.show > .btn-outline-secondary.dropdown-toggle {
    color: var(--vh-text) !important;
    background-color: #e2e8e4 !important;
    border-color: rgba(36, 48, 61, 0.18) !important;
    box-shadow: 0 0 0 0.25rem var(--vh-focus-ring) !important;
}

/* SECONDARY */
.btn-secondary {
    background-color: var(--vh-secondary) !important;
    border-color: var(--vh-secondary) !important;
    color: var(--vh-text) !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:focus-visible {
    background-color: var(--vh-secondary-hover) !important;
    border-color: var(--vh-secondary-hover) !important;
    color: var(--vh-text) !important;
    box-shadow: 0 0 0 0.25rem var(--vh-focus-ring) !important;
}

.btn-secondary:active,
.btn-secondary.active,
.show > .btn-secondary.dropdown-toggle {
    background-color: var(--vh-secondary-active) !important;
    border-color: var(--vh-secondary-active) !important;
    color: var(--vh-text) !important;
    box-shadow: 0 0 0 0.25rem var(--vh-focus-ring) !important;
}

/* =========================
   FORMS
   ========================= */

.form-label {
    color: var(--vh-heading);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid rgba(36, 48, 61, 0.12);
    padding: 0.82rem 0.95rem;
    font-size: 1rem;
    color: var(--vh-text);
    background-color: rgba(255, 255, 255, 0.96);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(95, 127, 115, 0.45);
    box-shadow: 0 0 0 0.22rem rgba(95, 127, 115, 0.12);
}

/* =========================
   CARDS
   ========================= */

.card {
    border: 1px solid var(--vh-border);
    border-radius: var(--vh-radius-md);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--vh-shadow-sm);
    transition: transform var(--vh-transition), box-shadow var(--vh-transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--vh-shadow-md);
}

.card-img-top {
    height: 210px;
    object-fit: cover;
    border-radius: 0;
}

.card-body {
    padding: 1.35rem 1.3rem 1.3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-title {
    color: var(--vh-heading);
    margin-bottom: 0.7rem;
}

.card-text {
    color: var(--vh-text-muted);
}

/* Fixing top-right icon image click layering */
.position-absolute img {
    pointer-events: none;
}

/* =========================
   SECTION HELPERS
   ========================= */

section {
    position: relative;
}

section + section {
    margin-top: 1rem;
}

.py-5,
.my-5 {
    position: relative;
}

.bg-soft-section {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: var(--vh-radius-lg);
    padding: 2.25rem;
}

/* =========================
   INDEX PAGE
   ========================= */

.hero-image {
    border-radius: var(--vh-radius-lg);
    box-shadow: var(--vh-shadow-md);
    object-fit: cover;
}

.service-card .card-img-top {
    height: 200px;
}

.team-preview-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid #f2f5f3;
    box-shadow: 0 8px 20px rgba(36, 48, 61, 0.10);
}

.cta-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.94) 100%);
    border: 1px solid var(--vh-border);
    border-radius: var(--vh-radius-lg);
    padding: 2.8rem 2rem;
    box-shadow: var(--vh-shadow-sm);
}

/* =========================
   ABOUT / GENERIC PAGES
   ========================= */

.page-image {
    border-radius: var(--vh-radius-md);
    box-shadow: var(--vh-shadow-sm);
}

.intro-text {
    max-width: 850px;
}

/* =========================
   TUDÁSTÁR LIST / BLOG PAGE
   ========================= */

.tudastar-grid .card {
    height: 100%;
}

.tudastar-grid .card-title {
    font-size: 1.15rem;
    line-height: 1.35;
}

/* =========================
   BLOG POST PAGE
   ========================= */

.blog-post-section {
    background-color: transparent;
}

.blog-post-wrapper {
    max-width: 860px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--vh-border);
    border-radius: var(--vh-radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--vh-shadow-sm);
}

.blog-post-image {
    border-radius: 18px;
    box-shadow: var(--vh-shadow-sm);
}

.reading-time {
    color: #7a848d;
    font-size: 0.92rem;
    margin-bottom: 1.4rem;
}

.blog-post-body {
    font-size: 1.08rem;
    line-height: 1.78;
    color: var(--vh-text);
}

.blog-post-body p {
    color: var(--vh-text);
    margin-bottom: 1.15rem;
}

.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
    color: var(--vh-heading);
    margin-top: 2rem;
    margin-bottom: 0.9rem;
    line-height: 1.3;
}

.blog-post-body h2 {
    font-size: 1.7rem;
}

.blog-post-body h3 {
    font-size: 1.35rem;
}

.blog-post-body ul,
.blog-post-body ol {
    margin-bottom: 1.2rem;
    padding-left: 1.35rem;
    color: var(--vh-text);
}

.blog-post-body li {
    margin-bottom: 0.45rem;
}

.blog-post-body strong {
    color: var(--vh-heading);
    font-weight: 700;
}

.blog-post-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--vh-primary);
    background: var(--vh-primary-soft);
    border-radius: 0 12px 12px 0;
    color: var(--vh-text);
}

.blog-post-body a {
    color: var(--vh-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-post-header {
    margin-bottom: 1.25rem;
}

.blog-post-media {
    overflow: hidden;
    border-radius: 18px;
}

.blog-post-header h1 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   SPECIALISTS PAGE STYLING
   ========================= */

.specialist-header {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.specialist-header h1 {
    margin-bottom: 0.6rem;
}

.specialist-header .lead {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    color: var(--vh-text-muted);
}

.specialist-link {
    display: block;
    color: inherit !important;
}

.specialist-link:hover {
    color: inherit !important;
    text-decoration: none !important;
}

.specialist-card {
    min-height: 100%;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.2rem;
}

.specialist-card .card-body {
    padding: 1.7rem 1.5rem 1.35rem;
    align-items: center;
    text-align: center;
}

.specialist-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center;
    border: 4px solid #f2f5f3;
    box-shadow: 0 8px 20px rgba(36, 48, 61, 0.10);
    flex-shrink: 0;
}

.specialist-card .card-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--vh-heading);
    margin-bottom: 0.9rem;
    line-height: 1.25;
}

.specialist-name {
    color: var(--vh-heading);
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.specialist-name strong {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--vh-heading);
}

.specialist-description,
.specialist-card .card-text {
    max-width: 96%;
    color: var(--vh-text-muted);
    font-size: 0.98rem;
    line-height: 1.72;
}

.specialist-description {
    margin-bottom: 1rem;
}

.specialist-description:last-child {
    margin-bottom: 0;
}

.specialist-social {
    z-index: 3;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    padding: 4px;
    box-shadow: 0 6px 16px rgba(36, 48, 61, 0.12);
    transition: transform var(--vh-transition), box-shadow var(--vh-transition);
}

.specialist-social:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 20px rgba(36, 48, 61, 0.16);
}

.specialist-social-icon {
    width: 32px;
    height: 32px;
    display: block;
}

.row.g-4 {
    --bs-gutter-x: 1.6rem;
    --bs-gutter-y: 1.6rem;
}

.specialist-btn {
    border-radius: 999px;
    padding: 0.68rem 1.15rem;
    font-size: 0.94rem;
    font-weight: 600;
}

/* =========================
   CONTACT / FAQ
   ========================= */

.alert {
    border-radius: 14px;
    border: none;
    box-shadow: var(--vh-shadow-sm);
}

.accordion-item {
    border: 1px solid var(--vh-border);
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: 0.9rem;
    box-shadow: var(--vh-shadow-sm);
}

.accordion-button {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--vh-heading);
    background-color: #ffffff;
    transition: background-color var(--vh-transition);
}

.accordion-button:not(.collapsed) {
    color: var(--vh-heading);
    background-color: rgba(95, 127, 115, 0.08);
    box-shadow: none;
}

.accordion-button:hover {
    background-color: #f2f5f3;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.22rem rgba(95, 127, 115, 0.12);
    border-color: transparent;
}

.accordion-body {
    font-size: 0.98rem;
    color: var(--vh-text-muted);
    background-color: #fff;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon {
    width: 42px;
    height: 42px;
    transition: transform var(--vh-transition), opacity var(--vh-transition);
}

.social-icon:hover {
    transform: scale(1.08);
    opacity: 0.92;
}

/* Legacy selector kept in case referenced elsewhere */
.dietitian-card a {
    color: inherit !important;
    text-decoration: none !important;
}

.dietitian-card a:hover {
    color: inherit !important;
}


/* =========================
   FOOTER
   ========================= */

footer {
    background-color: rgba(255, 255, 255, 0.94);
    padding: 2rem 0 1.5rem;
    font-size: 0.95rem;
    color: var(--vh-text-muted);
    box-shadow: 0 -2px 12px rgba(36, 48, 61, 0.04);
    margin-top: 4rem;
}

footer h5 {
    font-size: 1rem;
    margin-bottom: 0.9rem;
    color: var(--vh-heading);
}

footer p,
footer li {
    color: var(--vh-text-muted);
}

footer a {
    color: var(--vh-text) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color var(--vh-transition);
}

footer a:hover {
    color: var(--vh-primary) !important;
}

footer hr {
    border-color: rgba(36, 48, 61, 0.08);
    margin: 1.5rem 0 1rem;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 992px) {
    .navbar-brand {
        font-size: 1.15rem;
    }

    .card-img-top {
        height: 190px;
    }

    .specialist-card .card-title {
        font-size: 1.45rem;
    }

    .specialist-name strong {
        font-size: 1.12rem;
    }

    .specialist-description,
    .specialist-card .card-text {
        font-size: 0.96rem;
    }

    .calendar-wrapper {
        padding: 22px;
    }

    .fc .fc-toolbar-title {
        font-size: 1.4rem;
    }

    .fc .fc-daygrid-day-frame {
        min-height: 92px;
    }

    .blog-post-wrapper {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        line-height: 1.6;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.55rem;
    }

    .lead {
        font-size: 1.02rem;
    }

    .btn {
        font-size: 0.92rem;
        padding: 0.68rem 1.15rem;
    }

    .card-img-top {
        height: 170px;
    }

    .card-body {
        padding: 1.15rem;
    }

    .specialist-card .card-body {
        padding: 1.4rem 1.1rem 1.2rem;
    }

    .specialist-img {
        width: 128px;
        height: 128px;
    }

    .specialist-card .card-title {
        font-size: 1.35rem;
    }

    .specialist-name {
        font-size: 0.98rem;
    }

    .specialist-name strong {
        font-size: 1.08rem;
    }

    .specialist-description,
    .specialist-card .card-text {
        max-width: 100%;
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .specialist-social {
        top: 10px !important;
        right: 10px !important;
        margin: 0 !important;
    }

    .specialist-social-icon {
        width: 28px;
        height: 28px;
    }

    .calendar-wrapper {
        padding: 16px;
        border-radius: 18px;
    }

    .fc .fc-toolbar.fc-header-toolbar {
        margin-bottom: 1rem;
    }

    .fc .fc-toolbar-title {
        font-size: 1.14rem;
    }

    .fc .fc-button {
        padding: 0.42rem 0.76rem !important;
        font-size: 0.82rem !important;
    }

    .fc .fc-daygrid-day-frame {
        min-height: 72px;
    }

    .fc .fc-col-header-cell-cushion {
        font-size: 0.84rem;
    }

    .fc .fc-daygrid-day-number,
    .fc .fc-daygrid-day-top a {
        font-size: 0.88rem;
    }

    .modal-content {
        padding: 20px 18px;
        border-radius: 16px;
    }

    .blog-post-wrapper {
        padding: 1.5rem 1.1rem;
        border-radius: 20px;
    }

    .blog-post-body {
        font-size: 1rem;
        line-height: 1.72;
    }

    .cta-section {
        padding: 2.1rem 1.2rem;
    }
}

.about-color {
    color: var(--vh-primary);
}