/* ===========================
   iLab Public Site Styles
   =========================== */

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

:root {
    --primary: #0E7490;
    --primary-dark: #0C5E75;
    --primary-light: #E0F7FA;
    --secondary: #8B5CF6;
    --accent: #EC4899;
    --dark: #1E293B;
    --text: #334155;
    --text-light: #64748B;
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;
    --border: #E2E8F0;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 24px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    line-height: 1.3;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.5;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 17px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 116, 144, 0.3);
}

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

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

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

.btn-white:hover {
    background: #f0f0f0;
    color: var(--primary-dark);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

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

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===========================
   Top Bar
   =========================== */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    gap: 24px;
}

.top-bar-contact a {
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-contact a:hover {
    color: #fff;
}

.top-bar-social {
    display: flex;
    gap: 12px;
}

.top-bar-social a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.top-bar-social a:hover {
    color: #fff;
}

/* ===========================
   Navbar
   =========================== */
.navbar {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 50px;
    width: auto;
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 16px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-links > li > a {
    padding: 8px 16px;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.dropdown-arrow {
    font-size: 10px;
    transition: var(--transition);
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    min-width: 260px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    list-style: none;
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    font-size: 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
}

.hero-text {
    background: linear-gradient(135deg, #0E7490 0%, #0C5E75 40%, #1E3A5F 100%);
    display: flex;
    align-items: center;
    padding: 60px 50px;
    color: #fff;
}

.hero-text-inner {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.hero-text-inner h1 {
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero-tagline {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    justify-content: center;
}

.hero-text .btn-primary {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.hero-text .btn-primary:hover {
    background: #f0f0f0;
    color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(255,255,255,0.3);
}

.hero-text .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.hero-text .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}

.hero-social {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.hero-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: var(--transition);
}

.hero-social a:hover {
    background: rgba(255,255,255,0.3);
}

.hero-image {
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===========================
   Stats Section
   =========================== */
.stats-section {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding-bottom: 40px;
}

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

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.stat-icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 12px;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    direction: ltr;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
}

/* ===========================
   Section Header
   =========================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
}

/* ===========================
   Services Grid (Home)
   =========================== */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.services-grid .service-card {
    flex: 0 1 340px;
}

.service-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: block;
    text-decoration: none;
    color: var(--text);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    color: var(--text);
}

.service-card-image {
    overflow: hidden;
    height: 180px;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.service-card-body {
    padding: 24px 28px;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-card:hover .service-link {
    gap: 10px;
}

/* ===========================
   Quality Logos
   =========================== */
.quality-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.quality-logo-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quality-logo-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.quality-logo-card img {
    max-width: 160px;
    max-height: 80px;
    object-fit: contain;
}

/* ===========================
   About Preview (Home)
   =========================== */
.about-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-preview-content .section-badge {
    margin-bottom: 16px;
}

.about-preview-content h2 {
    font-size: 30px;
    margin-bottom: 16px;
}

.about-preview-content > p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin-bottom: 28px;
}

.feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.feature-list li i {
    color: var(--primary);
    font-size: 18px;
}

.about-preview-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.visual-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
}

.visual-card:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
}

.visual-icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 14px;
}

.visual-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.visual-card p {
    font-size: 13px;
    color: var(--text-light);
}

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

.cta-content {
    text-align: center;
    color: #fff;
}

.cta-content h2 {
    color: #fff;
    font-size: 30px;
    margin-bottom: 12px;
}

.cta-content p {
    opacity: 0.9;
    font-size: 17px;
    margin-bottom: 28px;
}

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

/* ===========================
   Page Header
   =========================== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header > .container > .page-header-content > p {
    opacity: 0.9;
    font-size: 17px;
    margin-bottom: 16px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a {
    color: #fff;
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
    color: #fff;
}

/* ===========================
   About Page
   =========================== */
.about-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text .section-badge {
    margin-bottom: 16px;
}

.about-text h2 {
    font-size: 30px;
    margin-bottom: 16px;
}

.about-text .lead {
    font-size: 17px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature-card {
    display: flex;
    gap: 20px;
    align-items: start;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.about-feature-card:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.about-feature-card h4 {
    font-size: 17px;
    margin-bottom: 6px;
}

.about-feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Why Grid */
.why-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.why-card {
    flex: 0 1 calc(33.333% - 16px);
    min-width: 260px;
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.why-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.why-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* ===========================
   Contact Page
   =========================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.contact-info > p,
.contact-form-wrapper > p {
    color: var(--text-light);
    margin-bottom: 28px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-card h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.contact-card a,
.contact-card p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.contact-social h4 {
    font-size: 15px;
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 16px;
    transition: var(--transition);
}

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

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-alt);
    padding: 36px;
    border-radius: var(--radius);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    color: var(--text);
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.1);
}

/* ===========================
   Services List (Services page)
   =========================== */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.service-list-card {
    display: flex;
    gap: 30px;
    align-items: start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    transition: var(--transition);
}

.service-list-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-list-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.service-list-image {
    width: 280px;
    min-width: 280px;
    border-radius: var(--radius);
    overflow: hidden;
}

.service-list-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.service-detail-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.service-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-list-content h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.service-subtitle {
    font-size: 13px;
    color: var(--text-light);
    display: block;
    margin-bottom: 12px;
}

.service-list-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}

.service-highlights {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-bottom: 20px;
}

.service-highlights li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.service-highlights li i {
    color: var(--primary);
    font-size: 12px;
}

/* ===========================
   Service Detail Page
   =========================== */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.service-detail-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.service-detail-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.service-detail-header h2 {
    font-size: 26px;
    margin-bottom: 4px;
}

.service-detail-main .lead {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 32px;
}

.service-detail-main h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.service-details-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.detail-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 18px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.detail-icon {
    font-size: 18px;
}

.service-cta {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}

.service-cta h3 {
    margin-bottom: 8px;
}

.service-cta p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sidebar */
.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card h3 {
    font-size: 17px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.sidebar-services {
    list-style: none;
}

.sidebar-services li {
    border-bottom: 1px solid var(--border);
}

.sidebar-services li:last-child {
    border-bottom: none;
}

.sidebar-services li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sidebar-services li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-services li.active a {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

.sidebar-services li a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
    border: none;
}

.sidebar-contact h3 {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.2);
}

.sidebar-contact p {
    opacity: 0.9;
    font-size: 14px;
    margin-bottom: 16px;
}

.sidebar-contact-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.sidebar-contact .btn-primary {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.sidebar-contact .btn-primary:hover {
    background: #f0f0f0;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-brand .brand-name {
    color: #fff;
}

.footer-brand .brand-sub {
    color: rgba(255,255,255,0.5);
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
}

.footer h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.footer-links ul,
.footer-services ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-services li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
    color: #fff;
    padding-right: 4px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.footer-contact li i {
    color: var(--primary);
    width: 16px;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
    color: #fff;
}

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

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* ===========================
   Responsive
   =========================== */
/* (hero-tagline is styled within .hero-text-inner) */

/* ===========================
   Team Section
   =========================== */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.team-card {
    flex: 0 1 calc(25% - 18px);
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid var(--border);
    transition: var(--transition);
}

.team-card:hover .team-photo {
    border-color: var(--primary);
}

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

.team-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.team-card p {
    font-size: 13px;
    color: var(--text-light);
}

/* ===========================
   Packages Section
   =========================== */
.packages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.package-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: var(--transition);
}

.package-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.package-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 16px;
}

.package-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.package-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Packages Gallery */
.packages-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.pkg-gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    transition: var(--transition);
}

.pkg-gallery-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    transform: translateY(-4px);
}

.pkg-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.packages-cta {
    text-align: center;
    margin-top: 32px;
}

.packages-cta-text {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.packages-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   Specialty Tests Grid
   =========================== */
.specialty-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.specialty-card {
    flex: 0 1 calc(20% - 16px);
    min-width: 160px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 16px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
}

.specialty-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.specialty-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.specialty-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

/* ===========================
   Video Section
   =========================== */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.video-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-thumb {
    position: relative;
    display: block;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.video-thumb:hover img {
    transform: scale(1.05);
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.video-thumb:hover .video-play {
    background: var(--primary);
    color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    z-index: 1;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    left: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.video-modal-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
}

.video-modal-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===========================
   Stats Section Full
   =========================== */
.stats-section-full {
    background: linear-gradient(135deg, var(--dark) 0%, #0F172A 100%);
    padding: 80px 0;
    color: #fff;
}

.stats-section-full .section-header {
    color: #fff;
}

.stats-section-full .section-header h2 {
    color: #fff;
    font-size: 28px;
}

.stats-section-full .section-header p {
    color: rgba(255,255,255,0.7);
}

.stats-section-full .section-badge {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}

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

.stats-section-full .stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: none;
}

.stats-section-full .stat-card:hover {
    background: rgba(255,255,255,0.1);
    box-shadow: none;
}

.stats-section-full .stat-icon {
    color: var(--primary);
}

.stats-section-full .stat-number {
    color: #fff;
    font-size: 28px;
}

.stats-section-full .stat-label {
    color: rgba(255,255,255,0.7);
}

/* ===========================
   Branches Section
   =========================== */
.branches-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.branch-card {
    flex: 0 1 320px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
}

.branch-card:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
}

.branch-icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 14px;
}

.branch-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.branch-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

.branches-contact {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.branch-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
}

.branch-contact-item i {
    color: var(--primary);
    font-size: 18px;
}

.branch-contact-item a {
    color: var(--text);
    direction: ltr;
    unicode-bidi: embed;
}

.branch-contact-item a:hover {
    color: var(--primary);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
    .stats-section-full .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .service-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        justify-content: center;
    }

    .top-bar-social {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links > li > a {
        padding: 12px 16px;
        width: 100%;
    }

    .has-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-alt);
        display: none;
        margin: 4px 0;
    }

    .has-dropdown.open .dropdown-menu {
        display: block;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-text {
        padding: 40px 24px;
    }

    .hero-text-inner h1 {
        font-size: 30px;
    }

    .hero-image {
        max-height: 300px;
    }

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

    .stat-number {
        font-size: 26px;
    }

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

    .about-preview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .form-row {
        flex-direction: column;
    }

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

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

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

    .stats-section-full {
        padding: 50px 0;
    }

    .stats-section-full .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .branches-contact {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

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

    .service-list-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .service-list-image {
        width: 100%;
        min-width: unset;
    }

    .service-list-image img {
        height: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section {
        padding: 50px 0;
    }

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

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-text-inner h1 {
        font-size: 24px;
    }

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

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 20px 16px;
    }

    .contact-form-wrapper {
        padding: 24px 18px;
    }
}
