/* ============================================
   MAGNAS LABORATORIES - COMPLETE STYLESHEET
   Exact design from original code preserved
   ============================================ */

/* CSS Variables */
:root {
    --primary: #0A5F5F;
    --primary-light: #0F8B8D;
    --primary-dark: #073F3F;
    --accent: #C9A961;
    --accent-light: #E2C47A;
    --dark: #0A0E27;
    --dark-blue: #12343B;
    --white: #FFFFFF;
    --bg-light: #E8F7F7;
    --gray: #6B7280;
    --gray-dark: #374151;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

/* Container System */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 64px;
    height: 64px;
    border: 4px solid rgba(201, 169, 97, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Canvas Background */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.98);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.5px;
}

.brand span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(10,14,39,0.95) 0%, rgba(26,35,50,0.9) 100%);
    position: relative;
    padding-top: 80px;
}

/* Page Hero (inner pages) */
.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(10,14,39,0.97) 0%, rgba(18,52,59,0.95) 100%);
    position: relative;
    padding-top: 80px;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(201, 169, 97, 0.1);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease 0.2s backwards;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
    letter-spacing: -1px;
    animation: fadeIn 0.8s ease 0.4s backwards;
}

.hero h1 .highlight,
.page-hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
    letter-spacing: -1px;
    animation: fadeIn 0.8s ease 0.4s backwards;
}

.hero .subtitle,
.page-hero .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.8s ease 0.6s backwards;
}

.hero .description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    animation: fadeIn 0.8s ease 0.8s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease 1s backwards;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(10, 95, 95, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(10, 95, 95, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
}

/* Section Common */
section {
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(10, 95, 95, 0.08);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.8;
}

/* About Section */
.about {
    background: var(--dark);
    color: var(--white);
    padding: 100px 0;
}

.about .section-badge {
    background: rgba(201, 169, 97, 0.15);
    color: var(--accent);
}

.about .section-title {
    color: var(--white);
}

.about .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
}

/* Products Section */
.products {
    background: var(--bg-light);
    padding: 100px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(10, 95, 95, 0.08);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(10, 95, 95, 0.12);
    border-color: var(--primary);
}

.product-image {
    height: 220px;
    background: linear-gradient(135deg, #e8f4f4 0%, #d4e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.product-image::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(10, 95, 95, 0.02) 10px,
        rgba(10, 95, 95, 0.02) 20px
    );
    pointer-events: none;
}

.product-icon {
    font-size: 4.5rem;
    color: var(--primary);
    opacity: 0.8;
    z-index: 1;
    position: relative;
}

.product-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-card p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.product-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.product-link:hover {
    color: var(--accent);
    gap: 12px;
}

/* Features Section */
.features {
    background: var(--dark-blue);
    color: var(--white);
    padding: 100px 0;
}

.features .section-badge {
    background: rgba(201, 169, 97, 0.15);
    color: var(--accent);
}

.features .section-title {
    color: var(--white);
}

.features .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* Manufacturing Section */
.manufacturing {
    background: var(--white);
    padding: 100px 0;
}

.manufacturing-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.manufacturing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.manufacturing-visual {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    height: 500px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.manufacturing-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 16px;
}

.manufacturing-visual::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 50px,
        rgba(255, 255, 255, 0.03) 50px,
        rgba(255, 255, 255, 0.03) 100px
    );
    pointer-events: none;
}

.manufacturing-visual i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.15);
    z-index: 1;
}

.manufacturing-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.manufacturing-content p {
    font-size: 1.0625rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.manufacturing-list {
    list-style: none;
    margin-bottom: 2rem;
}

.manufacturing-list li {
    padding: 0.875rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--gray-dark);
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid rgba(10, 95, 95, 0.06);
}

.manufacturing-list li:last-child {
    border-bottom: none;
}

.manufacturing-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1rem;
}

/* Export Section */
.export {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 100px 0;
}

.export .section-badge {
    background: rgba(201, 169, 97, 0.15);
    color: var(--accent);
}

.export .section-title {
    color: var(--white);
}

.export .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.country-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.country-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.country-flag {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
}

.country-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
}

/* Certifications */
.certifications {
    background: var(--bg-light);
    padding: 100px 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cert-card {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(10, 95, 95, 0.08);
    transition: all 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(10, 95, 95, 0.12);
}

.cert-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.cert-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.cta-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta .btn {
    background: var(--accent);
    color: var(--dark);
    border: none;
    font-size: 1.125rem;
    padding: 18px 40px;
}

.cta .btn:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(201, 169, 97, 0.4);
}

/* Contact Section */
.contact {
    background: var(--white);
    padding: 100px 0;
}

.contact-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    margin-top: 0;
}

.contact-info {
    background: var(--dark);
    padding: 3rem;
    border-radius: 16px;
    color: var(--white);
    height: fit-content;
}

.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(201, 169, 97, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-content h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.info-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
    border-color: var(--accent);
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(10, 95, 95, 0.1);
}

.contact-form h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(10, 95, 95, 0.1);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-light);
    color: var(--dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(10, 95, 95, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(10, 95, 95, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 60px;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.875rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 8px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

/* ============================================
   ABOUT PAGE SPECIFIC STYLES
   ============================================ */

.about-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 0;
}

.about-overview-text p {
    font-size: 1.0625rem;
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.about-overview-visual {
    height: 450px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-overview-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Legacy Grid */
.legacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.legacy-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(10, 95, 95, 0.1);
    transition: all 0.4s ease;
}

.legacy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(10, 95, 95, 0.12);
    border-color: var(--primary);
}

.legacy-year {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.legacy-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.legacy-content p {
    color: var(--gray);
    line-height: 1.8;
}

/* Mission Vision Grid */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.mv-card {
    padding: 3rem;
}

.mv-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.mv-divider {
    width: 1px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
}

/* Leadership Grid */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.leader-card {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(10, 95, 95, 0.1);
    transition: all 0.4s ease;
}

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(10, 95, 95, 0.12);
    border-color: var(--primary);
}

.leader-image {
    height: 280px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-img-placeholder {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
}

.leader-content {
    padding: 2rem;
}

.leader-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.leader-title {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(10, 95, 95, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.leader-content p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.leader-social {
    display: flex;
    gap: 0.75rem;
}

.leader-social a {
    width: 40px;
    height: 40px;
    background: rgba(10, 95, 95, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(10, 95, 95, 0.15);
}

.leader-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.leadership-note {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.leadership-note p {
    color: var(--gray-dark);
    font-size: 1.0625rem;
    line-height: 1.8;
    font-style: italic;
}

/* ============================================
   PRODUCTS PAGE SPECIFIC STYLES
   ============================================ */

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product-detail-grid-reverse {
    direction: rtl;
}

.product-detail-grid-reverse > * {
    direction: ltr;
}

.product-detail-image {
    height: 450px;
    background: linear-gradient(135deg, #e8f4f4 0%, #d4e8e8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.product-img-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--primary);
    opacity: 0.5;
}

.product-img-placeholder i {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.product-img-placeholder span {
    font-size: 1.25rem;
    font-weight: 600;
}

.product-detail-content .section-badge {
    margin-bottom: 1rem;
}

.product-detail-content p {
    font-size: 1.0625rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ============================================
   MANUFACTURING PAGE SPECIFIC STYLES
   ============================================ */

/* Infrastructure Details */
.infrastructure-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.infra-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(10, 95, 95, 0.1);
    transition: all 0.4s ease;
}

.infra-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(10, 95, 95, 0.1);
}

.infra-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.infra-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.infra-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* ============================================
   CONTACT PAGE SPECIFIC STYLES
   ============================================ */

.map-container {
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(10, 95, 95, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.map-addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.map-address-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(10, 95, 95, 0.1);
    transition: all 0.3s ease;
}

.map-address-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(10, 95, 95, 0.1);
}

.map-address-card .infra-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.map-address-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.map-address-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .cert-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .manufacturing-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .manufacturing-visual {
        height: 350px;
    }

    .countries-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cert-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-overview-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .legacy-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mv-divider {
        display: none;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .product-detail-grid-reverse {
        direction: ltr;
    }

    .infrastructure-details {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-addresses {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: left 0.4s ease;
        gap: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        font-size: 1.25rem;
    }

    .menu-toggle {
        display: flex;
    }

    .stats-grid,
    .products-grid,
    .features-grid,
    .countries-grid,
    .cert-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .mv-card {
        padding: 2rem;
    }

    .leadership-grid {
        max-width: 100%;
    }

    section {
        padding: 60px 0 !important;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .manufacturing-visual {
        height: 280px;
    }

    .about-overview-visual {
        height: 300px;
    }

    .product-detail-image {
        height: 280px;
    }

    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-group.full-width {
        grid-column: 1;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .contact-info {
        padding: 2rem 1.5rem;
    }

    .countries-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        padding: 2rem 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1.5rem;
    }
}
/* ============================================
   MAGNAS LABORATORIES - RESPONSIVE FIXES
   Surgical fixes only — no design changes
   ============================================ */

/* ============================================
   FIX 1: HOME PAGE HERO BADGE MOBILE OVERLAP
   iPhone/Mobile navbar overlap fix
   ============================================ */

/* Base hero padding increase for all screens */
.hero {
    padding-top: 100px; /* increased from 80px to clear navbar */
    padding-bottom: 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Ensure hero container has top breathing room */
.hero-container {
    padding-top: 40px;
    padding-bottom: 40px;
    width: 100%;
}

/* Badge fix — ensure it never clips under navbar */
.hero-badge {
    position: relative;
    z-index: 2;
    margin-top: 0;
    margin-bottom: 2rem;
    white-space: normal;
    text-align: center;
    word-break: break-word;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* iPhone SE / small phones */
@media (max-width: 390px) {
    .hero {
        padding-top: 110px;
        padding-bottom: 40px;
    }

    .hero-container {
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 8px 16px;
        letter-spacing: 0.5px;
        max-width: 95%;
    }
}

/* iPhone standard (390–430px) */
@media (min-width: 391px) and (max-width: 430px) {
    .hero {
        padding-top: 110px;
    }

    .hero-container {
        padding-top: 24px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 9px 18px;
        letter-spacing: 0.5px;
    }
}

/* All mobiles up to 768px */
@media (max-width: 768px) {
    .hero {
        padding-top: 105px;
        padding-bottom: 50px;
        min-height: 100svh; /* safe viewport height for iOS Safari */
    }

    .hero-container {
        padding-top: 20px;
        padding-bottom: 30px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 9px 18px;
        letter-spacing: 0.5px;
        max-width: 92%;
        line-height: 1.5;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 7vw, 2.8rem);
        margin-bottom: 1.25rem;
        letter-spacing: -0.5px;
    }

    .hero .subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .hero .description {
        font-size: 0.9375rem;
        margin-bottom: 2rem;
        line-height: 1.75;
    }

    .hero-buttons {
        gap: 0.875rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.9375rem;
    }
}

/* Page hero (inner pages) mobile fix */
@media (max-width: 768px) {
    .page-hero {
        padding-top: 100px;
        padding-bottom: 50px;
        min-height: 50vh;
    }
}


/* ============================================
   FIX 2: HOME PAGE "OUR PHARMACEUTICAL PRODUCT
   RANGE" SECTION — MOBILE ALIGNMENT FIX
   ============================================ */

/* Products section wrapper */
.products {
    padding: 80px 0;
}

/* Products section header — mobile centering */
@media (max-width: 768px) {
    .products {
        padding: 60px 0;
    }

    .products .section-header {
        padding: 0 1.5rem;
        margin-bottom: 40px;
        text-align: center;
    }

    .products .section-badge {
        display: inline-block;
        text-align: center;
    }

    .products .section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        text-align: center;
        letter-spacing: -0.5px;
        line-height: 1.25;
        margin-bottom: 1rem;
    }

    .products .section-subtitle {
        font-size: 0.9375rem;
        text-align: center;
        line-height: 1.75;
        padding: 0;
        max-width: 100%;
    }

    /* Products grid — single column on mobile */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 1.5rem;
        max-width: 100%;
    }

    /* Product cards — equal height and clean layout */
    .product-card {
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
    }

    /* Product card image height mobile */
    .product-image {
        height: 180px;
    }

    /* Product content padding mobile */
    .product-content {
        padding: 1.5rem;
    }

    .product-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .product-card p {
        font-size: 0.9rem;
        line-height: 1.65;
        margin-bottom: 1.25rem;
    }

    .product-link {
        font-size: 0.9rem;
    }
}

/* Tablet — 2 column product grid */
@media (min-width: 481px) and (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1.5rem;
    }

    .product-image {
        height: 160px;
    }

    .product-content {
        padding: 1.25rem;
    }

    .product-card h3 {
        font-size: 1.1rem;
    }
}

/* Small phones — 1 column */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        padding: 0 1.25rem;
        gap: 1.25rem;
    }
}

/* Desktop — keep 3 column, fix 7-card layout */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 2rem;
    }

    /* 7th card centering trick using CSS only */
    .product-card:last-child:nth-child(3n+1) {
        grid-column: 2;
    }
}


/* ============================================
   FIX 3: PRODUCTS PAGE — PRODUCT DETAIL CARDS
   ALIGNMENT FIX (Desktop + Mobile)
   ============================================ */

/* Ensure alternating layout works consistently */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch; /* changed from center to stretch for equal heights */
    max-width: 1100px;
    margin: 0 auto;
}

/* Fix reversed grid — remove direction trick, use explicit ordering */
.product-detail-grid-reverse {
    direction: ltr; /* reset */
}

/* Even sections — image on right */
.product-detail-grid-reverse .product-detail-image {
    order: 2;
}

.product-detail-grid-reverse .product-detail-content {
    order: 1;
}

/* Product detail image — consistent height */
.product-detail-image {
    height: 460px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f4f4 0%, #c8e0e0 100%);
    flex-shrink: 0;
    position: relative;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 16px;
}

/* Product img placeholder — centered properly */
.product-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--primary);
    opacity: 0.45;
    text-align: center;
}

.product-img-placeholder i {
    font-size: 5.5rem;
    margin-bottom: 1rem;
    display: block;
}

.product-img-placeholder span {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Product detail content — consistent vertical alignment */
.product-detail-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
}

.product-detail-content .section-badge {
    margin-bottom: 1rem;
    align-self: flex-start;
}

.product-detail-content .section-title {
    text-align: left;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.product-detail-content p {
    font-size: 1.0625rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.product-detail-content .manufacturing-list {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.product-detail-content .btn {
    align-self: flex-start;
    margin-top: 2rem;
}

/* Tablet fix — product detail */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 680px;
        margin: 0 auto;
    }

    /* Reset order for tablet/mobile — image always first */
    .product-detail-grid-reverse .product-detail-image {
        order: 1;
    }

    .product-detail-grid-reverse .product-detail-content {
        order: 2;
    }

    .product-detail-image {
        height: 320px;
    }

    .product-detail-content .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
}

/* Mobile fix — product detail */
@media (max-width: 768px) {
    .product-detail-grid {
        gap: 2rem;
        max-width: 100%;
        padding: 0;
    }

    .product-detail-image {
        height: 260px;
        border-radius: 12px;
    }

    .product-detail-content {
        padding: 0;
    }

    .product-detail-content .section-title {
        font-size: 1.6rem;
        letter-spacing: -0.3px;
    }

    .product-detail-content p {
        font-size: 0.9375rem;
    }

    .product-detail-content .btn {
        width: 100%;
        justify-content: center;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .product-detail-image {
        height: 220px;
    }

    .product-detail-content .section-title {
        font-size: 1.4rem;
    }
}


/* ============================================
   FIX 4: ABOUT US PAGE — "OUR PROFESSIONAL
   TEAM" STAT ICONS DESKTOP VISIBILITY FIX
   ============================================ */

/*
 * Issue: stat-card icons not visible in light bg context
 * The about page uses stat-cards inside a light bg section
 * The original stat-card uses rgba(255,255,255,0.05) designed for dark bg
 * Fix: override stat-card styling for light background context
 */

/* Target stat cards specifically in the light bg about section */
.about-stats-section .stats-grid .stat-card,
section[style*="background: var(--bg-light)"] .stats-grid .stat-card,
section[style*="background:var(--bg-light)"] .stats-grid .stat-card {
    background: var(--white);
    border: 1px solid rgba(10, 95, 95, 0.12);
    box-shadow: 0 4px 20px rgba(10, 95, 95, 0.06);
}

section[style*="background: var(--bg-light)"] .stats-grid .stat-card:hover,
section[style*="background:var(--bg-light)"] .stats-grid .stat-card:hover {
    background: var(--white);
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(10, 95, 95, 0.15);
}

section[style*="background: var(--bg-light)"] .stats-grid .stat-icon,
section[style*="background:var(--bg-light)"] .stats-grid .stat-icon {
    color: var(--primary);
}

section[style*="background: var(--bg-light)"] .stats-grid .stat-number,
section[style*="background:var(--bg-light)"] .stats-grid .stat-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

section[style*="background: var(--bg-light)"] .stats-grid .stat-label,
section[style*="background:var(--bg-light)"] .stats-grid .stat-label {
    color: var(--gray);
}

/* ---- Reliable Class-Based Fix (add class to about page stat section) ---- */
/* This is the most reliable fix — targeting by class in about.html */
.about-team-stats .stat-card {
    background: var(--white) !important;
    border: 2px solid rgba(10, 95, 95, 0.1) !important;
    box-shadow: 0 4px 20px rgba(10, 95, 95, 0.06) !important;
}

.about-team-stats .stat-card:hover {
    background: var(--white) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 16px 40px rgba(10, 95, 95, 0.15) !important;
    transform: translateY(-10px);
}

.about-team-stats .stat-icon {
    color: var(--primary) !important;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    line-height: 1;
}

.about-team-stats .stat-icon i {
    font-size: inherit;
    color: inherit;
    display: inline-block;
}

.about-team-stats .stat-number {
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: var(--primary) !important;
}

.about-team-stats .stat-label {
    color: var(--gray-dark) !important;
    font-weight: 600;
}

/* Desktop — about team stats 4 column */
@media (min-width: 1025px) {
    .about-team-stats .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet — 2 column */
@media (max-width: 1024px) {
    .about-team-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile — 2 column */
@media (max-width: 768px) {
    .about-team-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .about-team-stats .stat-card {
        padding: 2rem 1rem !important;
    }

    .about-team-stats .stat-number {
        font-size: 2.5rem !important;
    }
}


/* ============================================
   GENERAL MOBILE FIXES — ALL PAGES
   Fine-tuning for pixel-perfect mobile
   ============================================ */

/* Prevent horizontal overflow globally */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Section padding normalization for mobile */
@media (max-width: 768px) {
    /* About section mobile */
    .about {
        padding: 60px 0;
    }

    .about-text {
        font-size: 1rem;
        padding: 0 1.5rem;
        margin-bottom: 40px;
    }

    /* Stats grid mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1.5rem;
    }

    .stat-card {
        padding: 2rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    /* Features grid mobile */
    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 2rem;
    }

    /* Countries grid mobile */
    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1.5rem;
    }

    .country-card {
        padding: 1.75rem 1rem;
    }

    .country-flag {
        font-size: 2.5rem;
    }

    .country-name {
        font-size: 1rem;
    }

    /* Cert grid mobile */
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1.5rem;
    }

    .cert-card {
        padding: 1.75rem 1rem;
    }

    .cert-icon {
        font-size: 2rem;
    }

    .cert-name {
        font-size: 1rem;
    }

    /* Manufacturing section mobile */
    .manufacturing-container {
        padding: 0 1.5rem;
    }

    /* Export section mobile */
    .export {
        padding: 60px 0;
    }

    /* CTA section mobile */
    .cta {
        padding: 60px 0;
    }

    .cta h2 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .cta p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .cta .btn {
        padding: 16px 28px;
        font-size: 1rem;
        width: auto;
        min-width: 200px;
    }

    /* Contact section mobile */
    .contact {
        padding: 60px 0;
    }

    .contact-container {
        padding: 0 1.5rem;
    }

    .contact-info {
        padding: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    /* Footer mobile */
    footer {
        padding: 50px 0 20px;
    }

    .footer-container {
        padding: 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 40px;
    }

    .footer-bottom {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    /* Section headers mobile */
    .section-header {
        margin-bottom: 40px;
        padding: 0 0.5rem;
    }

    .section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        letter-spacing: -0.5px;
    }

    .section-subtitle {
        font-size: 0.9375rem;
        line-height: 1.75;
    }
}

/* iPhone SE and very small screens */
@media (max-width: 375px) {
    .hero-badge {
        font-size: 0.68rem;
        padding: 7px 14px;
        letter-spacing: 0.3px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .subtitle {
        font-size: 0.9375rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 0 1.25rem;
    }

    .stat-card {
        padding: 1.5rem 0.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .countries-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 0 1.25rem;
    }

    .products-grid {
        padding: 0 1.25rem;
    }

    .features-grid {
        padding: 0 1.25rem;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 1.25rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}


/* ============================================
   MANUFACTURING PAGE — MOBILE FIXES
   ============================================ */

@media (max-width: 768px) {
    /* Infrastructure details */
    .infrastructure-details {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
        padding: 0;
    }

    .infra-card {
        padding: 2rem;
    }

    /* Manufacturing page features on light bg */
    .features-grid .feature-card[style*="background: var(--white)"],
    .features-grid .feature-card[style*="background:var(--white)"] {
        padding: 1.75rem;
    }
}


/* ============================================
   ABOUT PAGE — DESKTOP FINE-TUNING
   ============================================ */

/* Mission/Vision section desktop */
@media (min-width: 1025px) {
    .mission-vision-grid {
        grid-template-columns: 1fr auto 1fr;
        gap: 4rem;
        align-items: center;
        padding: 0 2rem;
    }

    .mv-card {
        padding: 3rem;
    }

    .mv-divider {
        display: block;
        width: 1px;
        min-height: 280px;
        background: rgba(255, 255, 255, 0.12);
    }
}

/* Leadership grid — desktop centering */
@media (min-width: 1025px) {
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 860px;
        margin: 0 auto 3rem;
    }

    .leader-card {
        width: 100%;
    }
}

/* Leadership mobile */
@media (max-width: 768px) {
    .leadership-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto 2.5rem;
    }

    .leader-image {
        height: 240px;
    }

    .leader-content {
        padding: 1.5rem;
    }

    .leader-content h3 {
        font-size: 1.25rem;
    }

    .leadership-note {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    /* Legacy grid mobile */
    .legacy-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 1.5rem;
    }

    .legacy-card {
        padding: 2rem 1.5rem;
    }

    .legacy-year {
        font-size: 2.5rem;
    }

    /* About overview mobile */
    .about-overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }

    .about-overview-text p {
        font-size: 1rem;
    }

    .about-overview-visual {
        height: 260px;
        order: -1; /* image first on mobile */
    }

    /* Mission vision mobile */
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 1.5rem;
    }

    .mv-card {
        padding: 2.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mv-card:last-child {
        border-bottom: none;
    }

    .mv-icon {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }

    .mv-divider {
        display: none;
    }
}


/* ============================================
   CONTACT PAGE — MOBILE FIXES
   ============================================ */

@media (max-width: 768px) {
    /* Map section */
    .map-container iframe {
        height: 320px;
    }

    .map-addresses {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .map-address-card {
        padding: 1.75rem;
    }

    /* Social links in export inquiry section */
    .export-inquiry-btns {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* Form grid mobile */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .form-group.full-width {
        grid-column: 1;
    }

    .contact-form {
        border: none;
        padding: 1.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-info {
        padding: 1.75rem 1.25rem;
    }

    .info-item {
        gap: 1rem;
    }

    .info-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }
}


/* ============================================
   TABLET SPECIFIC (768px – 1024px)
   Fills gaps between mobile and desktop
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
    /* Hero on tablet */
    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }

    /* Products grid tablet */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 2rem;
    }

    /* Features grid tablet */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 2rem;
    }

    /* Countries grid tablet */
    .countries-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 0 2rem;
    }

    /* Cert grid tablet */
    .cert-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
        padding: 0 2rem;
    }

    /* Stats grid tablet */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 2rem;
    }

    /* Contact grid tablet */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Manufacturing visual tablet */
    .manufacturing-visual {
        height: 380px;
    }

    /* About overview tablet */
    .about-overview-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-overview-visual {
        height: 350px;
    }

    /* Product detail tablet */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 680px;
        margin: 0 auto;
    }

    .product-detail-image {
        height: 340px;
    }

    /* Legacy grid tablet */
    .legacy-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Leadership tablet */
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }

    /* Map addresses tablet */
    .map-addresses {
        grid-template-columns: 1fr 1fr;
    }

    /* Infrastructure tablet */
    .infrastructure-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}


/* ============================================
   PRODUCTS PAGE — HOME PAGE 7-CARD GRID FIX
   Desktop: center the last (7th) card
   ============================================ */

/* For exactly 7 product cards on homepage */
@media (min-width: 1025px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Last item in a 7-card grid — place in center column */
    .products-grid .product-card:last-child:nth-child(3n + 1) {
        grid-column: 2 / 3;
    }
}


/* ============================================
   NAVBAR — PREVENT CONTENT JUMP
   Ensure all content starts below navbar
   ============================================ */

/* All non-hero page sections that are first */
.about:first-of-type,
section:first-of-type:not(.hero):not(.page-hero) {
    scroll-margin-top: 80px;
}

/* Scroll margin for anchor links */
[id] {
    scroll-margin-top: 90px;
}


/* ============================================
   SMOOTH TOUCH INTERACTIONS — MOBILE
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices to prevent sticky states */
    .product-card:hover,
    .stat-card:hover,
    .feature-card:hover,
    .country-card:hover,
    .cert-card:hover,
    .leader-card:hover,
    .legacy-card:hover,
    .infra-card:hover {
        transform: none;
        box-shadow: none;
    }

    /* Re-enable tap feedback instead */
    .product-card:active,
    .stat-card:active,
    .feature-card:active,
    .country-card:active,
    .cert-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .btn:hover {
        transform: none;
        box-shadow: none;
    }

    .btn:active {
        transform: scale(0.97);
    }
}


/* ============================================
   FINAL VISUAL POLISH
   ============================================ */

/* Ensure images never overflow their containers */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Form elements — prevent zoom on iOS (font-size min 16px) */
@media (max-width: 768px) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* prevents iOS auto-zoom */
    }
}

/* Prevent text overflow on all devices */
.hero h1,
.page-hero h1,
.section-title,
.hero-badge {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Fix Safari -webkit-fill-color issue on light backgrounds */
@supports (-webkit-touch-callout: none) {
    .stat-number {
        -webkit-text-fill-color: transparent;
    }
}
/* ============================================
   MOBILE FIX — OUR PHARMACEUTICAL PRODUCT RANGE
   Home Page Only — Mobile Screens Only
   Desktop layout untouched
   ============================================ */

/* ── Small phones: 0 – 480px ── */
@media (max-width: 480px) {

    /* Section padding */
    .products {
        padding: 56px 0 64px;
    }

    /* Section header block */
    .products .section-header {
        padding: 0 1.25rem;
        margin-bottom: 36px;
        text-align: center;
    }

    .products .section-badge {
        display: inline-flex;
        justify-content: center;
        font-size: 0.75rem;
        letter-spacing: 1.5px;
        padding: 7px 16px;
        margin-bottom: 0.875rem;
    }

    .products .section-title {
        font-size: 1.65rem;
        line-height: 1.25;
        letter-spacing: -0.4px;
        margin-bottom: 0.875rem;
        text-align: center;
        padding: 0;
    }

    .products .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.75;
        text-align: center;
        padding: 0;
        max-width: 100%;
        margin: 0 auto;
    }

    /* Grid — single column, full width */
    .products-grid {
        display: flex;
        flex-direction: column;
        gap: 1.125rem;
        padding: 0 1.25rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Each card — full width, consistent */
    .products-grid .product-card {
        width: 100%;
        max-width: 100%;
        border-radius: 14px;
        box-shadow: 0 2px 16px rgba(10, 95, 95, 0.07);
        border: 1px solid rgba(10, 95, 95, 0.09);
        display: flex;
        flex-direction: column;
    }

    /* Card image */
    .products-grid .product-card .product-image {
        height: 168px;
        border-radius: 14px 14px 0 0;
        flex-shrink: 0;
    }

    /* Card icon inside image */
    .products-grid .product-card .product-icon {
        font-size: 3.75rem;
    }

    /* Card content */
    .products-grid .product-card .product-content {
        padding: 1.375rem 1.375rem 1.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* Card heading */
    .products-grid .product-card h3 {
        font-size: 1.125rem;
        line-height: 1.35;
        margin-bottom: 0.625rem;
        text-align: left;
    }

    /* Card paragraph */
    .products-grid .product-card p {
        font-size: 0.875rem;
        line-height: 1.7;
        margin-bottom: 1.125rem;
        flex: 1;
        text-align: left;
    }

    /* Card link */
    .products-grid .product-card .product-link {
        font-size: 0.875rem;
        margin-top: auto;
        align-self: flex-start;
    }
}


/* ── Medium phones: 481px – 640px ── */
@media (min-width: 481px) and (max-width: 640px) {

    .products {
        padding: 60px 0 68px;
    }

    .products .section-header {
        padding: 0 1.5rem;
        margin-bottom: 40px;
        text-align: center;
    }

    .products .section-badge {
        font-size: 0.78rem;
        letter-spacing: 1.5px;
        padding: 7px 18px;
        margin-bottom: 0.875rem;
    }

    .products .section-title {
        font-size: 1.85rem;
        line-height: 1.25;
        letter-spacing: -0.4px;
        margin-bottom: 0.875rem;
        text-align: center;
    }

    .products .section-subtitle {
        font-size: 0.9375rem;
        line-height: 1.75;
        text-align: center;
        max-width: 100%;
        padding: 0;
    }

    /* Grid — single column */
    .products-grid {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        padding: 0 1.5rem;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .products-grid .product-card {
        width: 100%;
        border-radius: 14px;
        box-shadow: 0 2px 16px rgba(10, 95, 95, 0.07);
    }

    .products-grid .product-card .product-image {
        height: 185px;
    }

    .products-grid .product-card .product-icon {
        font-size: 4rem;
    }

    .products-grid .product-card .product-content {
        padding: 1.5rem 1.5rem 1.625rem;
    }

    .products-grid .product-card h3 {
        font-size: 1.175rem;
        margin-bottom: 0.625rem;
    }

    .products-grid .product-card p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 1.125rem;
    }

    .products-grid .product-card .product-link {
        font-size: 0.9rem;
    }
}


/* ── Large phones / small tablets: 641px – 768px ── */
@media (min-width: 641px) and (max-width: 768px) {

    .products {
        padding: 64px 0 72px;
    }

    .products .section-header {
        padding: 0 2rem;
        margin-bottom: 44px;
        text-align: center;
    }

    .products .section-badge {
        font-size: 0.8rem;
        letter-spacing: 1.75px;
        margin-bottom: 1rem;
    }

    .products .section-title {
        font-size: 2rem;
        letter-spacing: -0.5px;
        margin-bottom: 0.875rem;
        text-align: center;
    }

    .products .section-subtitle {
        font-size: 0.9375rem;
        line-height: 1.8;
        text-align: center;
        max-width: 560px;
        margin: 0 auto;
        padding: 0;
    }

    /* Grid — 2 columns */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 0 2rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    /* Last card (7th) — center it in 2-col grid */
    .products-grid .product-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: calc(50% - 0.625rem);
        margin: 0 auto;
        width: 100%;
    }

    .products-grid .product-card {
        border-radius: 14px;
        box-shadow: 0 2px 16px rgba(10, 95, 95, 0.07);
    }

    .products-grid .product-card .product-image {
        height: 170px;
    }

    .products-grid .product-card .product-icon {
        font-size: 3.5rem;
    }

    .products-grid .product-card .product-content {
        padding: 1.375rem 1.375rem 1.5rem;
    }

    .products-grid .product-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.625rem;
    }

    .products-grid .product-card p {
        font-size: 0.875rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .products-grid .product-card .product-link {
        font-size: 0.875rem;
    }
}
/* ============================================
   FEATURE 3: NAVBAR LOGO IMAGE
   ============================================ */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .nav-logo {
        height: 32px;
    }
}

@media (max-width: 375px) {
    .nav-logo {
        height: 28px;
    }
    .brand {
        gap: 7px;
    }
}


/* ============================================
   FEATURE 4: COUNTRY FLAG FIX — DESKTOP
   Emoji flags not rendering on Windows/Desktop
   Replace emoji with Font Awesome + country text
   ============================================ */

/*
 * Strategy: Keep emoji flags visible on mobile (they render fine).
 * On desktop where emoji flags often fail (Windows Chrome/Firefox),
 * we use a reliable flag icon approach via CSS pseudo content.
 * The .country-flag span gets a data-country attribute for targeting.
 */

/* Base flag style — works for mobile emoji */
.country-flag {
    font-size: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    height: 60px;
    line-height: 1;
}

/* Desktop override — use styled icon boxes instead of emoji */
@media (min-width: 769px) {

    /* Hide emoji text on desktop, show styled flag box */
    .country-flag {
        font-size: 0; /* hide emoji */
        height: 68px;
        width: 68px;
        margin: 0 auto 1.25rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    /* Flag icon using Font Awesome globe as fallback base */
    .country-flag::before {
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        content: '\f57d'; /* fa-globe-asia */
        font-size: 2rem;
        color: var(--accent);
        display: block;
    }

    /* Individual country overrides using data attributes */
    /* Nepal */
    .country-card:nth-child(1) .country-flag::before {
        content: 'NP';
        font-family: 'Inter', sans-serif;
        font-size: 1.125rem;
        font-weight: 700;
        color: rgba(255,255,255,0.9);
        letter-spacing: 1px;
    }
    .country-card:nth-child(1) .country-flag {
        background: linear-gradient(135deg, #003893 50%, #DC143C 50%);
    }

    /* UAE */
    .country-card:nth-child(2) .country-flag::before {
        content: 'UAE';
        font-family: 'Inter', sans-serif;
        font-size: 0.875rem;
        font-weight: 700;
        color: rgba(255,255,255,0.95);
        letter-spacing: 1px;
    }
    .country-card:nth-child(2) .country-flag {
        background: linear-gradient(180deg, #00732F 33%, #FFFFFF 33%, #FFFFFF 66%, #FF0000 66%);
    }

    /* Russia */
    .country-card:nth-child(3) .country-flag::before {
        content: 'RU';
        font-family: 'Inter', sans-serif;
        font-size: 1.125rem;
        font-weight: 700;
        color: rgba(255,255,255,0.9);
        letter-spacing: 1px;
    }
    .country-card:nth-child(3) .country-flag {
        background: linear-gradient(180deg, #FFFFFF 33%, #0036A3 33%, #0036A3 66%, #D52B1E 66%);
    }

    /* Bangladesh */
    .country-card:nth-child(4) .country-flag::before {
        content: 'BD';
        font-family: 'Inter', sans-serif;
        font-size: 1.125rem;
        font-weight: 700;
        color: rgba(255,255,255,0.9);
        letter-spacing: 1px;
    }
    .country-card:nth-child(4) .country-flag {
        background: linear-gradient(135deg, #006A4E 60%, #F42A41 60%);
    }

    /* Mauritius */
    .country-card:nth-child(5) .country-flag::before {
        content: 'MU';
        font-family: 'Inter', sans-serif;
        font-size: 1.125rem;
        font-weight: 700;
        color: rgba(255,255,255,0.9);
        letter-spacing: 1px;
    }
    .country-card:nth-child(5) .country-flag {
        background: linear-gradient(180deg,
            #EA2839 25%,
            #1A206D 25%, #1A206D 50%,
            #F6B511 50%, #F6B511 75%,
            #00A551 75%);
    }

    /* Country card hover — flag box effect */
    .country-card:hover .country-flag {
        border-color: var(--accent);
        box-shadow: 0 4px 16px rgba(0,0,0,0.3);
        transform: scale(1.05);
        transition: all 0.3s ease;
    }

    .country-flag {
        transition: all 0.3s ease;
    }

    /* Country name sizing adjustment for desktop */
    .country-name {
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.3px;
    }

    /* Country card padding adjustment */
    .country-card {
        padding: 2.25rem 1.25rem;
    }
}

/* Manufacturing page export section — same fix */
/* Targets export countries on manufacturing.html too */
@media (min-width: 769px) {
    /* Extra country paragraph on manufacturing page */
    .country-card > p {
        font-size: 0.8125rem;
        color: rgba(255,255,255,0.55);
        margin-top: 0.5rem;
    }
}