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

body {
    font-family: 'Tajawal', sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    direction: inherit;
}

.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}


.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #a58054 0%, #95734c 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.header.transparent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: none;
    z-index: 1000;
    padding: 2.1rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-logos .logo {
    height: 56px;
    width: auto;
}

.navigation {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 100;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    justify-content: center;
}

.btn-hero.primary {
    background: linear-gradient(135deg, #D4AF37, #8B4513);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-hero.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-hero.primary:hover {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.top-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    flex-wrap: nowrap;
}

.header-logos .logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.header-logos img {
    height: 72px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.header-logos img:hover {
    transform: scale(1.08) translateY(-3px);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.header-logos h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    flex: 1;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    color: #D4AF37;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #D4AF37;
    background: transparent;
}

.lang-btn:hover {
    background: #D4AF37;
    color: white;
    transform: translateY(-2px);
}

.lang-btn.active {
    background: #D4AF37;
    color: white;
}

.navigation {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    color: #e74c3c;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e74c3c;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
}

.nav-btn.newsletter {
    color: #f39c12;
    border-color: #f39c12;
}

.nav-btn.newsletter:hover {
    background: #f39c12;
    color: white;
}

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

.welcome {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 800px;
}

.welcome h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.welcome p {
    color: #555;
    font-size: 1.1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 1000px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, #8B4513);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stat-card.active {
    background: linear-gradient(135deg, #D4AF37, #8B4513);
    color: white;
}

.stat-card i {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-card span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    margin-right: auto;
}

.filters {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 2rem auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: end;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, #8B4513);
    border-radius: 20px 20px 0 0;
}

.filters input,
.filters select {
    padding: 1rem 1.25rem;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
}

.filters input:focus,
.filters select:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.filters input::placeholder {
    color: #8e9aaf;
    font-weight: 500;
}

.filters button {
    background: linear-gradient(135deg, #D4AF37, #8B4513);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.filters button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.filters button:hover::before {
    left: 100%;
}

.filters button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.filters button:active {
    transform: translateY(-1px);
}

.opportunity-list {
    margin: 2rem auto;
}

.opportunity-card-row {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    margin-bottom: 2.5rem;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.opportunity-card-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, #8B4513);
    border-radius: 25px 25px 0 0;
}

.opportunity-card-row:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.opportunity-card-row.reversed {
    grid-template-columns: 2fr 1fr;
}

.opportunity-map {
    position: relative;
    overflow: hidden;
}

.opportunity-map iframe,
.opportunity-map img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: none;
}

.opportunity-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.opportunity-info h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.opportunity-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.opportunity-info i {
    color: #D4AF37;
    width: 20px;
}

.countdown {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 0.8rem;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.countdown span {
    display: inline-block;
    margin: 0 0.5rem;
}

.opportunity-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-map,
.btn-favorite,
.btn-share {
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    border: 2px solid;
    background: transparent;
    cursor: pointer;
}

.btn-map {
    color: #28a745;
    border-color: #28a745;
}

.btn-map:hover {
    background: #28a745;
    color: white;
}

.btn-map.disabled {
    color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-favorite {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-favorite:hover {
    background: #dc3545;
    color: white;
}

.btn-favorite.active {
    background: #dc3545;
    color: white;
}

.btn-share {
    color: #17a2b8;
    border-color: #17a2b8;
}

.btn-share:hover {
    background: #17a2b8;
    color: white;
}

.no-results {
    text-align: center;
    color: #a0303e;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.no-results i {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.2rem;
    color: #555;
}

.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
    border-top: 5px solid #D4AF37;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 1.5rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #D4AF37;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #ecf0f1;
    text-decoration: underline;
}

.footer-logo {
    max-width: 150px;
    height: auto;
    margin-top: 1rem;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #95a5a6;
}

.no-scroll {
    overflow: hidden;
}

.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    border-radius: 5px;
    transition: color 0.3s ease;
    align-self: center;
}

.mobile-nav-container {
    position: fixed;
    top: 90px;
    left: 0;
    height: 100%;
    width: 300px;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(15px);
    z-index: 999;
    padding: 2rem 1.5rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    left: -300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-container.open {
    left: 0;
    background: var(--al-ahsa-maroon) !important;
}

[dir="rtl"] .mobile-nav-container {
    left: auto;
    right: 0;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    right: -300px;
}

[dir="rtl"] .mobile-nav-container.open {
    right: 0;
}

.mobile-nav-container .nav-link {
    color: #ecf0f1;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

.mobile-nav-container .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: none;
    box-shadow: none;
}

.mobile-nav-container .language-switcher {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    display: flex !important;
}

.mobile-nav-container .lang-btn {
    width: 45%;
    background: transparent;
    color: #D4AF37;
    border-color: #D4AF37;
}

.mobile-nav-container .lang-btn.active {
    background: #D4AF37;
    color: white;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-overlay.open {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .opportunity-card-row {
        grid-template-columns: 1fr;
    }

    .opportunity-card-row.reversed {
        grid-template-columns: 1fr;
    }

    .opportunity-info {
        padding: 1.5rem;
    }

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

    .header-content {
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        flex-direction: row;
        padding: 0 1rem;
    }

    .header-logos {
        order: 2;
        flex-direction: row;
        gap: 0.5rem;
        flex-grow: 1;
        justify-content: center;
        padding: 0;
    }

    .header-logos img {
        height: 40px;
    }

    .hamburger-menu {
        display: block !important;
        order: 3;
        margin-right: 1rem;
    }

    [dir="rtl"] .hamburger-menu {
        order: 1;
        margin-right: 0;
        margin-left: 1rem;
    }

    .navigation {
        display: none;
    }

    .language-switcher {
        display: none;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero {
        min-width: 250px;
    }

    .footer-section {
        min-width: auto;
    }
}

/* ===== Header + Hero Cleanup (balanced, non-duplicated) ===== */
.hero-section .header.transparent {
    padding: 2.1rem 0 !important;
    border-bottom: none !important;
}

.hero-section .header-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    padding-inline-end: 0 !important;
    padding-inline-start: 0 !important;
    flex-wrap: nowrap !important;
}

.hero-section .header-logos {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.35rem !important;
    margin-inline-start: 0 !important;
    transform: none !important;
}

.hero-section .header-logos .logo {
    height: 56px !important;
    width: auto !important;
}

.hero-section .navigation {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem 0.6rem !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.hero-section .nav-link {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.82rem !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.hero-section .language-switcher {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.hero-section .header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
}

.hero-section .hamburger-menu {
    display: none !important;
}

.hero-section .hero-content {
    padding-top: 2.5rem !important;
    max-width: 900px !important;
}

.hero-section .hero-title {
    font-size: 3rem !important;
    margin-bottom: 0.75rem !important;
}

.hero-section .hero-subtitle {
    font-size: 1.15rem !important;
}

@media (max-width: 1024px) {
    .hero-section .header-content {
        grid-template-columns: auto 1fr auto !important;
    }
    .hero-section .navigation {
        display: none !important;
    }
    .hero-section .hamburger-menu {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .hero-section .header-content {
        grid-template-columns: auto 1fr auto !important;
        padding: 0 1rem !important;
    }
    .hero-section .header-logos .logo {
        height: 44px !important;
    }
    .hero-section .hero-title {
        font-size: 2.3rem !important;
    }
    .hero-section .hero-subtitle {
        font-size: 1rem !important;
    }
}

/* Header polish: top-edge alignment + consistent sizing */
html,
body {
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
}

.hero-section {
    margin-top: 0;
    padding-top: 0;
    min-height: 100svh;
}

.hero-section .header.transparent {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0.55rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.hero-section .header-content {
    max-width: 1320px !important;
    padding: 0 1rem !important;
    justify-content: space-between !important;
    gap: 0.85rem !important;
}

.hero-section .header-logos {
    gap: 0.95rem !important;
    flex: 0 0 auto !important;
}

.hero-section .header-logos .logo-link {
    width: 78px;
    height: 52px;
    padding: 0.35rem 0.5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.hero-section .header-logos .logo {
    max-height: 36px !important;
    width: auto !important;
}

.hero-section .navigation {
    flex: 1 1 auto !important;
    justify-content: center !important;
    gap: 0.42rem !important;
}

.hero-section .nav-link {
    min-height: 34px !important;
    padding: 0.34rem 0.72rem !important;
    font-size: 0.78rem !important;
    border-radius: 999px !important;
}

.hero-section .nav-link i {
    font-size: 0.78rem;
}

.hero-section .header-actions {
    flex: 0 0 auto !important;
}

.hero-section .language-switcher {
    gap: 0.35rem !important;
}

.hero-section .lang-btn {
    min-width: 46px;
    height: 34px;
    padding: 0 0.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-section .hero-content {
    padding-top: clamp(5.5rem, 16vh, 8.2rem) !important;
}

.mobile-nav-container {
    top: 68px;
}

.mobile-nav-container .lang-btn {
    min-height: 38px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .hero-section .header.transparent {
        padding: 0.45rem 0 !important;
    }

    .hero-section .header-logos .logo-link {
        width: 64px;
        height: 46px;
        border-radius: 10px;
    }

    .hero-section .header-logos .logo {
        max-height: 30px !important;
    }
}

@media (max-width: 768px) {
    .hero-section .header-content {
        padding: 0 0.75rem !important;
    }

    .hero-section .header-logos {
        gap: 0.75rem !important;
    }

    .hero-section .header-logos .logo-link {
        width: 56px;
        height: 40px;
        padding: 0.25rem 0.4rem;
    }

    .hero-section .header-logos .logo {
        max-height: 24px !important;
    }

    .mobile-nav-container {
        top: 62px;
    }
}

/* Unified public UI polish */
:root {
    --site-primary: #a58054;
    --site-primary-dark: #391d1e;
    --site-accent: #aa8456;
    --site-text: #111827;
    --site-muted: #6b5b4f;
    --site-border: #d8c7ae;
}

.header.transparent {
    padding: 0.75rem 0 !important;
    background: rgba(15, 23, 42, 0.44);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.header-content {
    max-width: 1320px;
    gap: 0.75rem;
}

.header-logos {
    gap: 0.85rem;
}

.header-logos .logo-link {
    min-width: 58px;
    height: 46px;
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    background: rgba(255, 255, 255, 0.94);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-logos .logo {
    max-height: 32px !important;
    height: auto !important;
    filter: none;
}

.navigation {
    gap: 0.4rem;
}

.nav-link,
.mobile-nav-container .nav-link {
    border-radius: 8px;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    min-height: 38px;
    padding: 0 0.72rem;
}

.nav-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
}

.lang-btn {
    border-radius: 8px;
    border-color: var(--site-accent);
    color: #fff;
    min-height: 36px;
    padding: 0 0.75rem;
    display: inline-flex;
    align-items: center;
}

.lang-btn.active,
.lang-btn:hover,
.btn-hero.primary {
    background: var(--site-primary);
    border-color: var(--site-primary);
    color: #fff;
}

.btn-hero {
    border-radius: 8px;
}

.btn-hero.primary {
    box-shadow: 0 10px 24px rgba(0, 116, 120, 0.25);
}

.btn,
.btn-primary,
.btn-details,
.search-btn,
.subscribe-button {
    background: var(--site-primary) !important;
    border-color: var(--site-primary) !important;
    color: #fff !important;
}

.btn-secondary,
.btn-outline,
.btn-hero.secondary {
    background: #391d1e !important;
    border-color: #391d1e !important;
    color: #fff !important;
}

.status-badge,
.badge,
.filter-chip,
.category-badge {
    background: #ecfdf5 !important;
    color: var(--site-primary) !important;
    border-color: #b8dfe2 !important;
}

.opportunity-card,
.story-card,
.subscription-card,
.filter-section {
    border-color: var(--site-border) !important;
}

/* Al-Ahsa chatbot */
.chatbot-widget {
    position: fixed;
    inset-inline-end: 22px;
    bottom: 22px;
    z-index: 1200;
    font-family: 'Tajawal', sans-serif;
}

.chatbot-toggle {
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: #a58054;
    color: #fff;
    box-shadow: 0 12px 30px rgba(57, 29, 30, 0.28);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    text-decoration: none;
}

.whatsapp-chat-toggle {
    background: #25d366 !important;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.28) !important;
}

.chatbot-whatsapp-link {
    margin: 0.75rem 0.9rem 0;
    min-height: 38px;
    border-radius: 8px;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.18);
}

/* Public header polish */
.hero-section .header-logos {
    position: relative !important;
    left: -92px !important;
    gap: 1.8rem !important;
}

.hero-section .language-switcher {
    min-height: 38px !important;
    padding: 0.18rem !important;
    border-radius: 999px !important;
    background: rgba(57, 29, 30, 0.42) !important;
    border: 1px solid rgba(165, 128, 84, 0.5) !important;
    backdrop-filter: blur(8px);
}

.hero-section .lang-btn {
    min-width: 44px !important;
    height: 32px !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: transparent !important;
    padding: 0 0.7rem !important;
    text-shadow: none !important;
}

.hero-section .lang-btn.active,
.hero-section .lang-btn:hover {
    background: #a58054 !important;
    color: #fff !important;
}

@media (max-width: 1024px) {
    .hero-section .header-logos {
        left: -28px !important;
        gap: 1rem !important;
    }
}

@media (max-width: 768px) {
    .hero-section .header-logos {
        left: 0 !important;
        gap: 0.75rem !important;
    }
}

.chatbot-panel {
    position: absolute;
    inset-inline-end: 0;
    bottom: 72px;
    width: min(360px, calc(100vw - 32px));
    height: 500px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border: 1px solid #d5d9e3;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.chatbot-widget.open .chatbot-panel {
    display: flex;
}

.chatbot-header {
    min-height: 72px;
    background: linear-gradient(135deg, #391d1e, #a58054);
    color: #fff;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.chatbot-header strong,
.chatbot-header span {
    display: block;
}

.chatbot-header span {
    color: #d5d9e3;
    font-size: 0.82rem;
    margin-top: 0.12rem;
}

.chatbot-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    padding: 0.9rem;
    overflow: auto;
    background: #f7fafb;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.chatbot-message {
    max-width: 86%;
    border-radius: 10px;
    padding: 0.62rem 0.75rem;
    white-space: pre-wrap;
    line-height: 1.55;
    font-size: 0.92rem;
}

.chatbot-message.bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #d5d9e3;
    color: #0f172a;
}

.chatbot-message.user {
    align-self: flex-end;
    background: #a58054;
    color: #fff;
}

.chatbot-message.loading {
    color: #7f8187;
}

.chatbot-form {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid #d5d9e3;
    background: #fff;
}

.chatbot-form input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 1px solid #d5d9e3;
    border-radius: 8px;
    padding: 0 0.75rem;
    font-family: inherit;
}

.chatbot-form input:focus {
    outline: none;
    border-color: #a58054;
    box-shadow: 0 0 0 3px rgba(165, 128, 84, 0.18);
}

.chatbot-form button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: #a58054;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 560px) {
    .chatbot-widget {
        inset-inline: 16px;
        bottom: 16px;
    }

    .chatbot-panel {
        inset-inline-end: 0;
        width: 100%;
    }
}

/* Home header: remove white chips/backgrounds */
.hero-section .header.transparent {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.hero-section .header-logos .logo-link {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
}

.hero-section .header-logos .logo {
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.28)) !important;
}

.hero-section .nav-link {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-section .nav-link:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.hero-section .lang-btn {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-section .lang-btn.active,
.hero-section .lang-btn:hover {
    background: rgba(165, 128, 84, 0.86) !important;
    border-color: rgba(165, 128, 84, 0.92) !important;
}
