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

/* 1. Initial State for Entrance Animations */
.hero-content,
.card-segment,
.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;
}

/* Revealed State */
.hero-content.is-visible,
.card-segment.is-visible,
.pathologies-header.is-visible,
.pathology-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Interactive Spotlight Glow Cursor Effect */
.card-segment,
.pathology-item {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.card-segment::before,
.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;
}

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

/* 3. Futuristic Floating Sphere Animation for Pathology Icons */
@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;
}

/* Stagger floating cycle timing for nearby spheres */
.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;
}

/* Enhanced Glow and Shadow Elevation on Hover */
.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;
}

* {
    box-sizing: border-box;
}

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

/* ==========================================================================
   Header & Navigation Styling
   ========================================================================== */
.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%);
}

/* Account for WordPress Admin Bar top space */
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;
}

/* Header Logo & Doctor Info Styling */
.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;
}

.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));
}

.doctor-info-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.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 a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 6px;
}

.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;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.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: 12px 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: 180px;
    padding-bottom: 150px;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

body.admin-bar .hero-section {
    padding-top: 210px;
}

.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, rgba(7, 13, 22, 0) 0%, rgba(7, 13, 22, 0.36) 48%, rgba(7, 13, 22, 0.1) 100%);
  z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1720px;
    margin: 0 auto;
    width: 100%;
    padding: 0 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;
}

.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);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.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;
    transition: border-color 0.2s, background 0.2s, transform 0.2s ease;
}

.btn-services-outline:hover {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.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: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.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: 13.5px;
    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: Common Pathologies Styling (Refined Grid & Enriched Hover)
   ========================================================================== */
.pathologies-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f4f8fc;
    padding: 90px 0 110px 0;
    overflow: hidden;
}

.pathologies-container {
    max-width: 1360px; /* Pulls columns closer to the center */
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

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

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

.pathologies-header .section-subtitle-tag .dash {
    width: 25px;
    height: 2px;
    background-color: #e5a344;
}

.pathologies-header .section-title {
    font-size: 40px;
    font-weight: 700;
    color: #0b131f;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.pathologies-header .section-description {
    font-size: 17px !important;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

.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: 30px 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;
}

/* White Card Background Box on Hover */
.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;
}

/* Ensure Icon, Title, and Text Stay on Top */
.pathology-icon-wrap,
.pathology-item h3,
.pathology-item p {
    position: relative;
    z-index: 2;
}

/* Remove right border for items in the 4th column */
.pathology-item:nth-child(4n) {
    border-right: none;
}

/* Remove bottom border for items in the 2nd row */
.pathology-item:nth-child(n+5) {
    border-bottom: none;
}

/* Prominent Icon / Sphere Styling */
.pathology-icon-wrap {
    width: 135px;
    height: 135px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pathology-img {
    width: 100%;
    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);
}

/* Typography */
.pathology-item h3 {
    font-size: 17.5px;
    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;
}

/* ==========================================================================
   Comprehensive Responsive Media Queries (Laptop, Tablet & Mobile)
   ========================================================================== */

/* Laptops & Small Desktops (max-width: 1400px) */
@media (max-width: 1400px) {
    .header-container,
    .hero-container,
    .cards-outer-container,
    .pathologies-container {
        max-width: 1200px;
        padding: 0 25px;
    }
    .hero-title {
        font-size: 42px;
    }
}

/* Tablets Landscape (max-width: 1200px) */
@media (max-width: 1200px) {
    .header-container,
    .hero-container,
    .cards-outer-container,
    .pathologies-container {
        max-width: 100%;
        padding: 0 20px;
    }

    /* Section 1 Feature Cards: 2x2 grid */
    .connected-cards-bar {
        flex-wrap: wrap !important;
    }
    .card-segment {
        flex: 1 1 50% !important;
        max-width: 50% !important;
        border-bottom: 1px solid var(--border-light);
    }
    .card-segment:nth-child(2) {
        border-right: none !important;
    }
    .card-segment:nth-child(3) {
        border-bottom: none !important;
    }

    /* Section 2 Pathologies: 2 columns */
    .pathologies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pathologies-grid::before {
        display: none;
    }
    .pathology-item:nth-child(2n) {
        border-right: none;
    }
    .pathology-item:nth-child(n+7) {
        border-bottom: none;
    }
}

/* Tablets Portrait & Medium Screens (max-width: 900px) */
@media (max-width: 900px) {
    .site-header {
        padding: 16px 0;
    }
    .main-nav {
        display: none;
    }
    .hero-section {
        padding-top: 140px;
        padding-bottom: 120px;
        min-height: auto;
    }
    .hero-title {
        font-size: 34px;
        line-height: 1.25;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-appointment-main,
    .btn-services-outline {
        text-align: center;
        justify-content: center;
    }
    .cards-outer-container {
        margin-top: -30px;
        margin-bottom: 30px;
    }
    .pathologies-section {
        padding: 70px 0 90px 0;
    }
    .pathologies-header .section-title {
        font-size: 34px;
    }
}

/* Mobile Phones (max-width: 600px) */
@media (max-width: 600px) {
    .header-container,
    .hero-container,
    .cards-outer-container,
    .pathologies-container {
        padding: 0 15px;
    }
    .doctor-name {
        font-size: 15px;
    }
    .doctor-spec, .doctor-name small {
        font-size: 11.5px;
    }
    .logo-symbol-box {
        width: 44px;
        height: 44px;
    }
    .btn-appointment-header {
        padding: 10px 12px;
        font-size: 13px;
    }
    .hero-title {
        font-size: 26px;
    }
    
    /* Section 1 Feature Cards: Stack 1 column */
    .connected-cards-bar {
        flex-direction: column !important;
    }
    .card-segment {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-light) !important;
        padding: 22px 18px !important;
    }
    .card-segment:last-child {
        border-bottom: none !important;
    }

    /* Section 2 Pathologies: Stack 1 column */
    .pathologies-grid {
        grid-template-columns: 1fr;
    }
    .pathology-item {
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 30px 15px;
    }
    .pathology-item:last-child {
        border-bottom: none !important;
    }
    .pathologies-header .section-title {
        font-size: 28px;
    }
}
/*end*/


/* ==========================================================================
   Mobile Burger Menu & Header Fixes for Small Phones (iPhone 15 & Tablets)
   ========================================================================== */

/* Ensure the header container doesn't hide elements off-screen */
.site-header {
    overflow: visible !important;
}

/* Burger Toggle Button Base */
.mobile-menu-toggle {
    display: none; /* Hidden on large desktop */
    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;
}

/* Morph to "X" when active */
.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);
}

/* Mobile & Tablet Viewport Rules (max-width: 992px - Covers all phones & tablets) */
@media (max-width: 992px) {
    
    /* 1. Show the Burger Icon explicitly */
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* 2. Convert Main Nav into a Sliding Overlay Drawer */
    .main-nav {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        right: -100% !important; /* Hidden offscreen by default */
        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;
    }

    /* Open State */
    .main-nav.is-open {
        right: 0 !important; /* Slides menu in from the right */
    }

    .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);
    }
}

/* Specific Adjustments for Small Mobile Phones (e.g. iPhone 15 - max-width: 480px) */
@media (max-width: 480px) {
    .header-container {
        padding: 0 12px !important;
    }

    .doctor-name {
        font-size: 14.5px !important;
    }

    .doctor-spec {
        font-size: 11px !important;
    }

    .logo-symbol-box {
        width: 42px !important;
        height: 42px !important;
    }

    /* Hide the appointment text on tiny screens to save header space, keeping icon accessible */
    .btn-appointment-header span {
        display: none !important;
    }

    .btn-appointment-header {
        padding: 10px !important;
        border-radius: 50% !important;
    }

    .header-actions {
        gap: 12px !important;
    }
}
/*end*/




/* ==========================================================================
   Section 3: Left-Aligned Full-Width Layout Adjustment
   ========================================================================== */
.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;
}

/* Gradient overlay to keep text readable on the left */
.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: 60px 4%; /* Fluid left/right padding to hug the edge closely */
    box-sizing: border-box;
}

/* Left Content Block */
.about-content {
    max-width: 650px; /* Slightly expanded width for a fuller text layout */
}

.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;
}

/* Gold Action Button */
.btn-about-more {
    display: inline-block;
    background: linear-gradient(135deg, #f7d28d 0%, #e5a344 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;
}

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

/* 3 Feature Highlights Bar */
.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;
}

/* Made icons larger (70px width & height) */
.about-feature-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.about-feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

/* Enforced 17px for all feature text elements */
.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;
}

@media (max-width: 992px) {
    .about-doctor-section {
        background-color: #ffffff !important;
    }

    .about-bg-wrapper {
        background-image: none !important; /* Removes the doctor photo completely on phones/tablets */
        background-color: #ffffff !important;
        min-height: auto !important;
        padding: 20px 0;
    }

    .about-bg-wrapper::before {
        display: none !important; /* Removes the gradient overlay */
    }

    .about-container {
        padding: 40px 20px !important;
    }

    .about-content {
        max-width: 100% !important;
        text-align: left; /* Keeps text left-aligned, or change to center if preferred */
    }

    .about-features-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .about-feature-item:not(:last-child)::after {
        display: none;
    }
}
/* ==========================================================================
   Section 3: Scroll Reveal Animations
   ========================================================================== */

/* Initial hidden states before animation triggers */
.about-doctor-section .about-content > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Staggered delay for each element */
.about-doctor-section.is-visible .section-subtitle-tag {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

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

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

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

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

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

/* Background Photo Fade-in on Desktop */
@media (min-width: 993px) {
    .about-doctor-section .about-bg-wrapper {
        opacity: 0;
        transform: scale(1.02);
        transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: 0.2s;
    }

    .about-doctor-section.is-visible .about-bg-wrapper {
        opacity: 1;
        transform: scale(1);
    }
}
/*end*/






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

.features-bg-overlay {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0b1526;
    padding: 70px 0;
}

/* Lighter transparent tint so the background image (Rectangle 6) is clearly visible */
.features-bg-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 21, 38, 0.78) 0%, rgba(11, 21, 38, 0.85) 100%);
    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 Item - Borderless */
.feature-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: transparent; /* No card background */
    border: none; /* No border */
    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);
}

/* Futuristic Glowing Icon Container & Animated Rings */
.feature-icon-glow {
    position: relative;
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px dashed rgba(247, 210, 141, 0.4);
    animation: futuristicSpin 12s linear infinite;
}

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

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

.feature-img {
    width: 100%;
    height: 100%;
    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-img {
    transform: scale(1.1);
}

/* Feature Text */
.feature-text span {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1.35;
    display: block;
    letter-spacing: 0.2px;
}

/* Responsive Rules for Section 4 */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .features-bg-overlay {
        padding: 50px 0;
    }
}
/*END*/


