/* --- CSS VARIABLES & RESET --- */
:root {
    --primary: #0066cc;
    /* Tech Blue - Digital Innovation */
    --primary-dark: #004c99;
    --accent: #10b981;
    /* Growth Green - Success & Innovation */
    --green: #10b981;
    /* Growth Green - Success & Innovation */
    --green-dark: #059669;
    --accent-glow: rgba(16, 185, 129, 0.4);
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    /* Translucent White */
    --glass-border: rgba(255, 255, 255, 0.4);
    --container-width: 1200px;

    /* Fluid Shadows & Gradients */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 5px 20px var(--accent-glow);
    --gradient-pop: linear-gradient(135deg, #0066cc 0%, #10b981 100%);
    --gradient-green: linear-gradient(135deg, var(--green) 0%, #34d399 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    /* Soft gradient background to support glassmorphism */
    background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    background-attachment: fixed;
    /* Parallax feel */
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- UTILITY CLASSES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Panel Class */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    letter-spacing: 0.5px;
}

/* Fluid Hover Animation */
.btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn-primary {
    background: var(--gradient-pop);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 30px;
}

.mb-4 {
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 15px;
    background: -webkit-linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Gradient Text */
}

.section-subtitle {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    text-shadow: 0 0 10px var(--accent-glow);
}

/* --- HEADER & NAV (Glass Sticky) --- */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    /* Taller for fluid feel */
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo i {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

/* Fluid underline animation */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.portal-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    padding: 10px 25px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
}

.portal-btn i {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    /* More fluid gradient */
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.95) 0%, rgba(0, 196, 204, 0.85) 100%), url('https://picsum.photos/seed/eyecarehero/1920/1080.jpg') no-repeat center center/cover;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 750px;
    animation: fadeUp 1s ease-out;
}

.hero h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.trust-badges {
    margin-top: 50px;
    display: flex;
    gap: 30px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- SERVICES SECTION (Glass Cards) --- */
.services {
    background-color: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    /* FIXED: Removed @extend and replaced with inline properties */
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    /* End Fix */
    padding: 50px 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 196, 204, 0.1), rgba(0, 86, 179, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--accent);
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.7;
}

.service-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* --- FEATURES / ABOUT --- */
.features {
    display: flex;
    align-items: center;
    gap: 60px;
}

.features-img {
    flex: 1;
    position: relative;
}

.features-img img {
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 5px solid var(--white);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--gradient-pop);
    color: var(--white);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.3);
}

.experience-badge strong {
    display: block;
    font-size: 3rem;
    line-height: 1;
}

.features-content {
    flex: 1;
}

.feature-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-list i {
    color: var(--accent);
    margin-top: 5px;
    font-size: 1.2rem;
}

/* --- BLOG SECTION --- */
.blog {
    background-color: transparent;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    /* FIXED TYPO: Removed extra parenthesis */
    gap: 30px;
}

.blog-card {
    /* FIXED: Removed @extend */
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    /* End Fix */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    background: #fff;
    /* Solid white base for image contrast */
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-thumb {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}

.blog-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

/* --- NEWSLETTER --- */
.newsletter {
    background: var(--gradient-pop);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Decorative circles for "Pop" */
.newsletter::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.newsletter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.newsletter-text {
    flex: 1;
    min-width: 300px;
}

.newsletter-text h2 {
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.newsletter-form {
    flex: 1.5;
    min-width: 300px;
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 60px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 25px;
    color: var(--white);
    outline: none;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
}

.newsletter-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* --- CONTACT / APPOINTMENT --- */
.appointment {
    background-color: transparent;
}

.appointment-box {
    /* FIXED: Removed @extend */
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    /* End Fix */
    display: flex;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.app-info {
    flex: 1;
    background: var(--gradient-pop);
    color: var(--white);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Texture overlay */
.app-info::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.app-info h3 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: #10b981;
    /* Changed from var(--accent) to green */
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.app-form-wrapper {
    flex: 1.8;
    padding: 60px;
    background: rgba(255, 255, 255, 0.9);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 5px rgba(0, 196, 204, 0.1);
}

/* --- FOOTER --- */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 80px 0 40px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #cbd5e1;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .features {
        flex-direction: column;
    }

    .appointment-box {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .header-actions {
        display: none;
    }

    .mobile-toggle {
        display: block;
        color: var(--primary);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .newsletter-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
    }
}

/* --- MOBILE FIXES (Android/iOS Portrait Mode) --- */
@media (max-width: 480px) {

    /* 1. Reduce Container Padding (Fixes text being hidden at edges) */
    .container {
        padding: 0 15px;
        /* Less space on sides so text fits better */
    }

    /* 2. Fix Hero Section (Text Hiding) */
    .hero {
        height: auto;
        min-height: 70vh;
        /* Shorter height so bottom isn't cut off */
        padding: 50px 0;
        /* Add vertical space */
    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem !important;
        /* Force smaller font */
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1rem !important;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        /* Stack buttons vertically */
        gap: 10px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 12px 10px;
        /* Smaller button padding */
    }

    /* 3. Fix Services Section ("Halfway" and Letter "e" clipping) */
    .section-padding {
        padding: 50px 0;
        /* Less vertical padding */
    }

    .section-title {
        font-size: 1.8rem !important;
        /* Make title smaller */
        margin-bottom: 10px;
        /* Fix letter clipping by allowing wrap */
        word-wrap: break-word;
        white-space: normal;
    }

    .section-subtitle {
        font-size: 0.7rem !important;
        letter-spacing: 1px;
    }

    /* Force services to be 1 column (Fixes "halfway" look) */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px !important;
        /* Reduce inner padding */
    }

    .service-card h3 {
        font-size: 1.1rem !important;
        /* Smaller title */
        word-wrap: break-word;
        /* Fix letter clipping */
    }

    /* 4. Fix Appointment & Contact Box */
    .appointment-box {
        flex-direction: column !important;
    }

    .app-info,
    .app-form-wrapper {
        padding: 30px 20px !important;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    /* 5. Fix Trust Badges in Hero */
    .trust-badges {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        font-size: 0.8rem;
    }
}

/* --- TINY MOBILE / ZOOM FIX (Android Small Screens) --- */
@media (max-width: 360px) {

    /* 1. Fix Service Cards (Circle Icon Clipping) */
    .service-card {
        overflow: visible !important;
        /* Allow content to show fully */
        padding: 25px 15px !important;
        /* Tighter fit */
    }

    /* Shrink Service Icon Circle */
    .service-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
    }

    /* 2. Fix Header Icons (Logo & Portal Lock) */
    .logo {
        font-size: 1.2rem !important;
    }

    .logo i {
        font-size: 1.2rem !important;
    }

    .portal-btn {
        padding: 6px 15px !important;
        /* Make button smaller to fit icon */
        font-size: 0.75rem !important;
    }

    .portal-btn i {
        font-size: 0.8rem !important;
    }

    /* Shrink lock icon */

    /* 3. Fix Hero Trust Badges Icons */
    .trust-badges {
        font-size: 0.75rem !important;
        gap: 10px;
    }

    .trust-badges span {
        white-space: nowrap;
        /* Keep icon and text together */
        padding: 8px 15px !important;
    }

    .trust-badges i {
        font-size: 0.9rem !important;
    }

    /* 4. Fix Contact Section Icons (Phone, Email, Map) */
    .info-item {
        font-size: 0.9rem !important;
        gap: 10px;
    }

    .info-item i {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }

    /* 5. Global Button Icon Shrink */
    .btn i,
    .service-link i {
        font-size: 0.8rem !important;
    }

    /* 6. Fix Headings (Comprehensive text) */
    h1,
    h2,
    h3 {
        word-break: break-word;
        /* Break word at end of screen */
    }
}


/* --- INFINIX / ANDROID EMERGENCY FIX (Off-Screen Content) --- */
@media (max-width: 600px) {

    /* 1. FIX MAIN CONTAINER: Stop horizontal scrolling */
    .container {
        width: 100% !important;
        padding: 0 10px !important;
        /* Very tight padding */
        max-width: none !important;
    }

    /* 2. FORCE SINGLE COLUMN: This stops the "Off Screen" issue */
    .services-grid,
    .blog-grid,
    .footer-grid,
    .newsletter-wrapper,
    .form-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 20px !important;
    }

    /* 3. FIX HERO SECTION (Slider/Text) */
    .hero {
        min-height: 60vh !important;
        height: auto !important;
        padding: 40px 0 !important;
        display: block !important;
        /* Remove flex centering issues */
    }

    .hero-content {
        width: 100% !important;
        text-align: center !important;
    }

    .hero h1 {
        font-size: 1.8rem !important;
        /* Force small text */
        line-height: 1.3;
        word-break: break-word !important;
        /* Prevent text overflow */
    }

    .hero p {
        font-size: 0.95rem !important;
        margin-bottom: 20px !important;
    }

    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .hero-buttons .btn {
        width: 100% !important;
        padding: 12px 0 !important;
        /* Remove side padding */
        font-size: 1rem !important;
    }

    /* 4. FIX SERVICE CARDS (Stop cutting off) */
    .service-card {
        width: 100% !important;
        padding: 20px 15px !important;
        /* Tight fit */
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .service-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }

    .service-card h3 {
        font-size: 1.1rem !important;
        word-wrap: break-word !important;
    }

    /* 5. FIX NAVIGATION (Ensure Menu isn't pushing content) */
    nav {
        flex-direction: column !important;
        height: auto !important;
        padding: 15px !important;
    }

    .nav-links {
        display: none !important;
        /* Hide menu initially */
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: white !important;
        padding: 20px !important;
        z-index: 999 !important;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1) !important;
    }

    .nav-links.active {
        display: flex !important;
        flex-direction: column !important;
    }

    /* 6. FIX APPOINTMENT BOX */
    .appointment-box {
        display: flex !important;
        flex-direction: column !important;
    }

    .app-info,
    .app-form-wrapper {
        width: 100% !important;
        padding: 30px 15px !important;
    }

    /* 7. GENERAL TYPOGRAPHY FIX */
    h1,
    h2,
    h3 {
        max-width: 100% !important;
        word-wrap: break-word !important;
        white-space: normal !important;
    }
}

/* --- DRAMATIC SMALL SCREEN FIX (For Infinix 11 Play etc) --- */
@media (max-width: 420px) {

    /* 1. FIX CONTAINER & PADDING (Stop Hiding) */
    .container {
        width: 100% !important;
        max-width: none !important;
        /* Use full screen width */
        padding: 0 12px !important;
        /* Very tight padding */
    }

    /* 2. FORCE WORD WRAPPING (Fixes "Ophthalmology" hiding) */
    h1,
    h2,
    h3,
    .section-title,
    .service-card h3,
    .blog-content h3 {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        /* Forces long words to break */
        hyphens: auto !important;
        max-width: 100% !important;
        white-space: normal !important;
    }

    /* 3. DRASTICALLY REDUCE FONT SIZES */
    .section-title {
        font-size: 1.6rem !important;
        /* Much smaller title */
        line-height: 1.2;
    }

    .hero h1 {
        font-size: 1.8rem !important;
        /* Smaller Hero Text */
    }

    .service-card h3 {
        font-size: 1.1rem !important;
        /* Smaller Service Titles */
    }

    .service-card p,
    .blog-content p {
        font-size: 0.9rem !important;
        /* Smaller body text */
    }

    /* 4. FIX SERVICE CARDS (Off Screen) */
    .services-grid {
        display: flex !important;
        /* Force flex instead of grid */
        flex-direction: column !important;
        /* Stack vertically */
        width: 100% !important;
        gap: 15px !important;
    }

    .service-card {
        width: 100% !important;
        padding: 20px 10px !important;
        /* Tighter padding inside cards */
        box-sizing: border-box !important;
        /* Ensure padding doesn't add to width */
    }

    /* 5. FIX HERO SECTION */
    .hero {
        height: auto !important;
        padding: 30px 0 !important;
        /* Reduce vertical space */
        display: block !important;
    }

    .hero-content {
        width: 100% !important;
        text-align: center !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
    }

    .hero-buttons .btn {
        width: 100% !important;
        padding: 10px 5px !important;
        font-size: 0.9rem !important;
    }

    /* 6. FIX HEADER/NAV (To ensure it fits) */
    nav {
        flex-direction: column !important;
        height: auto !important;
        padding: 10px 0 !important;
    }

    .logo {
        font-size: 1.3rem !important;
        margin-bottom: 10px !important;
    }

    /* 7. GENERAL BUTTONS & ICONS */
    .portal-btn {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }

    .service-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }
}

/* --- NEWSLETTER STACKED FIX (Vertical Layout) --- */
@media (max-width: 420px) {

    .newsletter-form {
        display: flex !important;
        flex-direction: column !important;
        /* Stack Input over Button */
        width: 100% !important;
        padding: 15px !important;
        border-radius: 20px !important;
        /* Standard box radius */
        gap: 10px !important;
    }

    .newsletter-form input {
        width: 100% !important;
        padding: 12px !important;
        text-align: center !important;
        /* Center placeholder text */
    }

    .newsletter-form button {
        width: 100% !important;
        /* Button takes full width */
        padding: 12px !important;
        font-size: 1rem !important;
        /* Nice big tappable button */
    }
}

/* Target the image inside the logo link */
.logo img {
    height: 60px;
    /* Adjust this number to fit your header height */
    width: auto;
    /* This keeps the logo from looking stretched */
    object-fit: contain;
    display: block;
    /* Removes extra space below the image */
}