/* NGS Semiconductor — existing site layout and component styles */

/* CSS Variables */
:root {
    --primary: #0B1F33;
    --primary-dark: #07111F;
    --primary-light: #123B5D;
    --accent: #00B8D9;
    --accent-light: #2589D8;
    --gold: #00B8D9;
    --gold-light: #2589D8;
    --cream: #F4F7FA;
    --cream-dark: #DCE5ED;
    --white: #FFFFFF;
    --black: #102A43;
    --gray: #526579;
    --gray-light: #718096;
    --shadow: rgba(11, 31, 51, 0.12);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    --glass: rgba(255, 255, 255, 0.96);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: clip;
    overflow-y: auto;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--cream);
    color: var(--gray);
    line-height: 1.6;
    min-height: 100%;
    overflow-x: clip;
    overflow-y: visible;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul, ol {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 56px; }
h2 { font-size: 42px; }
h3 { font-size: 32px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

p {
    font-size: 16px;
    color: var(--gray);
}

/* Utility Classes */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 8px 30px var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(11, 31, 51, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(198, 40, 40, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(198, 40, 40, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 8px 30px var(--shadow-dark);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--shadow-dark);
}

/* Section Styles */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 42px;
    color: var(--primary-dark);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 24px auto 0;
}

/* Glassmorphism */
.glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px var(--shadow);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Header logo image */
.logo-img {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    transition: opacity .25s, transform .25s;
}
.logo:hover .logo-img {
    opacity: .88;
    transform: scale(1.02);
}

/* Footer logo — white pill background so it reads well on dark footer */
.logo-img-footer {
    height: 90px;
    background: #fff;
    padding: 8px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

/* Mega Menu */
.has-mega-menu {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateX(var(--mega-menu-shift-x, 0px)) translateY(20px);
    width: 900px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 25px 80px var(--shadow-dark);
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1001;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(var(--mega-menu-shift-x, 0px)) translateY(10px);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.mega-menu-column h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cream-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mega-menu-column h4 i {
    color: var(--gold);
}

.mega-menu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-menu-list a {
    font-size: 14px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    padding: 4px 0;
}

.mega-menu-list a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.mega-menu-list a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.mega-menu-list a:hover::before {
    background: var(--primary);
    transform: scale(1.3);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-dark);
}

.phone-link i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
}

.mobile-menu-btn {
    display: none;
    width: 45px;
    height: 45px;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 50%, #F4F7FA 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--primary));
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 0.2; }
}

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 184, 217, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 100px;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    box-shadow: 0 8px 30px var(--shadow);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge i {
    color: var(--gold);
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease 0.4s both;
}

.hero-image img {
    border-radius: 30px;
    box-shadow: 0 30px 80px var(--shadow-dark);
}

.hero-float-card {
    position: absolute;
    background: var(--white);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 50px var(--shadow);
    animation: floatCard 4s infinite ease-in-out;
}

.hero-float-card.card-1 {
    top: 20%;
    left: -30px;
    animation-delay: 0s;
}

.hero-float-card.card-2 {
    bottom: 20%;
    right: -20px;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-float-card h4 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 5px;
}

.hero-float-card p {
    font-size: 14px;
    color: var(--gray);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* About Section */
.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-main-img {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px var(--shadow);
}

.about-main-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition);
}

.about-main-img:hover img {
    transform: scale(1.05);
}

.about-experience {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    padding: 30px;
    border-radius: 20px;
    color: var(--white);
    text-align: center;
    box-shadow: 0 15px 50px var(--shadow);
}

.about-experience h3 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.about-experience p {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-top: 5px;
}

.about-content h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-content h3::before {
    content: '';
    width: 40px;
    height: 3px;
    background: var(--gold);
}

.about-content h2 {
    font-size: 42px;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.about-content p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-feature i {
    width: 40px;
    height: 40px;
    background: var(--cream);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}

.about-feature span {
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
}

/* Services Section */
.services-section {
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 10px 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.services-scroll::-webkit-scrollbar {
    height: 8px;
}

.services-scroll::-webkit-scrollbar-track {
    background: var(--cream-dark);
    border-radius: 4px;
}

.services-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 4px;
}

.service-card {
    flex: 0 0 350px;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
    transition: var(--transition);
    scroll-snap-align: start;
}

.service-card-clickable { cursor: pointer; }

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px var(--shadow-dark);
}

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

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-card-img img {
    transform: scale(1.1);
}

.service-card-content {
    padding: 30px;
}

.service-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-card-icon {
    transform: rotateY(360deg);
}

.service-card h3 {
    font-size: 22px;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary);
}

.service-card-link i {
    transition: var(--transition-fast);
}

.service-card-link:hover i {
    transform: translateX(5px);
}

.services-scroll-controls { display: none; }

/* Split Section */
.split-section {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.split-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
    cursor: pointer;
    transition: var(--transition);
}

.split-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.split-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 31, 51, 0.9) 0%, rgba(18, 59, 93, 0.95) 100%);
    transition: var(--transition);
}

.split-panel:hover::before {
    transform: scale(1.1);
}

.split-panel:hover::after {
    opacity: 0.95;
}

.split-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.split-icon {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 40px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

.split-panel:hover .split-icon {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255,255,255,0.25);
}

.split-content h3 {
    font-size: 36px;
    margin-bottom: 16px;
}

.split-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.7;
}

.split-content .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.split-content .btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* Doctors Section */
.doctors-section {
    background: var(--white);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.doctor-card {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 50px var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px var(--shadow-dark);
}

.doctor-image {
    position: relative;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.05);
}

.doctor-social {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.doctor-card:hover .doctor-social {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.doctor-social a {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    transition: var(--transition-fast);
}

.doctor-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.doctor-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.doctor-specialty {
    display: inline-block;
    background: var(--cream);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    width: fit-content;
}

.doctor-info h3 {
    font-size: 28px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.doctor-info .qualification {
    font-size: 14px;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 20px;
}

.doctor-info p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

.doctor-stats {
    display: flex;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--cream-dark);
}

.doctor-stat h4 {
    font-size: 24px;
    color: var(--primary);
}

.doctor-stat p {
    font-size: 13px;
    color: var(--gray-light);
    margin: 0;
}

/* Treatments Slider */
.treatments-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
    overflow: hidden;
}

.treatments-slider {
    position: relative;
    perspective: 1000px;
}

.treatments-track {
    display: flex;
    gap: 30px;
    transition: var(--transition);
}

.treatment-slide {
    flex: 0 0 calc(33.333% - 20px);
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 50px var(--shadow);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.treatment-slide:hover {
    transform: translateZ(30px) rotateY(5deg);
}

.treatment-slide-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.treatment-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.treatment-slide:hover .treatment-slide-img img {
    transform: scale(1.1);
}

.treatment-slide-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.treatment-slide-content {
    padding: 30px;
}

.treatment-slide-content h3 {
    font-size: 22px;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.treatment-slide-content p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.treatment-slide-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--cream-dark);
}

.treatment-slide-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray);
}

.treatment-slide-meta span i {
    color: var(--gold);
}

/* Why Choose Us */
.why-section {
    background: var(--primary-dark);
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/ngs-hero-poster.jpg') center/cover;
    opacity: 0.05;
}

.why-section .section-title,
.why-section .section-subtitle {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.why-section .section-title::after {
    background: linear-gradient(90deg, var(--gold), var(--primary-light));
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.why-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.why-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--primary-light) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: var(--white);
    transition: var(--transition);
}

.why-card:hover .why-icon {
    transform: rotateY(360deg);
}

.why-card h3 {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 10px 40px var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px var(--shadow-dark);
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--gray);
    font-weight: 500;
}

/* Gallery Section */
.gallery-section {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 31, 51, 0.8) 0%, rgba(18, 59, 93, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    transform: scale(0);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Testimonials */
.testimonials-section {
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.testimonials-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-slide {
    background: var(--white);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 15px 50px var(--shadow);
    text-align: center;
    display: none;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 24px;
    border: 4px solid var(--gold);
}

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

.testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: var(--gold);
    font-size: 18px;
}

.testimonial-text {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author h4 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 14px;
    color: var(--gray-light);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.testimonial-nav button {
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--cream-dark);
    border-radius: 50%;
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-nav button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    background: var(--cream-dark);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.testimonial-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

/* Blog Section */
.blog-section {
    background: var(--white);
}

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

.blog-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px var(--shadow-dark);
}

.blog-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.1);
}

.blog-card-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.blog-card-content {
    padding: 30px;
}

.blog-card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.blog-card-meta span {
    font-size: 13px;
    color: var(--gray-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-meta span i {
    color: var(--gold);
}

.blog-card h3 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: var(--transition-fast);
}

.blog-card:hover h3 {
    color: var(--primary);
}

.blog-card p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary);
}

.blog-card-link i {
    transition: var(--transition-fast);
}

.blog-card:hover .blog-card-link i {
    transform: translateX(5px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Contact Strip */
.contact-strip {
    background: var(--white);
    padding: 0;
}

.contact-strip-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    min-height: 500px;
}

.contact-map {
    position: relative;
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-info-panel {
    padding: 60px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-panel h3 {
    font-size: 32px;
    color: var(--primary-dark);
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.contact-info-item p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
}

/* Map Section - Fully Responsive */
.contact-map-section { padding: 0; }
.contact-map-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    min-height: 520px;
    align-items: stretch;
}
.contact-map-grid .contact-map { min-height: 360px; }
.contact-reach-panel {
    padding: 50px 45px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-reach-panel h3 {
    font-size: 26px;
    color: var(--primary-dark);
    margin-bottom: 24px;
    line-height: 1.25;
}
@media (max-width: 992px) {
    .contact-map-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .contact-map-grid .contact-map { min-height: 380px; height: 380px; }
    .contact-reach-panel { padding: 40px 32px; }
    .contact-reach-panel h3 { font-size: 24px; margin-bottom: 22px; }
}
@media (max-width: 768px) {
    .contact-map-grid .contact-map { min-height: 320px; height: 320px; }
    .contact-reach-panel { padding: 35px 24px; }
    .contact-reach-panel h3 { font-size: 22px; margin-bottom: 20px; }
    .contact-reach-panel .contact-info-item { gap: 14px; margin-bottom: 22px; }
    .contact-reach-panel .contact-info-item i { width: 44px; height: 44px; font-size: 17px; border-radius: 10px; }
    .contact-reach-panel .contact-info-item h4 { font-size: 15px; }
    .contact-reach-panel .contact-info-item p { font-size: 14px; }
}
@media (max-width: 480px) {
    .contact-map-grid .contact-map { min-height: 260px; height: 260px; }
    .contact-reach-panel { padding: 28px 18px; }
    .contact-reach-panel h3 { font-size: 20px; margin-bottom: 18px; }
    .contact-reach-panel .contact-info-item { margin-bottom: 18px; gap: 12px; }
    .contact-reach-panel .contact-info-item i { width: 40px; height: 40px; font-size: 15px; }
    .contact-reach-panel .contact-info-item h4 { font-size: 14px; }
    .contact-reach-panel .contact-info-item p { font-size: 13px; line-height: 1.55; }
}

.contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.contact-social a {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
}

.contact-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-social .social-x-mark {
    color: inherit;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo-text {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-brand .logo-text span {
    color: rgba(255,255,255,0.7);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-title {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.footer-links a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-links a:hover::before {
    background: var(--white);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    margin-bottom: 16px;
}

.footer-contact p i {
    color: var(--gold);
    margin-top: 4px;
}

.footer-newsletter p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form input:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.15);
}

.newsletter-form button {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--primary-light) 100%);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* NGS Semiconductor theme refinements — layout and section structure unchanged */
.hero {
    background: var(--primary-dark);
}
.hero-background-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #07111F;
}
.hero-gradient {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: linear-gradient(90deg, rgba(7,17,31,.78) 0%, rgba(7,17,31,.57) 48%, rgba(7,17,31,.25) 100%);
    animation: none;
}
.hero-particles { pointer-events: none; }
.hero-title { color: var(--white); text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero-title span {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #8AE9F6 !important;
    color: #8AE9F6 !important;
    text-shadow: 0 2px 12px rgba(0,0,0,.42);
}
.hero-desc { color: #FFFFFF; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-badge {
    color: var(--white);
    background: rgba(18,59,93,.8);
    border: 1px solid rgba(0,184,217,.45);
}
.hero-badge i { color: var(--accent); }
.hero-image img { border-radius: 24px; }
.hero-float-card h4 { color: var(--primary); }
.btn-primary { background: linear-gradient(135deg, #0B1F33, #123B5D); }
.btn-primary:hover { box-shadow: 0 15px 40px rgba(11,31,51,.28); }
.btn-accent {
    background: linear-gradient(135deg, #00B8D9, #2589D8);
    box-shadow: 0 8px 30px rgba(0,184,217,.22);
}
.btn-accent:hover { box-shadow: 0 15px 40px rgba(0,184,217,.3); }
.section-title { color: #102A43; }
.section-title::after { background: linear-gradient(90deg, #00B8D9, #2589D8); }
.topbar-item i, .footer-title::after, .footer-contact-info i { color: var(--accent); }
.topbar-social:hover { background: var(--accent); color: var(--primary-dark); }
.topbar-cta, .lpb-toggle-btn { background: var(--accent); color: var(--primary-dark); }
.topbar-cta:hover { background: #0097B2; }
.doctors-section { background: var(--cream); }
.doctor-card { border: 1px solid var(--cream-dark); }
.doctor-specialty { color: #123B5D; background: #EAF3F8; }
.doctor-info .qualification { color: #2589D8; }
.stats-section { background: linear-gradient(135deg, #F4F7FA, #DCE5ED); }
.stat-item i { color: var(--accent); font-size: 30px; margin-bottom: 12px; }
.stat-item h3 { color: #102A43; font-size: 24px; margin-bottom: 8px; }
.stat-item p { color: #526579; }
.testimonials-section { background: linear-gradient(180deg, #F4F7FA, #FFFFFF); }
.testimonial-avatar { display:flex; align-items:center; justify-content:center; background:#F4F7FA; color:#00B8D9; font-size:32px; }
.testimonial-rating i { color: #00B8D9; }
.testimonial-text { color: #526579; font-style: normal; }
.testimonial-author h4 { color: #102A43; }
.testimonial-nav button:hover { background: #0B1F33; border-color: #0B1F33; }
.testimonial-dot.active { background: #00B8D9; }
.cta-section { background: linear-gradient(135deg, #07111F, #123B5D); }
.footer { background: #07111F; }
.logo-img-footer { border-radius: 10px; }
.gallery-overlay { background: rgba(7,17,31,.76); }
.gallery-item:hover .gallery-overlay { background: rgba(7,17,31,.84); }
.service-card, .treatment-slide, .blog-card, .doctor-card, .stat-item { border-color: #DCE5ED; }
.blog-card-category, .treatment-slide-badge { background: #0B1F33; color: #FFFFFF; }
.service-card-link, .blog-card-link { color: #2589D8; }
.service-card-link:hover, .blog-card-link:hover { color: #0097B2; }
.contact-info-panel { background: #07111F; }
.contact-info-panel h3, .contact-info-item h4 { color: #FFFFFF; }
.contact-info-panel p, .contact-info-panel a { color: #C7D3DF; }
.contact-info-item > i { color: #00B8D9; }
.contact-strip { background: #07111F; }
.ngs-seo-section { background: #F4F7FA; }
.ngs-seo-section h2 { color: #102A43; margin-bottom:20px; }
.ngs-seo-section p { color: #526579; margin-bottom:15px; }
.footer-inquiry-section { background:linear-gradient(135deg,#07111F,#0B1F33 55%,#123B5D) !important; }
.footer-inquiry-section::before { background:radial-gradient(circle,rgba(0,184,217,.16),transparent 70%) !important; }
.footer-inquiry-section::after { background:radial-gradient(circle,rgba(37,137,216,.14),transparent 70%) !important; }
.footer-inquiry-left .inquiry-badge { background:rgba(0,184,217,.13) !important; border-color:rgba(0,184,217,.35) !important; color:#8AE9F6 !important; }
.footer-inquiry-left h2 span {
    display: block;
    margin-top: 4px;
    font-size: .82em;
    line-height: 1.2;
    color: #8AE9F6 !important;
    -webkit-text-fill-color: #8AE9F6 !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}
.trust-badge-item i,.inquiry-field label i { color:#00B8D9 !important; }
.inquiry-form-header i,.inquiry-submit-btn { background:linear-gradient(135deg,#0B1F33,#123B5D) !important; }
.inquiry-field input:focus,.inquiry-field select:focus,.inquiry-field textarea:focus { border-color:#00B8D9 !important; box-shadow:0 0 0 3px rgba(0,184,217,.18) !important; }
.inquiry-submit-btn:hover:not(:disabled) { box-shadow:0 12px 32px rgba(0,184,217,.28) !important; }

@media (prefers-reduced-motion: reduce) {
    .hero-background-video { display: none; }
    .hero { background: #07111F url('/assets/images/ngs-hero-poster.jpg') center/cover no-repeat; }
    .hero-particles, .hero-gradient { animation: none; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 992px) {
    .hero-background-video { object-fit: cover; }
}

/* Page Header */
.page-header {
    padding: 200px 0 50px; /* fallback; JS overrides padding-top to exact header+topbar height */
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/ngs-hero-poster.jpg') center/cover;
    opacity: 0.1;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 56px;
    color: var(--white);
    margin-bottom: 16px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb span {
    color: rgba(255,255,255,0.5);
}

.breadcrumb .current {
    color: var(--gold);
}

/* About Page */
.about-story {
    background: var(--white);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.mission-vision {
    background: var(--cream);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.mv-card {
    background: var(--white);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 15px 50px var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.mv-card:hover {
    transform: translateY(-10px);
}

.mv-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 40px;
    color: var(--white);
}

.mv-card h3 {
    font-size: 28px;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.mv-card p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.8;
}

.values-section {
    background: var(--white);
}

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

.value-card {
    background: var(--cream);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    background: var(--primary);
    transform: translateY(-10px);
}

.value-card:hover h3,
.value-card:hover p {
    color: var(--white);
}

.value-card:hover .value-icon {
    background: var(--white);
    color: var(--primary);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    color: var(--white);
    transition: var(--transition);
}

.value-card h3 {
    font-size: 22px;
    color: var(--primary-dark);
    margin-bottom: 12px;
    transition: var(--transition);
}

.value-card p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
    transition: var(--transition);
}

/* Services Page */
.services-categories {
    background: var(--cream);
}

.service-category {
    background: var(--white);
    border-radius: 30px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: 0 15px 50px var(--shadow);
}

.service-category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--cream-dark);
}

.service-category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
}

.service-category-header h3 {
    font-size: 32px;
    color: var(--primary-dark);
}

.service-category-header p {
    font-size: 16px;
    color: var(--gray);
}

.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--cream);
    border-radius: 16px;
    transition: var(--transition);
    text-decoration: none;
}

.service-item:hover {
    background: var(--primary);
    transform: translateX(10px);
}

.service-item:hover i,
.service-item:hover h4,
.service-item:hover p {
    color: var(--white);
}

.service-item i {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.service-item h4 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 4px;
    transition: var(--transition);
}

.service-item p {
    font-size: 14px;
    color: var(--gray-light);
    transition: var(--transition);
}

/* Contact Page */
.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-form-wrapper {
    background: var(--cream);
    padding: 50px;
    border-radius: 30px;
}

.contact-form-wrapper h3 {
    font-size: 28px;
    color: var(--primary-dark);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--cream-dark);
    border-radius: 12px;
    background: var(--white);
    font-size: 15px;
    color: var(--black);
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 184, 217, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .mega-menu {
        width: 700px;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-image {
        display: none;
    }
    
    .about-grid,
    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .split-section {
        grid-template-columns: 1fr;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .doctor-card {
        grid-template-columns: 1fr;
    }
    
    .doctor-image {
        height: 350px;
    }
    
    .treatment-slide {
        flex: 0 0 calc(50% - 15px);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-strip-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .mv-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .service-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    h3 { font-size: 24px; }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .treatment-slide {
        flex: 0 0 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large {
        grid-column: span 1;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 30px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cream);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--cream-dark);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--gold));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.service-detail-hero .page-header-content {
    max-width: 980px;
}

.service-detail-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
    max-width: 920px;
    margin: 16px auto 0;
}

.service-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    font-weight: 600;
    margin-bottom: 22px;
}

.service-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 24px;
}

.service-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
}

.service-content-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 30px;
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 42px;
    box-shadow: var(--shadow-md);
}

.service-content-section[style*="white"] .service-content-card {
    background: var(--cream);
}

.service-section-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    font-family: var(--font-heading);
}

.service-section-copy h2 {
    color: var(--primary-dark);
    font-size: 32px;
    margin-bottom: 18px;
}

.service-section-copy p {
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 16px;
}

.service-final-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

.service-final-cta .service-content-card {
    background: transparent;
    box-shadow: none;
    padding: 20px 0;
}

.service-final-cta .service-section-number {
    background: rgba(255, 255, 255, 0.18);
}

.service-final-cta h2,
.service-final-cta p {
    color: var(--white);
}

@media (max-width: 768px) {
    .service-content-card {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .service-section-copy h2 {
        font-size: 26px;
    }

    .service-detail-hero p {
        font-size: 16px;
    }
}

/* ============================================================
   TOP BAR
   ============================================================ */

/* Ticker animation */
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.topbar-ticker {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    background-size: 200% 100%;
    animation: topbarShimmer 4s linear infinite;
    overflow: hidden;
    height: 26px;
    display: flex;
    align-items: center;
}
@keyframes topbarShimmer {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 100% 0%; }
    100% { background-position: 0% 0%; }
}
.ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 28s linear infinite;
    gap: 0;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.88);
    font-size: 12px;
    padding: 0 40px;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.ticker-item i { color: var(--gold); font-size: 11px; }
.ticker-dot {
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold);
    margin: 0 16px;
    flex-shrink: 0;
}

.topbar {
    background: linear-gradient(135deg, #07111F 0%, #0B1F33 100%);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 7px 0;
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1100;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.topbar.topbar-hidden {
    transform: translateY(-100%);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.82);
    transition: color .2s;
    text-decoration: none;
}
.topbar-item i { color: var(--gold); font-size: 12px; }
.topbar-item:hover { color: var(--gold); }
.topbar-divider { opacity: .35; font-size: 12px; }
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.topbar-social {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    transition: var(--transition-fast);
}
.topbar-social:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }
.topbar-whatsapp:hover { background: #16A34A; }
.topbar-cta {
    background: linear-gradient(135deg, var(--gold) 0%, var(--primary-light) 100%);
    color: #fff !important;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    transition: var(--transition-fast);
    text-decoration: none;
}
.topbar-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(212,175,55,.4); }

/* Header top offset is set dynamically by JS based on topbar height */
@media (max-width:900px) {
    .topbar-ticker { display: none; }
    .topbar-left .topbar-item:nth-child(n+4),
    .topbar-left .topbar-item:nth-child(5) { display: none; }
    .topbar-divider:last-of-type { display: none; }
}
@media (max-width:640px) {
    .topbar { display: none; }
    .header { top: 0 !important; }
}

/* ============================================================
   SERVICE PAGE — HERO BANNER
   ============================================================ */
.sp-hero-banner {
    position: relative;
    overflow: hidden;
    padding: 148px 0 80px;
    background: linear-gradient(135deg, #F4F7FA 0%, #FFFFFF 60%, #DCE5ED 100%);
    border-bottom: 1px solid rgba(11,31,51,0.12);
}
/* Decorative dots pattern background */
.sp-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--primary) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.04;
    pointer-events: none;
}
.sp-hero-bg {
    position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none;
}
.sp-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.18;
    animation: spBlobAnim 14s infinite ease-in-out alternate;
}
.sp-blob-1 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    top: -120px; right: 35%;
    animation-delay: 0s;
}
.sp-blob-2 {
    width: 320px; height: 320px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    bottom: -80px; left: 5%;
    animation-delay: 4s;
}
.sp-blob-3 {
    width: 220px; height: 220px;
    background: radial-gradient(circle, #00B8D9 0%, transparent 70%);
    top: 40%; right: 5%;
    animation-delay: 7s;
    opacity: 0.08;
}
@keyframes spBlobAnim {
    from { transform: scale(1) translate(0,0); }
    to   { transform: scale(1.15) translate(20px,-20px); }
}
.sp-mesh { display: none; }

/* Hero grid: text left, image right */
.sp-hero-inner {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
}
.sp-hero-text { max-width: 680px; }
.sp-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.sp-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,184,217,0.1);
    border: 1.5px solid rgba(0,184,217,0.3);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
}
.sp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-light);
}
.sp-breadcrumb a {
    color: var(--gray);
    transition: color .2s;
}
.sp-breadcrumb a:hover { color: var(--primary); }
.sp-breadcrumb i { font-size: 9px; opacity: .5; }
.sp-breadcrumb span { color: var(--primary-dark); font-weight: 500; }
.sp-hero-title {
    font-size: clamp(30px, 4vw, 52px);
    color: var(--primary-dark);
    line-height: 1.15;
    margin-bottom: 18px;
    animation: fadeInUp .8s ease both;
}
.sp-hero-title span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sp-hero-desc {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.85;
    max-width: 600px;
    margin-bottom: 32px;
    animation: fadeInUp .8s ease .15s both;
}
.sp-info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    animation: fadeInUp .8s ease .25s both;
}
.sp-info-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid rgba(11,31,51,0.15);
    color: var(--gray);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    box-shadow: 0 2px 12px var(--shadow);
}
.sp-info-pill i { color: var(--primary); }
.sp-info-pill a { color: var(--gray); }
.sp-hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp .8s ease .35s both;
}
.sp-hero-wave { display: none; }

/* Hero Image Card */
.sp-hero-image-wrap {
    position: relative;
    animation: fadeInRight .9s ease .2s both;
}
.sp-hero-img-card {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(11,31,51,0.2);
    position: relative;
    aspect-ratio: 4/5;
}
.sp-hero-img-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.sp-hero-img-card:hover img { transform: scale(1.04); }
.sp-hero-img-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(26,15,7,0.85));
}
.sp-hero-img-doctor {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sp-hero-img-doctor-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--primary-light) 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
    flex-shrink: 0;
}
.sp-hero-img-doctor-info strong {
    display: block; font-size: 14px; color: #fff; font-weight: 600;
}
.sp-hero-img-doctor-info span {
    font-size: 12px; color: rgba(255,255,255,0.7);
}
/* Floating badge on image */
.sp-hero-img-badge {
    position: absolute;
    top: 20px; right: -16px;
    background: var(--white);
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    text-align: center;
    animation: floatCard 4s infinite ease-in-out;
}
.sp-hero-img-badge strong {
    display: block;
    font-size: 22px;
    color: var(--primary);
    font-weight: 700;
    line-height: 1;
}
.sp-hero-img-badge span {
    font-size: 11px;
    color: var(--gray-light);
}
.sp-hero-img-badge2 {
    position: absolute;
    bottom: 80px; left: -16px;
    background: var(--white);
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    text-align: center;
    animation: floatCard 4s infinite ease-in-out;
    animation-delay: 2s;
}
.sp-hero-img-badge2 strong {
    display: block;
    font-size: 20px;
    color: var(--accent);
    font-weight: 700;
    line-height: 1;
}
.sp-hero-img-badge2 span {
    font-size: 11px;
    color: var(--gray-light);
}

/* Hero responsive */
@media (max-width:1100px) {
    .sp-hero-inner { grid-template-columns: 1fr 340px; gap: 40px; }
}
@media (max-width:860px) {
    .sp-hero-inner { grid-template-columns: 1fr; }
    .sp-hero-image-wrap { display: none; }
    .sp-hero-banner { padding: 130px 0 60px; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.sp-stats-bar {
    background: var(--white);
    padding: 40px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    position: relative;
    z-index: 10;
}
.sp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.sp-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 16px;
    background: var(--cream);
    transition: var(--transition);
}
.sp-stat:hover { transform: translateY(-4px); box-shadow: 0 12px 40px var(--shadow); }
.sp-stat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}
.sp-stat-text strong {
    display: block;
    font-size: 15px;
    color: var(--primary-dark);
    font-weight: 600;
}
.sp-stat-text span {
    font-size: 12px;
    color: var(--gray-light);
}

/* ============================================================
   SERVICE PAGE — SHARED SECTION STYLES
   ============================================================ */
.sp-section { padding: 90px 0; }
.sp-section-light { background: var(--white); }
.sp-section-header {
    text-align: center;
    margin-bottom: 60px;
}
.sp-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(0,184,217,0.08);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.sp-section-header h2 {
    font-size: clamp(26px, 4vw, 40px);
    color: var(--primary-dark);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.25;
}
.sp-section-header h2::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary));
    border-radius: 2px;
    margin: 18px auto 0;
}

/* ABOUT SECTION */
.sp-about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}
.sp-section-big-icon {
    width: 140px; height: 140px;
    border-radius: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 56px;
    color: #fff;
    margin: 0 auto 24px;
    box-shadow: 0 20px 50px var(--shadow);
    animation: floatCard 5s infinite ease-in-out;
}
.sp-about-accent-box {
    background: var(--primary-dark);
    color: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; font-weight: 500;
    text-align: center; justify-content: center;
}
.sp-about-accent-box i { font-size: 20px; color: var(--gold); }
.sp-section-copy .sp-section-label { margin-bottom: 12px; }
.sp-section-copy h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    color: var(--primary-dark);
    margin-bottom: 20px;
    text-align: left;
}
.sp-section-copy h2::after { display: none; }
.sp-section-copy p { font-size: 16px; line-height: 1.85; margin-bottom: 16px; color: var(--gray); }

/* CAUSES SECTION */
.sp-causes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.sp-cause-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(11,31,51,0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.sp-cause-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--gold), var(--primary));
    border-radius: 4px 0 0 4px;
}
.sp-cause-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px var(--shadow); }
.sp-cause-card-icon {
    width: 54px; height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff;
    margin-bottom: 16px;
}
.sp-cause-card p { color: var(--gray); line-height: 1.8; font-size: 15px; }

/* SYMPTOMS SECTION */
.sp-symp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.sp-symp-left .sp-section-label { margin-bottom: 12px; }
.sp-symp-left h2 {
    font-size: clamp(26px, 3.5vw, 38px);
    color: var(--primary-dark);
    margin-bottom: 20px;
    text-align: left;
}
.sp-symp-left h2::after { display: none; }
.sp-symp-left p { font-size: 16px; line-height: 1.85; color: var(--gray); margin-bottom: 16px; }
.sp-symp-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(198,40,40,0.07);
    border: 1px solid rgba(198,40,40,0.2);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 14px;
    color: #2589D8;
    margin-top: 8px;
}
.sp-symp-warning i { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.sp-symp-right { display: flex; align-items: center; justify-content: center; }
.sp-symp-visual {
    position: relative;
    width: 360px; height: 360px;
    display: flex; align-items: center; justify-content: center;
}
.sp-symp-circle {
    width: 160px; height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 56px; color: #fff;
    box-shadow: 0 0 0 30px rgba(0,184,217,0.08), 0 0 0 60px rgba(0,184,217,0.04);
    animation: pulse 5s infinite;
}
.sp-symp-tags {
    position: absolute; inset: 0;
}
.sp-symp-tag {
    position: absolute;
    background: var(--white);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-dark);
    box-shadow: 0 6px 20px var(--shadow);
    white-space: nowrap;
    animation: tagFloat 6s infinite ease-in-out;
}
.sp-symp-tag:nth-child(1)  { top: 10%; left: 5%; animation-delay: 0s; }
.sp-symp-tag:nth-child(2)  { top: 5%; right: 10%; animation-delay: .5s; }
.sp-symp-tag:nth-child(3)  { top: 30%; right: -5%; animation-delay: 1s; }
.sp-symp-tag:nth-child(4)  { bottom: 30%; right: 0%; animation-delay: 1.5s; }
.sp-symp-tag:nth-child(5)  { bottom: 10%; right: 15%; animation-delay: 2s; }
.sp-symp-tag:nth-child(6)  { bottom: 5%; left: 15%; animation-delay: 2.5s; }
.sp-symp-tag:nth-child(7)  { bottom: 25%; left: -5%; animation-delay: 3s; }
.sp-symp-tag:nth-child(8)  { top: 28%; left: -5%; animation-delay: 3.5s; }
@keyframes tagFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* DIAGNOSIS SECTION */
.sp-diag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.sp-diag-steps { display: flex; flex-direction: column; gap: 20px; }
.sp-diag-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.06);
    transition: var(--transition);
}
.sp-diag-step.active { transform: translateX(6px); }
.sp-diag-step.reveal-left.active { transform: translateX(0); }
.sp-diag-step:hover { transform: translateX(6px) !important; box-shadow: 0 12px 40px var(--shadow); }
.sp-diag-step-num {
    font-size: 13px; font-weight: 700;
    color: var(--gold);
    width: 34px; flex-shrink: 0;
}
.sp-diag-step-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
}
.sp-diag-step-copy h4 { font-size: 15px; color: var(--primary-dark); margin-bottom: 6px; }
.sp-diag-step-copy p { font-size: 13px; color: var(--gray); line-height: 1.6; }
.sp-diag-copy p { font-size: 16px; line-height: 1.85; color: var(--gray); margin-bottom: 18px; }
.sp-diag-highlight {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 20px 24px;
    color: #fff;
    margin-top: 8px;
}
.sp-diag-highlight i { font-size: 32px; color: var(--gold); flex-shrink: 0; }
.sp-diag-highlight strong { display: block; font-size: 16px; margin-bottom: 4px; }
.sp-diag-highlight span { font-size: 13px; opacity: .8; }

/* TREATMENT SECTION */
.sp-treatment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
.sp-treat-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(11,31,51,0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.sp-treat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary));
    transform: scaleX(0);
    transition: var(--transition);
}
.sp-treat-card:hover::after { transform: scaleX(1); }
.sp-treat-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px var(--shadow); }
.sp-treat-card-icon {
    width: 64px; height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #fff;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px var(--shadow);
}
.sp-treat-card h4 { font-size: 16px; color: var(--primary-dark); margin-bottom: 10px; }
.sp-treat-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }
.sp-treatment-text { max-width: 800px; margin: 0 auto; text-align: center; }
.sp-treatment-text p { font-size: 16px; line-height: 1.85; color: var(--gray); margin-bottom: 16px; }

/* BENEFITS SECTION */
.sp-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.sp-benefits-left .sp-section-label { margin-bottom: 12px; }
.sp-benefits-left h2 {
    font-size: clamp(26px, 3.5vw, 38px);
    color: var(--primary-dark);
    margin-bottom: 20px;
    text-align: left;
}
.sp-benefits-left h2::after { display: none; }
.sp-benefits-left p { font-size: 16px; line-height: 1.85; color: var(--gray); margin-bottom: 14px; }
.sp-benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--cream);
    border-radius: 14px;
    margin-bottom: 12px;
    transition: var(--transition);
}
.sp-benefit-item:hover { background: var(--white); box-shadow: 0 8px 30px var(--shadow); transform: translateX(6px); }
.sp-benefit-check {
    width: 36px; height: 36px; flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px;
}
.sp-benefit-item p { font-size: 15px; color: var(--primary-dark); font-weight: 500; margin: 0; }

/* CTA SECTION */
.sp-cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #07111F 0%, #0B1F33 50%, #123B5D 100%);
    padding: 100px 0;
    text-align: center;
}
.sp-cta-bg { position: absolute; inset: 0; overflow: hidden; }
.sp-cta-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.sp-cta-blob-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    top: -100px; right: -100px;
}
.sp-cta-blob-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #00B8D9 0%, transparent 70%);
    bottom: -80px; left: -80px;
    opacity: 0.3;
}
.sp-cta-inner { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.sp-cta-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--primary-light) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: #fff;
    margin: 0 auto 24px;
    box-shadow: 0 12px 40px rgba(212,175,55,.4);
}
.sp-cta-inner h2 { font-size: clamp(28px, 4vw, 44px); color: #fff; margin-bottom: 20px; line-height: 1.2; }
.sp-cta-inner p { font-size: 16px; color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 12px; }
.sp-cta-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
}
.sp-cta-address i { color: var(--gold); }
.sp-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #16A34A;
    color: #fff;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}
.btn-cta-whatsapp:hover { background: #12823B; transform: translateY(-3px); }

/* FAQ SECTION */
.sp-faq-section { background: var(--cream); }
.sp-faq-grid {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sp-faq-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(11,31,51,0.1);
    transition: var(--transition);
}
.sp-faq-item:hover { box-shadow: 0 8px 30px var(--shadow); }
.sp-faq-item.open { box-shadow: 0 12px 40px var(--shadow); }
.sp-faq-q {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: left;
}
.sp-faq-q span {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    flex: 1;
}
.sp-faq-q i {
    color: var(--primary);
    font-size: 14px;
    transition: transform .3s;
    flex-shrink: 0;
}
.sp-faq-item.open .sp-faq-q i { transform: rotate(45deg); color: var(--gold); }
.sp-faq-item.open .sp-faq-q span { color: var(--primary); }
.sp-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
    padding: 0 28px;
}
.sp-faq-item.open .sp-faq-a { max-height: 200px; padding-bottom: 24px; }
.sp-faq-a p { font-size: 15px; color: var(--gray); line-height: 1.85; }

/* RELATED SERVICES */
.sp-related-section { background: var(--cream); }
.sp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.sp-related-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px 24px;
    border: 1px solid rgba(11,31,51,0.1);
    transition: var(--transition);
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.sp-related-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--primary));
    transform: scaleX(0);
    transition: var(--transition);
}
.sp-related-card:hover::before { transform: scaleX(1); }
.sp-related-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px var(--shadow); }
.sp-related-card-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff;
    margin-bottom: 18px;
}
.sp-related-card h4 { font-size: 16px; color: var(--primary-dark); margin-bottom: 10px; font-weight: 600; }
.sp-related-card p { font-size: 13px; color: var(--gray); line-height: 1.7; margin-bottom: 16px; }
.sp-related-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap .2s;
}
.sp-related-card:hover .sp-related-link { gap: 10px; }

/* GENERIC SECTION */
.sp-generic-inner {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}
.sp-generic-icon {
    width: 90px; height: 90px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 38px; color: #fff;
    flex-shrink: 0;
}
.sp-generic-copy .sp-section-label { margin-bottom: 12px; }
.sp-generic-copy h2 { font-size: 32px; color: var(--primary-dark); margin-bottom: 18px; text-align: left; }
.sp-generic-copy h2::after { display: none; }
.sp-generic-copy p { font-size: 16px; color: var(--gray); line-height: 1.85; margin-bottom: 14px; }

/* ============================================================
   HOME PAGE — TREATMENT PROCESS SECTION
   ============================================================ */
.process-section {
    background: linear-gradient(135deg, #07111F 0%, #0B1F33 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}
.process-section-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.process-section-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .3;
}
.process-blob-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    top: -150px; right: -100px;
}
.process-blob-2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, #00B8D9 0%, transparent 70%);
    bottom: -100px; left: -80px;
}
.process-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative; z-index: 2;
}
.process-header .section-label-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.35);
    color: var(--gold);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.process-header h2 {
    font-size: clamp(28px, 4vw, 44px);
    color: #fff;
    margin-bottom: 16px;
}
.process-header p { font-size: 17px; color: rgba(255,255,255,0.65); max-width: 540px; margin: 0 auto; }
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    z-index: 2;
}
.process-steps::before {
    content: '';
    position: absolute;
    top: 60px;
    left: calc(12.5% + 40px);
    right: calc(12.5% + 40px);
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--primary), var(--gold));
    opacity: .4;
}
.process-step {
    text-align: center;
    padding: 0 24px;
}
.process-step-num {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--primary-light) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700; color: #fff;
    margin: 0 auto 24px;
    box-shadow: 0 0 0 8px rgba(212,175,55,0.15), 0 12px 40px rgba(212,175,55,0.3);
    position: relative; z-index: 2;
    transition: var(--transition);
}
.process-step:hover .process-step-num {
    transform: scale(1.1);
    box-shadow: 0 0 0 12px rgba(212,175,55,0.2), 0 20px 50px rgba(212,175,55,0.4);
}
.process-step-icon {
    font-size: 26px;
}
.process-step h4 { font-size: 18px; color: #fff; margin-bottom: 10px; }
.process-step p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; }
.process-cta {
    text-align: center;
    margin-top: 56px;
    position: relative; z-index: 2;
}

/* ============================================================
   RESPONSIVE — SERVICE PAGE
   ============================================================ */
@media (max-width: 1200px) {
    .sp-treatment-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-related-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .process-steps::before { display: none; }
}
@media (max-width: 900px) {
    .sp-about-grid { grid-template-columns: 1fr; gap: 40px; }
    .sp-causes-grid { grid-template-columns: 1fr; }
    .sp-symp-grid { grid-template-columns: 1fr; gap: 40px; }
    .sp-symp-visual { width: 280px; height: 280px; }
    .sp-diag-grid { grid-template-columns: 1fr; gap: 40px; }
    .sp-benefits-grid { grid-template-columns: 1fr; gap: 40px; }
    .sp-treatment-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-related-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-hero-banner { padding: 140px 0 80px; }
    .sp-generic-inner { grid-template-columns: 1fr; }
    .sp-generic-icon { width: 70px; height: 70px; font-size: 28px; }
}
@media (max-width: 600px) {
    .sp-stats-grid { grid-template-columns: 1fr; }
    .sp-treatment-grid { grid-template-columns: 1fr; }
    .sp-related-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .sp-hero-cta { flex-direction: column; }
    .sp-cta-buttons { flex-direction: column; }
    .sp-info-pills { flex-direction: column; gap: 8px; }
    .sp-about-grid { text-align: center; }
    .sp-section-big-icon { margin: 0 auto 24px; }
}

/* ============================================================
   WHY CHOOSE US — MODERN SPLIT LAYOUT V2
   ============================================================ */
.why-section-v2 {
    background: var(--white);
    overflow: hidden;
}
.why-v2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* LEFT — IMAGE */
.why-v2-visual { position: relative; }
.why-v2-img-wrap {
    position: relative;
    border-radius: 32px;
    overflow: visible;
}
.why-v2-img-wrap > img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(11,31,51,0.2);
}
/* Stat float cards */
.why-v2-float-card {
    position: absolute;
    background: var(--white);
    border-radius: 18px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    animation: floatCard 4s infinite ease-in-out;
}
.why-v2-float-card strong { display: block; font-size: 16px; font-weight: 700; color: var(--primary-dark); line-height: 1; }
.why-v2-float-card span { font-size: 12px; color: var(--gray-light); }
.why-fc-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px;
    flex-shrink: 0;
}
.why-fc-1 { top: 24px; left: -28px; animation-delay: 0s; }
.why-fc-2 { top: 50%; left: -28px; transform: translateY(-50%); animation-delay: 1.5s; }
.why-fc-3 { bottom: 24px; left: -28px; animation-delay: 3s; }
.why-v2-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 20px;
}
.why-v2-label i { color: var(--gold); }

/* RIGHT — FEATURES */
.why-v2-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,184,217,0.08);
    color: var(--primary);
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.why-v2-badge i { color: var(--gold); }
.why-v2-header h2 {
    font-size: clamp(28px, 4vw, 44px);
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}
.why-v2-header h2 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.why-v2-header p { font-size: 16px; color: var(--gray); line-height: 1.8; margin-bottom: 36px; }

/* Feature list */
.why-v2-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }
.why-v2-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(11,31,51,0.1);
    transition: var(--transition);
}
.why-v2-item:first-child { border-top: 1px solid rgba(11,31,51,0.1); }
.why-v2-item:hover { padding-left: 8px; }
.why-v2-item-icon {
    width: 52px; height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}
.why-v2-item:hover .why-v2-item-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    color: #fff;
    box-shadow: 0 8px 24px var(--shadow);
}
.why-v2-item-copy h4 { font-size: 16px; color: var(--primary-dark); margin-bottom: 6px; font-weight: 600; }
.why-v2-item-copy p { font-size: 14px; color: var(--gray); line-height: 1.75; margin: 0; }

/* RESPONSIVE */
@media (max-width: 1100px) {
    .why-v2-grid { gap: 60px; }
    .why-v2-img-wrap > img { height: 500px; }
}
@media (max-width: 860px) {
    .why-v2-grid { grid-template-columns: 1fr; gap: 50px; }
    .why-v2-visual { order: 2; }
    .why-v2-features { order: 1; }
    .why-fc-1, .why-fc-2, .why-fc-3 { left: auto; right: -10px; }
    .why-fc-2 { top: 30%; }
}
@media (max-width: 600px) {
    .why-fc-1, .why-fc-2, .why-fc-3 { display: none; }
    .why-v2-img-wrap > img { height: 280px; }
}

/* ================================================================
   COMPLETE RESPONSIVE OVERHAUL — Mobile-First Fixes
   Breakpoints: 1200 | 992 | 768 | 576 | 400
   ================================================================ */

/* ── MOBILE NAV SLIDE-IN ─────────────────────────────────────────── */
@media (max-width: 992px) {
    /* Full-screen slide-in nav */
    .nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh;
        background: rgba(7,17,31,0.98) !important;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        z-index: 9999;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        padding: 84px 20px 40px !important;
        margin: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        transition: transform .35s cubic-bezier(.4,0,.2,1);
        visibility: hidden;
    }
    .nav.active {
        transform: translateX(0);
        visibility: visible;
    }
    .nav .nav-link {
        font-size: 18px;
        color: #fff;
        padding: 12px 24px;
        border-radius: 10px;
        width: 100%;
        max-width: 320px;
        text-align: center;
        display: block;
    }
    .nav .nav-link:hover,
    .nav .nav-link.active {
        background: rgba(0,184,217,0.18);
        color: var(--gold);
    }
    .nav .nav-link::after { display: none; }

    /* Close (X) button — appended by JS */
    .mobile-close-btn {
        position: absolute;
        top: 20px; right: 20px;
        width: 44px; height: 44px;
        background: rgba(255,255,255,0.1);
        border: none; border-radius: 50%;
        color: #fff; font-size: 20px;
        cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        z-index: 10;
    }
    .mobile-menu-btn.active i::before { content: "\f00d"; } /* fa-times */
    .phone-link span { display: none; }
}

/* ── HEADER RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 992px) {
    .header { padding: 10px 0; }
    .header.scrolled { padding: 8px 0; }
    .logo-img { height: 60px; }
    .header-inner { gap: 12px; }
}
@media (max-width: 576px) {
    .logo-img { height: 50px; max-width: 160px; }
    .phone-link { display: none; }
}

/* ── TOPBAR RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .topbar-ticker { display: none; }
}
@media (max-width: 768px) {
    .topbar { display: none; }
}

/* ── HERO SECTION (HOME) ─────────────────────────────────────────── */
@media (max-width: 992px) {
    .hero { min-height: auto; padding: 160px 0 60px; }
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-image { display: none; }
    .hero-text { max-width: 100%; }
    .hero-title { font-size: clamp(32px,7vw,52px); }
    .hero-buttons { justify-content: center; flex-wrap: wrap; }
    .hero-badge { margin: 0 auto; }
}
@media (max-width: 576px) {
    .hero { padding: 140px 0 50px; }
    .hero-title { font-size: 30px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 280px; text-align: center; }
}

/* ── SERVICE PAGE HERO (SPLIT) ───────────────────────────────────── */
@media (max-width: 1100px) {
    .sp-hero-inner { grid-template-columns: 1fr 340px; gap: 40px; }
}
@media (max-width: 860px) {
    .sp-hero-inner { grid-template-columns: 1fr; }
    .sp-hero-image-wrap { display: none; }
    .sp-hero-banner { padding: 170px 0 60px; }
    .sp-hero-title { font-size: clamp(26px,6vw,44px); }
    .sp-info-pills { flex-wrap: wrap; gap: 8px; }
    .sp-info-pill { font-size: 13px; }
    .sp-hero-cta { flex-wrap: wrap; }
    .sp-hero-cta .btn { width: 100%; max-width: 260px; text-align: center; }
}
@media (max-width: 576px) {
    .sp-hero-banner { padding: 150px 0 50px; }
    .sp-hero-title { font-size: 26px; }
    .sp-category-badge { font-size: 12px; }
    .sp-hero-cta .btn { max-width: 100%; }
}

/* ── SERVICE PAGE CONTENT SECTIONS ──────────────────────────────── */
@media (max-width: 768px) {
    .sp-about-grid { grid-template-columns: 1fr !important; }
    .sp-causes-grid { grid-template-columns: 1fr !important; }
    .sp-diag-steps { grid-template-columns: 1fr !important; }
    .sp-treat-grid { grid-template-columns: 1fr !important; }
    .sp-related-grid { grid-template-columns: repeat(2,1fr) !important; }
    .sp-faq-item { padding: 16px; }
    .sp-section-title { font-size: clamp(22px,5vw,36px); }
    .sp-stats-grid { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 480px) {
    .sp-related-grid { grid-template-columns: 1fr !important; }
    .sp-stats-grid { grid-template-columns: 1fr !important; }
}

/* ── PAGE HEADER BANNER (inner pages) ───────────────────────────── */
@media (max-width: 768px) {
    .page-header h1 { font-size: clamp(24px,6vw,42px); }
    .breadcrumb { font-size: 13px; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 480px) {
    .page-header h1 { font-size: 24px; }
}

/* ── WHY CHOOSE US V2 ────────────────────────────────────────────── */
@media (max-width: 992px) {
    .why-v2-grid { grid-template-columns: 1fr; gap: 48px; }
    .why-v2-visual { order: 2; }
    .why-v2-features { order: 1; }
    .why-v2-img-wrap > img { height: 360px; }
    .why-fc-1, .why-fc-2, .why-fc-3 { left: auto; right: -10px; }
    .why-fc-2 { top: 30%; }
}
@media (max-width: 576px) {
    .why-fc-1, .why-fc-2, .why-fc-3 { display: none; }
    .why-v2-img-wrap > img { height: 240px; }
    .why-v2-header h2 { font-size: 26px; }
    .why-v2-item-copy h4 { font-size: 15px; }
}

/* ── PROCESS SECTION ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .process-grid { grid-template-columns: repeat(2,1fr) !important; gap: 20px !important; }
}
@media (max-width: 480px) {
    .process-grid { grid-template-columns: 1fr !important; }
}

/* ── NGS SERVICES GRID (homepage) ───────────────────────────────── */
@media (max-width: 768px) {
    .services-grid { grid-template-columns: repeat(2,1fr) !important; }
    .service-card { padding: 20px !important; }
}
@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr !important; }
}

/* ── STATS BAR ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr !important; }
}

/* ── TESTIMONIALS ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .testimonials-grid { grid-template-columns: 1fr !important; }
}

/* ── BLOG GRID ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr !important; }
}

/* ── GALLERY ─────────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .gallery-grid { grid-template-columns: 1fr !important; }
    .gallery-item.large { grid-column: span 1 !important; grid-row: span 1 !important; }
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
    .footer-brand { text-align: center; }
    .footer-brand .logo { justify-content: center; }
    .contact-social { justify-content: center; }
}

/* ── CONTACT PAGE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .contact-form-grid { grid-template-columns: 1fr !important; }
    .contact-info-grid { grid-template-columns: 1fr !important; }
}

/* ── DOCTOR PAGES ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .doctor-profile-grid { grid-template-columns: 1fr !important; }
    .doctor-image { height: 280px !important; }
}

/* ── SECTION HEADING ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .section { padding: 48px 0; }
    .section-title { font-size: clamp(22px,5vw,38px) !important; }
    .section-subtitle { font-size: 15px !important; }
    h1 { font-size: clamp(26px,7vw,52px); }
    h2 { font-size: clamp(22px,5vw,40px); }
    h3 { font-size: clamp(18px,4vw,28px); }
}

/* ── GENERAL MOBILE HELPERS ──────────────────────────────────────── */
@media (max-width: 576px) {
    .container { padding: 0 16px; }
    .btn { padding: 12px 22px; font-size: 14px; }
    .section { padding: 40px 0; }
    .section-title { font-size: 22px !important; }
}

/* ── BEFORE / AFTER LABELS ───────────────────────────────────────── */
.ba-item { position: relative; }
.ba-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-label {
    position: absolute;
    top: 14px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #fff;
    z-index: 3;
    backdrop-filter: blur(6px);
}
.ba-before {
    left: 14px;
    background: rgba(40,40,40,0.78);
}
.ba-after {
    right: 14px;
    background: linear-gradient(135deg,#0B1F33,#00B8D9);
}
.ba-grid .gallery-item { aspect-ratio: 4 / 3; }
@media (max-width: 768px) {
    .ba-grid { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 480px) {
    .ba-grid { grid-template-columns: 1fr !important; }
    .ba-label { font-size: 11px; padding: 4px 10px; }
}

/* ── MEGA MENU — collapsible accordion on mobile ─────────────────── */
@media (max-width: 992px) {
    .has-mega-menu {
        width: 260px;
        position: relative;
    }
    .has-mega-menu > .nav-link {
        width: 100%;
        position: relative;
    }
    .has-mega-menu > .nav-link i.fa-chevron-down {
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform .3s ease;
        font-size: 12px !important;
    }
    .has-mega-menu.open > .nav-link i.fa-chevron-down {
        transform: translateY(-50%) rotate(180deg);
    }
    .mega-menu {
        position: static !important;
        display: none;
        width: 100% !important;
        max-height: 50vh;
        overflow-y: auto;
        background: rgba(255,255,255,0.05) !important;
        backdrop-filter: none;
        box-shadow: none !important;
        border-radius: 12px;
        padding: 12px !important;
        margin-top: 8px;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
    }
    .has-mega-menu.open .mega-menu { display: block; }
    .mega-menu-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .mega-menu-column h4 {
        color: var(--gold) !important;
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }
    .mega-menu-list {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .mega-menu-list a {
        color: rgba(255,255,255,.85) !important;
        font-size: 14px !important;
        padding: 8px 12px !important;
        text-align: left !important;
        width: 100% !important;
        border-radius: 6px;
    }
    .mega-menu-list a:hover {
        background: rgba(0,184,217,0.18) !important;
        color: var(--gold) !important;
    }
    /* Fix outer container so it doesn't overflow on small phones */
    .header-inner { flex-wrap: nowrap; }
    .logo { flex: 0 0 auto; }
    .header-actions { flex: 0 0 auto; margin-left: auto; }
}

/* Hide mobile close btn on desktop */
.mobile-close-btn { display: none; }
@media (max-width: 992px) {
    .mobile-close-btn { display: flex; z-index: 10; }
}

/* ── DOCTOR CARD — prevent face cropping on mobile ───────────────── */
.doctor-image img {
    object-position: center top;
}
@media (max-width: 992px) {
    .doctor-card {
        grid-template-columns: 1fr !important;
    }
    .doctor-image {
        height: auto !important;
        aspect-ratio: 4 / 3;
        max-height: 520px;
    }
    .doctor-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 20%;
    }
}
@media (max-width: 576px) {
    .doctor-image {
        aspect-ratio: 1 / 1;
        max-height: 460px;
    }
    .doctor-image img {
        object-fit: cover;
        object-position: center 15%;
    }
}

/* Tighten topbar on tablet so it doesn't break layout above the nav */
@media (max-width: 1100px) and (min-width: 901px) {
    .topbar-inner { flex-wrap: wrap; gap: 8px; }
    .topbar-left .topbar-item span { font-size: 12px; }
}

/* Keep the existing topic-slider layout and make its controls usable. */
.treatments-slider { overflow: hidden; padding-bottom: 58px; }
.treatments-prev,
.treatments-next {
    position: absolute;
    bottom: 0;
    width: 44px;
    height: 44px;
    border: 1px solid var(--cream-dark);
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition-fast);
}
.treatments-prev { left: calc(50% - 52px); }
.treatments-next { right: calc(50% - 52px); }
.treatments-prev:hover:not(:disabled),
.treatments-next:hover:not(:disabled) { background: var(--primary); color: var(--white); }
.treatments-prev:disabled,
.treatments-next:disabled { opacity: .42; cursor: not-allowed; }

/* High-contrast navigation and hero actions over the supplied video. */
.header {
    background: rgba(7,17,31,.94);
    backdrop-filter: blur(10px);
}
.header .nav-link { color: #FFFFFF; }
.header .nav-link:hover,
.header .nav-link.active { color: #00B8D9; }
.header .nav-link::after { background: #00B8D9; }
.hero .btn-outline,
.cta-section .btn-outline { color: #FFFFFF; border-color: rgba(255,255,255,.72); }
.hero .btn-outline:hover,
.cta-section .btn-outline:hover { color: #07111F; background: #FFFFFF; }
.header.scrolled { background: rgba(7,17,31,.96) !important; }
.header.scrolled .nav-link { color: #FFFFFF !important; }
.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active { color: #00B8D9 !important; }
.contact-map-card { position:relative; min-height:520px; overflow:hidden; background:#07111F; }
.contact-map-card > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.contact-map-card::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(7,17,31,.88),rgba(7,17,31,.25)); }
.contact-map-copy { position:absolute; z-index:2; left:clamp(24px,6vw,80px); bottom:clamp(32px,7vw,76px); max-width:520px; color:#FFFFFF; }
.contact-map-copy > span { display:inline-flex; align-items:center; gap:9px; color:#8AE9F6; font-weight:600; margin-bottom:16px; }
.contact-map-copy h3 { color:#FFFFFF; font-size:clamp(28px,4vw,42px); margin:0 0 12px; }
.contact-map-copy p { color:rgba(255,255,255,.88); line-height:1.7; margin-bottom:24px; }

/* Official NGS Chip product showcase; CSS-created covers avoid hotlinking store artwork. */
.home-product-showcase {
    margin-top: 76px;
    scroll-margin-top: 180px;
    padding: 36px 28px 24px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}
.home-product-showcase-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}
.home-product-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #087c99;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.home-product-showcase-head h2 {
    margin: 0 0 8px;
    color: #102a43;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}
.home-product-showcase-head p {
    max-width: 560px;
    margin: 0;
    color: #526579;
    line-height: 1.6;
}
.home-product-all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: #0b1f33;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.home-product-all:hover { background: #087c99; color: #fff; transform: translateY(-2px); }
.home-product-marquee { overflow: hidden; width: 100%; }
.home-product-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin: 18px auto 0;
}
.home-product-arrow {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #d2e1e9;
    border-radius: 50%;
    background: #fff;
    color: #087c99;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(7,31,51,.08);
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.home-product-arrow:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: #087c99;
    background: #0b1f33;
    color: #fff;
}
.home-product-arrow:focus-visible {
    outline: 3px solid rgba(0,169,194,.4);
    outline-offset: 3px;
}
.home-product-arrow:disabled {
    opacity: .42;
    cursor: not-allowed;
    box-shadow: none;
}
.home-product-position {
    min-width: 78px;
    color: #526579;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.home-product-track {
    display: flex;
    width: max-content;
    transition: transform .72s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}
.home-product-track.is-resetting { transition: none !important; }
.home-product-group {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 18px;
    padding-right: 18px;
}
.home-product-card {
    flex: 0 0 270px;
    width: 270px;
    overflow: hidden;
    border: 1px solid #dce6ed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(7,31,51,.08);
    transition: transform .22s ease, box-shadow .22s ease;
}
.home-product-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(7,31,51,.14); }
.home-product-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}
.home-product-art {
    position: relative;
    display: flex;
    height: 164px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 17px;
    background: radial-gradient(circle at 84% 17%, rgba(67,216,232,.48), transparent 28%), linear-gradient(145deg,#0b2943,#102f50 52%,#071a2c);
    color: #fff;
}
.home-product-cover {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
}
.home-product-art.home-product-art--has-cover { background: transparent; }
.home-product-art--has-cover::after { display: none; }
.home-product-art--has-cover .home-product-art-label,
.home-product-art--has-cover .home-product-art-topic,
.home-product-art--has-cover > i { display: none; }
.home-product-art::after {
    position: absolute;
    right: -26px;
    bottom: -48px;
    width: 154px;
    height: 154px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 14px rgba(255,255,255,.04), 0 0 0 30px rgba(255,255,255,.03);
}
.home-product-art--design { background-image: radial-gradient(circle at 85% 15%,rgba(87,194,239,.48),transparent 30%),linear-gradient(145deg,#103b5d,#1a5d78,#0a263f); }
.home-product-art--process { background-image: radial-gradient(circle at 85% 15%,rgba(109,225,191,.45),transparent 30%),linear-gradient(145deg,#0a3a42,#13525b,#09262f); }
.home-product-art--nodes { background-image: radial-gradient(circle at 85% 15%,rgba(184,141,255,.45),transparent 30%),linear-gradient(145deg,#25204e,#3d3972,#15152e); }
.home-product-art--neuro { background-image: radial-gradient(circle at 85% 15%,rgba(255,114,156,.45),transparent 30%),linear-gradient(145deg,#481f43,#702c59,#27152c); }
.home-product-art--career { background-image: radial-gradient(circle at 85% 15%,rgba(255,207,91,.45),transparent 30%),linear-gradient(145deg,#483619,#765626,#29200e); }
.home-product-art-label,
.home-product-art-topic,
.home-product-art i { position: relative; z-index: 1; }
.home-product-art-label {
    color: rgba(255,255,255,.8);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
}
.home-product-art i { align-self: center; color: rgba(255,255,255,.92); font-size: 38px; }
.home-product-art-topic {
    max-width: 100%;
    overflow: hidden;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}
.home-product-category {
    margin-bottom: 7px;
    color: #087c99;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.home-product-card-body h3 {
    display: -webkit-box;
    min-height: 60px;
    margin: 0 0 14px;
    overflow: hidden;
    color: #102a43;
    font-size: 15px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.home-product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}
.home-product-price {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    color: #102a43;
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}
.home-product-price del { color: #81919e; font-size: 11px; font-weight: 500; }
.home-product-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #087c99;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.home-product-link:focus-visible,
.home-product-all:focus-visible { outline: 3px solid #00a9c2; outline-offset: 3px; }
.home-product-source-note {
    margin: 15px 0 0;
    color: #687c8c;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}
@media (max-width: 760px) {
    html, body { min-height: 100%; }
    html { touch-action: pan-y pinch-zoom; }
    body { touch-action: pan-y pinch-zoom; -webkit-overflow-scrolling: touch; }
    .home-product-showcase { margin-top: 54px; scroll-margin-top: 92px; padding: 24px 14px 18px; }
    .home-product-showcase-head { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 18px; }
    .home-product-showcase-head p { font-size: 13px; }
    .home-product-all { min-height: 40px; font-size: 12px; }
    .home-product-marquee { touch-action: pan-y pinch-zoom; }
    .home-product-controls { gap: 11px; margin-top: 14px; }
    .home-product-arrow { width: 36px; height: 36px; }
    .home-product-group { gap: 12px; padding-right: 12px; }
    .home-product-card { flex-basis: 246px; width: 246px; }
    .home-product-art { height: 142px; padding: 13px; }
    .home-product-card-body { padding: 13px; }
    .home-product-card-body h3 { font-size: 14px; }
}
@media (max-width: 460px) {
    .home-product-showcase { padding: 22px 12px 16px; }
    .home-product-card { flex-basis: calc((100vw - 120px) / 2); width: calc((100vw - 120px) / 2); }
    .home-product-art { height: 122px; padding: 11px; }
    .home-product-art-label { font-size: 8px; letter-spacing: .08em; }
    .home-product-art i { font-size: 30px; }
    .home-product-card-body { padding: 10px; }
    .home-product-category { font-size: 9px; }
    .home-product-card-body h3 { min-height: 54px; font-size: 12px; }
    .home-product-card-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
    .home-product-price { font-size: 15px; }
    .home-product-action { font-size: 10px; }
    .home-product-source-note { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-product-track { transition: none; }
    .home-product-group[aria-hidden="true"] { display: none; }
    .home-product-marquee { overflow-x: auto; scroll-snap-type: x mandatory; }
    .home-product-card { scroll-snap-align: start; }
}

/* NGS homepage: keep the light Why section readable despite legacy dark-card rules. */
.why-section-v2 {
    padding: clamp(54px, 7vw, 88px) 0;
    background: linear-gradient(180deg, #f6fafc 0%, #edf4f7 100%);
    color: #17364b;
}
.why-section-v2 .container { position: relative; z-index: 1; }
.why-section-v2 .why-content {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}
.why-section-v2 .why-content h2 {
    margin: 0 0 15px;
    color: #102a43;
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.025em;
}
.why-section-v2 .why-content h2 span {
    color: #087f9d;
}
.why-section-v2 .why-content p {
    max-width: 680px;
    margin: 0 auto;
    color: #536879;
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.75;
}
.why-section-v2 .why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 0;
}
.why-section-v2 .why-card {
    min-height: 220px;
    padding: 25px 20px;
    border: 1px solid #dce7ed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 48, 70, .06);
    color: #17364b;
    text-align: center;
    backdrop-filter: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.why-section-v2 .why-card:hover {
    transform: translateY(-4px);
    border-color: #a7d5df;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 48, 70, .11);
}
.why-section-v2 .why-card > i {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    margin: 0 auto 16px;
    border: 1px solid #c9eaf0;
    border-radius: 16px;
    background: #e8f7fa;
    color: #087f9d;
    font-size: 23px;
}
.why-section-v2 .why-card h3 {
    margin: 0 0 9px;
    color: #17364b;
    font-size: 17px;
    line-height: 1.4;
}
.why-section-v2 .why-card p {
    margin: 0;
    color: #5a6e7c;
    font-size: 13px;
    line-height: 1.65;
}
@media (max-width: 900px) {
    .why-section-v2 .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .why-section-v2 { padding: 52px 0; }
    .why-section-v2 .why-content { margin-bottom: 27px; text-align: center; }
    .why-section-v2 .why-grid { grid-template-columns: 1fr; gap: 13px; }
    .why-section-v2 .why-card { min-height: 0; padding: 21px 18px; text-align: center; }
    .why-section-v2 .why-card > i { margin: 0 auto 14px; }
}

/* Mobile layout: bring the hero copy up and keep two product cards readable. */
@media (max-width: 992px) {
    .hero { padding: 112px 0 48px; }
    .hero-content { gap: 28px; padding-top: 0; }
}
@media (max-width: 576px) {
    .hero { padding: 96px 0 40px; }
    .hero-content { gap: 20px; }
    .hero-badge { margin-bottom: 14px; }
    .hero-title { margin-bottom: 16px; }
    .hero-desc { margin-bottom: 22px; }
    .hero-buttons { gap: 12px; }

    .home-product-showcase-head { gap: 10px; }
    .home-product-showcase-head h2 { font-size: 22px; }
    .home-product-group { gap: 10px; padding-right: 10px; }
    .home-product-card {
        flex-basis: calc((100vw - 100px) / 2);
        width: calc((100vw - 100px) / 2);
    }
    .home-product-art { height: 112px; }
    .home-product-card-body { padding: 10px; }
    .home-product-card-body h3 {
        display: block;
        min-height: 74px;
        margin-bottom: 10px;
        overflow: visible;
        overflow-wrap: anywhere;
        font-size: 11.5px;
        -webkit-box-orient: initial;
        -webkit-line-clamp: unset;
    }
    .home-product-card-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
    .home-product-price { font-size: 14px; }
    .home-product-price del { font-size: 10px; }
    .home-product-action { font-size: 10px; }
}

.home-product-card {
    display: flex;
    flex-direction: column;
}
.home-product-link { flex: 1 0 auto; height: auto; }
.home-product-card-actions {
    display: grid;
    gap: 5px;
    padding: 0 14px 14px;
    text-align: center;
}
.home-product-cart-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    background: #0b1f33;
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}
.home-product-cart-button:hover,
.home-product-cart-button:focus-visible {
    background: #087c99;
    color: #fff;
    transform: translateY(-1px);
}
.home-product-cart-button:focus-visible { outline: 3px solid #00a9c2; outline-offset: 2px; }
.home-product-card-actions .home-product-action {
    min-height: 25px;
    justify-content: center;
    font-size: 10px;
}
@media (max-width: 460px) {
    .home-product-card-actions { padding: 0 10px 12px; }
    .home-product-cart-button { min-height: 34px; font-size: 10px; }
}

/* Keep contact shortcuts distinct and visible against the dark contact panel. */
.contact-info-panel .contact-social a {
    border: 1px solid rgba(255,255,255,.18);
    background: linear-gradient(135deg, #087c99, #00b8d9);
    color: #fff;
    box-shadow: 0 7px 20px rgba(0,184,217,.22);
}
.contact-info-panel .contact-social a:nth-child(2) {
    background: linear-gradient(135deg, #123b5d, #1478b5);
}
.contact-info-panel .contact-social a:hover,
.contact-info-panel .contact-social a:focus-visible {
    background: #fff;
    color: #087c99;
}

/* Mobile NGS refinement: keep the hero centered and prevent cards from pushing the page sideways. */
@media (max-width: 767px) {
    /* Never leave mobile content faded out while a scroll-reveal animation is pending. */
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .hero {
        width: 100%;
        padding: 104px 0 42px;
        overflow: clip;
    }
    .hero .container {
        width: 100%;
        padding-inline: 20px;
    }
    .hero-content {
        display: grid;
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 0;
        text-align: center;
    }
    .hero-text {
        width: 100%;
        max-width: 540px;
        min-width: 0;
        margin-inline: auto;
        text-align: center;
    }
    .hero-badge {
        max-width: 100%;
        justify-content: center;
        margin-inline: auto;
        text-align: center;
    }
    .hero-title {
        max-width: 100%;
        margin-inline: auto;
        font-size: clamp(29px, 7.6vw, 42px);
        line-height: 1.12;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }
    .hero-desc {
        max-width: 38rem;
        margin-inline: auto;
        text-align: center;
        text-wrap: pretty;
    }
    .hero-buttons {
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
    .hero-buttons .btn {
        width: min(100%, 300px);
        min-height: 48px;
        padding: 12px 18px;
        white-space: normal;
        text-align: center;
    }

    .about-grid,
    .doctors-grid,
    .why-section-v2 .why-grid,
    .process-steps,
    .stats-grid,
    .gallery-grid,
    .blog-grid {
        min-width: 0;
        grid-template-columns: minmax(0, 1fr);
    }
    .about-content,
    .about-features,
    .services-header,
    .service-card-content,
    .split-content,
    .doctor-info,
    .treatment-slide-content,
    .why-section-v2 .why-card,
    .process-step,
    .stat-item,
    .testimonial-slide,
    .blog-card-content,
    .cta-content {
        text-align: center;
    }
    .about-content .btn,
    .split-content .btn,
    .text-center > .btn {
        margin-inline: auto;
    }
    .about-features { justify-items: center; }
    .about-feature { justify-content: center; }
    .services-scroll,
    .treatments-slider,
    .treatments-track,
    .service-card,
    .doctor-card,
    .treatment-slide,
    .blog-card,
    .gallery-item {
        min-width: 0;
        max-width: 100%;
    }
    .services-scroll {
        gap: 14px;
        padding: 12px 4px 22px;
        scroll-padding-inline: 4px;
    }
    .service-card {
        flex: 0 0 min(82vw, 340px);
        padding: 0 !important;
        border-radius: 18px;
    }
    .service-card-img { height: 108px; }
    .service-card-content { padding: 16px; }
    .service-card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 9px;
        border-radius: 12px;
        font-size: 17px;
    }
    .service-card h3 {
        margin-bottom: 7px;
        font-size: 18px;
        line-height: 1.25;
    }
    .service-card p {
        margin-bottom: 9px;
        font-size: 13px;
        line-height: 1.45;
    }
    .service-card-link { gap: 6px; font-size: 13px; }
    .services-scroll-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin: -5px 0 4px;
    }
    .services-scroll-arrow {
        display: grid;
        width: 36px;
        height: 36px;
        place-items: center;
        border: 1px solid #dce5ed;
        border-radius: 50%;
        background: #fff;
        color: #0b1f33;
        box-shadow: 0 5px 14px rgba(11,31,51,.10);
        cursor: pointer;
    }
    .services-scroll-arrow:hover:not(:disabled) {
        border-color: #00b8d9;
        background: #0b1f33;
        color: #fff;
    }
    .services-scroll-arrow:focus-visible {
        outline: 3px solid rgba(0,184,217,.38);
        outline-offset: 2px;
    }
    .services-scroll-arrow:disabled { opacity: .42; cursor: not-allowed; }
    .services-scroll-position {
        min-width: 42px;
        color: #526579;
        font-size: 12px;
        font-weight: 700;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }
    .service-card-content,
    .doctor-info,
    .treatment-slide-content,
    .blog-card-content {
        overflow-wrap: anywhere;
    }
    .service-card-link,
    .doctor-profile-link,
    .blog-card-link {
        justify-content: center;
    }
    .home-product-showcase {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-inline: auto;
    }
    .home-product-showcase-head {
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .home-product-showcase-head > div {
        width: 100%;
        min-width: 0;
    }
    .home-product-showcase-head h2,
    .home-product-showcase-head p,
    .home-product-source-note {
        text-align: center;
        text-wrap: balance;
    }
    .home-product-all {
        justify-content: center;
        text-align: center;
    }
    .home-product-marquee {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }
    .home-product-group { min-width: 0; }
    .home-product-card {
        flex-basis: clamp(120px, calc((100vw - 116px) / 2), 188px);
        width: clamp(120px, calc((100vw - 116px) / 2), 188px);
        min-width: 0;
        text-align: center;
    }
    .home-product-card-body,
    .home-product-card-body h3,
    .home-product-card-bottom,
    .home-product-card-actions {
        text-align: center;
    }
    .home-product-card-bottom { align-items: center; }
    .home-product-card-actions .home-product-action {
        justify-content: center;
        overflow-wrap: anywhere;
    }
    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .contact-strip-grid {
        min-width: 0;
        grid-template-columns: minmax(0, 1fr);
    }
    .contact-map-copy { text-align: center; }
    .contact-map-copy .btn { margin-inline: auto; }
}

@media (max-width: 380px) {
    .hero .container { padding-inline: 16px; }
    .hero { padding-top: 96px; }
    .hero-title { font-size: clamp(27px, 8vw, 32px); }
    .hero-buttons .btn { max-width: 100%; }
    .home-product-showcase { padding-inline: 10px; }
    .home-product-card {
        flex-basis: clamp(120px, calc((100vw - 116px) / 2), 160px);
        width: clamp(120px, calc((100vw - 116px) / 2), 160px);
    }
}

/* Home layout: keep the video below the fixed main navigation and move the
   utility strip after the hero so neither obscures the opening scene. */
.home-page #top.hero {
    margin-top: var(--ngs-home-header-height, 90px);
    min-height: clamp(470px, calc(82svh - var(--ngs-home-header-height, 90px)), 740px);
}
.home-page .topbar {
    position: relative;
    inset: auto;
    z-index: 1;
    transform: none !important;
    transition: none;
}
.topbar-inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: clamp(10px, 1.35vw, 20px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.topbar-inner::-webkit-scrollbar { display: none; }
.topbar .topbar-item {
    flex: 0 0 auto;
    gap: 8px;
    color: rgba(255,255,255,.9);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
}
.topbar .topbar-item i {
    color: #18c5e1;
    font-size: 12px;
    transition: color .18s ease, transform .18s ease;
}
.topbar .topbar-item:hover,
.topbar .topbar-item:focus-visible {
    color: #67e6f5;
    transform: translateY(-1px);
}
.topbar .topbar-item:hover i,
.topbar .topbar-item:focus-visible i {
    color: #fff;
    transform: scale(1.12);
}
.topbar .topbar-cta {
    flex: 0 0 auto;
    gap: 7px;
    min-height: 30px;
    margin-left: auto;
    background: linear-gradient(135deg, #08bcd7, #1686bc);
    color: #fff !important;
    font-weight: 700;
    white-space: nowrap;
}
.topbar .topbar-cta:hover,
.topbar .topbar-cta:focus-visible {
    background: linear-gradient(135deg, #38d8ee, #2589d8);
    box-shadow: 0 5px 16px rgba(0,184,217,.3);
    transform: translateY(-1px);
}
.home-page .hero-background-video {
    object-position: center center;
}

/* Hero keeps the video background and text, without the right-side photo cards. */
.home-page #top .hero-content {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    padding-top: 0;
}
.home-page #top .hero-text {
    width: min(100%, 560px);
    max-width: 560px;
    margin: 0;
    text-align: left;
}
.home-page #top .hero-badge {
    margin-bottom: 18px;
    padding: 8px 16px;
    font-size: 12px;
}
.home-page #top .hero-title {
    margin-bottom: 14px;
    font-size: clamp(38px, 4vw, 54px);
    line-height: 1.06;
}
.home-page #top .hero-desc {
    max-width: 510px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
}
.home-page #top .hero-buttons { gap: 12px; }
.home-page #top .hero-buttons .btn {
    min-height: 44px;
    padding: 11px 17px;
    font-size: 13px;
}

@media (max-width: 992px) {
    .home-page #top.hero {
        min-height: clamp(340px, 50svh, 480px);
        padding: 22px 0 24px;
    }
    .home-page #top .hero-content {
        justify-items: center;
        text-align: center;
    }
    .home-page #top .hero-text {
        width: 100%;
        max-width: 540px;
        margin-inline: auto;
        text-align: center;
    }
    .home-page #top .hero-title {
        font-size: clamp(34px, 6vw, 46px);
        text-wrap: balance;
    }
    .home-page #top .hero-desc {
        margin-inline: auto;
        font-size: 14px;
    }
    .home-page #top .hero-badge { margin-inline: auto; }
    .home-page #top .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .home-page .topbar { display: block; }
    .topbar-inner { gap: 14px; }
}
@media (max-width: 576px) {
    .home-page #top.hero {
        min-height: clamp(340px, 54svh, 480px);
        padding: 20px 0 24px;
    }
    .home-page #top .hero-badge { margin-bottom: 13px; }
    .home-page #top .hero-title {
        margin-bottom: 12px;
        font-size: clamp(29px, 8vw, 36px);
    }
    .home-page #top .hero-desc { margin-bottom: 17px; }
    .home-page #top .hero-buttons { gap: 8px; }
    .home-page #top .hero-buttons .btn {
        width: auto;
        max-width: none;
        min-height: 42px;
        padding: 10px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    .home-page .topbar { padding: 8px 0; }
    .topbar-inner { gap: 16px; }
    .topbar .topbar-item { font-size: 11px; }
    .topbar .topbar-cta {
        padding: 7px 10px;
        white-space: nowrap;
    }
}
@media (min-width: 371px) and (max-width: 576px) {
    .home-page #top .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    .home-page #top .hero-buttons .btn {
        width: auto;
        flex: 0 1 auto;
    }
}
@media (min-width: 577px) and (max-width: 992px) {
    .home-page #top .hero-content {
        justify-items: start;
        text-align: left;
    }
    .home-page #top .hero-text {
        width: min(100%, 360px);
        max-width: 360px;
        margin: 0;
        text-align: left;
    }
    .home-page #top .hero-badge { margin-inline: 0; }
    .home-page #top .hero-title {
        font-size: clamp(32px, 4.8vw, 42px);
        text-wrap: balance;
    }
    .home-page #top .hero-desc {
        max-width: 345px;
        margin-inline: 0;
        text-align: left;
    }
    .home-page #top .hero-buttons {
        justify-content: flex-start;
        flex-direction: row;
    }
    .home-page #top .hero-buttons .btn {
        width: auto;
        max-width: none;
        flex: 0 1 auto;
    }
}
@media (max-width: 370px) {
    .home-page #top .hero-buttons { flex-direction: column; }
    .home-page #top .hero-buttons .btn { width: min(100%, 270px); }
}

/* Keep the four NGS technology markers as part of the dark discovery section. */
.process-section > .stats-section {
    padding: 30px 0;
    margin-top: 42px;
    border-top: 1px solid rgba(220, 229, 237, .18);
    background: rgba(255, 255, 255, .055);
}

/* Industry perspectives: a high-contrast editorial carousel for real NGS topics. */
.industry-insights {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(64px, 8vw, 104px) 0 clamp(58px, 7vw, 88px);
    color: #f5fbff;
    background:
        radial-gradient(ellipse at 12% 5%, rgba(0, 184, 217, .18), transparent 34%),
        radial-gradient(ellipse at 92% 92%, rgba(37, 137, 216, .16), transparent 32%),
        linear-gradient(135deg, #07111f 0%, #0b1f33 55%, #0a263d 100%);
}
.industry-insights::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    content: "";
    mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
}
.industry-insights > .container { position: relative; z-index: 1; }
.industry-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    max-width: 1080px;
    margin: 0 auto 30px;
}
.industry-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
    color: #66e5f4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}
.industry-eyebrow i { font-size: 13px; }
.industry-heading h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(32px, 4.2vw, 48px);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.12;
}
.industry-heading p {
    max-width: 630px;
    margin: 0;
    color: rgba(229, 241, 250, .72);
    font-size: 16px;
    line-height: 1.7;
}
.industry-heading-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    padding: 13px 16px;
    border: 1px solid rgba(138, 233, 246, .19);
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
    color: #8ae9f6;
}
.industry-heading-mark i { font-size: 25px; }
.industry-heading-mark span {
    color: rgba(229, 241, 250, .76);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.55;
}
.industry-slider {
    max-width: 1080px;
    margin: 0 auto;
    perspective: 1200px;
}
.industry-insights .industry-slide {
    display: none;
    grid-template-columns: minmax(270px, .82fr) minmax(0, 1.18fr);
    min-height: 375px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 24px;
    background: #f8fbfd;
    box-shadow: 0 28px 85px rgba(0, 0, 0, .28);
    text-align: left;
}
.industry-insights .industry-slide.active {
    display: grid;
    animation: industrySlideIn .48s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes industrySlideIn {
    from { opacity: 0; transform: translateY(12px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.industry-visual {
    position: relative;
    display: flex;
    min-height: 375px;
    flex-direction: column;
    justify-content: space-between;
    padding: 27px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 48%, rgba(10, 185, 215, .24), transparent 30%),
        linear-gradient(150deg, #0d4565 0%, #092c49 52%, #071725 100%);
    color: #e9fbff;
}
.industry-visual::before,
.industry-visual::after {
    position: absolute;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(113, 225, 242, .17);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.industry-visual::before { top: 18%; left: 13%; }
.industry-visual::after { top: 24%; left: 19%; width: 220px; height: 220px; }
.industry-visual-memory {
    background:
        radial-gradient(circle at 50% 48%, rgba(71, 169, 231, .28), transparent 30%),
        linear-gradient(150deg, #164a77 0%, #103453 53%, #081a2c 100%);
}
.industry-visual-fabrication {
    background:
        radial-gradient(circle at 50% 48%, rgba(0, 193, 176, .23), transparent 30%),
        linear-gradient(150deg, #0d5360 0%, #0c384b 53%, #071725 100%);
}
.industry-visual-meta {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(226, 249, 255, .74);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
}
.industry-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 172px;
    height: 172px;
    place-items: center;
    border: 1px solid rgba(123, 233, 246, .28);
    border-radius: 50%;
    color: #70e9f6;
    transform: translate(-50%, -50%);
}
.industry-orbit::before {
    position: absolute;
    inset: 15px;
    border: 1px dashed rgba(123, 233, 246, .32);
    border-radius: 50%;
    content: "";
    animation: industryOrbit 28s linear infinite;
}
.industry-orbit-ring {
    position: absolute;
    inset: 31px;
    border: 1px solid rgba(123, 233, 246, .36);
    border-radius: 50%;
    box-shadow: 0 0 38px rgba(0, 184, 217, .14);
}
.industry-orbit > i { font-size: 46px; text-shadow: 0 0 25px rgba(0,184,217,.45); }
.industry-orbit-dot {
    position: absolute;
    top: 24px;
    right: 32px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #67e6f5;
    box-shadow: 0 0 16px #00b8d9;
}
@keyframes industryOrbit { to { transform: rotate(360deg); } }
.industry-circuit {
    position: absolute;
    right: 28px;
    bottom: 78px;
    left: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 9px;
    height: 46px;
    opacity: .55;
}
.industry-circuit i {
    width: 1px;
    height: var(--circuit-height, 24px);
    background: linear-gradient(180deg, rgba(103,230,245,.06), #4fd9ed);
}
.industry-circuit i:nth-child(2n) { --circuit-height: 38px; }
.industry-circuit i:nth-child(3n) { --circuit-height: 17px; }
.industry-visual-caption {
    position: relative;
    z-index: 1;
    color: rgba(226, 249, 255, .68);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.65;
}
.industry-copy {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(30px, 5vw, 64px);
    color: #14283a;
    text-align: left;
}
.industry-topic {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px 12px;
    border: 1px solid #c9edf2;
    border-radius: 999px;
    background: #edfbfd;
    color: #087b91;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}
.industry-copy-label {
    margin-bottom: 10px;
    color: #1288a0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
}
.industry-copy h3 {
    max-width: 500px;
    margin: 0 0 15px;
    color: #102a43;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.12;
}
.industry-copy > p {
    max-width: 500px;
    margin: 0 0 25px;
    color: #526579;
    font-size: 16px;
    line-height: 1.75;
}
.industry-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #087f97;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: color .2s ease, gap .2s ease;
}
.industry-link:hover,
.industry-link:focus-visible { gap: 15px; color: #0b1f33; }
.industry-card-index {
    position: absolute;
    right: 30px;
    bottom: 25px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #8a9bab;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
}
.industry-card-index i { width: 28px; height: 1px; background: #b8c7d1; }
.industry-controls {
    display: grid;
    max-width: 1080px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin: 22px auto 0;
}
.industry-current {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: rgba(223, 239, 248, .58);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}
.industry-current strong {
    color: #73e5f2;
    font-size: 18px;
    letter-spacing: 0;
}
.industry-insights .testimonial-dots,
.industry-insights .testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0;
}
.industry-insights .testimonial-dot {
    width: 8px;
    height: 8px;
    border: 0;
    background: rgba(220, 238, 248, .35);
}
.industry-insights .testimonial-dot.active {
    width: 26px;
    background: #18c6df;
    box-shadow: 0 0 16px rgba(24,198,223,.4);
}
.industry-insights .testimonial-nav { justify-content: flex-end; gap: 8px; }
.industry-insights .testimonial-nav button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(203, 229, 242, .2);
    background: rgba(255, 255, 255, .07);
    color: #e7f8ff;
}
.industry-insights .testimonial-nav button:hover,
.industry-insights .testimonial-nav button:focus-visible {
    border-color: #18c6df;
    background: #18c6df;
    color: #07111f;
    transform: translateY(-2px);
}

@media (max-width: 700px) {
    .industry-heading { align-items: flex-start; margin-bottom: 22px; }
    .industry-heading-mark { display: none; }
    .industry-heading p { font-size: 14px; }
    .industry-insights .industry-slide { grid-template-columns: minmax(0, 1fr); }
    .industry-visual { min-height: 205px; padding: 20px; }
    .industry-visual::before { top: -4px; left: calc(50% - 125px); }
    .industry-visual::after { top: 10px; left: calc(50% - 105px); }
    .industry-orbit { width: 130px; height: 130px; }
    .industry-orbit::before { inset: 12px; }
    .industry-orbit-ring { inset: 25px; }
    .industry-orbit > i { font-size: 35px; }
    .industry-orbit-dot { top: 20px; right: 24px; width: 7px; height: 7px; }
    .industry-circuit { right: 20px; bottom: 58px; left: 20px; height: 28px; }
    .industry-copy { min-height: 265px; padding: 25px 23px 56px; }
    .industry-topic { margin-bottom: 17px; }
    .industry-copy h3 { font-size: 28px; }
    .industry-copy > p { font-size: 14px; line-height: 1.65; }
    .industry-card-index { right: 22px; bottom: 19px; }
    .industry-controls { grid-template-columns: auto 1fr auto; gap: 10px; }
    .industry-insights .testimonial-nav button { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
    .industry-orbit::before { animation: none; }
    .industry-insights .industry-slide.active { animation: none; }
}
.process-section > .stats-section .stat-item {
    padding: 16px 10px;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.process-section > .stats-section .stat-item i { color: #00B8D9; }
.process-section > .stats-section .stat-item h3 { color: #fff; }
.process-section > .stats-section .stat-item p { color: rgba(255,255,255,.72); }

.blog-section .ngs-seo-section {
    max-width: 900px;
    margin: 42px auto 0;
    padding: 26px 28px;
    border: 1px solid #DCE5ED;
    border-radius: 18px;
    background: #F4F7FA;
}
.blog-section .ngs-seo-section h2 {
    margin-bottom: 14px;
    color: #102A43;
    font-size: clamp(21px, 3vw, 28px);
}
.blog-section .ngs-seo-section p {
    margin: 0 0 10px;
    color: #526579;
    font-size: 14px;
    line-height: 1.75;
}
.blog-section .ngs-seo-section p:last-child { margin-bottom: 0; }
@media (max-width: 576px) {
    .process-section > .stats-section { margin-top: 28px; padding: 18px 0; }
    .blog-section .ngs-seo-section { margin-top: 30px; padding: 20px 16px; }
}

/* Three compact hero routes to the site's courses, books and consultancy pages. */
.home-page #top .hero-buttons.hero-resource-links {
    display: grid;
    width: min(100%, 560px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.home-page #top .hero-resource-links .hero-resource-btn {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 10px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}
.home-page #top .hero-resource-btn i { flex: 0 0 auto; }
.home-page #top .hero-resource-btn span { min-width: 0; }
@media (max-width: 992px) {
    .home-page #top .hero-buttons.hero-resource-links { width: min(100%, 360px); }
}
@media (max-width: 576px) {
    .home-page #top .hero-buttons.hero-resource-links {
        width: min(100%, 380px);
        gap: 7px;
    }
    .home-page #top .hero-resource-links .hero-resource-btn {
        min-height: 48px;
        padding: 8px 6px;
        font-size: 11px;
    }
}
@media (max-width: 370px) {
    .home-page #top .hero-buttons.hero-resource-links {
        width: min(100%, 270px);
        grid-template-columns: 1fr;
    }
}

/* Home learning sections: place the real store catalogue beside topic-only course enquiries. */
.home-product-section {
    padding: clamp(28px, 4vw, 48px) 0 18px;
    background: #fff;
}

.home-product-section .home-product-showcase {
    margin-top: 0;
    scroll-margin-top: 110px;
}

.home-course-section {
    padding: 12px 0 clamp(48px, 6vw, 76px);
    background: linear-gradient(180deg, #edf4f7 0%, #f7fafc 100%);
}

.home-course-showcase {
    padding: clamp(22px, 3vw, 34px) 28px 24px;
    overflow: hidden;
    border: 1px solid #d8e5ed;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff 0%, #f2f8fb 100%);
    box-shadow: 0 18px 55px rgba(7, 31, 51, .08);
}

.home-course-showcase .home-product-showcase-head { margin-bottom: 24px; }
.home-course-showcase .home-product-showcase-head > div { min-width: 0; }
.home-course-showcase .home-product-showcase-head h2 { text-wrap: balance; }

.home-course-carousel {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    touch-action: pan-x pan-y;
}

.home-course-carousel::-webkit-scrollbar { display: none; }
.home-course-carousel:focus-visible { outline: 3px solid rgba(0, 169, 194, .45); outline-offset: 4px; }

.home-course-track {
    display: flex;
    width: max-content;
    min-width: 100%;
    align-items: stretch;
    gap: 16px;
}

.home-course-card {
    display: flex;
    width: 266px;
    flex: 0 0 266px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dce6ed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(7, 31, 51, .08);
    scroll-snap-align: start;
    transition: transform .22s ease, box-shadow .22s ease;
}

.home-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(7, 31, 51, .14);
}

.home-course-art {
    position: relative;
    height: 142px;
    flex: 0 0 142px;
    overflow: hidden;
    background: #0b2943;
}

.home-course-art::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 24, 39, .12), rgba(5, 24, 39, .72));
    content: "";
}

.home-course-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.home-course-card:hover .home-course-art img { transform: scale(1.04); }

.home-course-art-label,
.home-course-art > i {
    position: absolute;
    z-index: 1;
    color: #fff;
}

.home-course-art-label {
    top: 14px;
    left: 14px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-course-art > i {
    right: 15px;
    bottom: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 12px;
    background: rgba(0, 169, 194, .88);
    font-size: 17px;
}

.home-course-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px;
}

.home-course-category {
    margin-bottom: 7px;
    color: #087c99;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-course-card-body h3 {
    min-height: 42px;
    margin: 0 0 8px;
    color: #102a43;
    font-size: 15px;
    line-height: 1.3;
}

.home-course-card-body p {
    margin: 0 0 16px;
    color: #526579;
    font-size: 12px;
    line-height: 1.55;
}

.home-course-action {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding: 0 11px;
    border-radius: 9px;
    background: #0b1f33;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.home-course-action:hover,
.home-course-action:focus-visible {
    transform: translateY(-1px);
    background: #087c99;
    color: #fff;
}

.home-course-action:focus-visible { outline: 3px solid #00a9c2; outline-offset: 2px; }

.home-course-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin: 18px auto 0;
}

.home-course-position {
    min-width: 78px;
    color: #526579;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.home-course-note {
    margin: 14px 0 0;
    color: #687c8c;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 760px) {
    .home-product-section { padding-top: 28px; }
    .home-course-section { padding-top: 8px; }
    .home-course-showcase { padding: 23px 14px 18px; }
    .home-course-showcase .home-product-showcase-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 18px;
    }
    .home-course-card { width: 228px; flex-basis: 228px; }
    .home-course-art { height: 118px; flex-basis: 118px; }
    .home-course-controls { gap: 11px; margin-top: 14px; }
}

@media (max-width: 460px) {
    .home-course-showcase { padding: 20px 12px 16px; }
    .home-course-track { gap: 12px; }
    .home-course-card {
        width: clamp(100px, calc((100vw - 120px) / 2), 230px);
        flex-basis: clamp(100px, calc((100vw - 120px) / 2), 230px);
    }
    .home-course-art { height: 104px; flex-basis: 104px; }
    .home-course-art-label { top: 10px; left: 10px; font-size: 8px; letter-spacing: .06em; }
    .home-course-art > i { right: 10px; bottom: 10px; width: 32px; height: 32px; font-size: 14px; }
    .home-course-card-body { padding: 10px; }
    .home-course-category { font-size: 8px; }
    .home-course-card-body h3 { min-height: 34px; font-size: 12px; }
    .home-course-card-body p { min-height: 72px; font-size: 10px; }
    .home-course-action { min-height: 34px; padding: 0 8px; font-size: 9px; }
    .home-course-note { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-course-carousel { scroll-behavior: auto; }
    .home-course-card,
    .home-course-art img,
    .home-course-action { transition: none; }
}

/* On-site digital checkout and account delivery */
.onsite-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    align-items: start;
    gap: 24px;
}
.onsite-checkout .store-listing-panel,
.onsite-checkout-form,
.onsite-checkout-account,
.onsite-purchase-card {
    border: 1px solid #dce7ee;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(10, 36, 57, .07);
}
.onsite-checkout .store-listing-panel { padding: 24px; }
.onsite-checkout-form { display: grid; gap: 14px; padding: 26px; }
.onsite-checkout-form h2,
.onsite-checkout-form p { margin: 0; }
.onsite-checkout-form .admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}
.onsite-checkout-form .admin-field { min-width: 0; display: grid; gap: 7px; }
.onsite-checkout-form .admin-field input,
.onsite-checkout-form .admin-field select {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #cbd8e1;
    border-radius: 11px;
    background: #fbfdff;
    color: #10283c;
    font: inherit;
}
.onsite-checkout-form .admin-field input:focus,
.onsite-checkout-form .admin-field select:focus {
    outline: 3px solid rgba(8, 126, 149, .15);
    border-color: #087e95;
}
#ngs-onsite-checkout [hidden] { display: none !important; }
.payment-route-options {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 16px;
    border: 1px solid #dce7ee;
    border-radius: 15px;
    background: #fbfdff;
}
.payment-route-options legend { padding: 0 7px; color: #10283c; font-weight: 800; }
.payment-route-options label {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px;
    border: 1px solid #dce7ee;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}
.payment-route-options label:has(input:checked) { border-color: #087e95; box-shadow: 0 0 0 2px rgba(8, 126, 149, .12); }
.payment-route-options input { margin-top: 4px; accent-color: #087e95; }
.payment-route-options label span { display: grid; gap: 4px; }
.payment-route-options label strong { color: #10283c; }
.payment-route-options label small { color: #637687; line-height: 1.45; }
.checkout-message { min-height: 1.5em; color: #276171; font-size: .94rem; }
.checkout-message.is-error { color: #a12929; }
.checkout-message.is-success { color: #186a4a; }
.stripe-payment-element { padding: 17px; border: 1px solid #dce7ee; border-radius: 14px; background: #fbfdff; }
.checkout-secure-note,
.checkout-help-link { font-size: .9rem; color: #637687; }
.checkout-secure-note i { color: #087e95; margin-right: 7px; }
.checkout-help-link { color: #087e95; text-decoration: underline; text-underline-offset: 3px; }
.onsite-purchase-card { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 50px); }
.onsite-purchase-card .detail-price { display: block; margin: 20px 0; }
.onsite-purchase-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.account-downloads { margin-top: 24px; }
.account-download-list { display: grid; gap: 12px; margin: 18px 0; }
.account-download-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid #dce7ee;
    border-radius: 14px;
    background: #fbfdff;
}
.account-download-list article > div { display: grid; gap: 5px; }
.account-download-list small { color: #637687; }
.store-line-item--checkout .store-quantity button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 820px) {
    .onsite-checkout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .onsite-checkout .store-listing-panel,
    .onsite-checkout-form,
    .onsite-purchase-card { padding: 19px; border-radius: 16px; }
    .onsite-checkout-form .admin-form-grid { grid-template-columns: minmax(0, 1fr); }
    .account-download-list article { align-items: flex-start; flex-direction: column; }
    .onsite-purchase-actions > * { width: 100%; justify-content: center; }
}

/* Compact rotating homepage copy keeps the full video visible behind it. */
.home-page #top .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    justify-items: start !important;
    text-align: left !important;
}
.home-page #top > .container {
    width: 100%;
    max-width: 1400px;
    flex: 0 0 100%;
}
.home-page #top .hero-gradient {
    background: linear-gradient(90deg, rgba(7,17,31,.60) 0%, rgba(7,17,31,.34) 43%, rgba(7,17,31,.10) 100%);
}
.home-page #top .hero-text {
    position: absolute;
    top: 50%;
    left: clamp(0px, 4vw, 56px);
    transform: translateY(-50%);
    width: min(100%, 440px);
    max-width: 440px;
    margin: 0 !important;
    text-align: left !important;
}
.home-page #top .hero-badge { margin-inline: 0 !important; }
.home-page #top .hero-title-rotator {
    min-height: 2.2em;
    margin-bottom: 10px;
    font-size: clamp(36px, 3.7vw, 49px);
    line-height: 1.06;
    animation: none;
    margin-inline: 0 !important;
    text-align: left !important;
}
.home-page #top .hero-title-rotator .hero-title-visual {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
}
.home-page #top .hero-title-rotator .hero-word {
    display: inline-block;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-shadow: 0 2px 12px rgba(0,0,0,.55);
    animation: ngsHeroWordIn .5s cubic-bezier(.2,.75,.25,1) both;
    animation-delay: calc(var(--word-index, 0) * .1s);
    will-change: transform, opacity, filter;
}
.home-page #top .hero-title-rotator .hero-word-highlight {
    color: #8AE9F6 !important;
    -webkit-text-fill-color: #8AE9F6 !important;
}
.home-page #top .hero-title-rotator.hero-is-exiting .hero-word {
    animation: ngsHeroWordOut .3s ease both;
    animation-delay: calc(var(--word-index, 0) * .045s);
}
.home-page #top .hero-desc[data-hero-caption] {
    min-height: 3.1em;
    max-width: 430px;
    margin-bottom: 19px;
    font-size: 14px;
    line-height: 1.55;
    transition: opacity .28s ease, transform .28s ease, filter .28s ease;
    margin-inline: 0 !important;
    text-align: left !important;
}
.home-page #top .hero-desc.hero-caption-out {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
}
.home-page #top .hero-desc.hero-caption-in {
    animation: ngsHeroCaptionIn .48s .18s both;
}
.home-page #top .hero-buttons { justify-content: flex-start !important; }

@keyframes ngsHeroWordIn {
    from { opacity: 0; transform: translateY(.42em); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes ngsHeroWordOut {
    to { opacity: 0; transform: translateY(-.28em); filter: blur(4px); }
}
@keyframes ngsHeroCaptionIn {
    from { opacity: 0; transform: translateY(8px); filter: blur(2px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@media (max-width: 992px) {
    .home-page #top .hero-gradient {
        background: linear-gradient(90deg, rgba(7,17,31,.60), rgba(7,17,31,.28) 70%, rgba(7,17,31,.18));
    }
    .home-page #top .hero-title-rotator {
        font-size: clamp(34px, 5.6vw, 45px);
    }
}
@media (max-width: 576px) {
    .home-page #top .hero-content {
        justify-items: center !important;
        text-align: center !important;
    }
    .home-page #top .hero-text {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        margin-inline: auto !important;
        text-align: center !important;
    }
    .home-page #top .hero-badge { margin-inline: auto !important; }
    .home-page #top .hero-buttons { justify-content: center !important; }
    .home-page #top .hero-gradient {
        background: linear-gradient(90deg, rgba(7,17,31,.64), rgba(7,17,31,.32) 78%, rgba(7,17,31,.20));
    }
    .home-page #top .hero-title-rotator {
        min-height: 2.15em;
        font-size: clamp(28px, 8vw, 35px);
        margin-inline: auto !important;
        text-align: center !important;
    }
    .home-page #top .hero-desc[data-hero-caption] {
        min-height: 4.1em;
        max-width: 36ch;
        font-size: 12.5px;
        margin-inline: auto !important;
        text-align: center !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .home-page #top .hero-title-rotator .hero-word,
    .home-page #top .hero-desc.hero-caption-in,
    .home-page #top .hero-title-rotator.hero-is-exiting .hero-word {
        animation: none !important;
        filter: none !important;
        transform: none !important;
    }
}

@media (max-width: 576px) {
    .home-page #top.hero {
        min-height: clamp(360px, 58svh, 500px);
        padding: 36px 0 20px;
    }
}

/* Show uploaded course artwork at its natural ratio on a clean white backdrop. */
.home-course-art.home-course-art--uploaded {
    display: flex;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.home-course-art--uploaded::after,
.home-course-art--uploaded .home-course-art-label,
.home-course-art--uploaded > i {
    display: none;
}
.home-course-art--uploaded img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}
.home-course-card:hover .home-course-art--uploaded img { transform: none; }

/* Give uploaded book covers enough room to show the entire cover on Home. */
.home-product-art.home-product-art--has-cover {
    height: auto;
    min-height: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.home-product-art--has-cover .home-product-cover {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}
