/**
 * Mwathqa Law Theme - Consolidated Stylesheet
 * All component styles in one file for performance and maintainability.
 */

/* ============================================
   1. DESIGN TOKENS
   ============================================ */
:root {
    --ct-primary: #ffffff;
    --ct-secondary: #f8f9fa;
    --ct-surface: #ffffff;
    --ct-border: rgba(23, 37, 64, 0.15);
    --ct-accent: #172540;
    --ct-accent-light: #1e3a5f;
    --ct-accent-dark: #0f1a2b;
    --ct-accent-gradient: linear-gradient(135deg, #172540 0%, #1e3a5f 40%, #0f1a2b 100%);
    --ct-accent-glow: 0 8px 24px rgba(23, 37, 64, 0.15), 0 0 22px rgba(23, 37, 64, 0.1);
    --ct-accent-rgb: 23, 37, 64;
    --ct-text: #1a1a1a;
    --ct-text-light: #2a2a2a;
    --ct-light: #f0f0f0;
    --ct-muted: #6c757d;
    --ct-shadow: rgba(0, 0, 0, 0.08);
    --ct-header-height: 130px;
}

/* ============================================
   2. BASE TYPOGRAPHY
   ============================================ */
body {
    background: var(--ct-primary);
    color: var(--ct-text);
    font-family: "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    direction: rtl;
    overflow-x: hidden;
}

a {
    color: var(--ct-accent);
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover,
a:focus {
    color: var(--ct-accent-light);
    text-decoration: none;
}

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

/* ============================================
   3. UTILITY CLASSES
   ============================================ */
.text-ct-accent {
    color: var(--ct-accent) !important;
}

.text-ct-muted {
    color: var(--ct-muted) !important;
}

.bg-ct-secondary {
    background-color: var(--ct-secondary) !important;
}

.bg-ct-surface {
    background-color: var(--ct-surface) !important;
}

.bg-ct-accent {
    background: var(--ct-accent-gradient) !important;
    color: #ffffff !important;
}

/* ============================================
   4. BUTTONS
   ============================================ */
.btn-ct-accent {
    background: var(--ct-accent-gradient);
    color: #ffffff;
    border: 2px solid var(--ct-accent);
    box-shadow: var(--ct-accent-glow);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-ct-accent:hover,
.btn-ct-accent:focus {
    background: var(--ct-accent-gradient);
    color: #ffffff;
    border-color: var(--ct-accent-light);
    box-shadow: 0 14px 36px rgba(var(--ct-accent-rgb), 0.25), 0 0 26px rgba(var(--ct-accent-rgb), 0.15);
    transform: translateY(-2px);
}

.btn-outline-ct-accent {
    background: transparent;
    color: var(--ct-accent);
    border: 2px solid var(--ct-accent);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn-outline-ct-accent:hover,
.btn-outline-ct-accent:focus {
    background: var(--ct-accent);
    color: #ffffff;
    box-shadow: var(--ct-accent-glow);
    transform: translateY(-2px);
}

/* ============================================
   5. SECTION BADGE
   ============================================ */
.alaw-section-badge,
.mwathqa-section-badge {
    display: inline-block;
    background: var(--ct-accent-gradient);
    color: #ffffff !important;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--ct-accent-glow);
}

/* ============================================
   6. HEADER (transparent → solid on scroll)
   ============================================ */
.alaw-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease, backdrop-filter 0.35s ease;
    padding: 0.75rem 0;
}

.alaw-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 24px rgba(var(--ct-accent-rgb), 0.08);
    padding: 0.5rem 0;
}

.alaw-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.alaw-header__brand img,
.alaw-header__brand .custom-logo,
.alaw-header__logo {
    height: 105px;
    width: auto;
    max-width: 300px;
    transition: height 0.35s ease, max-width 0.35s ease, filter 0.35s ease;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(var(--ct-accent-rgb), 0.15));
}

.alaw-header.scrolled .alaw-header__brand img,
.alaw-header.scrolled .alaw-header__brand .custom-logo,
.alaw-header.scrolled .alaw-header__logo {
    height: 72px;
    max-width: 240px;
    filter: drop-shadow(0 2px 6px rgba(var(--ct-accent-rgb), 0.08));
}

.alaw-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.alaw-nav li {
    list-style: none;
}

.alaw-nav__link,
.alaw-nav a {
    color: var(--ct-text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.alaw-nav__link:hover,
.alaw-nav__link.active,
.alaw-nav a:hover,
.alaw-nav .current-menu-item > a {
    color: var(--ct-accent);
}

.alaw-nav__link::after,
.alaw-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--ct-accent-gradient);
    transition: width 0.3s ease;
}

.alaw-nav__link:hover::after,
.alaw-nav__link.active::after,
.alaw-nav a:hover::after,
.alaw-nav .current-menu-item > a::after {
    width: 100%;
}

.alaw-header__cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.alaw-mobile-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--ct-accent);
    color: var(--ct-accent);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    line-height: 1;
}

.alaw-mobile-toggle:hover,
.alaw-mobile-toggle:focus {
    background: var(--ct-accent);
    color: #ffffff;
}

/* Mobile Menu */
.alaw-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(85vw, 320px);
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
}

.alaw-mobile-menu.active {
    right: 0;
}

.alaw-mobile-menu__close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: transparent;
    border: none;
    color: var(--ct-text);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.alaw-mobile-menu__nav {
    list-style: none;
    padding: 0;
    margin-top: 3rem;
}

.alaw-mobile-menu__nav li {
    margin-bottom: 0.5rem;
    list-style: none;
}

.alaw-mobile-menu__nav a {
    color: var(--ct-text);
    font-size: 1.1rem;
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--ct-border);
}

.alaw-mobile-menu__nav a:hover {
    color: var(--ct-accent);
}

.alaw-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.alaw-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   7. HERO
   ============================================ */
.mwathqa-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh; /* safe viewport unit on iOS — avoids address-bar jump */
    display: flex;
    align-items: center;
    padding-top: calc(var(--ct-header-height) + 1.5rem);
    padding-bottom: 2.5rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 85% 15%, rgba(var(--ct-accent-rgb), 0.10), transparent 55%),
        radial-gradient(ellipse at 10% 90%, rgba(var(--ct-accent-rgb), 0.06), transparent 60%),
        linear-gradient(180deg, var(--ct-primary) 0%, var(--ct-secondary) 100%);
}

.mwathqa-hero__pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--ct-accent-rgb), 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--ct-accent-rgb), 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.mwathqa-hero > .container {
    position: relative;
    z-index: 2;
}

/* Centered background watermark — logo sits behind the hero content. */
.mwathqa-hero__bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(1080px, 92vw);
    height: auto;
    opacity: 0.08;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    filter: none;
}

.mwathqa-hero__content {
    max-width: 960px;
    position: relative;
    z-index: 2;
}

.mwathqa-hero__title {
    font-size: clamp(1.35rem, 3.2vw, 2.25rem);
    line-height: 1.25;
    white-space: nowrap;
    overflow: visible;
    letter-spacing: -0.01em;
}

/* Phones too narrow for the whole phrase on one line — allow wrap. */
@media (max-width: 420px) {
    .mwathqa-hero__title {
        white-space: normal;
        font-size: clamp(1.1rem, 5vw, 1.5rem);
    }
}

@media (max-width: 575.98px) {
    .mwathqa-hero__bg-logo {
        width: 96vw;
        opacity: 0.06;
    }
}

/* ============================================
   8. ABOUT
   ============================================ */
.alaw-about {
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.alaw-about__image {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.alaw-about__image img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    display: block;
}

.alaw-about__image:hover img {
    transform: scale(1.05);
}

.alaw-about__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    margin: 0;
}

.alaw-about__badge .badge {
    background: var(--ct-accent-gradient) !important;
    color: #ffffff !important;
    border: 2px solid var(--ct-accent);
    box-shadow: 0 4px 15px var(--ct-shadow);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.alaw-about__feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alaw-about__feature i {
    font-size: 1.5rem;
    color: var(--ct-accent);
    flex-shrink: 0;
}

/* ============================================
   9. CLIENTS MARQUEE
   --------------------------------------------
   NOTE: The marquee wrapper is forced to LTR so the track aligns
   to the LEFT edge of the container and the overflow sits on the
   RIGHT. translateX(-50%) then slides items right→left, with fresh
   copies entering from the right — the motion Arabic visitors expect.
   Keeping the wrapper in RTL causes the track to right-align with
   left-overflow, and a negative translate just drifts items off
   the left without any replacement entering.
   ============================================ */
.alaw-clients {
    padding: clamp(3rem, 7vw, 5rem) 0;
    background: var(--ct-secondary);
    overflow: hidden;
}

.alaw-clients__marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-block: 1.5rem;
    direction: ltr; /* see NOTE above */
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.alaw-clients__track {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: max-content;
    will-change: transform;
    animation: alawClientsMarquee 38s linear infinite;
}

.alaw-clients__marquee:hover .alaw-clients__track {
    animation-play-state: paused;
}

.alaw-clients__item {
    flex: 0 0 auto;
    width: 180px;
    height: 110px;
    /* Per-item right-margin instead of flex gap — guarantees the track
       width is exactly 2× one period, so translateX(-50%) lands on a
       perfect seam with no stutter on loop. */
    margin-right: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    background: var(--ct-surface);
    border-radius: 0.875rem;
    border: 1px solid var(--ct-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.alaw-clients__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(var(--ct-accent-rgb), 0.14);
    border-color: rgba(var(--ct-accent-rgb), 0.35);
}

.alaw-clients__item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Logos displayed in their original colors — no filters. */
    filter: none;
    opacity: 1;
}

@keyframes alawClientsMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .alaw-clients__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 1rem;
    }
    .alaw-clients__item {
        margin-right: 1rem;
        margin-left: 1rem;
    }
}

@media (max-width: 991.98px) {
    .alaw-clients__track {
        animation-duration: 30s;
    }
    .alaw-clients__item {
        width: 160px;
        height: 95px;
        margin-right: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .alaw-clients__track {
        animation-duration: 24s;
    }
    .alaw-clients__item {
        width: 140px;
        height: 85px;
        margin-right: 1.75rem;
    }
}

/* ============================================
   9b. FEATURES (ميزاتنا infographic)
   ============================================ */
.alaw-features {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--ct-primary);
    position: relative;
    overflow: hidden;
}

.alaw-features::before,
.alaw-features::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--ct-accent-rgb), 0.06), transparent 70%);
    pointer-events: none;
}

.alaw-features::before { top: -120px; right: -120px; }
.alaw-features::after  { bottom: -120px; left: -120px; }

.alaw-features__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.alaw-feature {
    position: relative;
    padding: 2.5rem 1.75rem 1.75rem;
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    overflow: hidden;
    isolation: isolate;
}

.alaw-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(var(--ct-accent-rgb), 0.04) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.alaw-feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(var(--ct-accent-rgb), 0.15);
    border-color: rgba(var(--ct-accent-rgb), 0.4);
}

.alaw-feature:hover::before {
    opacity: 1;
}

.alaw-feature__num {
    position: absolute;
    top: -1px;
    right: 1.5rem;
    background: var(--ct-accent-gradient);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 0 0 0.75rem 0.75rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(var(--ct-accent-rgb), 0.25);
}

.alaw-feature__icon {
    width: 86px;
    height: 86px;
    margin: 0.5rem auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--ct-accent-rgb), 0.10) 0%, rgba(var(--ct-accent-rgb), 0.02) 100%);
    border: 2px dashed rgba(var(--ct-accent-rgb), 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ct-accent);
    font-size: 2.2rem;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, background 0.35s ease;
}

.alaw-feature:hover .alaw-feature__icon {
    transform: rotate(-6deg) scale(1.05);
    border-color: var(--ct-accent);
    background: linear-gradient(135deg, rgba(var(--ct-accent-rgb), 0.16) 0%, rgba(var(--ct-accent-rgb), 0.06) 100%);
}

.alaw-feature__icon::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px dotted rgba(var(--ct-accent-rgb), 0.25);
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.6;
}

.alaw-feature:hover .alaw-feature__icon::after {
    transform: scale(1.1);
    opacity: 1;
}

.alaw-feature__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ct-accent);
    margin-bottom: 0.75rem;
}

.alaw-feature__desc {
    color: var(--ct-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

/* Connecting dots between cells on large screens (infographic flow) */
@media (min-width: 992px) {
    .alaw-features__grid {
        position: relative;
    }

    .alaw-features__grid::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 8%;
        right: 8%;
        height: 2px;
        background-image: linear-gradient(90deg, rgba(var(--ct-accent-rgb), 0.25) 50%, transparent 0);
        background-size: 12px 2px;
        background-repeat: repeat-x;
        transform: translateY(-50%);
        z-index: 0;
        opacity: 0.5;
        pointer-events: none;
    }
}

@media (max-width: 991.98px) {
    .alaw-features__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .alaw-features__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .alaw-feature {
        padding: 2.25rem 1.5rem 1.5rem;
    }

    .alaw-feature__icon {
        width: 72px;
        height: 72px;
        font-size: 1.85rem;
    }
}

/* ============================================
   10. SERVICES (reuses ميزاتنا card visuals)
   ============================================ */
.mwathqa-services {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--ct-primary);
    position: relative;
    overflow: hidden;
}

.mwathqa-services::before,
.mwathqa-services::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--ct-accent-rgb), 0.05), transparent 70%);
    pointer-events: none;
}

.mwathqa-services::before { top: -140px; left: -140px; }
.mwathqa-services::after  { bottom: -140px; right: -140px; }

/* Center a lonely last card so an odd count (e.g., 7) looks intentional. */
@media (min-width: 992px) {
    .mwathqa-services__grid > :last-child:nth-child(3n+1) {
        grid-column-start: 2;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .mwathqa-services__grid > :last-child:nth-child(2n+1) {
        grid-column: 1 / -1;
        max-width: calc(50% - 0.75rem);
        margin-inline: auto;
    }
}

/* ============================================
   11. TABS (Vision/Mission/Values)
   ============================================ */
.mwathqa-tabs-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--ct-secondary);
}

.mwathqa-tabs-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.mwathqa-tabs-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--ct-border);
    flex-wrap: wrap;
}

.mwathqa-tab-btn {
    flex: 1 1 auto;
    min-width: 140px;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--ct-muted);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
}

.mwathqa-tab-btn svg {
    margin-left: 0.5rem;
    vertical-align: middle;
}

.mwathqa-tab-btn:hover {
    color: var(--ct-accent);
}

.mwathqa-tab-btn.active {
    border-bottom-color: var(--ct-accent);
    color: var(--ct-accent);
}

.mwathqa-tab-pane {
    display: none;
    padding: 2rem;
    background: var(--ct-primary);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mwathqa-tab-pane.active {
    display: block;
}

.mwathqa-value-item {
    padding: 1.5rem;
    background: var(--ct-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--ct-border);
    height: 100%;
}

.mwathqa-value-item h5 {
    font-weight: 700;
    color: var(--ct-accent);
    margin-bottom: 0.5rem;
}

.mwathqa-value-item p {
    color: var(--ct-text);
    margin: 0;
}

/* ============================================
   12. CONTACT
   ============================================ */
.alaw-contact {
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.alaw-contact__info {
    background: var(--ct-surface);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--ct-border);
}

.alaw-contact__item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--ct-border);
    margin-bottom: 1.5rem;
}

.alaw-contact__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.alaw-contact__icon {
    width: 50px;
    height: 50px;
    background: var(--ct-accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    box-shadow: var(--ct-accent-glow);
    margin-bottom: 0.75rem;
}

.alaw-contact__icon i {
    color: #ffffff;
}

.alaw-contact__item h5 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--ct-text);
}

.alaw-contact__item a {
    color: var(--ct-muted);
    transition: color 0.3s ease;
}

.alaw-contact__item a:hover {
    color: var(--ct-accent);
}

/* Contact Form */
.alaw-contact__form {
    background: var(--ct-surface);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--ct-border);
}

.alaw-form-label {
    display: block;
    color: var(--ct-text);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.alaw-form-label i {
    color: var(--ct-accent);
}

.alaw-form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--ct-secondary);
    border: 2px solid var(--ct-border);
    border-radius: 0.5rem;
    color: var(--ct-text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.alaw-form-control:focus {
    outline: none;
    border-color: var(--ct-accent);
    background: var(--ct-primary);
    box-shadow: 0 0 0 3px rgba(var(--ct-accent-rgb), 0.15);
}

.alaw-form-control::placeholder {
    color: var(--ct-muted);
    opacity: 0.7;
}

select.alaw-form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23172540' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 16px 12px;
    padding-left: 2.5rem;
}

textarea.alaw-form-control {
    resize: vertical;
    min-height: 150px;
}

.alaw-form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

.alaw-form-message.success {
    background: rgba(40, 167, 69, 0.15);
    border: 2px solid rgba(40, 167, 69, 0.3);
    color: #198754;
}

.alaw-form-message.error {
    background: rgba(220, 53, 69, 0.15);
    border: 2px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

/* ============================================
   13. ARCHIVE (index / archive / category)
   ============================================ */
.alaw-archive-hero {
    padding-top: calc(var(--ct-header-height) + 1.5rem);
    padding-bottom: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(180deg, var(--ct-secondary) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.alaw-archive-hero__bg {
    position: absolute;
    inset: 0;
    background: var(--ct-primary);
    opacity: 0.5;
}

.alaw-archive-card {
    background: var(--ct-surface);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--ct-border);
    height: 100%;
}

.alaw-archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--ct-shadow);
}

.alaw-archive-card__image {
    position: relative;
    overflow: hidden;
}

.alaw-archive-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.alaw-archive-card:hover .alaw-archive-card__image img {
    transform: scale(1.08);
}

.alaw-archive-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(23, 37, 64, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.alaw-archive-card:hover .alaw-archive-card__overlay {
    opacity: 1;
}

.alaw-archive-card .card-title a:hover {
    color: var(--ct-accent) !important;
}

/* Pagination */
.pagination {
    --bs-pagination-color: var(--ct-text);
    --bs-pagination-bg: var(--ct-surface);
    --bs-pagination-border-color: var(--ct-border);
    --bs-pagination-hover-color: var(--ct-accent);
    --bs-pagination-hover-bg: var(--ct-secondary);
    --bs-pagination-hover-border-color: var(--ct-accent);
    --bs-pagination-focus-color: var(--ct-accent);
    --bs-pagination-focus-bg: var(--ct-secondary);
    --bs-pagination-active-color: #ffffff;
    --bs-pagination-active-bg: var(--ct-accent);
    --bs-pagination-active-border-color: var(--ct-accent);
}

.pagination .page-link {
    border-radius: 0.375rem;
    margin: 0 0.25rem;
}

/* ============================================
   14. SINGLE POST + SIDEBAR
   ============================================ */
.alaw-single-hero {
    padding-top: calc(var(--ct-header-height) + 1rem);
    padding-bottom: clamp(1rem, 3vw, 1.5rem);
    background: linear-gradient(180deg, var(--ct-secondary) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.alaw-single-hero__bg {
    position: absolute;
    inset: 0;
    background: var(--ct-primary);
    opacity: 0.5;
}

.breadcrumb-ct {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-ct .breadcrumb-item + .breadcrumb-item::before {
    content: "←";
    color: var(--ct-muted);
    margin: 0 0.5rem;
}

.breadcrumb-ct .breadcrumb-item.active {
    color: var(--ct-muted);
}

.alaw-single-post {
    background: var(--ct-surface);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 1rem;
    border: 1px solid var(--ct-border);
}

.alaw-single-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.alaw-post-content {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--ct-text);
}

.alaw-post-content h2,
.alaw-post-content h3,
.alaw-post-content h4 {
    color: var(--ct-text);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.alaw-post-content p {
    margin-bottom: 1.5rem;
}

.alaw-post-content a {
    color: var(--ct-accent);
    text-decoration: underline;
}

.alaw-post-content a:hover {
    color: var(--ct-accent-light);
}

.alaw-post-content ul,
.alaw-post-content ol {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.alaw-post-content blockquote {
    border-right: 4px solid var(--ct-accent);
    padding-right: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--ct-muted);
}

.alaw-sidebar {
    position: sticky;
    top: calc(var(--ct-header-height) + 1rem);
}

.alaw-widget {
    background: var(--ct-surface);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--ct-border);
    margin-bottom: 1.5rem;
}

.alaw-widget h4 {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.alaw-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--ct-accent-gradient);
}

.alaw-related-post a:hover {
    color: var(--ct-accent) !important;
}

.alaw-related-post__image img {
    transition: transform 0.3s ease;
    border-radius: 0.5rem;
}

.alaw-related-post__image:hover img {
    transform: scale(1.05);
}

.alaw-post-tags .badge {
    background: var(--ct-secondary) !important;
    color: var(--ct-accent) !important;
    border: 1px solid var(--ct-border);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

/* ============================================
   15. 404
   ============================================ */
.alaw-404-hero {
    min-height: 70vh;
    padding-top: calc(var(--ct-header-height) + 1rem);
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--ct-secondary) 0%, var(--ct-primary) 100%);
    position: relative;
    overflow: hidden;
}

.alaw-404-hero__bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background: var(--ct-accent-gradient);
}

/* ============================================
   16. FOOTER
   ============================================ */
.alaw-footer {
    background: linear-gradient(180deg, var(--ct-secondary) 0%, #ffffff 100%);
    padding: clamp(3rem, 6vw, 5rem) 0 2rem;
    position: relative;
    border-top: 1px solid var(--ct-border);
}

.alaw-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ct-accent), transparent);
}

.alaw-footer__logo-img,
.alaw-footer__brand img,
.alaw-footer__brand .custom-logo {
    max-height: 100px;
    width: auto;
    display: block;
    margin-bottom: 1.5rem;
}

.alaw-footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--ct-text);
}

.alaw-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--ct-accent-gradient);
}

.alaw-footer ul.list-unstyled a {
    transition: color 0.3s ease;
}

.alaw-footer ul.list-unstyled a:hover {
    color: var(--ct-accent) !important;
}

.alaw-footer__social {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.alaw-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(var(--ct-accent-rgb), 0.08);
    border: 2px solid var(--ct-accent);
    border-radius: 50%;
    color: var(--ct-accent);
    font-size: 1.15rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.alaw-footer__social-link:hover {
    background: var(--ct-accent);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(var(--ct-accent-rgb), 0.2);
}

.alaw-footer__social-link--whatsapp {
    background: rgba(37, 211, 102, 0.10);
    border-color: #25D366;
    color: #128C7E;
}

.alaw-footer__social-link--whatsapp:hover {
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.alaw-footer__social-link--phone {
    background: rgba(var(--ct-accent-rgb), 0.08);
    border-color: var(--ct-accent);
    color: var(--ct-accent);
}

.alaw-footer__social-link--phone:hover {
    background: var(--ct-accent-gradient);
    color: #ffffff;
}

/* Vision 2030 block */
.alaw-footer__vision {
    margin-top: 1.5rem;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--ct-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.alaw-footer__vision-img {
    max-height: 90px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s ease;
}

.alaw-footer__vision-img:hover {
    transform: translateY(-2px);
}

.alaw-footer__vision-caption {
    color: var(--ct-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 575.98px) {
    .alaw-footer__vision-img {
        max-height: 70px;
    }
}

.alaw-footer__bottom {
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--ct-border);
}

.alaw-footer__bottom a:hover {
    text-decoration: underline;
}

/* ============================================
   17. FLOATING WHATSAPP BUTTON
   ============================================ */
.alaw-whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), box-shadow 0.3s ease;
    animation: whatsappBounce 2s ease-in-out infinite;
}

.alaw-whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    color: #ffffff;
}

.alaw-whatsapp-float:active {
    transform: scale(0.95);
}

.alaw-whatsapp-float i {
    position: relative;
    z-index: 2;
}

.alaw-whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.6;
    animation: whatsappPulse 2s ease-out infinite;
}

@keyframes whatsappBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .alaw-whatsapp-float,
    .alaw-whatsapp-pulse {
        animation: none;
    }
}

/* ============================================
   18. RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet: ≤ 991.98px */
@media (max-width: 991.98px) {
    :root {
        --ct-header-height: 100px;
    }

    .alaw-nav,
    .alaw-header__cta {
        display: none;
    }

    .alaw-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .alaw-sidebar {
        position: static;
        margin-top: 2rem;
    }

    .mwathqa-tab-btn {
        min-width: 100px;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .alaw-header__brand img,
    .alaw-header__brand .custom-logo,
    .alaw-header__logo {
        height: 78px;
        max-width: 220px;
    }

    .alaw-header.scrolled .alaw-header__brand img,
    .alaw-header.scrolled .alaw-header__brand .custom-logo,
    .alaw-header.scrolled .alaw-header__logo {
        height: 62px;
        max-width: 180px;
    }
}

/* Phone: ≤ 767.98px */
@media (max-width: 767.98px) {
    .alaw-footer {
        text-align: right;
    }

    .alaw-footer h5::after {
        right: 0;
    }

    .alaw-footer__logo-img,
    .alaw-footer__brand img,
    .alaw-footer__brand .custom-logo {
        max-height: 80px;
    }

    .alaw-whatsapp-float {
        width: 54px;
        height: 54px;
        font-size: 26px;
        bottom: 20px;
        left: 20px;
    }
}

/* Small phone: ≤ 575.98px */
@media (max-width: 575.98px) {
    :root {
        --ct-header-height: 76px;
    }

    .alaw-header {
        padding: 0.5rem 0;
    }

    .alaw-header.scrolled {
        padding: 0.4rem 0;
    }

    .alaw-header__inner {
        gap: 0.5rem;
    }

    .alaw-header__brand {
        flex: 0 1 auto;
        min-width: 0;
    }

    .alaw-header__brand img,
    .alaw-header__brand .custom-logo,
    .alaw-header__logo {
        height: 54px;
        max-width: 170px;
    }

    .alaw-header.scrolled .alaw-header__brand img,
    .alaw-header.scrolled .alaw-header__brand .custom-logo,
    .alaw-header.scrolled .alaw-header__logo {
        height: 46px;
        max-width: 150px;
    }

    .alaw-mobile-toggle {
        padding: 0.35rem 0.55rem;
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .alaw-mobile-menu {
        padding: 1.5rem;
    }

    .mwathqa-hero {
        min-height: 100vh;
        min-height: 100svh;
        padding-top: calc(var(--ct-header-height) + 0.5rem);
        padding-bottom: 2rem;
    }

    .display-4,
    .display-5,
    .display-3 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        line-height: 1.3 !important;
    }

    .display-1 {
        font-size: clamp(3rem, 15vw, 5rem) !important;
    }

    .lead {
        font-size: clamp(0.95rem, 3vw, 1.05rem) !important;
    }

    .alaw-contact__info,
    .alaw-contact__form {
        padding: 1.5rem;
    }

    .alaw-contact__icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .alaw-footer__social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .alaw-whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        left: 15px;
    }
}
