/* =============================================
   Sigmapathlab - Professional Pathology Lab
   ============================================= */

:root {
    --primary: #0066b3;
    --primary-dark: #004d86;
    --primary-light: #e6f2fa;
    --secondary: #00a878;
    --secondary-dark: #008761;
    --accent: #ff6b35;
    --dark: #1a1a2e;
    --gray-900: #212529;
    --gray-700: #495057;
    --gray-500: #6c757d;
    --gray-300: #dee2e6;
    --gray-100: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--dark);
    line-height: 1.3;
}

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

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

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

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 179, 0.3);
}

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

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

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

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

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

.btn-block {
    width: 100%;
}

/* =============================================
   Navigation
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    color: var(--white);
}

.navbar.scrolled .logo {
    color: var(--dark);
}

.logo i {
    font-size: 28px;
    color: var(--secondary);
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 4px;
}

.logo span {
    font-weight: 300;
}

.logo strong {
    font-weight: 700;
}

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

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--gray-700);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn {
    padding: 10px 20px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--dark);
}

/* Bottom Navigation - Hidden on desktop */
.bottom-nav {
    display: none;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 77, 134, 0.92) 0%, rgba(0, 102, 179, 0.85) 50%, rgba(0, 168, 120, 0.75) 100%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    color: var(--white);
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(40px, 5vw, 56px);
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
}

/* Typewriter Animation */
.typewriter {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    display: inline-block;
}

.typewriter::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Hero button styles - ensure visibility on dark background */
.hero-btns .btn-primary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    font-weight: 600;
}

.hero-btns .btn-primary:hover {
    background: var(--gray-100);
    border-color: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.hero-btns .btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* =============================================
   Features Strip
   ============================================= */
.features-strip {
    background: var(--white);
    padding: 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.features-strip .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 24px;
    border-right: 1px solid var(--gray-300);
}

.feature-item:last-child {
    border-right: none;
}

.feature-item i {
    font-size: 32px;
    color: var(--primary);
}

.feature-item strong {
    display: block;
    font-size: 15px;
    color: var(--dark);
    margin-bottom: 4px;
}

.feature-item span {
    font-size: 13px;
    color: var(--gray-500);
}

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

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--gray-500);
}

/* =============================================
   Services Section
   ============================================= */
.services {
    padding: 100px 0;
    background: var(--gray-100);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

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

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

.service-card h3 {
    font-size: 20px;
    padding: 24px 24px 12px;
}

.service-card > p {
    font-size: 14px;
    color: var(--gray-500);
    padding: 0 24px;
    line-height: 1.7;
}

.service-list {
    list-style: none;
    padding: 16px 24px 24px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list i {
    color: var(--secondary);
    font-size: 12px;
}

/* =============================================
   Tests Section
   ============================================= */
.tests-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--primary-light) 100%);
}

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

.test-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.test-card.featured {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.test-card.featured h3 {
    color: var(--white);
}

.test-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
}

.test-card h3 {
    font-size: 22px;
    margin: 16px 0;
}

.test-includes {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.test-card.featured .test-includes {
    border-color: rgba(255, 255, 255, 0.2);
}

.test-includes span {
    font-size: 14px;
    font-weight: 600;
}

.test-includes i {
    color: var(--secondary);
}

.test-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.test-card ul li {
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.test-card.featured ul li {
    border-color: rgba(255, 255, 255, 0.2);
}

.test-card ul li::before {
    content: '✓';
    margin-right: 10px;
    color: var(--secondary);
    font-weight: bold;
}

.test-card.featured .btn-primary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* =============================================
   About Section
   ============================================= */
.about {
    padding: 100px 0;
}

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

.about-images {
    position: relative;
    height: 500px;
}

.about-img-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.about-img-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--white);
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-content > p {
    color: var(--gray-500);
    margin-bottom: 32px;
}

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

.about-feature {
    display: flex;
    gap: 20px;
}

.about-feature i {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 24px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.about-feature h4 {
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 6px;
}

.about-feature p {
    font-size: 14px;
    color: var(--gray-500);
}

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

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

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

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

/* =============================================
   Contact Section
   ============================================= */
.contact {
    padding: 100px 0;
    background: var(--gray-100);
}

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

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--gray-500);
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

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

.contact-item h4 {
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

.contact-item p a {
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

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

.social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: var(--white);
}

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

.form-group textarea {
    resize: vertical;
}

/* Error messages */
.error-msg {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

.input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.form-note {
    font-size: 12px;
    color: var(--gray-500);
    text-align: center;
    margin-top: 16px;
}

/* Quick Access Boxes */
.quick-access-box {
    text-align: center;
    padding: 24px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.quick-access-box:last-child {
    margin-bottom: 0;
}

.quick-access-box i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 16px;
}

.quick-access-box h4 {
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 8px;
    color: var(--dark);
}

.quick-access-box p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

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

.footer-links h4 {
    color: var(--white);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 14px;
}

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

.footer-bottom-links a {
    font-size: 14px;
    opacity: 0.7;
}

.footer-bottom-links a:hover {
    opacity: 1;
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        display: none;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

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

    .test-card.featured {
        transform: scale(1);
    }

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

    .about-images {
        height: 400px;
    }

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

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

@media (max-width: 768px) {
    /* Hide desktop nav elements on mobile */
    .nav-links {
        display: none;
    }

    .nav-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: none;
    }

    .menu-overlay {
        display: none;
    }

    /* Bottom Navigation Bar */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
        z-index: 9999;
        padding: 4px 0;
        padding-bottom: calc(4px + env(safe-area-inset-bottom));
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 5px 2px;
        color: var(--gray-500);
        text-decoration: none;
        transition: var(--transition);
        position: relative;
    }

    .bottom-nav-item i {
        font-size: 18px;
        transition: var(--transition);
    }

    .bottom-nav-item span {
        font-size: 10px;
        font-weight: 500;
    }

    .bottom-nav-item.active {
        color: var(--primary);
    }

    .bottom-nav-item.active i {
        transform: scale(1.05);
    }

    /* Add padding to body for bottom nav */
    body {
        padding-bottom: 52px;
    }

    /* Hide desktop-only elements on mobile */
    .desktop-only,
    .whatsapp-chat-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }

    /* WhatsApp nav item styling */
    .bottom-nav-item.whatsapp-nav {
        color: #25D366;
    }

    .bottom-nav-item.whatsapp-nav i {
        font-size: 20px;
    }

    .bottom-nav-item.whatsapp-nav span {
        color: #25D366;
    }

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

    .feature-item {
        border-bottom: 1px solid var(--gray-300);
    }

    .feature-item:nth-child(2) {
        border-right: none;
    }

    .feature-item:nth-child(3),
    .feature-item:nth-child(4) {
        border-bottom: none;
    }

    .services-grid,
    .tests-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2,
    .about-content h2,
    .contact-info h2,
    .cta-content h2 {
        font-size: 28px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .stat {
        text-align: center;
    }

    .about-images {
        height: 350px;
    }

    .about-img-1 {
        width: 80%;
    }

    .about-img-2 {
        width: 60%;
    }

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

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .features-strip .container {
        grid-template-columns: 1fr;
    }

    .feature-item {
        border-right: none;
        border-bottom: 1px solid var(--gray-300);
    }

    .feature-item:last-child {
        border-bottom: none;
    }

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

    .hero-btns .btn {
        width: 100%;
    }

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

/* =============================================
   Latest Updates Section - Social Cards
   ============================================= */
.updates-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.updates-section .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.updates-section .section-header h2 {
    color: var(--gray-900);
    margin-bottom: 16px;
}

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

.social-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.social-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.social-card-icon {
    padding: 32px 24px 24px;
    display: flex;
    justify-content: center;
}

.social-card-icon i {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 32px;
    color: var(--white);
}

.facebook-card .social-card-icon i {
    background: linear-gradient(135deg, #1877F2 0%, #166FE5 100%);
}

.instagram-card .social-card-icon i {
    background: linear-gradient(45deg, #F09433, #E6683C, #DC2743, #CC2366, #BC1888);
}

.whatsapp-card .social-card-icon i {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.social-card-content {
    padding: 0 24px 24px;
    text-align: center;
    flex-grow: 1;
}

.social-card-content h3 {
    font-size: 20px;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.social-card-content .social-handle {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.social-card-content .social-desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

.social-card-action {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    text-align: center;
}

.social-card-action .follow-text {
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.facebook-card .follow-text {
    color: #1877F2;
}

.instagram-card .follow-text {
    color: #E1306C;
}

.whatsapp-card .follow-text {
    color: #25D366;
}

.social-card:hover .follow-text {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .social-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-card:last-child {
        grid-column: span 2;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .updates-section {
        padding: 60px 0;
    }

    .social-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .social-card:last-child {
        grid-column: span 1;
        max-width: none;
    }

    .social-card-icon {
        padding: 24px 20px 16px;
    }

    .social-card-icon i {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .social-card-content {
        padding: 0 20px 20px;
    }

    .social-card-content h3 {
        font-size: 18px;
    }
}

/* =============================================
   Scroll to Top Button
   ============================================= */
.scroll-top-btn {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

/* =============================================
   WhatsApp Chat Button
   ============================================= */
.whatsapp-chat-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: var(--white) !important;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    z-index: 99999;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    visibility: visible !important;
    opacity: 1 !important;
}

.whatsapp-chat-btn i {
    font-size: 22px;
}

.whatsapp-chat-btn:hover {
    background: #128C7E;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: var(--white);
}

.whatsapp-chat-btn span {
    display: inline;
}

@media (max-width: 768px) {
    .scroll-top-btn {
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .whatsapp-chat-btn {
        right: 15px;
        bottom: 15px;
        padding: 14px;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        justify-content: center;
    }

    .whatsapp-chat-btn span {
        display: none;
    }

    .whatsapp-chat-btn i {
        font-size: 28px;
        margin: 0;
    }
}
