
/* ==========================================================================
   Responsive Search Bar for Tablets 
   ========================================================================== */
@media (max-width: 800px) {
    #avalon-inline-search-form {
        right: 70px !important; /* Φέρνει τη μπάρα πιο κοντά στα αριστερά του κουμπιού σε tablets */
        width: 210px !important;
        left: -65% !important;
    }
}

/* ==========================================================================
   Perfect Centered Mobile Search Bar Dropdown
   ========================================================================== */
@media (max-width: 768px) {
    /* Διασφαλίζουμε ότι το header container επιτρέπει απόλυτη τοποθέτηση */
    .header-container {
        position: relative !important;
    }

    #avalon-inline-search-form {
        position: absolute !important;
        top: 15px !important; /* Άλλαξέ το εδώ σε ό,τι ύψος θες (π.χ. 10px, 15px, 20px) */
        left: 50% !important; /* Διορθώθηκε από 35% σε 50% για τέλειο κεντράρισμα */
        right: auto !important;
        transform: translateX(-50%) !important; /* Απόλυτο κεντράρισμα */
        width: 88vw !important;
        max-width: 300px !important;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4) !important;
        z-index: 999999 !important;
    }
}
/* Custom color for the search icon */
#avalon-search-toggle-btn {
    color: #F9BC63 !important;
}

#avalon-search-toggle-btn svg {
    stroke: #F9BC63 !important;
}
/* ==========================================================================
   Scroll-Reveal Animation Styles
   ========================================================================== */
.avalon-scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), 
                transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.avalon-scroll-animate.is-animated {
    opacity: 1;
    transform: translateY(0);
}
/* ==========================================================================
   Extra Slow & Smooth Fade-In Animation in Milliseconds (ms)
   ========================================================================== */

.card-segment {
    opacity: 0;
    transform: translateY(55px); /* Μεγαλύτερη απόσταση για πιο αισθητή, αργή κίνηση */
    transition: opacity 2500ms cubic-bezier(0.16, 1, 0.3, 1), 
                transform 2500ms cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 1000ms ease;
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
}

/* Όταν ενεργοποιείται η ορατότητα από το JS */
.card-segment.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* ==========================================================================
   Remove Grey Gaps / Seamless Section Flow
   ========================================================================== */

html, body {
    background-color: #ffffff !important;
}

section, .site-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.hero-section, 
.futuristic-features-section, 
.pathologies-section, 
.about-doctor-section {
    margin: 0 !important;
}

svg {
    display: block;
    vertical-align: middle;
}
/*end*/

/* ==========================================================================
   Section 3: About Doctor Scroll Entrance & Stagger Animations
   ========================================================================== */

.about-doctor-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.about-doctor-section.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.about-doctor-section .about-content > *,
.about-doctor-section .about-features-bar {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-doctor-section.is-visible .section-subtitle-tag {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.15s;
}

.about-doctor-section.is-visible .about-title {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.3s;
}

.about-doctor-section.is-visible .about-specialty {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.45s;
}

.about-doctor-section.is-visible .about-description {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.6s;
}

.about-doctor-section.is-visible .btn-about-more {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.75s;
}

.about-doctor-section.is-visible .about-features-bar {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.9s;
}

.about-feature-item {
    transition: transform 0.3s ease;
}

.about-feature-item:hover {
    transform: translateX(6px);
}

.about-feature-item:hover .about-feature-icon img {
    transform: scale(1.1);
}
/*end*/

/* ==========================================================================
   Slow, Cinematic Futuristic Entrance & Hover Animations (Logo & Buttons)
   ========================================================================== */

.site-header {
    animation: headerEntrance 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo-symbol-box {
    opacity: 0;
    transform: scale(0.4) rotate(-45deg);
    animation: logoEntrance 2.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s forwards;
}

@keyframes logoEntrance {
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.doctor-logo-img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.custom-site-logo:hover .doctor-logo-img {
    transform: scale(1.12) rotate(6deg);
    filter: drop-shadow(0px 0px 16px rgba(229, 163, 68, 0.8));
}

.btn-appointment-main {
    opacity: 0;
    transform: translateX(-90px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.6s ease, 
                opacity 0.6s ease;
}

.hero-content.is-visible .btn-appointment-main {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s, 
                transform 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s;
}

.btn-appointment-main:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 0 30px rgba(229, 163, 68, 0.65), 0 12px 35px rgba(0, 0, 0, 0.35);
}

.btn-services-outline {
    opacity: 0;
    transform: translateX(-90px);
    transition: border-color 0.6s, background 0.6s, 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.6s ease, opacity 0.6s ease;
}

.hero-content.is-visible .btn-services-outline {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1) 1.3s, 
                transform 1.8s cubic-bezier(0.16, 1, 0.3, 1) 1.3s;
}

.btn-services-outline:hover {
    border-color: var(--gold-light);
    background: rgba(229, 163, 68, 0.15);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 0 25px rgba(229, 163, 68, 0.3);
}
/*end*/

/* ==========================================================================
   Futuristic Animation & Interactive Effects
   ========================================================================== */

.hero-content,
.pathologies-header,
.pathology-item {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s ease,
                box-shadow 0.3s ease;
    will-change: transform, opacity;
}

.hero-content.is-visible,
.pathologies-header.is-visible,
.pathology-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pathology-item {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.pathology-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(229, 163, 68, 0.12),
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.pathology-item:hover::before {
    opacity: 1;
}

@keyframes floatSphere {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.pathology-icon-wrap {
    animation: floatSphere 5s ease-in-out infinite;
}

.pathology-item:nth-child(2n) .pathology-icon-wrap { animation-delay: -1.5s; }
.pathology-item:nth-child(3n) .pathology-icon-wrap { animation-delay: -3s; }

.pathology-item:hover .pathology-icon-wrap {
    animation-play-state: paused;
}

.pathology-item:hover {
    box-shadow: 0 15px 35px rgba(229, 163, 68, 0.12);
    border-radius: 12px;
}

.connected-cards-bar .card-segment:hover {
    box-shadow: inset 0 0 20px rgba(229, 163, 68, 0.08);
}

/* ==========================================================================
   Global Reset & Theme Variables
   ========================================================================== */
:root {
    --primary-dark: #070d16;
    --gold-light: #f5c77e;
    --gold-dark: #e5a344;
    --text-white: #ffffff;
    --text-muted: #cbd5e1;
    --border-light: #edf2f7;
    --font-main: 'Arimo', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: #f8fafc;
    color: #1e293b;
}

/* ==========================================================================
   Header & Navigation Styling with Entrance Animations
   ========================================================================== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    background: linear-gradient(180deg, rgba(7, 13, 22, 0.95) 0%, rgba(7, 13, 22, 0.5) 75%, rgba(7, 13, 22, 0) 100%);
    opacity: 0;
    transform: translateY(-20px);
    animation: headerEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes headerEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.admin-bar .site-header {
    top: 32px;
}

.header-container {
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-site-logo {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-decoration: none !important;
    gap: 16px !important;
}

.logo-symbol-box {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.6) rotate(-15deg);
    animation: logoEntrance 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

.doctor-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: drop-shadow(0px 3px 6px rgba(229, 163, 68, 0.35));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-site-logo:hover .doctor-logo-img {
    transform: scale(1.08) rotate(3deg);
}

.doctor-info-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(-15px);
    animation: textEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

@keyframes textEntrance {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.doctor-name {
    color: #ffffff;
    font-size: 18.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.doctor-name small {
    font-size: 13.5px;
    color: #cbd5e1;
    font-weight: 500;
}

.doctor-spec {
    color: #94a3b8;
    font-size: 13.5px;
    margin-top: 3px;
    white-space: nowrap;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 36px;
}

.main-nav li {
    opacity: 0;
    transform: translateY(-15px);
    animation: navItemEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.main-nav li:nth-child(1) { animation-delay: 0.35s; }
.main-nav li:nth-child(2) { animation-delay: 0.45s; }
.main-nav li:nth-child(3) { animation-delay: 0.55s; }
.main-nav li:nth-child(4) { animation-delay: 0.65s; }
.main-nav li:nth-child(5) { animation-delay: 0.75s; }
.main-nav li:nth-child(6) { animation-delay: 0.85s; }

@keyframes navItemEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-nav a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: color 0.2s ease, transform 0.2s ease;
    position: relative;
    padding-bottom: 6px;
    display: inline-block;
}

.main-nav a:hover {
    transform: translateY(-2px);
}

.main-nav li.active a,
.main-nav a:hover {
    color: var(--gold-light);
}

.main-nav li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
    border-radius: 2px;
}

@media (max-width: 992px) {
    /* Διασφαλίζουμε ότι το header container επιτρέπει απόλυτη τοποθέτηση */
    .header-container {
        position: relative !important;
    }

    #avalon-inline-search-form {
        position: absolute !important;
        top: 50px !important; /* Τοποθετείται ακριβώς κάτω από το λογότυπο και τα κουμπιά */
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important; /* Τέλειο οριζόντιο κεντράρισμα στην οθόνη */
        width: 88vw !important;
        max-width: 300px !important;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4) !important;
        z-index: 999999 !important;
    }
}

@keyframes actionsEntrance {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.search-toggle {
    background: transparent;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: transform 0.2s, color 0.2s;
}

.search-toggle:hover {
    transform: scale(1.1);
    color: var(--gold-light);
}

.btn-appointment-header {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-dark) 100%);
    color: #0b131f;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(229, 163, 68, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-appointment-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 163, 68, 0.45);
}

.btn-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* ==========================================================================
   Hero Section Styling
   ========================================================================== */
.hero-section {
    position: relative;
    background-color: var(--primary-dark);
    padding-top: 110px !important;
    padding-bottom: 60px !important;
    min-height: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

body.admin-bar .hero-section {
    padding-top: 130px !important;
}

.hero-subtitle-tag {
    margin-bottom: 16px !important;
}

.hero-title {
    margin: 0 0 16px 0 !important;
}

.hero-description {
    margin-bottom: 28px !important;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgb(7, 13, 22) 0%, rgba(7, 13, 22, 0.22) 48%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1720px;
    margin: 0 auto;
    width: 100%;
    padding: 50px 35px;
    box-sizing: border-box;
}

.hero-content {
    max-width: 820px;
}

.hero-subtitle-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-subtitle-tag .dash {
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
}

.hero-title {
    color: var(--text-white);
    font-size: 50px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 22px 0;
    letter-spacing: -0.5px;
}

.highlight-gold {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: var(--text-muted);
    font-size: 17px !important;
    line-height: 1.65;
    margin-bottom: 40px;
    max-width: 760px;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-appointment-main {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-dark) 100%);
    color: #0b131f;
    padding: 15px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(229, 163, 68, 0.3);
    opacity: 0;
    transform: translateX(-50px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, opacity 0.3s ease;
}

.hero-content.is-visible .btn-appointment-main {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.btn-appointment-main:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 28px rgba(229, 163, 68, 0.5);
}

.btn-services-outline {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text-white);
    padding: 15px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-50px);
    transition: border-color 0.3s, background 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, opacity 0.3s ease;
}

.hero-content.is-visible .btn-services-outline {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
}

.btn-services-outline:hover {
    border-color: var(--gold-light);
    background: rgba(229, 163, 68, 0.1);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(229, 163, 68, 0.15);
}

.hero-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    line-height: 0;
    pointer-events: none;
}

.hero-wave-bottom svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Horizontal Feature Cards Bar
   ========================================================================== */
.cards-outer-container {
    position: relative;
    z-index: 20;
    max-width: 1720px;
    margin: -80px auto 50px auto;
    padding: 0 35px;
    width: 100%;
    box-sizing: border-box;
}

.connected-cards-bar {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 1px solid #eef2f6;
    overflow: hidden;
    width: 100%;
}

.card-segment {
    flex: 1 1 25% !important;
    max-width: 25% !important;
    padding: 32px 24px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    border-right: 1px solid #edf2f7;
    position: relative;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.card-segment:last-child {
    border-right: none !important;
}

.card-segment:hover {
    background-color: #fafbfc;
}

.card-icon-wrap {
    width: 85px !important;
    height: 85px !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon {
    width: 120% !important;
    height: 120% !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card-segment:hover .card-icon-wrap {
    transform: scale(1.08);
}

.card-text {
    display: flex;
    flex-direction: column;
}

.card-text h3 {
    margin: 0 0 5px 0;
    font-size: 16.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.card-text p {
    margin: 0;
    font-size: 17px;
    color: #718096;
    line-height: 1.35;
}

.card-arrow {
    width: 34px;
    height: 34px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 15px;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.card-segment:hover .card-arrow {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* ==========================================================================
   Section 2: Compact Pathologies Section
   ========================================================================== */
.pathologies-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fff0;
  padding: 50px 0 60px 0 !important;
  overflow: hidden;
}

.pathologies-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto !important;
}

.pathologies-header .section-subtitle-tag {
    margin-bottom: 8px !important;
}

.pathologies-header .section-title {
    margin: 0 0 10px 0 !important;
}

.pathologies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    position: relative;
}

.pathologies-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #e2e8f0;
    z-index: 1;
}

.pathology-item {
    position: relative;
    padding: 5px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    box-sizing: border-box;
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.pathology-item::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.pathology-item:hover::before {
    opacity: 1;
    transform: scale(1);
}

.pathology-item:hover {
    transform: translateY(-4px);
    z-index: 10;
}

.pathology-icon-wrap,
.pathology-item h3,
.pathology-item p {
    position: relative;
    z-index: 2;
}

.pathology-item:nth-child(4n) {
    border-right: none;
}

.pathology-item:nth-child(n+5) {
    border-bottom: none;
}

.pathology-icon-wrap {
    width: 135px;
    height: 115px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pathology-img {
    width: 75%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 10px 18px rgba(0, 110, 200, 0.18));
    transition: transform 0.3s ease;
}

.pathology-item:hover .pathology-img {
    transform: scale(1.06);
}

.pathology-item h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0b131f;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.pathology-item p {
    font-size: 17px !important;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    max-width: 260px;
}

/* ==========================================================================
   Mobile Burger Menu & Header Fixes
   ========================================================================== */
.site-header {
    overflow: visible !important;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    justify-content: space-between;
    width: 36px;
    height: 30px;
    z-index: 1001;
    flex-shrink: 0;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    display: block;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--gold-light);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--gold-light);
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex !important;
    }

    .main-nav {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 280px !important;
        max-width: 80vw !important;
        height: 100vh !important;
        background: #070d16 !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
        padding: 100px 25px 40px 25px !important;
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 1000 !important;
    }

    .main-nav.is-open {
        right: 0 !important;
    }

    .main-nav ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        align-items: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .main-nav a {
        font-size: 18px !important;
        color: #ffffff !important;
        display: block !important;
        width: 100% !important;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* ==========================================================================
   Section 3: About the Doctor
   ========================================================================== */
.about-action {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-doctor-section.is-visible .about-action {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.75s;
}

.btn-about-more {
  display: inline-block;
  background: linear-gradient(135deg, #f7d28d 0%, #ffd79e 100%);
  color: #0b131f !important;
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(229, 163, 68, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-doctor-section.is-visible .btn-about-more {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.75s;
}

.btn-about-more:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(229, 163, 68, 0.4);
}

.about-doctor-section {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    overflow: hidden;
}

.about-bg-wrapper {
    position: relative;
    width: 100%;
    min-height: 580px;
    background-position: right center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
}

.about-bg-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 55%;
    background: linear-gradient(to right, #ffffff 72%, rgba(255, 255, 255, 0.88) 90%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.about-container {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 55px 3%;
    box-sizing: border-box;
}

.about-content {
    max-width: 650px;
}

.about-content .section-subtitle-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d99b38;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.about-content .section-subtitle-tag .dash {
    width: 25px;
    height: 2px;
    background-color: #d99b38;
    display: inline-block;
}

.about-title {
    font-size: 42px !important;
    font-weight: 700 !important;
    color: #0b131f !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.18 !important;
}

.about-title small {
    font-size: 34px;
    font-weight: 600;
    color: #0b131f;
}

.about-specialty {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #0b131f !important;
    margin: 0 0 22px 0 !important;
}

.about-description {
    font-size: 17px !important;
    line-height: 1.65 !important;
    color: #475569 !important;
    margin-bottom: 32px !important;
}

.about-features-bar {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 45px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    padding-right: 22px;
}

.about-feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 44px;
    background-color: #cbd5e1;
}

/* Section 3 Icon Container Size */
.about-feature-icon {
    width: 70px !important;  /* Change this value (e.g. 45px or 50px for smaller) */
    height: 70px !important; /* Change this value to match the width */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section 3 Icon Image Size */
.about-feature-icon img {
    width: 100% !important;  /* Change percentage if you want the image smaller/larger inside the box */
    height: 100% !important; /* Change percentage to match */
    object-fit: contain;
}

.about-feature-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.about-feature-text strong {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0b131f !important;
    display: block;
}

.about-feature-text span {
    font-size: 17px !important;
    font-weight: 400 !important;
    color: #475569 !important;
    display: block;
}

/* ==========================================================================
   Section 4: Futuristic Features & Benefits Bar
   ========================================================================== */
.futuristic-features-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.features-bg-overlay {
    position: relative;
    width: 100%;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    padding: 75px 0;
}

.features-bg-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 30, 58, 0.90) 0%, rgba(18, 48, 89, 0.84) 100%);
    mix-blend-mode: multiply;
    z-index: 1;
}

.features-container {
    position: relative;
    z-index: 2;
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding: 0 35px;
    box-sizing: border-box;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: transparent;
    border: none;
    padding: 10px 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.is-animated {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-4px);
}

/* Section 5 Icon Container & Glow Ring Size */
.feature-icon-glow {
    position: relative;
    width: 75px !important;   /* Change this value (e.g. 40px or 45px for smaller) */
    height: 75px !important;  /* Change this value to match width */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section 5 Icon Outer Dashed Ring Offset */
.feature-icon-ring {
    position: absolute;
    inset: -4px !important;   /* Adjust distance of the spinning dashed ring relative to the icon */
    border-radius: 50%;
    border: 1.5px dashed rgba(247, 210, 141, 0.4);
    animation: futuristicSpin 12s linear infinite;
}

/* Section 5 Icon Image Scale */
.feature-img {
    width: 100% !important;   /* Change percentage (e.g., 85% or 90%) to shrink image inside box */
    height: 100% !important;  /* Match the width percentage */
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon-ring {
    border-color: #f7d28d;
    animation-duration: 5s;
}

@keyframes futuristicSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feature-card:hover .feature-img {
    transform: scale(1.12);
}

.feature-text span {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1.35;
    display: block;
}
/* ==========================================================================
   Section 5: Medical Clinic CTA Section
   ========================================================================== */
.clinic-cta-section {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    overflow: hidden;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}

.clinic-bg-wrapper {
    position: relative;
    width: 100%;
    min-height: 520px;
    background-position: left center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
}

.clinic-bg-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(to left, #ffffff 75%, rgba(255, 255, 255, 0.88) 90%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.clinic-container {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    padding: 50px 35px;
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box;
}

.clinic-content {
    max-width: 680px;
    width: 100%;
}

.clinic-content .section-subtitle-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d99b38;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.clinic-content .section-subtitle-tag .dash {
    width: 25px;
    height: 2px;
    background-color: #d99b38;
}

.clinic-title {
    font-size: 42px !important;
    font-weight: 700 !important;
    color: #0b131f !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px;
}

.clinic-description {
    font-size: 17px !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    margin-bottom: 28px !important;
}

.clinic-buttons {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-clinic-phone {
    background: linear-gradient(135deg, #f7d28d 0%, #e5a344 100%);
    color: #0b131f !important;
    padding: 13px 26px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(229, 163, 68, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-clinic-phone:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(229, 163, 68, 0.45);
}

.btn-clinic-online {
    background: #ffffff;
    border: 1.5px solid #0f172a;
    color: #0f172a !important;
    padding: 13px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-clinic-online:hover {
    background-color: #f8fafc;
    transform: translateY(-3px);
}

.clinic-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.clinic-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Updated to 55px to match Section 3 exactly */
.clinic-info-icon {
    width: 70px !important;
    height: 70px !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clinic-info-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
    transition: transform 0.3s ease;
}

.clinic-info-item:hover .clinic-info-icon img {
    transform: scale(1.08);
}

.clinic-info-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.clinic-info-text strong {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0b131f !important;
    line-height: 1.3;
    white-space: nowrap;
    display: block;
}

.clinic-info-text span {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    line-height: 1.3;
    white-space: nowrap;
    display: block;
}

.clinic-content > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.clinic-cta-section.is-visible .section-subtitle-tag { opacity: 1 !important; transform: translateY(0) !important; transition-delay: 0.1s; }
.clinic-cta-section.is-visible .clinic-title         { opacity: 1 !important; transform: translateY(0) !important; transition-delay: 0.25s; }
.clinic-cta-section.is-visible .clinic-description    { opacity: 1 !important; transform: translateY(0) !important; transition-delay: 0.4s; }
.clinic-cta-section.is-visible .clinic-buttons        { opacity: 1 !important; transform: translateY(0) !important; transition-delay: 0.55s; }
.clinic-cta-section.is-visible .clinic-info-bar       { opacity: 1 !important; transform: translateY(0) !important; transition-delay: 0.7s; }
/* ==========================================================================
   Section 6: Reviews Responsive Adjustments & Phone Carousel
   ========================================================================== */
@media (max-width: 768px) {
    .reviews-section {
        padding: 60px 0 !important;
    }
    .reviews-title {
        font-size: 28px !important;
    }
    
    /* Transform reviews grid into a 1-slide-at-a-time horizontal snap carousel for phones */
    .reviews-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 16px !important;
        padding: 10px 15px 25px 15px !important;
        -webkit-overflow-scrolling: touch;
    }
    .reviews-grid::-webkit-scrollbar {
        height: 4px;
    }
    .reviews-grid::-webkit-scrollbar-thumb {
        background: var(--gold-dark);
        border-radius: 4px;
    }
    .review-card, .reviews-grid > * {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        scroll-snap-align: center !important;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   Comprehensive Multi-Device Responsiveness (Laptops, Tablets, Phones, Narrow Phones)
   ========================================================================== */

/* 1. Laptops & Small Desktops (Max-width: 1200px) */
@media (max-width: 1200px) {
    .header-container, .hero-container, .cards-outer-container, .features-container, .clinic-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero-title {
        font-size: 42px;
    }
    .connected-cards-bar {
        flex-wrap: wrap !important;
    }
    .card-segment {
        flex: 1 1 50% !important;
        max-width: 50% !important;
        border-right: none;
        border-bottom: 1px solid #edf2f7;
    }
    .card-segment:nth-child(2n) {
        border-right: none;
    }
    .card-segment:nth-last-child(-n+2) {
        border-bottom: none;
    }
    .pathologies-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, auto);
    }
    .pathology-item:nth-child(4n) {
        border-right: 1px solid #e2e8f0;
    }
    .pathology-item:nth-child(2n) {
        border-right: none;
    }
    .pathology-item:nth-child(n+5) {
        border-bottom: 1px solid #e2e8f0;
    }
    .pathology-item:nth-child(n+7) {
        border-bottom: none;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* 2. Standard Tablets & Large Phones (Max-width: 992px) */
@media (max-width: 992px) {
    .hero-section {
        padding-top: 90px !important;
    }
    .hero-title {
        font-size: 34px !important;
    }
    .hero-description {
        font-size: 15px !important;
    }
    
    /* Smaller Icons for Tablets */
    .card-icon-wrap {
        width: 68px !important;
        height: 68px !important;
    }
    .pathology-icon-wrap {
        width: 100px !important;
        height: 85px !important;
    }
    .about-feature-icon {
        width: 20px !important;
        height: 20px !important;
    }
    .feature-icon-glow {
        width: 70px !important;
        height: 70px !important;
    }
    .clinic-info-icon {
        width: 68px !important;
        height: 68px !important;
    }
    
    /* Section 3 (About Doctor): Solid white background & stacked items */
    .about-doctor-section {
        background-color: #ffffff !important;
    }
    .about-bg-wrapper {
        background-image: none !important;
        background-color: #ffffff !important;
        min-height: auto !important;
        padding: 30px 0;
    }
    .about-bg-wrapper::before {
        display: none !important;
    }
    .about-container {
        padding: 30px 20px !important;
    }
    .about-content {
        max-width: 100% !important;
        text-align: left;
    }
    .about-title {
        font-size: 30px !important;
    }
    .about-title small {
        font-size: 24px !important;
    }
    .about-specialty {
        font-size: 18px !important;
    }
    .about-description, .about-feature-text span, .about-feature-text strong {
        font-size: 15px !important;
    }
    .about-features-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .about-feature-item:not(:last-child)::after {
        display: none;
    }

    /* Section 5 (Clinic CTA): Solid white background & stacked items */
    .clinic-bg-wrapper {
        background-image: none !important;
        background-color: #ffffff !important;
        min-height: auto !important;
        padding: 30px 0;
    }
    .clinic-bg-wrapper::before {
        display: none !important;
    }
    .clinic-container {
        justify-content: flex-start;
        padding: 30px 20px !important;
    }
    .clinic-content {
        max-width: 100% !important;
    }
    .clinic-title {
        font-size: 30px !important;
    }
    .clinic-description {
        font-size: 15px !important;
    }
    .clinic-info-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .clinic-info-text strong, .clinic-info-text span {
        white-space: normal !important;
    }
}

/* 3. Standard Phones (Max-width: 768px) */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    .doctor-info-text {
        display: none !important;
    }
    .hero-container, .cards-outer-container, .features-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .hero-title {
        font-size: 28px !important;
    }
    .hero-description {
        font-size: 14px !important;
        margin-bottom: 20px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-appointment-main, .btn-services-outline {
        text-align: center;
        justify-content: center;
    }
    .card-segment {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        border-bottom: 1px solid #edf2f7 !important;
        padding: 20px 16px !important;
    }
    .card-segment:last-child {
        border-bottom: none !important;
    }
    
    /* Smaller Icons for Mobile Phones */
    .card-icon-wrap {
        width: 55px !important;
        height: 55px !important;
    }
    .card-text h3 {
        font-size: 15px;
    }
    .card-text p {
        font-size: 14px;
    }
    .pathologies-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .pathologies-grid::before {
        display: none;
    }
    .pathology-item {
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 25px 15px;
    }
    .pathology-item:last-child {
        border-bottom: none !important;
    }
    .pathology-icon-wrap {
        width: 80px !important;
        height: 70px !important;
        margin-bottom: 12px;
    }
    .pathology-item h3 {
        font-size: 16px;
    }
    .pathology-item p {
        font-size: 14px !important;
        max-width: 100%;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .features-bg-overlay {
        padding: 45px 0;
    }
    .feature-icon-glow {
        width: 55px !important;
        height: 55px !important;
    }
    .feature-text span {
        font-size: 15px !important;
    }
    .clinic-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-clinic-phone, .btn-clinic-online {
        text-align: center;
        justify-content: center;
    }
    .clinic-info-icon {
        width: 55px !important;
        height: 55px !important;
    }
    .about-feature-icon {
        width: 55px !important;
        height: 55px !important;
    }
}

/* 4. Narrow Phones (Max-width: 480px) */
@media (max-width: 480px) {
    .logo-symbol-box {
        width: 48px;
        height: 48px;
    }
    .hero-title {
        font-size: 24px !important;
    }
    .hero-description {
        font-size: 13.5px !important;
    }
    .card-icon-wrap {
        width: 48px !important;
        height: 48px !important;
    }
    .card-text h3 {
        font-size: 14px;
    }
    .card-text p {
        font-size: 13px;
    }
    .about-title, .clinic-title {
        font-size: 25px !important;
    }
    .about-specialty {
        font-size: 16px !important;
    }
    .about-description, .clinic-description {
        font-size: 13.5px !important;
    }
    .about-feature-icon, .clinic-info-icon, .feature-icon-glow {
        width: 48px !important;
        height: 48px !important;
    }
    .pathology-icon-wrap {
        width: 70px !important;
        height: 60px !important;
    }
}



/* ==========================================================================
   Laptops & Medium Desktops (1440px and 1280px viewports)
   ========================================================================== */
@media (max-width: 1440px) {
    .header-container, .hero-container, .cards-outer-container, .features-container, .clinic-container {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    /* Make all section icons smaller on laptops */
    .card-icon-wrap {
        width: 70px !important;
        height: 70px !important;
    }
    .pathology-icon-wrap {
        width: 110px !important;
        height: 95px !important;
    }
    .about-feature-icon {
        width: 75px !important;
        height: 75px !important;
    }
    .feature-icon-glow {
        width: 72px !important;
        height: 72px !important;
    }
    .clinic-info-icon {
        width: 70px !important;
        height: 70px !important;
    }
}

@media (max-width: 1280px) {
    .hero-title {
        font-size: 44px;
    }
    .connected-cards-bar {
        flex-wrap: wrap !important;
    }
    .card-segment {
        flex: 1 1 50% !important;
        max-width: 50% !important;
        border-right: none;
        border-bottom: 1px solid #edf2f7;
    }
    .card-segment:nth-child(2n) {
        border-right: none;
    }
    .card-segment:nth-last-child(-n+2) {
        border-bottom: none;
    }
    .pathologies-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, auto);
    }
    .pathology-item:nth-child(4n) {
        border-right: 1px solid #e2e8f0;
    }
    .pathology-item:nth-child(2n) {
        border-right: none;
    }
    .pathology-item:nth-child(n+5) {
        border-bottom: 1px solid #e2e8f0;
    }
    .pathology-item:nth-child(n+7) {
        border-bottom: none;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* ==========================================================================
   Section 5: Wider White Gradient on Laptops
   ========================================================================== */
@media (min-width: 993px) and (max-width: 1440px) {
    .clinic-bg-wrapper::before {
        width: 65% !important; /* Increased width from 50% to make it wider */
        background: linear-gradient(to left, #ffffff 70%, rgba(255, 255, 255, 0.92) 85%, rgba(255, 255, 255, 0) 100%) !important;
    }
}


/* ==========================================================================
   Section 6: Reviews Carousel for Phones, Tablets, and iPads
   ========================================================================== */
@media (max-width: 1024px) {
    .reviews-section {
        padding: 60px 0 !important;
    }
    .reviews-title {
        font-size: 28px !important;
    }
    
    /* Transform reviews grid into a horizontal snap carousel for tablets, iPads, and phones */
    .reviews-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 16px !important;
        padding: 10px 15px 25px 15px !important;
        -webkit-overflow-scrolling: touch;
    }
    .reviews-grid::-webkit-scrollbar {
        height: 4px;
    }
    .reviews-grid::-webkit-scrollbar-thumb {
        background: var(--gold-dark);
        border-radius: 4px;
    }
    .review-card, .reviews-grid > * {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        scroll-snap-align: center !important;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   Section 4: Futuristic Features & Benefits Bar - Mobile & Tablet Fixes
   ========================================================================== */

/* Tablet view (2 columns) */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    .features-bg-overlay {
        padding: 50px 0 !important;
    }
}

/* Phone view (1 column stack, smaller icons, perfect alignment) */
@media (max-width: 768px) {
    .futuristic-features-section {
        width: 100% !important;
    }
    .features-bg-overlay {
        padding: 40px 0 !important;
    }
    .features-container {
        padding: 0 15px !important;
    }
    .features-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    .feature-card {
        background: rgba(11, 30, 58, 0.4) !important;
        border: 1px solid rgba(247, 210, 141, 0.15) !important;
        border-radius: 12px !important;
        padding: 16px 20px !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    .feature-icon-glow {
        width: 55px !important;
        height: 55px !important;
    }
    .feature-img {
        width: 110% !important;
        height: 110% !important;
    }
    .feature-text span {
        font-size: 14.5px !important;
        line-height: 1.4 !important;
    }
}

/* Narrow phones (iPhone SE, Galaxy Fold, etc.) */
@media (max-width: 480px) {
    .feature-card {
        padding: 14px 16px !important;
        gap: 14px !important;
    }
    .feature-icon-glow {
        width: 48px !important;
        height: 48px !important;
    }
    .feature-text span {
        font-size: 13.5px !important;
    }
}
/* ==========================================================================
   Section 5: Full Width & Text Expansion on Phones
   ========================================================================== */
@media (max-width: 768px) {
    /* Expand the container and content to use full screen width */
    .clinic-container {
        padding: 20px 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .clinic-content {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Make the info bar stack and allow text to show fully without wrapping */
    .clinic-info-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        width: 100% !important;
    }
    .clinic-info-item {
        width: 100% !important;
        background: #f8fafc;
        padding: 12px 16px;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
        box-sizing: border-box;
    }
    .clinic-info-text strong, 
    .clinic-info-text span {
        white-space: normal !important; /* Allows words like Δευτ. - Παρ. to flow fully and naturally */
        font-size: 14.5px !important;
    }
}

/* ==========================================================================
   Section 3: Full Width & Text Expansion on Phones
   ========================================================================== */
@media (max-width: 768px) {
    /* Expand the container and content to use full screen width */
    .about-container {
        padding: 20px 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .about-content {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Make the feature bar items stack and allow text to show fully without wrapping issues */
    .about-features-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        width: 100% !important;
    }
    .about-feature-item {
        width: 100% !important;
        background: #f8fafc;
        padding: 12px 16px;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
        box-sizing: border-box;
    }
    .about-feature-text strong, 
    .about-feature-text span {
        white-space: normal !important; /* Allows feature text and details to flow fully and naturally */
        font-size: 14.5px !important;
    }
}

/* ==========================================================================
   Section 2: Mobile Grid Fix (2 Items per Row, No Lines, Aligned Icons)
   ========================================================================== */
@media (max-width: 768px) {
    /* Switch the grid to 2 equal columns on phones */
    .pathologies-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: auto !important;
        gap: 16px !important;
    }
    
    /* Completely remove all horizontal and vertical grid lines */
    .pathologies-grid::before {
        display: none !important;
    }
    .pathology-item {
        border-right: none !important;
        border-bottom: none !important;
        padding: 16px 10px !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid #e2e8f0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center !important;
    }
    
    /* Ensure the hover card wrapper scale matches the clean card look */
    .pathology-item::before {
        display: none !important; /* Removes duplicate overlapping hover pseudo-elements on mobile */
    }

    /* Perfect icon and typography alignment for 2-column mobile rows */
    .pathology-icon-wrap {
        width: 70px !important;
        height: 60px !important;
        margin-bottom: 10px !important;
    }
    .pathology-img {
        width: 100% !important;
        height: 100% !important;
    }
    .pathology-item h3 {
        font-size: 14.5px !important;
        margin-bottom: 6px !important;
        line-height: 1.3 !important;
    }
    .pathology-item p {
        font-size: 12.5px !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
    }
}

/* ==========================================================================
   Section 1: Connected Feature Cards Bar - Mobile Responsiveness
   ========================================================================== */
@media (max-width: 768px) {
    /* Adjust outer spacing container */
    .cards-outer-container {
        margin: -40px auto 30px auto !important;
        padding: 0 15px !important;
        width: 100% !important;
    }

    /* Stack cards into a single clean vertical column on phones */
    .connected-cards-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        border-radius: 14px !important;
        overflow: hidden;
    }

    /* Individual card segment adjustments */
    .card-segment {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #edf2f7 !important;
        padding: 16px 18px !important;
        background: #ffffff !important;
        box-sizing: border-box;
    }

    .card-segment:last-child {
        border-bottom: none !important;
    }

    /* Perfect phone icon sizing */
    .card-icon-wrap {
        width: 55px !important;
        height: 55px !important;
    }
    
    .card-icon {
        width: 110% !important;
        height: 110% !important;
    }

    /* Text and typography sizing for mobile */
    .card-text h3 {
        font-size: 15px !important;
        margin-bottom: 3px !important;
    }

    .card-text p {
        font-size: 13.5px !important;
        line-height: 1.4 !important;
    }

    /* Optional: Hide or minimize arrow on very small screens for clean look */
    .card-arrow {
        width: 30px !important;
        height: 30px !important;
        font-size: 13px !important;
    }
}

/* Extra small / narrow phones (iPhone SE, Galaxy Fold) */
@media (max-width: 480px) {
    .card-segment {
        padding: 5px 14px !important;
        gap: 12px !important;
    }
    .card-icon-wrap {
        width: 48px !important;
        height: 48px !important;
    }
    .card-text h3 {
        font-size: 14px !important;
    }
    .card-text p {
        font-size: 13px !important;
    }
}
/* ==========================================================================
   Hero Background Video Overlay - Darker on Mobile Phones
   ========================================================================== */
@media (max-width: 768px) {
    .hero-overlay {
        /* Increases the dark opacity across the entire video background on phones */
        background: linear-gradient(180deg, rgba(7, 13, 22, 0.88) 0%, rgba(7, 13, 22, 0.82) 100%) !important;
    }
}

/* ==========================================================================
   Section 6: Reviews Carousel - Remove Vertical Scroll
   ========================================================================== */
@media (max-width: 1024px) {
    .avalon-reviews-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important; /* Forces vertical scroll to be completely hidden */
        scroll-snap-type: x mandatory !important;
        gap: 16px !important;
        padding: 10px 15px 30px 15px !important;
        -webkit-overflow-scrolling: touch;
        max-height: none !important; /* Prevents container height constraints */
    }

    .avalon-review-card {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        scroll-snap-align: center !important;
        height: auto !important; /* Allows the card height to adjust naturally without triggering vertical overflow */
    }
}