/* 
 * Nokhba Pump - Unified Design System & Styling (نظام التنسيق الموحد - شركة النخبة)
 * Domain: nokhbapump.com
 * Theme: Premium Kuwaiti Plumbing & Water Pump Services
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Tajawal:wght@400;500;700;900&family=Inter:wght@400;500;600;700&display=swap');
@import url('design-tokens.css');

/* ============================================================
   ACCESSIBILITY & UX UTILITIES (UI/UX Pro Max)
   ============================================================ */

/* Focus visible - keyboard navigation WCAG 2.1 AA */
*:focus { outline: none; }
*:focus-visible {
    outline: 3px solid #1D4ED8;
    outline-offset: 2px;
    border-radius: 4px;
    transition: outline-offset 0.15s ease;
}
button:focus-visible, a:focus-visible, [role="button"]:focus-visible {
    outline: 3px solid #1D4ED8;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.15);
}

/* Touch targets - minimum 44x44px (WCAG 2.1 Level AAA) */
button, a.btn, [role="button"], input[type="submit"], input[type="button"] {
    min-height: 44px;
    cursor: pointer;
}
.mobile-sticky-bar a, .floating-btn { min-width: 44px; min-height: 44px; }

/* Reduced motion - respect user preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Screen reader only - for a11y labels */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    right: 0;
    background: #1D4ED8;
    color: #FFFFFF;
    padding: 8px 16px;
    z-index: 9999;
    font-weight: 700;
    border-radius: 0 0 8px 0;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Touch feedback (mobile) */
@media (hover: none) and (pointer: coarse) {
    .btn:active, button:active { transform: scale(0.97); opacity: 0.9; }
}

/* Trust Bar - إحصائيات سريعة فوق الهيرو */
.trust-bar {
    background: linear-gradient(135deg, #0B3A66, #1677B8);
    color: #FFFFFF;
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    font-size: 0.92rem;
}
.trust-item { display: inline-flex; align-items: center; gap: 8px; }
.trust-item i { color: var(--accent-whatsapp, #25D366); font-size: 1.1rem; }
.trust-item strong { color: #FFD700; font-weight: 800; margin: 0 3px; }
@media (max-width: 600px) {
    .trust-bar { font-size: 0.82rem; padding: 10px 12px; gap: 8px; }
    .trust-item { gap: 5px; }
}

/* Touch device active state for cards */
.service-card:active, .area-chip:active, .contact-card-link:active {
    transform: scale(0.98);
}

:root {
    /* Color Palette */
    --primary-dark: #0B3A66;
    --primary-blue: #1677B8;
    --light-blue: #EAF4FA;
    --dark-text: #10212F;
    --muted-text: #5A6E7F;
    --white: #FFFFFF;
    --accent-whatsapp: #25D366;
    --accent-whatsapp-hover: #1EBE5B;
    --accent-call: #D9534F;
    --accent-call-hover: #C9302C;
    --gold-accent: #F39C12;
    --card-bg: #FFFFFF;
    --border-color: #E2E8F0;
    
    /* Layout & Shadows */
    --shadow-sm: 0 2px 8px rgba(11, 58, 102, 0.06);
    --shadow-md: 0 4px 20px rgba(11, 58, 102, 0.1);
    --shadow-lg: 0 10px 30px rgba(11, 58, 102, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    
    /* Typography */
    --font-primary: 'Cairo', 'Tajawal', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    direction: rtl;
    text-align: right;
}

body, button, input, select, textarea {
    font-family: var(--font-primary) !important;
}

body {
    background-color: #F8FAFC;
    color: var(--dark-text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

button, input, select, textarea {
    font-family: inherit;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header & Navigation */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-link {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.contact-link:hover {
    color: var(--light-blue);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-logo img {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease;
}

.brand-logo:hover img {
    transform: scale(1.05) rotate(-3deg);
}

.brand-text {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.nav-menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 18px;
    align-items: center;
    margin: 0 auto;
}

.nav-link {
    font-weight: 700;
    color: var(--dark-text);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.98rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-blue);
    background-color: var(--light-blue);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: var(--primary-dark);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.nav-toggle:hover {
    background-color: var(--light-blue);
}

/* Interactive & Pulse Effects */
.pulse-btn {
    position: relative;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 83, 79, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(217, 83, 79, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(217, 83, 79, 0);
    }
}

.pulse-whatsapp {
    animation: pulse-whatsapp-ring 2s infinite;
}

@keyframes pulse-whatsapp-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Floating Action Widget Desktop */
.floating-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.floating-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-btn:hover {
    transform: scale(1.12) translateY(-3px);
}

.floating-btn.call {
    background-color: var(--accent-call);
}

.floating-btn.whatsapp {
    background-color: var(--accent-whatsapp);
}

/* Keywords & SEO Pills */
.keywords-box {
    background: #F1F5F9;
    border: 1px dashed #CBD5E1;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 20px 0;
}

.keywords-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.keyword-pill {
    display: inline-block;
    background: var(--white);
    color: #334155;
    border: 1px solid #E2E8F0;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    margin: 3px;
    transition: all 0.2s ease;
}

.keyword-pill:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Accordion Component */
.accordion-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    padding: 18px 24px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FAFAFA;
}

.accordion-header:hover {
    background: var(--light-blue);
}

.accordion-body {
    padding: 20px 24px;
    color: var(--muted-text);
    line-height: 1.8;
    border-top: 1px solid #F1F5F9;
    display: none;
}

.accordion-item.active .accordion-body {
    display: block;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Glassmorphism & Cards Polish */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(11, 58, 102, 0.08);
}

/* CTA Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-weight: 800;
    font-size: 1.05rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-call {
    background-color: var(--accent-call);
    color: var(--white);
}

.btn-call:hover {
    background-color: var(--accent-call-hover);
    transform: scale(1.03);
}

.btn-whatsapp {
    background-color: var(--accent-whatsapp);
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: var(--accent-whatsapp-hover);
    transform: scale(1.03);
}

/* Hero Section & AI Image Slider */
.hero-section {
    background: linear-gradient(135deg, #0B3A66 0%, #1677B8 100%);
    color: var(--white);
    padding: 70px 20px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-slider-box {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(1.05);
}

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

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

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(11, 58, 102, 0.9));
    padding: 20px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--white);
    width: 28px;
    border-radius: 10px;
}

/* Animations & Reveal Effects */
.reveal-init {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animated-show {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-ctas {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Service Cards Grid */
.section {
    padding: 70px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--muted-text);
    font-size: 1.1rem;
}

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

.service-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(11, 58, 102, 0.12);
    border-color: rgba(22, 119, 184, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(22, 119, 184, 0.1), rgba(11, 58, 102, 0.12));
    color: var(--primary-blue);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    margin: 0 auto 20px auto;
    box-shadow: 0 6px 18px rgba(22, 119, 184, 0.12);
    border: 2px solid rgba(22, 119, 184, 0.2);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-icon.card-centered-icon {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 5;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(11, 58, 102, 0.3);
    border: 3px solid var(--white);
}

.service-card:hover .service-icon {
    transform: scale(1.12) rotate(6deg);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(22, 119, 184, 0.35);
}

.service-card:hover .service-icon.card-centered-icon {
    transform: translateX(-50%) scale(1.15) rotate(6deg);
    background: linear-gradient(135deg, var(--accent-orange), #C2410C);
    color: var(--white);
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.4);
}

.service-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.service-desc {
    color: var(--muted-text);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Article Cards & Images */
.article-card {
    text-align: right;
}

.article-card-img {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 15px;
}

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

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

/* Mobile Sticky Conversion Bar */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 10px 15px;
    z-index: 9999;
}

.mobile-bar-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mobile-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: var(--radius-md);
    color: var(--white);
    font-weight: 800;
    font-size: 1rem;
}

.mobile-call {
    background-color: var(--accent-call);
}

.mobile-whatsapp {
    background-color: var(--accent-whatsapp);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-ctas {
        justify-content: center;
    }

    .nav-toggle {
        display: block !important;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-bottom: 3px solid var(--primary-blue);
        gap: 15px;
        z-index: 1001;
    }

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

    .floating-widget {
        display: none; /* Mobile uses sticky bar */
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 75px;
    }

    .mobile-sticky-bar {
        display: block;
    }

    .hero-title {
        font-size: 2.1rem;
    }
}

/* ============================================================
   MOBILE REFINEMENTS v2 - إصلاح عرض الجوال (2026-08-16)
   ============================================================ */
/* Fix root cause of horizontal overflow (~66px shift) caused by
   fixed elements wider than the viewport in RTL. Clamp at root. */
html {
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
}
body {
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
}
img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
}

/* Sticky bottom bar - force it to span exactly the visible width,
   no fixed/absolute intrinsic width that overflows in RTL. */
.mobile-sticky-bar {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw;
    margin: 0;
}
.mobile-bar-container {
    width: 100%;
    max-width: 100vw;
}
.mobile-bar-btn {
    min-height: 50px;
    font-size: 0.95rem;
    white-space: nowrap;
}
.mobile-bar-btn i {
    flex-shrink: 0;
}

/* Toast container fixed overlay - clamp to viewport */
.toast-container {
    left: 12px !important;
    right: 12px !important;
    width: auto;
    min-width: 0;
    max-width: calc(100vw - 24px) !important;
    margin: 0;
}
.toast {
    width: 100%;
    box-sizing: border-box;
}

/* Header & navbar squeeze on small phones */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 14px;
        gap: 8px;
    }
    .brand-logo {
        gap: 8px;
        min-width: 0;
    }
    .brand-logo img {
        height: 40px;
        width: auto;
    }
    .brand-text {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    .btn-call {
        padding: 8px 14px !important;
        font-size: 0.82rem !important;
        white-space: nowrap;
    }
    .btn-call i {
        margin: 0;
    }
    .nav-toggle {
        padding: 6px 8px;
        font-size: 1.35rem;
    }
}

/* Hero polish on small screens */
@media (max-width: 480px) {
    .hero-section {
        padding: 40px 14px;
    }
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.35;
    }
    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.6;
    }
    .hero-badge {
        font-size: 0.85rem;
        padding: 7px 14px;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .hero-ctas .btn {
        width: 100%;
    }
    .hero-slider-box {
        height: 240px;
    }
    .slide-caption {
        font-size: 0.95rem;
        padding: 14px;
    }
}

/* Section / card / grid breathing room on phones */
@media (max-width: 480px) {
    .section {
        padding: 40px 16px;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .section-desc {
        font-size: 1rem;
    }
    .section-header {
        margin-bottom: 30px;
    }
    .services-grid {
        gap: 18px;
        grid-template-columns: 1fr;
    }
    .nokhba-feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .about-gallery-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 26px 18px;
    }
}

/* Mobile safety: any fixed overlay must never exceed the screen */
.area-popup-modal {
    max-width: calc(100vw - 32px);
}
.floating-widget {
    max-width: 100vw;
}


/* Article SEO & Keyword Tags Styling */
.opening-keywords-wrapper {
    background: #FFFFFF;
    border: 1px solid rgba(11, 58, 102, 0.12);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    margin-top: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.opening-keywords-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: block;
}

.keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(22, 119, 184, 0.08), rgba(11, 58, 102, 0.05));
    color: var(--primary-blue);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-left: 6px;
    margin-bottom: 6px;
    border: 1px solid rgba(22, 119, 184, 0.18);
    transition: all var(--transition-fast);
    cursor: default;
}

.keyword-tag:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(22, 119, 184, 0.25);
}

.focus-keyword-badge {
    background: rgba(234, 88, 12, 0.1);
    color: #C2410C;
    border: 1px solid rgba(234, 88, 12, 0.25);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* FAQ Accordion Styling */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.faq-item.active {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(22, 119, 184, 0.12);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    padding: 20px 24px;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: var(--font-primary) !important;
}

.faq-question:hover {
    background-color: rgba(22, 119, 184, 0.04);
    color: var(--primary-blue);
}

.faq-icon {
    font-size: 0.95rem;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 24px;
    background: #FAFBFD;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 16px 24px 24px 24px;
    border-top: 1px dashed var(--border-color);
}

.faq-answer p {
    color: #475569;
    line-height: 1.8;
    font-size: 1.02rem;
    margin: 0;
    font-family: var(--font-primary) !important;
}

/* Area Location Pop-up Modal */
.area-popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 58, 102, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.area-popup-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.area-popup-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    padding: 32px 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border: 2px solid var(--accent-orange);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.area-popup-backdrop.active .area-popup-modal {
    transform: translateY(0) scale(1);
}

.area-popup-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #F1F5F9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-text);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.area-popup-close:hover {
    background: #E2E8F0;
    color: var(--primary-dark);
}

.area-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.12);
    color: #16A34A;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.area-popup-pulse {
    width: 10px;
    height: 10px;
    background-color: #22C55E;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Custom Pagination Component */
.custom-pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 40px 0 20px 0;
}

.pagination-summary {
    font-size: 0.95rem;
    color: var(--muted-text);
    font-weight: 600;
}

.pagination-summary strong {
    color: var(--primary-dark);
    font-weight: 800;
}

.custom-pagination-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.custom-pagination-list .page-item {
    display: inline-block;
}

.custom-pagination-list .page-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--primary-dark);
    border: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.custom-pagination-list .page-link:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.custom-pagination-list .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(22, 119, 184, 0.35);
}

.custom-pagination-list .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    background: #F8FAFC;
    color: #94A3B8;
    border-color: #E2E8F0;
    box-shadow: none;
    transform: none;
}

/* About Showcase Gallery Component */
.about-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.about-gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    aspect-ratio: 4 / 3;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.about-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.about-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(11, 58, 102, 0.9), transparent);
    color: var(--white);
    padding: 15px 12px 10px 12px;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
}

/* Unified Nokhba Feature Cards System */
.nokhba-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.nokhba-feature-card {
    background: var(--white);
    padding: 32px 26px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 25px rgba(11, 58, 102, 0.06);
    border: 1px solid rgba(22, 119, 184, 0.12);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nokhba-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    transition: all 0.3s ease;
}

.nokhba-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 35px rgba(11, 58, 102, 0.12);
    border-color: rgba(22, 119, 184, 0.3);
}

.nokhba-feature-card:hover::before {
    height: 5px;
    background: linear-gradient(90deg, var(--accent-orange), var(--primary-blue));
}

.nokhba-feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(22, 119, 184, 0.1), rgba(11, 58, 102, 0.05));
    color: var(--primary-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    margin-bottom: 22px;
    border: 1px solid rgba(22, 119, 184, 0.18);
    transition: all 0.3s ease;
}

.nokhba-feature-card:hover .nokhba-feature-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--white);
    border-color: transparent;
    transform: scale(1.08);
}

.nokhba-feature-title {
    font-size: 1.22rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.nokhba-feature-desc {
    color: var(--muted-text);
    line-height: 1.75;
    font-size: 0.96rem;
    margin: 0;
    flex-grow: 1;
}

/* Text Truncation (3 Lines Clamp) & Read More Toggle System */
.desc-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.service-desc-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.7;
    transition: max-height 0.4s ease-in-out;
}

.service-desc-clamp.expanded {
    display: block;
    -webkit-line-clamp: initial;
    overflow: visible;
}

.btn-toggle-more {
    background: transparent;
    border: none;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.btn-toggle-more:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-toggle-more i {
    font-size: 0.78rem;
    transition: transform 0.3s ease;
}

.btn-toggle-more.active i {
    transform: rotate(180deg);
}
