/* =============================================
   Jawharat Al-Mazareea — Custom Stylesheet
   Colors: Green #2e7d32 | Gold #c9a227
   ============================================= */

:root {
    --green:       #2e7d32;
    --green-dark:  #1b5e20;
    --green-light: #4caf50;
    --gold:        #c9a227;
    --gold-dark:   #a07c1a;
    --gold-light:  #e8c547;
    --white:       #ffffff;
    --gray-100:    #f8f9fa;
    --gray-200:    #e9ecef;
    --text-dark:   #1a1a1a;
    --text-muted:  #6c757d;
    --shadow:      0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg:   0 10px 40px rgba(0,0,0,0.15);
    --radius:      12px;
    --transition:  all 0.3s ease;
}

/* ─── Base ─────────────────────────────────── */
* { box-sizing: border-box; }

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

html[lang="en"] body {
    font-family: 'Times New Roman', Times, serif;
}

[dir="rtl"] body { direction: rtl; text-align: right; }

a { color: var(--green); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

/* ─── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }

/* ─── Navbar ─────────────────────────────────── */
.navbar-brand img { height: 60px; width: 60px; object-fit: contain; }

.navbar-main {
    background: var(--white) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 0.6rem 0;
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.navbar-main.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar-main .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}

.navbar-main .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--gold);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: var(--green) !important;
}

.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after {
    width: 70%;
}

.lang-switcher .btn-lang {
    border: 2px solid var(--green);
    color: var(--green);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    transition: var(--transition);
}

.lang-switcher .btn-lang:hover,
.lang-switcher .btn-lang.active-lang {
    background: var(--green);
    color: var(--white);
}

/* ─── Hero ───────────────────────────────────── */
.hero-section {
    min-height: 92vh;
    background: linear-gradient(135deg, rgba(27,94,32,0.88) 0%, rgba(46,125,50,0.75) 50%, rgba(201,162,39,0.4) 100%),
                url('https://images.unsplash.com/photo-1548550023-2187e3e34477?w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 80px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    line-height: 1.7;
}

/* ─── Hero Image ─────────────────────────────── */
.hero-img-wrap {
    position: relative;
    width: 100%;
    max-width: 450px;
    padding-bottom: 24px;
}

.hero-img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    border: 3px solid rgba(255,255,255,0.25);
    display: block;
}

.hero-img-badge {
    position: absolute;
    bottom: 0;
    left: 28px;
    background: var(--gold);
    color: var(--white);
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(201,162,39,0.55);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
}

.hero-img-badge i { font-size: 1.25rem; }

[dir="rtl"] .hero-img-badge { left: auto; right: 28px; }

/* ─── Hero Badge (text pill) ─────────────────── */
.hero-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

/* ─── Buttons ─────────────────────────────── */
.btn-primary-custom {
    background: var(--gold);
    border: 2px solid var(--gold);
    color: var(--white);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary-custom:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201,162,39,0.4);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-outline-custom:hover {
    background: var(--white);
    color: var(--green);
    transform: translateY(-2px);
}

.btn-green {
    background: var(--green);
    border: 2px solid var(--green);
    color: var(--white);
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-green:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(46,125,50,0.35);
}

.btn-whatsapp {
    background: #25D366;
    border: none;
    color: var(--white);
    font-weight: 700;
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    transition: var(--transition);
}

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

/* ─── Section Titles ──────────────────────── */
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--green-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 0;
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
}

[dir="rtl"] .section-title::after { left: auto; right: 0; }

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.7;
}

/* ─── Stats ───────────────────────────────── */
.stats-section {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    padding: 4rem 0;
}

.stat-card {
    text-align: center;
    color: var(--white);
    padding: 1.5rem;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    margin-top: 0.4rem;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--gold-light);
    margin-bottom: 0.8rem;
    display: block;
}

/* ─── Livestock Cards ─────────────────────── */
.livestock-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--gray-200);
}

.livestock-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-light);
}

.livestock-card .card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.livestock-card .card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.livestock-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.badge-available  { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.badge-sold       { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.badge-reserved   { background: #fff8e1; color: #f57f17; border: 1px solid #ffe082; }

.livestock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
}

[dir="rtl"] .livestock-badge { right: auto; left: 12px; }

.card-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.card-detail i {
    color: var(--green);
    width: 16px;
    text-align: center;
}

.card-detail strong {
    color: var(--text-dark);
}

/* ─── Filter Sidebar ─────────────────────── */
.filter-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    position: sticky;
    top: 80px;
}

.filter-card .form-label {
    font-weight: 600;
    color: var(--green-dark);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.filter-card .form-select,
.filter-card .form-control {
    border-radius: 8px;
    border: 1.5px solid var(--gray-200);
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-card .form-select:focus,
.filter-card .form-control:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
}

/* ─── About Page ─────────────────────────── */
.about-hero {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: var(--white);
    padding: 6rem 0 4rem;
}

.about-img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-wrap img {
    width: 100%;
    object-fit: cover;
}

.why-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    height: 100%;
}

.why-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.8rem;
    color: var(--white);
}

/* ─── Services Page ──────────────────────── */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid transparent;
    height: 100%;
}

.service-card:hover {
    border-top-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}

/* ─── Gallery ─────────────────────────────── */
.gallery-item {
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    position: relative;
    height: 250px;
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(46,125,50,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay i { color: var(--white); font-size: 2.5rem; }

/* ─── Contact ─────────────────────────────── */
.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    height: 100%;
}

.contact-card:hover {
    border-bottom-color: var(--gold);
    transform: translateY(-4px);
}

.contact-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--white);
}

/* Center the icon only inside the top stat-cards, not in the list rows */
.contact-card .contact-icon {
    margin: 0 auto 1rem;
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
}

.contact-form-card .form-control {
    border-radius: 8px;
    border: 1.5px solid var(--gray-200);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.contact-form-card .form-control:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
}

/* ─── Page Heroes ─────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    padding: 5rem 0 3rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }

.page-hero .breadcrumb { background: none; padding: 0; }
.page-hero .breadcrumb-item { color: rgba(255,255,255,0.75); }
.page-hero .breadcrumb-item a { color: var(--gold-light); }
.page-hero .breadcrumb-item.active { color: var(--white); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ─── Livestock Detail ────────────────────── */
.detail-gallery img {
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.detail-gallery .main-img {
    width: 100%; height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.detail-gallery .thumb-img {
    width: 100%; height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid transparent;
    opacity: 0.75;
    transition: var(--transition);
}

.detail-gallery .thumb-img:hover,
.detail-gallery .thumb-img.active-thumb {
    border-color: var(--gold);
    opacity: 1;
}

.detail-info-card {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--gray-200);
}

.detail-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--gray-200);
    font-size: 0.95rem;
}

.detail-info-row:last-child { border-bottom: none; }

.detail-info-row .label {
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-info-row .label i { color: var(--green); }

.detail-info-row .value { font-weight: 700; color: var(--text-dark); }

/* ─── Footer ──────────────────────────────── */
.footer {
    background: linear-gradient(135deg, #1a3a1a 0%, var(--green-dark) 100%);
    color: rgba(255,255,255,0.85);
    padding: 4rem 0 0;
}

.footer h5 {
    color: var(--gold-light);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--gold);
}

[dir="rtl"] .footer h5::after { left: auto; right: 0; }

.footer a {
    color: rgba(255,255,255,0.75);
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer a:hover { color: var(--gold-light); padding-inline-start: 6px; }

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 1.2rem 0;
    margin-top: 3rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
}

.footer .logo-wrap img { height: 70px; filter: drop-shadow(0 0 10px rgba(255,255,255,.35)) brightness(1.4); }

/* ─── WhatsApp Float ──────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px; height: 58px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 20px rgba(37,211,102,0.5);
    z-index: 9999;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease, transform .3s ease, background .3s ease, box-shadow .3s ease;
}
.whatsapp-float.wa-visible {
    opacity: 1;
    pointer-events: auto;
}

[dir="rtl"] .whatsapp-float { right: auto; left: 28px; }

.whatsapp-float:hover {
    background: #128C7E;
    color: var(--white);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 30px rgba(37,211,102,0.6);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid #25D366;
    border-radius: 50%;
    opacity: 0;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0%   { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ─── Scroll To Top ───────────────────────── */
.scroll-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 44px; height: 44px;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

[dir="rtl"] .scroll-top { left: auto; right: 90px; }

.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--green-dark); transform: translateY(-3px); }

/* ─── Pagination ──────────────────────────── */
.pagination .page-link {
    color: var(--green);
    border-radius: 8px !important;
    margin: 0 2px;
    border: 1.5px solid var(--gray-200);
    transition: var(--transition);
}

.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

/* ─── Utilities ───────────────────────────── */
.text-green  { color: var(--green) !important; }
.text-gold   { color: var(--gold) !important; }
.bg-green    { background: var(--green) !important; }
.bg-gold     { background: var(--gold) !important; }
.bg-gray     { background: var(--gray-100) !important; }

.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }

.rounded-custom { border-radius: var(--radius); }
.shadow-custom  { box-shadow: var(--shadow); }

/* ─── Lightbox Overlay ─────────────────────── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.open { opacity: 1; pointer-events: auto; }

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
}

.lightbox-close:hover { color: var(--gold); transform: rotate(90deg); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: none;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-nav:hover { background: var(--gold); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ─── Font Weight Utilities ──────────────── */
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }

/* ─── Responsive ──────────────────────────── */
@media (max-width: 768px) {
    .hero-section { min-height: 80vh; text-align: center; }
    .hero-subtitle { margin: 0 auto; }
    .detail-gallery .main-img { height: 280px; }
    .stat-number { font-size: 2.5rem; }
    .gallery-item { height: 180px; }
    .section-pad { padding: 3rem 0; }
}

/* (preloader styles are inlined in partials/preloader.blade.php) */

#page-loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, #1b5e20 0%, #2e7d32 55%, #388e3c 100%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Decorative background orbs */
.loader-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: loader-orb-float 4s ease-in-out infinite;
}
.loader-orb:nth-child(1) {
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(201,162,39,0.10) 0%, transparent 70%);
    top: -150px; right: -100px;
    animation-delay: 0s;
}
.loader-orb:nth-child(2) {
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    bottom: -100px; left: -60px;
    animation-delay: 1.5s;
}
.loader-orb:nth-child(3) {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, transparent 70%);
    top: 30%; right: 8%;
    animation-delay: 0.8s;
}

@keyframes loader-orb-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-18px) scale(1.07); }
}

/* Brand */
.loader-brand {
    text-align: center;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
    animation: loader-brand-in 0.8s ease both;
}

@keyframes loader-brand-in {
    from { opacity: 0; transform: translateY(-28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.loader-logo-img {
    width: 90px; height: 90px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.7rem;
    animation: loader-logo-glow 2.5s ease-in-out infinite;
}

@keyframes loader-logo-glow {
    0%, 100% {
        filter: drop-shadow(0 0 6px rgba(201,162,39,0.35));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(201,162,39,0.72));
        transform: scale(1.05);
    }
}

.loader-co-name {
    font-size: clamp(0.88rem, 2.8vw, 1.2rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.28);
}

.loader-co-arabic {
    font-size: 0.85rem;
    color: #e8c547;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 0.15rem;
}

/* Walking scene */
.loader-scene {
    position: relative;
    width: 100vw;
    height: 148px;
    overflow: hidden;
    flex-shrink: 0;
    z-index: 2;
}

/* Ground strip */
.loader-ground {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 28px;
    background: #1a4820;
    border-top: 3px solid #56c35a;
}

/* Grass tufts */
.loader-ground::before {
    content: '';
    position: absolute;
    top: -9px; left: 0; right: 0;
    height: 12px;
    background: repeating-linear-gradient(
        90deg,
        transparent   0px, transparent  8px,
        #56c35a       8px, #56c35a     11px,
        transparent  11px, transparent 16px,
        #4caf50      16px, #4caf50     18px,
        transparent  18px, transparent 26px,
        #388e3c      26px, #388e3c     29px,
        transparent  29px, transparent 36px
    );
}

/* Walking calf container */
.loader-calf-wrap {
    position: absolute;
    bottom: 28px;
    animation: loader-walk 3.5s linear infinite;
}

@keyframes loader-walk {
    from { transform: translateX(-210px); }
    to   { transform: translateX(calc(100vw + 60px)); }
}

/* Calf bobs while walking */
.loader-calf-svg {
    width: 168px;
    height: auto;
    display: block;
    animation: loader-calf-bob 0.5s ease-in-out infinite;
}

@keyframes loader-calf-bob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

/* Progress bar */
.loader-bar-outer {
    width: min(280px, 76vw);
    height: 5px;
    background: rgba(255,255,255,0.18);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    margin-top: 1.4rem;
}

.loader-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #c9a227, #f0d565);
    border-radius: 3px;
    width: 0;
    animation: loader-fill 3s ease-out forwards;
}

@keyframes loader-fill {
    0%   { width: 0%; }
    50%  { width: 65%; }
    85%  { width: 90%; }
    100% { width: 100%; }
}

/* Loading text */
.loader-txt {
    margin-top: 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    position: relative;
    z-index: 2;
}

.loader-txt span {
    display: inline-block;
    animation: loader-wave 1.4s ease-in-out infinite;
}

.loader-txt span:nth-child(1)  { animation-delay: 0.00s; }
.loader-txt span:nth-child(2)  { animation-delay: 0.07s; }
.loader-txt span:nth-child(3)  { animation-delay: 0.14s; }
.loader-txt span:nth-child(4)  { animation-delay: 0.21s; }
.loader-txt span:nth-child(5)  { animation-delay: 0.28s; }
.loader-txt span:nth-child(6)  { animation-delay: 0.35s; }
.loader-txt span:nth-child(7)  { animation-delay: 0.42s; }
.loader-txt span.ld:nth-child(8)  { animation-delay: 0.56s; color: #e8c547; }
.loader-txt span.ld:nth-child(9)  { animation-delay: 0.70s; color: #e8c547; }
.loader-txt span.ld:nth-child(10) { animation-delay: 0.84s; color: #e8c547; }

@keyframes loader-wave {
    0%, 60%, 100% { transform: translateY(0); }
    30%            { transform: translateY(-6px); }
}

/* ─── Animated Brand Logo (navbar / footer / sidebar) ── */
.brand-logo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    cursor: pointer;
}
.brand-logo-wrap:hover {
    transform: scale(1.22);
}

/* Outer arc — green, clockwise */
.brand-logo-wrap .bl-arc-out {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #2e7d32;
    border-right-color: rgba(46,125,50,.45);
    border-bottom-color: rgba(46,125,50,.1);
    border-left-color: transparent;
    animation: blSpin 3.5s linear infinite;
    pointer-events: none;
}

/* Middle arc — gold, counter-clockwise */
.brand-logo-wrap .bl-arc-mid {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-top-color: #c9a227;
    border-left-color: rgba(201,162,39,.45);
    border-bottom-color: rgba(201,162,39,.1);
    border-right-color: transparent;
    animation: blSpin 2.4s linear infinite reverse;
    pointer-events: none;
}

/* Logo image */
.brand-logo-wrap .bl-img {
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
    animation: blGlow 2.6s ease-in-out infinite;
}

@keyframes blSpin { to { transform: rotate(360deg); } }

@keyframes blGlow {
    0%,100% { filter: drop-shadow(0 0 3px rgba(201,162,39,.3)); transform: scale(1); }
    50%     { filter: drop-shadow(0 0 10px rgba(201,162,39,.65)); transform: scale(1.04); }
}

/* Size variants */
.brand-logo-wrap.bl-md { width: 60px; height: 60px; }
.brand-logo-wrap.bl-md .bl-arc-out { width: 60px; height: 60px; }
.brand-logo-wrap.bl-md .bl-arc-mid { width: 46px; height: 46px; }
.brand-logo-wrap.bl-md .bl-img     { width: 36px; height: 36px; }

.brand-logo-wrap.bl-sm { width: 46px; height: 46px; }
.brand-logo-wrap.bl-sm .bl-arc-out { width: 46px; height: 46px; }
.brand-logo-wrap.bl-sm .bl-arc-mid { width: 35px; height: 35px; }
.brand-logo-wrap.bl-sm .bl-img     { width: 27px; height: 27px; }

/* Footer variant — brighter arcs on dark bg */
.brand-logo-wrap.bl-footer .bl-arc-out { border-top-color: #4caf50; border-right-color: rgba(76,175,80,.5); }
.brand-logo-wrap.bl-footer .bl-arc-mid { border-top-color: #e8c547; border-left-color: rgba(232,197,71,.5); }
.brand-logo-wrap.bl-footer .bl-img     { filter: drop-shadow(0 0 6px rgba(255,255,255,.3)) brightness(1.1); animation: blGlowFooter 2.6s ease-in-out infinite; }

@keyframes blGlowFooter {
    0%,100% { filter: drop-shadow(0 0 4px rgba(255,255,255,.25)) brightness(1.1); transform: scale(1); }
    50%     { filter: drop-shadow(0 0 12px rgba(232,197,71,.7)) brightness(1.2); transform: scale(1.04); }
}
