/**
 * Custom CSS for Dr. Theodoridis Orthopädie Website
 * Based on design specifications from homepage.png and style files
 */

/* ========================================
   CSS Custom Properties (Design System)
   ======================================== */

@import url(../fonts/font.css?v3);

:root {
    /* Colors */
    --primary-color: #3C4D5C;
    --secondary-color: #3C4D5C;
    --bg-light: #F2F2F2;
    --bg-white: #FFFFFF;
    --text-primary: #3C4D5C;
    --text-secondary: #3C4D5C;
    --text-light: #ABBDCC;
    --border-color: #C4C3C7;

    /* Border Radius */
    --card-radius: 23px;
    --button-radius: 10px;
    --section-radius: 25px;

    /* Spacing */
    --section-padding: 80px;
    --section-padding-mobile: 50px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-heading: 'Segoe_UI_light', serif;
    --font-body: 'Segoe_UI_light', sans-serif;
    --font-body-alt: 'Segoe_UI_light', sans-serif;

    --size-heading: 60px;
}

/* ========================================
   Typography
   ======================================== */

.relative {
    position: relative;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-primary);
}

h1, .h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2, .h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3, .h3 {
    font-size: 1.5rem;
}

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

@media (max-width: 767.98px) {
    h1, .h1 {
        font-size: 1.75rem;
    }

    h2, .h2 {
        font-size: 1.5rem;
    }

    h3, .h3 {
        font-size: 1.25rem;
    }
}

/* ========================================
   Top Bar & Navigation
   ======================================== */

.top-bar {
    background: var(--bg-light);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 23px 23px;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Top Bar Layout */
.top-bar-left,
.top-bar-right {
    flex: 1;
}

.top-bar-left {
    display: flex;
    justify-content: flex-start;
}

.top-bar-center {
    flex: 0 0 auto;
}

.top-bar-right {
    display: flex;
    justify-content: flex-end;
}

/* Hamburger Button */
.hamburger-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover .hamburger-line {
    background: var(--secondary-color);
}

/* Close Button */
.close-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}

.close-line {
    position: absolute;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    top: 50%;
    left: 50%;
    transition: all 0.3s ease;
}

.close-line:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-line:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.close-btn:hover .close-line {
    background: var(--secondary-color);
}

/* Logo */
.logo-link {
    text-decoration: none;
    color: var(--text-primary);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

@media (max-width: 767.98px) {
    .logo-icon {
        width: 50px;
        height: 50px;
    }

    .logo-title {
        font-size: 1rem;
    }

    .logo-subtitle {
        font-size: 0.75rem;
    }
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
}

.language-current {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.language-current:hover {
    opacity: 0.8;
}

.flag-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.lang-code {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.language-options {
    position: absolute;
    top: calc(100% + 10px);
    right: -30px;
    background: white;
    border-radius: 15px;
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    min-width: 140px;
    display: flex;
    gap:0.5rem;
}

/* Arrow/pointer at top */
.language-options::before {
    content: '';
    position: absolute;
    top: -8px;
    /* right: 20px; */
    right:  calc(50% - 15px);
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-radius: 2px;
}

.language-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.language-option:hover {
    color: var(--secondary-color);
}

.language-option .flag-emoji {
    font-size: 1.5rem;
}

.language-option .lang-code {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-weight: bold;
}

.lang-divider {
    background: rgba(60, 77, 92, 0.3);
    margin: 0.25rem 0;
    width: 1px;
}

/* Mobile language dropdown */
@media (max-width: 991.98px) {
    .language-options {
        right: -10px;
        min-width: 80px;
    }

    .language-options::before {
        right: 15px;
    }

    .language-option {
        justify-content: center;
        gap: 0;
    }

    /* .language-option .lang-code {
        display: none;
    } */
}

/* Contact Links in Top Bar */
.top-contact {
    font-size: 0.875rem;
}

.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.contact-link span{
    display: inline-block;
    text-align: center;
    width: 18px;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.contact-link i {
    margin-right: 0.25rem;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(242, 242, 242, 0.95);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-overlay-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Menu Header */
.menu-header {
    background: var(--bg-light);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 23px 23px;
    padding: 1.5rem 0;
    flex-shrink: 0;
}

/* Menu Navigation */
.menu-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 3rem 0;
    overflow-y: auto;
}

.menu-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 24px;
    font-weight: 400;
    padding: 1rem 0;
    transition: all 0.3s ease;
    display: block;
}


@media (max-width: 767.98px) {
    .menu-link {
        font-size: 18px;
        padding: 0.875rem 0;
        font-weight: bold;
    }
    .logo-container img {
        width: 75%;
        margin-left:20px;
    }
}

/* Menu Footer */
.menu-footer {
    padding: 2rem 0;
    flex-shrink: 0;
}

.menu-footer-link {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.menu-footer-link:hover {
    color: var(--secondary-color);
}

.menu-footer-link i {
    margin-right: 0.5rem;
}

.menu-copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ========================================
   Menu Submenu Styles
   ======================================== */

.menu-item-group {
    position: relative;
}

.menu-link.has-submenu {
    display: inline-flex;
    align-items: center;
}

/* Desktop: horizontal submenu inline */
@media (min-width: 992px) {
    .menu-item-group {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .menu-submenu {
        display: none;
        align-items: center;
        padding-left: 0;
        margin-left: 1rem;
    }

    .menu-item-group.open .menu-submenu {
        display: flex;
    }

    .submenu-link {
        color: var(--text-primary);
        text-decoration: none;
        font-size: 24px;
        padding: 0.5rem 1.25rem;
        border-left: 1px solid rgba(60, 77, 92, 0.3);
        transition: color 0.3s ease;
    }

    .submenu-link:hover {
        color: var(--primary-color);
        font-weight: 400;
    }

    .menu-item-group .menu-link {
        font-weight: 400;
    }

    .menu-link,
    .submenu-link {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-link::before,
    .submenu-link::before {
        content: attr(data-text);
        font-weight: 700;
        height: 0;
        visibility: hidden;
        overflow: hidden;
        pointer-events: none;
    }

    .menu-link,
    .submenu-link {
        font-weight: 400;
        letter-spacing: 0.02em;
    }

    .menu-item-group .menu-link:hover,
    .submenu-link:hover {
        font-weight: 600;
    }

    .menu-item-group {
        border-bottom: 1px solid rgba(60, 77, 92, 0.1);
        padding: 1rem 0;
    }

    .menu-nav .menu-link:not(.has-submenu) {
        display: block;
        border-bottom: 1px solid rgba(60, 77, 92, 0.1);
        padding: 1rem 0;
    }
}

/* Mobile: vertical dropdown */
@media (max-width: 991.98px) {
    .menu-submenu {
        display: none;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.5rem 0 0.5rem 0;
        width: 100%;
    }

    .menu-item-group.open .menu-submenu {
        display: flex;
    }

    .submenu-link {
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 18px;
        padding: 0.0rem 0;
        transition: color 0.3s ease;
    }

    .submenu-link:not(:last-child)::after {
        content: '|';
        margin: 0 0.75rem;
        color: rgba(60, 77, 92, 0.3);
    }

    .submenu-link:hover {
        color: var(--primary-color);
    }

    .menu-item-group.open .menu-link {
        font-weight: 600;
    }
}

/* ========================================
   Hero Section
   ======================================== */


.home-page .container {
    max-width: 1166px!important;
}
.hero-section {
    width: 100%;
    color: white;
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
    padding-bottom: 160px; /* Overlap with content below */
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 45, 58, 0.85);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    color: white;
    font-size:50px;
}

.hero-text {
    font-family: var(--font-heading);
    font-size:25px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 1);
    margin-left: auto;
    margin-right: auto;
}

.hero-text-2 {
    font-family: 'Segoe_UI_light';
    font-size:22px;
    line-height: 1.6;
    color: #ABBDCC;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-card {
    background: white !important;
    border-radius: var(--card-radius) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

.hero-card .btn {
    font-size: 1rem;
    font-weight: 400;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hero-card .btn:hover {
    transform: translateY(-2px);
}

.home-locations {
    margin-top: 100px;
    font-size: 22px;
    font-weight: bold;
    gap:80px;
    position: relative;
    z-index: 2;
}
.home-locations a {
    color:white
}

/* Contact Form (Overlapping) */

section.contact-form-card-section {
    background: url(/assets/images/home_bg2.webp), var(--primary-color) no-repeat;
    background-size: cover;
    background-position: bottom;
    width: 100%;
    background-color: var(--primary-color);
    padding-top: 80px;
    padding-bottom: 80px;
}
.contact-form-card {
   /* margin-top: -100px; /* Negative margin to overlap hero (1/5 up, 4/5 down) */
    position: relative;
    z-index: 10;
}

.contact-form-card h2 {
    font-family: var(--font-heading);
    font-size: 52px;
    color: var(--text-primary);
}

.contact-form-card .title-hint {
    font-size: 18px;
    font-family: 'Segoe_UI_light';
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 0.875rem 1.25rem;
    font-size: 18px;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(60, 77, 92, 0.15);
}

.contact-form .form-label {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size:22px;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    border-radius: var(--button-radius);
    font-weight: 400;
    padding: 1.5rem 2rem;
    font-size: 18px;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 60px 0 80px;
        border-radius: 0 0 20px 20px;
        margin-bottom: 0px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-card {
        padding: 1.5rem !important;
    }

    .hero-card .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1rem !important;
    }

    .contact-form-card {
        margin-top: -60px;
    }

    .contact-form-card h2 {
        font-size: 1.5rem;
    }

    .home-locations {
        gap:18px;
        font-size: 17px;
    }
    .home-locations img{
        display: block;
        margin: 0 auto;
    }
}

/* ========================================
   Cards & Sections
   ======================================== */

.card {
    border-radius: var(--card-radius);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.section-padding {
    padding: var(--section-padding) 0;
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: var(--section-padding-mobile) 0;
    }
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    border-radius: var(--button-radius);
    font-weight: 400;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    font-family: 'Segoe_UI_light';
    font-size:18px
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2d3a47;
    border-color: #2d3a47;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ========================================
   Forms
   ======================================== */

.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(60, 77, 92, 0.15);
}

.form-label {
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.invalid-feedback {
    font-size: 0.875rem;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
    background-color: #D5DEE3;
    padding: 60px 0 40px;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    width: auto;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 14px;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    margin-bottom: 2rem;
}

.footer-nav a {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@media (max-width: 767.98px) {
    .site-footer {
        padding: 50px 0 30px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-tagline {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
}


/* ========================================
   Utilities
   ======================================== */

.text-muted {
    color: var(--text-secondary) !important;
}

.text-light-custom {
    color: var(--text-light);
}

.bg-light-custom {
    background-color: var(--bg-light);
}

.bg-primary-custom {
    background-color: var(--primary-color);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Icon styling */
.bi {
    vertical-align: -0.125em;
}

/* ========================================
   Divider "or"
   ======================================== */

.divider-or {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    margin: 1rem 0;
}

.divider-or::before,
.divider-or::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider-or span {
    padding: 0 1rem;
    font-size: 18px;
}

/* Secondary outline button */
.btn-outline-secondary {
    color: var(--text-primary);
    border-color: var(--border-color);
    background: transparent;
}

.btn-outline-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* ========================================
   Treatment Focus Section
   ======================================== */

.treatment-focus-section {
    background-color: var(--primary-color);
    padding: 80px 0 100px;
}

.treatment-title {
    font-family: var(--font-heading);
    font-size: 74px;
    color: white;
    margin-bottom: 1rem;
}

.treatment-subtitle {
    font-family: var(--font-body);
    font-size: 22px;
    color: #F2F2F2;
    line-height: 1.6;
}

.treatment-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border-radius: 7px;
    padding: 1.9rem 2rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 25px;
    font-weight: 400;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
    width: 335px;
}

.treatment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

.treatment-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .treatment-focus-section {
        padding: 60px 0 80px;
    }

    .treatment-title {
        font-size: 1.75rem;
    }

    .treatment-subtitle {
        font-size: 1rem;
    }

    .treatment-card {
        padding: 1.5rem 1.5rem;
        font-size: 1rem;
        width: 250px;
    }
}

/* ========================================
   Doctor Bio Section
   ======================================== */

.doctor-bio-section {
    background-color: var(--bg-light);
    padding: 80px 0 80px 0;
}

.doctor-bio-section .container-fluid {
    max-width: 1700px;
}

.doctor-image-wrapper {
    position: relative;
}

.doctor-image {
    width: 100%;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-lg);
    /* margin-top: -150px; */
}

.doctor-info {
    padding-left: 2rem;
}

.doctor-prefix {
    font-family: var(--font-heading);
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.doctor-name {
    font-family: var(--font-heading);
    font-size: 74px;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.doctor-subtitle {
    font-family: var(--font-body);
    font-size: 22px;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.doctor-specialties {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.doctor-specialties li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 22px;
    color: var(--text-primary);
}

.doctor-specialties li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.doctor-text {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.doctor-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 18px;
}

.doctor-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

@media (max-width: 991.98px) {
    .doctor-bio-section {
        padding: 60px 30px;
    }

    .doctor-info {
        padding-left: 0;
        margin-top: 2rem;
    }

    .doctor-name {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .doctor-name {
        font-size: 1.75rem;
    }

    .doctor-buttons {
        flex-direction: column;
    }

    .doctor-buttons .btn {
        width: 100%;
    }
    .doctor-prefix{
        display: block;
        font-size: 20px;
    }

    .doctor-title{
        font-size: 33px;
    }

    .doctor-subtitle{
        font-size: 18px;
    }
}



.locations-section {
    background-color: var(--bg-white);
}

.location-card {
    border-radius: var(--card-radius);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.location-icon {
    margin-bottom: 1rem;
}

.location-card .card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
}

.location-card .card-text {
    font-size: 1rem;
}

@media (max-width: 991.98px) {
    .location-card {
        margin-bottom: 1.5rem;
    }
}


/* ========================================
   Further Range of Services Section
   ======================================== */

.services-range-section {
    position: relative;
}

.services-range-top {
    background-color: #D5DEE3;
    padding: 80px 0 350px;
    border-radius: 30px 30px 0 0;
}

.services-range-title {
    font-family: var(--font-heading);
    font-size: 54px;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.services-range-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.services-range-bottom {
    padding: 0 0 120px;
}

.services-range-bottom .container-fluid{
    max-width: 1600px;
}
.operations-slider-wrapper {
    margin-top: -280px;
    position: relative;
    z-index: 10;
}

.operations-box {
    background-color: #3C4D5C;
    border-radius: 60px 10px 60px 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-height: 520px;
}

.operations-content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px;
    max-height: 520px;
}

.operations-label {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #ABBDCC;
    margin-bottom: 0.5rem;
}

.operations-sublabel {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #ABBDCC;
    margin-bottom: 1.5rem;
}

.operations-title {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 2.0rem;
    color: white;
    line-height: 1.3;
    margin-top: 3rem;
    margin-bottom: auto;
    font-weight: bold;
    min-height: 52px;
}

.operations-nav {
    display: flex;
    gap: 1rem;
    justify-content: end;
}

.ops-nav-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.ops-nav-btn:hover {
    color: white;
}

.operations-image {
    height: 100%;
    min-height: 350px;
}

.operations-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .services-range-top {
        padding: 60px 0 150px;
    }

    .services-range-title {
        font-size: 2rem;
    }

    .operations-slider-wrapper {
        margin-top: -100px;
    }

    .operations-box {
        border-radius: 0 40px 0 40px;
    }

    .operations-content {
        padding: 30px;
        min-height: auto;
    }

    .operations-label {
        font-size: 1.5rem;
    }

    .operations-title {
        font-size: 1.5rem;
        margin-top: 1rem;
    }

    .operations-image {
        min-height: 250px;
    }
}

@media (max-width: 767.98px) {
    .services-range-top {
        padding: 50px 0 120px;
        border-radius: 20px 20px 0 0;
    }

    .services-range-title {
        font-size: 1.75rem;
    }

    .operations-slider-wrapper {
        margin-top: -80px;
    }

    .operations-box {
        border-radius: 0 30px 0 30px;
    }

    .operations-content {
        padding: 25px;
    }

    .operations-label {
        font-size: 1.25rem;
    }

    .operations-title {
        font-size: 1.25rem;
    }

    .operations-image {
        min-height: 200px;
    }
}

.ops-sublabel-text,
.ops-title-text,
.ops-img {
    transition: opacity 0.3s ease;
}

/* ========================================
   Symptoms Section
   ======================================== */

.symptoms-section {
    background-color: #4a626f;
}

.symptoms-section .container-fluid {
    max-width: 1600px;
}

.symptoms-content {
    background: url('/assets/images/symptoms_bg.webp') no-repeat center center;
    background-size: cover;
    background-color: #4A5D6A;
    padding: 80px 60px;
    height: 100%;
    display: flex;
    align-items: center;
    max-height: 650px;
}

.symptoms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
}

.symptom-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.symptom-check {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 50%;
    background: #ABBDCC;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3C4D5C;
    font-size: 2rem;
}

.symptom-text {
    font-family: var(--font-heading);
    color: white;
    font-size: 22px;
    line-height: 1.4;
    padding-top: 0.25rem;
}

.symptoms-image {
    height: 100%;
    max-height: 650px;
}

.symptoms-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .symptoms-content {
        padding: 50px 40px;
    }

    .symptoms-grid {
        gap: 1.5rem 2rem;
    }

    .symptom-text {
        font-size: 1rem;
    }

    .symptoms-image {
        min-height: 400px;
    }
    .symptom-item {
        min-height: 60px;
    }
}

@media (max-width: 767.98px) {
    .symptoms-content {
        padding: 40px 25px;
    }

    .symptoms-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .symptom-check {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .symptom-text {
        font-size: 0.95rem;
    }

    .symptoms-image {
        min-height: 300px;
    }
}


/* ── Clickable symptom items ─────────────────────────────────── */

.symptom-item.symptom-popup-trigger {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.symptom-item.symptom-popup-trigger:hover {
    opacity: 0.75;
}

.symptom-item.symptom-popup-trigger:hover .symptom-check {
    background: rgba(255, 255, 255, 0.25);
}

/* ── Symptom popup modal ─────────────────────────────────────── */

.symptom-modal-content {
    border: none;
    border-radius: var(--card-radius);
    overflow: hidden;
}

.symptom-modal-header {
    background: var(--primary-color);
    padding: 1.25rem 1.5rem;
}

.symptom-modal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #fff;
    margin: 0;
}

.symptom-modal-body {
    padding: 1.5rem;
}

.symptom-modal-img-wrap {
    margin-bottom: 1rem;
}

.symptom-modal-img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: calc(var(--card-radius) - 6px);
}

.symptom-modal-desc {
    font-family: var(--font-body);
    font-size: 0.975rem;
    line-height: 1.7;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    text-overflow: ellipsis;
    overflow: hidden;
}

.symptom-modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 1.5rem;
}


/* ========================================
   Therapies Section
   ======================================== */

.therapies-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.therapies-section .container-fluid {
    max-width: 1600px;
}

.therapies-section .container {
    max-width: 1166px;
}

.therapy-item {
    padding: 40px 0;
    /* border-bottom: 1px solid rgba(60, 77, 92, 0.15); */
}

.therapy-item:last-child {
    border-bottom: none;
}
.therapy-item .row > div:first-child {
    border-right: 1px solid #3C4D5C;
}

.therapy-title {
    font-family: var(--font-heading);
    font-size: 38px;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.therapy-text {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.therapy-text:last-c    hild {
    margin-bottom: 0;
}

.therapy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.therapy-list li {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.therapy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background-color: var(--text-secondary);
    border-radius: 50%;
}

@media (max-width: 991.98px) {
    .therapies-section {
        padding: 60px 0;
    }

    .therapy-item {
        padding: 30px 0;
    }

    .therapy-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .therapies-section {
        padding: 40px 0;
    }

    .therapy-title {
        font-size: 40px;
    }

    .therapy-text,
    .therapy-list li {
        font-size: 18px;
        border-left: 2px solid #3C4D5C;
        padding-left: 10px;
    }
    .therapy-list li {
        list-style-type: none;
    }
    .therapy-list li::before {
        content:unset
    }
}
/* ========================================
   Stats Section
   ======================================== */

.stats-section {
    background: url('/assets/images/stats_bg.webp') no-repeat center center;
    background-size: cover;
    padding: 80px 0;
    text-align: center;
}

.stats-title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.stat-item {
    padding: 20px 40px;
}

.stat-bordered {
    border-left: 1px solid rgba(60, 77, 92, 0.2);
    border-right: 1px solid rgba(60, 77, 92, 0.2);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 54px;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 20px;
    color: var(--text-secondary);
}

@media (max-width: 991.98px) {
    .stats-section {
        padding: 60px 0;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-item {
        padding: 20px;
    }
}

@media (max-width: 767.98px) {
    .stats-section {
        padding: 50px 0;
    }

    .stats-title {
        font-size: 22px;
        margin-bottom: 2rem;
    }

    .stat-item {
        padding: 25px 15px;
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(60, 77, 92, 0.15);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}

/* ========================================
   Awards & Partnerships Section
   ======================================== */

.awards-section {
    background-color: #19252F;
    padding: 80px 0;
}

.awards-section .container-fluid {
    max-width: 1600px;
}

.awards-title {
    font-family: var(--font-heading);
    font-size: 45px;
    color: white;
    margin-bottom: 3rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2rem;
}

.partner-logo {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

.partner-logo img {
    max-height: 40px;
    width: auto;
}

.awards-slider-wrapper {
    position: relative;
}

.awards-slider {
    overflow: hidden;
}

.awards-track {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    transition: transform 0.4s ease;
}

.awards-boxes {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.award-box {
    flex: 0 0 auto;
    background: #ABBDCC;
    border-radius: 20px;
    padding: 40px 30px;
    width: 248px;
    min-height: 368px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.award-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.awards-dots {
    margin-top: 1.5rem;
}

.awards-dots .slider-dot {
    background: rgba(255, 255, 255, 0.3);
}

.awards-dots .slider-dot.active {
    background: white;
}


@media (max-width: 991.98px) {
    .awards-section {
        padding: 60px 0;
    }

    .awards-title {
        font-size: 40px;
        margin-bottom: 2rem;
        text-align: center;
    }

    .awards-track {
        justify-content: center;
    }

}

@media (max-width: 767.98px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem 1rem;
        text-align: center;
    }

    .partners-grid img {
        max-width: 100px;
    }
    .awards-slider {
        overflow: hidden;
        margin: 0 -15px;
        padding: 0 15px;
    }

    .awards-track {
        justify-content: flex-start;
    }

    .award-box {
        flex: 0 0 80%;
        max-width: 250px;
        width: auto;
    }
}

/* ========================================
   Blog Section
   ======================================== */

.blog-section {
    background-color: #19252F;
    padding: 80px 0;
}

.blog-section .container-fluid {
    max-width: 1600px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 54px;
    color: white;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subheading {
    font-family: var(--font-body);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.blog-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-slider {
    overflow: hidden;
    flex: 1;
}

.blog-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s ease;
}
.blog-card {
    flex: 0 0 calc(33.333% - 1rem);
    max-width: 438px;
    background: #ABBDCC;
    border-radius: 16px;
    overflow: hidden;
    padding: 15px;
    height: 600px;
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.blog-card-link:hover .blog-card-title {
    text-decoration: underline;
}

.blog-card-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.25);
}

.blog-card-image {
    overflow: hidden;
    padding:20px;
}

.blog-card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
}

.blog-card-content {
    padding: 1.5rem 20px 0.5rem 20px;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 25px;
    color: #3C4D5C;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    height: 60px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-text {
    font-family: var(--font-body);
    font-size: 18px;
    color: #3C4D5C;
    line-height: 1.2;
    margin-bottom: 1rem;
    margin-top: 1.75rem;
}

.blog-card-author {
    font-family: var(--font-body);
    font-size: 18px;
    color:#3C4D5C;
    margin-top: 1.75rem;
}

.slider-nav-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.slider-nav-btn:hover {
    color: white;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot.active {
    background: white;
}

@media (max-width: 991.98px) {
    .blog-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 767.98px) {
    .blog-section {
        padding: 60px 0;
    }

    .section-heading {
        font-size: 2rem;
    }

    .blog-card {
        flex: 0 0 100%;
    }

    .slider-nav-btn {
        display: none;
    }
}

/* ========================================
   Reviews Section
   ======================================== */

.reviews-section {
    background-color: #19252F;
    padding: 0 0 80px;
}


.reviews-slider-wrapper {
    position: relative;
}

.reviews-slider {
    overflow: hidden;
}

.reviews-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s ease;
}
.review-card {
    flex: 0 0 calc(25% - 1.125rem);
    background: #ABBDCC;
    border: 1px solid var(--primary-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.review-stars {
    color: #3C4D5C;
    font-size: 20px;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.review-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    height: 96px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-badge {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.review-author {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
}

.review-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.review-position {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.review-date {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.review-source img {
    height: 24px;
    width: auto;
}

@media (max-width: 1199.98px) {
    .review-card {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

@media (max-width: 991.98px) {
    .review-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 767.98px) {
    .reviews-section {
        padding: 0 0 60px;
    }

    .review-card {
        flex: 0 0 100%;
    }
}

/* ========================================
   Newsletter Section
   ======================================== */

.newsletter-section {
    background-color: #ABBDCC;
    padding: 40px 0;
}

.newsletter-label {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    color:#19252F
}

.newsletter-form {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 6px 6px 6px 25px;
}

.newsletter-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: transparent;
}

.newsletter-input::placeholder {
    color: var(--text-secondary);
}

.newsletter-btn, .call-btn {
    height: 46px;
    border-radius: 50px;
    background: #19252F;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover, .call-btn:hover {
    background: #2d3a47;
}

@media (max-width: 767.98px) {
    .newsletter-section {
        padding: 30px 0;
    }

    .newsletter-label {
        display: block;
        text-align: center;
        margin-bottom: 1rem;
    }

    .newsletter-form {
        padding: 5px 5px 5px 20px;
    }

    .newsletter-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}



/* ========================================
   Team Page
   ======================================== */

.team-page {
    background: url('/assets/images/team_bg.webp') no-repeat center top;
    background-size: cover;
    background-color: var(--primary-color);
    min-height: 100vh;
}

.team-section {
    padding: 80px 0;
}

.team-section .container {
    max-width: 1024px;
}

.team-title {
    font-family: var(--font-heading);
    font-size: 98px;
    color: white;
    margin-bottom: 3rem;
}

/* Main Doctor Card */
.main-doctor-card {
    background: transparent;
}

.main-doctor-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    padding-top: 10px;
}


.main-doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-doctor-info {
    background: #ABBDCC;
    padding: 1.25rem 1.5rem;
    border-radius: 0 0 16px 16px;
}

.main-doctor-name {
    font-family: var(--font-heading);
    margin-bottom: 0.25rem;
    font-size: 22px;
    color: #3C4D5C;
    font-weight: bold;
    text-align: center;
}

.main-doctor-position {
    font-family: var(--font-body);
    font-size: 16px;
    color: #3C4D5C;
    margin-bottom: 0;
    text-align: center;
}

.main-doctor-content {
    padding: 2rem;
}

.main-doctor-content p {
    font-family: var(--font-body);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.main-doctor-content p:last-child {
    margin-bottom: 0;
}

/* Team Cards */
.team-card {
    max-width: 272px;
    margin: 0 auto;
}

.team-card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    visibility: hidden;
}

.team-card-info {
    background: #ABBDCC;
    padding: 1rem 1.25rem;
    border-radius: 0 0 16px 16px;
}

.team-card-name {
    font-family: var(--font-body);
    margin-bottom: 0.25rem;
    font-size: 20px;
    color: #3C4D5C;
    font-weight: bold;
    text-align: center;
    min-height:48px;
}

.team-card-position {
    font-family: var(--font-body);
    font-size: 16px;
    color: #3C4D5C;
    text-align: center;
    margin-bottom: 0;
    line-height: 1.2;
    min-height:55px;
}

@media (max-width: 991.98px) {
    .team-title {
        font-size: 2.5rem;
    }

    .main-doctor-image {
        max-width: 100%;
    }

    .main-doctor-info {
        max-width: 100%;
    }

    .main-doctor-content {
        padding: 1.5rem 0;
    }
}

@media (max-width: 767.98px) {
    .team-section {
        padding: 60px 0;
    }

    .team-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .team-card-image {
        height: 220px;
    }

    .team-card-name {
        font-size: 0.9rem;
    }

    .team-card-position {
        font-size: 0.8rem;
    }
}

/* ========================================
   CV Page
   ======================================== */

.cv-page {
    background-color: var(--bg-light);
    min-height: 100vh;
}

.cv-section {
    padding: 80px 0;
}

.cv-section .container {
    max-width: 1200px;
}

/* Two-column layout: photo left, content right */
.cv-layout {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
}

.cv-photo-col {
    flex-shrink: 0;
    width: 280px;
}

.cv-photo {
    width: 100%;
    border-radius: 12px;
    display: block;
    position: sticky;
    top: 100px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

.cv-content-col {
    flex: 1;
    min-width: 0;
}

.cv-title {
    font-family: var(--font-heading);
    font-size: var(--size-heading);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cv-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    background: #ABBDCC;
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 5px;
    width: 17px;
    height: 17px;
    background: #19252F;
    border-radius: 6px;
    z-index: 1;
}

.timeline-content {
    padding-left: 30px;
    padding-bottom: 2rem;
}

.timeline-item:last-child .timeline-content {
    border-bottom: none;
}

.timeline-year {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 29px;
    font-weight: 800;
    color: #19252F;
    line-height: 46px;
    margin-bottom: 0.5rem;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-list li {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #3C4D5C;
    line-height: 41px;
    position: relative;
    padding-left: 1rem;
}

.timeline-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3C4D5C;
}

/* Summernote HTML content inside timeline */
.timeline-body {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #3C4D5C;
    line-height: 1.7;
}

.timeline-body p { margin-bottom: 0.4rem; }
.timeline-body ul, .timeline-body ol {
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
}
.timeline-body li { line-height: 2; }
.timeline-body h2, .timeline-body h3, .timeline-body h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

@media (max-width: 991.98px) {
    /* Stack: image on top, content below */
    .cv-layout {
        flex-direction: column;
        gap: 2.5rem;
    }

    .cv-photo-col {
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }

    .cv-photo {
        position: static;
    }

    .cv-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .cv-subtitle {
        text-align: center;
    }

    .timeline-year {
        font-size: 24px;
    }

    .timeline-list li,
    .timeline-body {
        font-size: 16px;
        line-height: 32px;
    }
}

@media (max-width: 767.98px) {
    .cv-section {
        padding: 60px 0;
    }

    .cv-title {
        font-size: 2rem;
    }

    .cv-subtitle {
        margin-bottom: 2.5rem;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 6px;
        width: 3px;
    }

    .timeline-dot {
        left: -30px;
        width: 14px;
        height: 14px;
    }

    .timeline-content {
        padding-left: 20px;
    }

    .timeline-year {
        font-size: 20px;
        line-height: 1.4;
    }

    .timeline-list li,
    .timeline-body {
        font-size: 14px;
        line-height: 1.7;
    }

    .timeline-item {
        padding-bottom: 2rem;
    }
}

/* ========================================
   Services Page
   ======================================== */

.services-page {
    background-color: var(--bg-light);
    /* min-height: 100vh; */
}

.services-page.services-page-detail a{ 
    color: #629ecf !important;
}

.services-page.services-page-detail a:hover{ 
    color: #505f68!important;
}

.services-header {
    padding: 60px 0 40px;
}

.services-header .container {
    max-width: 1200px;
}

.services-category {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #3C4D5C;
    margin-bottom: 0.5rem;
}

.services-title {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: var(--size-heading);

    color: #3C4D5C;
    line-height: 1.1;
    margin-bottom: 0;
}

/* Table of Contents */
.services-toc {
    padding: 40px 0 60px;
}

.services-toc .container {
    max-width: 1200px;
}

.toc-wrapper {
    position: relative;
    padding-left: 30px;
}

.toc-wrapper2 {
    position: relative;
}

.toc-wrapper::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 1px;
    border-left: 1px solid #AAAAAA;
    border-radius: 12px;
}

.toc-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.toc-group2 {
    position: relative;
    margin-bottom: 0.5rem;
}

.toc-group::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 4px;
    width: 17px;
    height: 24px;
    border: none;
    border-radius: 9px 0 0 9px;
}

.toc-title {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #3C4D5C;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.toc-title:hover {
    color: var(--primary-color);
}

.toc-children {
    padding-left: 1rem;
}

.toc-children2 {
    position: relative;
    padding-left: 2rem;
}


.toc-children2::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 1px;
    border-left: 1px solid #AAAAAA;
    border-radius: 12px;
}

.toc-child {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #3C4D5C;
    text-decoration: none;
    display: block;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.toc-child:hover {
    color: var(--primary-color);
}

/* Content Sections */
.services-content {
    padding: 60px 0 100px;
    /* border-top: 1px solid rgba(60, 77, 92, 0.15); */
}

.services-content .container {
    max-width: 1200px;
}
.services-content2 {
    padding: 0px 0 100px;
    /* border-top: 1px solid rgba(60, 77, 92, 0.15); */
}

.services-content2 .container {
    max-width: 1200px;
}

.content-block {
    margin-bottom: 4rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-title {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 38px;
    font-weight: 600;
    color: #3C4D5C;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.content-text {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #3C4D5C;
    line-height: 30px;
    margin-bottom: 1.5rem;
}

.content-text:last-child {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .services-title {
        font-size: 48px;
    }

    .content-title {
        font-size: 28px;
    }

    .content-text {
        font-size: 16px;
        line-height: 26px;
    }
}

@media (max-width: 767.98px) {
    .services-header {
        padding: 40px 0 30px;
    }

    .services-category {
        font-size: 16px;
    }

    .services-title {
        font-size: 32px;
    }

    .services-toc {
        padding: 30px 0 40px;
    }

    .toc-title {
        font-size: 14px;
    }

    .toc-child {
        font-size: 14px;
    }

    .services-content {
        padding: 40px 0 60px;
    }

    .content-title {
        font-size: 22px;
    }

    .content-text {
        font-size: 15px;
        line-height: 24px;
    }
}

/* ========================================
   Glossary Page
   ======================================== */

.glossary-page {
    background-color: var(--bg-light);
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
}

.glossary-header {
    padding: 60px 0 40px;
}

.glossary-header .container {
    max-width: 1200px;
}

.glossary-title {
    font-family: var(--font-heading);
    font-size: var(--size-heading);
    font-weight: 400;
    color: #19252F;
    line-height: 1;
    margin-bottom: 2rem;
}

.glossary-intro {
    max-width: 833px;
}

.glossary-intro p {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #19252F;
    line-height: 1.42;
    margin-bottom: 1rem;
}

/* Filter Section */
.glossary-filter {
    padding: 30px 0;
    border-top: 1px solid rgba(60, 77, 92, 0.1);
    border-bottom: 1px solid rgba(60, 77, 92, 0.1);
}

.glossary-filter .container {
    max-width: 1200px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.filter-label {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #3C4D5C;
    white-space: nowrap;
}

.alphabet-wrapper {
    flex: 1;
    overflow: hidden;
}

.alphabet-slider {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
}

.alphabet-slider::-webkit-scrollbar {
    display: none;
}

.alphabet-slider:active {
    cursor: grabbing;
}
.letter-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #3C4D5C;
    cursor: pointer;
    transition: all 0.3s ease;
}


.letter-btn:hover {
    background: rgba(60, 77, 92, 0.1);
}

.letter-btn.active {
    background: #3C4D5C;
    color: white;
}

.letter-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.letter-btn.disabled:hover {
    background: transparent;
}

/* Glossary Content */
.glossary-content {
    padding: 60px 0;
}

.glossary-content .container {
    max-width: 1200px;
}

.glossary-group {
    padding: 40px 0;
    border-bottom: 1px solid rgba(60, 77, 92, 0.3);
}

.glossary-group:last-child {
    border-bottom: none;
}

.glossary-letter {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: #19252F;
    line-height: 1;
}

.glossary-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 2rem;
}

.glossary-item {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #3C4D5C;
    text-decoration: none;
    line-height: 1.4;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.glossary-item:hover {
    color: var(--primary-color);
}

.glossary-item--fallback {
    opacity: 0.4;
}

@media (max-width: 1199.98px) {
    .glossary-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    .glossary-title {
        font-size: 60px;
    }

    .glossary-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .glossary-letter {
        font-size: 48px;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .glossary-header {
        padding: 40px 0 30px;
    }

    .glossary-title {
        font-size: 40px;
    }

    .glossary-intro p {
        font-size: 14px;
    }

    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .filter-label {
        font-size: 16px;
    }

    .alphabet-wrapper {
        width: 100%;
    }

    .letter-btn {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 16px;
        border-radius: 12px;
        border: 1px solid #3C4D5C;
    }
    
    .glossary-content {
        padding: 40px 0;
    }

    .glossary-group {
        padding: 30px 0;
    }

    .glossary-letter {
        font-size: 36px;
    }

    .glossary-items {
        grid-template-columns: 1fr;
    }

    .glossary-item {
        font-size: 16px;
    }
}


/* ========================================
   Contact Page
   ======================================== */

.contact-page {
    background-color: var(--bg-light);
}

/* Map Section */
.contact-map {
    position: relative;
    height: 443px;
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #3C4D5C;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 57px;
    color: #3C4D5C;
}

/* Contact Form Section */
.contact-form-section {
    padding: 60px 0;
}

.contact-title {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: #3C4D5C;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #3C4D5C;
    letter-spacing: 0.6px;
}

.contact-form-main .form-control {
    border: 2px solid #E4E4E4;
    border-radius: 8px;
    padding: 12px 20px;
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 13px;
    font-style: italic;
    color: #3C4D5C;
    letter-spacing: 0.52px;
    text-transform: uppercase;
    background: transparent;
}

.contact-form  .form-control::placeholder{
    color: #b9b9b9!important;
}
.contact-form-main .form-control::placeholder{
    color: #b9b9b9!important;
}

.contact-form-main .form-control:focus {
    border-color: #3C4D5C;
    box-shadow: none;
}

.contact-form-main textarea.form-control {
    height: 100%;
    min-height: 130px;
    resize: none;
}

.contact-form-main .btn-primary {
    background: #3C4D5C;
    border-radius: 8px;
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 18px;
    font-weight: 800;
    padding: 16px 30px;
}

/* Contact Info */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 55px;
    height: 55px;
    border: 1px solid #3C4D5C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #3C4D5C;
    flex-shrink: 0;
}

.contact-info-item span {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #3C4D5C;
    line-height: 1.5;
}

/* Legal Section */
.contact-legal-section {
    padding: 60px 0 80px;
}

.legal-title {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #3C4D5C;
    margin-bottom: 1rem;
}

.legal-subtitle {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #3C4D5C;
    margin-bottom: 1.5rem;
}

.legal-columns {
    display: flex;
    gap: 3rem;
}

.legal-column {
    flex: 1;
}

.legal-column p {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #3C4D5C;
    line-height: 30px;
}

.legal-divider {
    width: 1px;
    background: rgba(60, 77, 92, 0.3);
}

.legal-rights-title {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #3C4D5C;
    margin-bottom: 1rem;
}

.legal-rights-intro {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #3C4D5C;
    line-height: 30px;
    margin-bottom: 1.5rem;
}

.legal-rights-list {
    list-style: disc;
    padding-left: 1.5rem;
}

.legal-rights-list li {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #3C4D5C;
    line-height: 30px;
    margin-bottom: 0.5rem;
}

@media (max-width: 991.98px) {
    .contact-map {
        height: 300px;
    }

    .legal-columns {
        flex-direction: column;
        gap: 1.5rem;
    }

    .legal-divider {
        width: 100%;
        height: 1px;
    }
}

@media (max-width: 767.98px) {
    .contact-map {
        height: 203px;
    }

    .map-pin {
        font-size: 40px;
    }

    .contact-form-section {
        padding: 40px 0;
    }

    .contact-title {
        font-size: 22px;
    }

    .contact-subtitle {
        font-size: 14px;
    }

    .contact-form-main .btn-primary {
        margin-top: 1rem;
    }

    .contact-info-item {
        gap: 0.75rem;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
    }

    .contact-info-item span {
        font-size: 14px;
    }

    .contact-legal-section {
        padding: 40px 0 60px;
    }

    .legal-title,
    .legal-rights-title {
        font-size: 20px;
    }

    .legal-subtitle,
    .legal-rights-intro,
    .legal-column p,
    .legal-rights-list li {
        font-size: 16px;
        line-height: 26px;
    }
}
/* ========================================
   Office Page
   ======================================== */

.office-page {
    background-color: #abbdcc;
}

.office-hero {
    position: relative;
    /* background: #3C4D5C; */
    padding: 80px 0 100px;
    border-radius: 0 0 50px 50px;
    overflow: hidden;
}

.office-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('/assets/images/office/office_bg.webp') no-repeat center center; */
    background-size: cover;
    mix-blend-mode: multiply;
}

.office-hero .container {
    position: relative;
    z-index: 1;
}

.office-title {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: var(--size-heading);
    font-weight: 400;
    color: #F2F2F2;
    text-align: center;
    margin-bottom: 1.5rem;
}

.office-subtitle {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #F2F2F2;
    text-align: center;
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Gallery Grid */
.office-gallery {
    max-width: 1009px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 317px);
    grid-auto-rows: 317px;
    gap: 28px;
    justify-content: center;
}

.gallery-item {
    border-radius: 22px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item.small {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
    grid-row: span 1;
}

@media (max-width: 1199.98px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 280px);
        grid-auto-rows: 280px;
        gap: 20px;
    }
}

@media (max-width: 991.98px) {
    .office-title {
        font-size: 40px;
    }

    .office-subtitle {
        font-size: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
        gap: 15px;
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item.wide {
        grid-column: span 2;
    }
}

@media (max-width: 767.98px) {
    .office-hero {
        padding: 60px 0 0;
        border-radius: 0 0 23px 23px;
    }

    .office-title {
        font-size: 42px;
        line-height: 51px;
        padding: 0 20px;
    }

    .office-subtitle {
        font-size: 14px;
        margin-bottom: 2rem;
        padding: 0 20px;
    }

    .office-gallery {
        padding: 0 20px 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 112px;
        gap: 10px;
    }

    .gallery-item {
        border-radius: 8px;
    }

    .gallery-item.small {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 2;
        height: auto;
    }

    .gallery-item.wide {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* ========================================
   Books Page
   ======================================== */

.books-section {
    background: #3C4D5C;
    min-height: 100vh;
    padding: 80px 0 120px;
}

.books-title {
    font-family: var(--font-heading);
    font-size: var(--size-heading);
    font-weight: 400;
    color: #F2F2F2;
    text-align: center;
    margin-bottom: 80px;
    line-height: 1.18;
}

.books-grid {
    max-width: 1440px;
    margin: 0 auto;
}

.books-row {
    display: flex;
    gap: 80px;
    margin-bottom: 100px;
    justify-content: center;
}

.book-item {
    display: flex;
    gap: 22px;
    max-width: 49.9%;
}

.book-cover {
    width: 318px;
    height: 443px;
    flex-shrink: 0;
    background: #A2A9B0;
    border-radius: 8px;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-details {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
    max-width: 300px;
}

.book-title {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 28px;
    color: #F2F2F2;
    margin-bottom: 20px;
}

.book-authors {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
    color: #ABBDCC;
    margin-bottom: 18px;
}

.book-publisher {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
    color: #ABBDCC;
    margin-bottom: 18px;
}

.book-isbn {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
    color: #ABBDCC;
    margin-bottom: 18px;
}

.book-price {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    color: #F2F2F2;
    margin: 0;
}

/* Pagination */
.books-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 60px;
}

.pagination-num {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.18px;
    color: #ABBDCC;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pagination-num:hover {
    color: #F2F2F2;
}

.pagination-num.active {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #F2F2F2;
    border-radius: 13px;
    color: #ABBDCC;
}

.pagination-arrow {
    color: #F2F2F2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-arrow.disabled {
    opacity: 0.05;
    pointer-events: none;
}

.pagination-arrow svg {
    width: 17px;
    height: 15px;
}

/* ========================================
   Books Page - Mobile
   ======================================== */

@media (max-width: 991.98px) {
    .books-row {
        flex-direction: column;
        gap: 60px;
    }
    
    .book-item {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .books-section {
        padding: 60px 0 80px;
    }
    
    .books-title {
        font-size: 48px;
        margin-bottom: 40px;
    }
    
    .books-row {
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .book-item {
        flex-direction: column;
        gap: 0;
    }
    
    .book-cover {
        width: 152px;
        height: 212px;
        position: absolute;
        right: 20px;
        top: 0;
    }
    
    .book-item {
        position: relative;
        padding-right: 170px;
        min-height: 230px;
    }
    
    .book-details {
        padding-top: 0;
        max-width: none;
    }
    
    .book-title {
        font-size: 20px;
        line-height: 26px;
        margin-bottom: 8px;
    }
    
    .book-authors,
    .book-publisher,
    .book-isbn {
        font-size: 12px;
        line-height: 18px;
        margin-bottom: 8px;
    }
    
    .book-price {
        font-size: 12px;
        line-height: 22px;
    }
}

@media (max-width: 400px) {
    .book-cover {
        width: 120px;
        height: 168px;
    }
    
    .book-item {
        padding-right: 130px;
        min-height: 180px;
    }
}

/* ========================================
   Glossary Detail Page
   ======================================== */

.glossary-detail-page {
    padding: 60px 0 100px;
    min-height: 60vh;
}

.glossary-detail-page .container {
    max-width: 900px;
}

.breadcrumb-nav {
    margin-bottom: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-dark);
}

.back-link i {
    font-size: 20px;
}

.glossary-article {
    background: #fff;
    border-radius: 16px;
    padding: 50px 60px;
    box-shadow: var(--shadow-lg);
}

.article-title {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 30px;
    line-height: 1.2;
}

.article-content {
    font-family: 'Segoe_UI_light', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: 1em;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.article-content li {
    margin-bottom: 0.5em;
}

@media (max-width: 767.98px) {
    .glossary-detail-page {
        padding: 40px 0 60px;
    }

    .glossary-article {
        padding: 30px 25px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-content {
        font-size: 16px;
    }
}

/* ========================================
   News / Blog — Listing Page
   ======================================== */

.news-section {
    padding: var(--section-padding) 0;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 400;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 60px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Card (tile) */
.news-card {
    background: #ABBDCC;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Image area — 7.76% margin on each side, aspect matches Figma */
.news-card-image-link {
    display: block;
    margin: 34px 34px 0;
    border-radius: 9px;
    overflow: hidden;
    text-decoration: none;
}

.news-card-image {
    aspect-ratio: 370 / 240;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.04);
}

/* Text body */
.news-card-body {
    padding: 24px 34px 34px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-date {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    opacity: 0.7;
    margin-bottom: 10px;
}

.news-card-title {
    font-family: var(--font-body);
    font-size: 25px;
    font-weight: 400;
    line-height: 28px;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    height: 84px;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
}

.news-card-excerpt {
    font-family: var(--font-body);
    font-size: 18px;
    line-height:  20px;
    color: var(--text-primary);
    flex: 1;
    margin-bottom: 20px;
    height: 75px;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
}

.news-card-link {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 30px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    align-self: flex-start;
}

.news-card-link:hover {
    text-decoration: underline;
    color: var(--text-primary);
}

/* Card without image: add top padding to body */
.news-card:not(:has(.news-card-image-link)) .news-card-body {
    padding-top: 34px;
}

@media (max-width: 1199.98px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .news-section {
        padding: var(--section-padding-mobile) 0;
    }

    .news-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card-image-link {
        margin: 20px 20px 0;
    }

    .news-card-body {
        padding: 20px 20px 24px;
    }

    .news-card-title {
        font-size: 24px;
        line-height: 28px;
    }

    .news-card-excerpt {
        font-size: 16px;
        line-height: 26px;
    }
}

/* ========================================
   News / Blog — Article Page
   ======================================== */

.article-page {
    padding: var(--section-padding) 0;
}

.article-page .container {
    max-width: 860px;
}

.article-featured-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 48px;
}

.article-featured-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.article-header {
    margin-bottom: 40px;
}

.article-date {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    opacity: 0.6;
    margin-bottom: 14px;
}

.article-page .article-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 0;
}

.article-page .article-content {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-page .article-content p        { margin-bottom: 1.5em; }
.article-page .article-content h2       { font-size: 28px; font-weight: 600; margin-top: 2em; margin-bottom: 0.75em; }
.article-page .article-content h3       { font-size: 22px; font-weight: 600; margin-top: 1.5em; margin-bottom: 0.6em; }
.article-page .article-content ul,
.article-page .article-content ol       { padding-left: 1.5em; margin-bottom: 1.5em; }
.article-page .article-content li       { margin-bottom: 0.5em; }
.article-page .article-content img      { max-width: 100%; border-radius: 8px; height: auto; }
.article-page .article-content video    { max-width: 100%; border-radius: 8px; }
.article-page .article-content blockquote {
    border-left: 4px solid #ABBDCC;
    padding: 12px 20px;
    margin: 1.5em 0;
    color: rgba(60,77,92,.75);
}

@media (max-width: 767.98px) {
    .article-page {
        padding: var(--section-padding-mobile) 0;
    }

    .article-page .article-title {
        font-size: 28px;
    }

    .article-page .article-content {
        font-size: 16px;
    }
}

.breadcrumbs-nav{
    display: none;;
}

.text-bold {
    font-weight: bold;
}

.page-content{
    font-size: 18px;
}

.page-content span{
    font-size: inherit!important;
}


.page-content.has-drop-cap > p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-heading);
    font-size: 4.5em;
    line-height: 0.78;
    padding-right: 0.1em;
    padding-top: 0.05em;
    color: var(--primary-color);
}
.page-content.has-drop-cap > h3:first-of-type::first-letter {
    float: left;
    font-family: var(--font-heading);
    font-size: 4.5em;
    line-height: 0.78;
    padding-right: 0.1em;
    padding-top: 0.05em;
    color: var(--primary-color);
}

.operation-hero-image,
.symptom-hero-image {
    max-width: 1176px;
    max-height: 480px;
    overflow: hidden;
    margin: 20px auto 0 auto;
}

.operation-hero-img,
.symptom-hero-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-lg);
}

.ops-title-link {
    color: inherit;
    text-decoration: none;
}

.ops-title-link:hover {
    color: inherit;
}

.ops-counter {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    min-width: 40px;
    text-align: center;
}

.partner-logo{
    background-color: #fff;
    border-radius: 4px;
    padding:5px 0;
}

/* ===================================================
   OFFICE PAGES — gallery slider, content, team
   =================================================== */

.office-gallery-section {
    margin-top: 2.5rem;
}

.gallery-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gallery-slider-viewport {
    flex: 1;
    overflow: hidden;
}

.gallery-slider-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.gallery-slide {
    flex: 0 0 320px;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #1a1a2e;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.gallery-slide:hover img {
    transform: scale(1.05);
}

.gallery-nav {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background .2s, border-color .2s;
    backdrop-filter: blur(4px);
}

.gallery-nav:hover {
    background: rgba(255,255,255,.25);
    border-color: rgba(255,255,255,.7);
}

@media (max-width: 767px) {
    .gallery-slide {
        flex: 0 0 260px;
        height: 260px;
    }
    .gallery-nav { width: 36px; height: 36px; flex: 0 0 36px; }
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9000;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-inner img {
    max-width: 80vw;
    max-height: 85vh;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.lightbox-close:hover { background: rgba(255,255,255,.3); }

.lightbox-prev,
.lightbox-next {
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.3); }


@media (max-width: 767px) {
    .lightbox-inner img {
        max-width: 60vw;
        max-height: 60vh;
    }
        
    .lightbox-prev,
    .lightbox-next {
        width: 28px;
        height: 28px;
    }

}

/* Office content section */
.office-content-section {
    padding-bottom: 4rem;
}

.office-content-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #fff;
}

.office-content-text p { margin-bottom: 1rem; }
.office-content-text ul,
.office-content-text ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* Office team section */
.office-team-section {
    padding: 3rem 0 4rem;
    background: var(--bg-light, #f8f9fa);
}

.office-team-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

/* ===================================================
   DOCTOR DETAIL PAGE
   =================================================== */

.doctor-page {
    padding-top: 3rem;
    padding-bottom: 0;
}

.doctor-hero {
    padding: 3rem 0 4rem;
}

.doctor-photo-wrap {
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    width: 220px;
    height: 220px;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
}

.doctor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.doctor-name {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    margin-bottom: .25rem;
}

.doctor-specialty {
    font-size: 1rem;
    color: var(--primary-color, #0d6efd);
    font-weight: 400;
    margin-bottom: .25rem;
}

.doctor-team {
    font-size: .9rem;
    color: var(--text-muted, #6c757d);
}

.doctor-bio {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color, #333);
}

.doctor-bio p   { margin-bottom: 1rem; }
.doctor-bio ul,
.doctor-bio ol  { padding-left: 1.5rem; margin-bottom: 1rem; }

@media (max-width: 767px) {
    .doctor-hero { padding: 2rem 0; }
    .doctor-photo-wrap { width: 160px; height: 160px; }
    .doctor-name { font-size: 1.3rem; }
}

/* ========================================
   Publications
   ======================================== */

.pub-list {
    margin-top: 3rem;
}

.pub-entry {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pub-entry:first-child {
    border-top: 1px solid var(--border-color);
}

.pub-num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--primary-color);
    opacity: 0.4;
    min-width: 2.25rem;
    text-align: right;
    line-height: 1.4;
    padding-top: 0.05rem;
    flex-shrink: 0;
}

.pub-body {
    flex: 1;
    min-width: 0;
}

.pub-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    line-height: 1.45;
}

.pub-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s;
}

.pub-title a:hover {
    color: var(--primary-color);
}

.pub-authors {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
    line-height: 1.5;
}

.pub-journal {
    font-size: 0.83rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.7rem;
}

.pub-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid var(--primary-color);
    border-radius: var(--button-radius);
    padding: 0.28rem 0.85rem;
    transition: background 0.18s, color 0.18s;
}

.pub-link-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

@media (max-width: 767px) {
    .pub-entry {
        gap: 1rem;
        padding: 1.25rem 0;
    }

    .pub-num {
        font-size: 1.1rem;
        min-width: 1.75rem;
    }

    .pub-title {
        font-size: 0.97rem;
    }
}

/* ========================================
   Lectures
   ======================================== */

.lectures-years {
    margin-top: 3rem;
}

.lectures-year-section + .lectures-year-section {
    margin-top: 3.5rem;
}

.lectures-year-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.lectures-year-label {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary-color);
    line-height: 1;
    white-space: nowrap;
}

.lectures-year-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.lectures-year-badge {
    font-size: 0.72rem;
    font-weight: 400;
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.lectures-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    
    border-radius: 8px;
    overflow: hidden;
    background: var(--border-color);
}

.lecture-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    background: var(--bg-white);
    transition: background 0.15s;
}

.lecture-row:hover {
    background: #f8f9fb;
}

/* Fixed image box — object-fit:contain keeps any orientation fully visible */
.lecture-img {
    width: 240px;
    height: 175px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border-right: 1px solid var(--border-color);
}

.lecture-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 10px;
}

.lecture-img-zoom {
    cursor: zoom-in;
}

.lecture-no-img {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        transparent 0px,
        transparent 8px,
        rgba(60,77,92,0.05) 8px,
        rgba(60,77,92,0.05) 9px
    );
}

.lecture-body {
    padding: 1.1rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    min-width: 0;
}

.lecture-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
    margin: 0;
}

.lecture-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.lecture-desc p { margin-bottom: 0.25rem; }
.lecture-desc p:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
    .lecture-row {
        grid-template-columns: 1fr;
    }

    .lecture-img {
        width: 100%;
        height: 180px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .lecture-body {
        padding: 1rem;
    }

    .lectures-year-label {
        font-size: 1.5rem;
    }
}

/* ── Lecture lightbox ── */
.lb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
}

.lb-overlay[hidden] {
    display: none;
}

.lb-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    display: block;
}

.lb-close {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    opacity: 0.85;
    transition: opacity 0.15s;
    z-index: 10000;
}

.lb-close:hover {
    opacity: 1;
}

.text-justify{
    text-align: justify;
}
