/* ════════════════════════════════════════════
   EXPLORE PAGE — MATCHING REFERENCE DESIGN
════════════════════════════════════════════ */

/* ── Hero (تصميم إسلامي أكاديمي فخم وعصري مطابق للمرجع) ── */
.explore-hero-section {
    min-height: 490px;
    position: relative;
    overflow: hidden;
    background-image: url("/assets/img/grand_library_hero_bg.jpg");
    background-size: cover;
    background-position: center 38%;
    display: flex;
    align-items: center;
}
.explore-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 35%, rgba(2, 32, 42, 0.20) 0%, rgba(1, 20, 28, 0.42) 65%, rgba(0, 10, 15, 0.65) 100%), 
                linear-gradient(180deg, rgba(1, 24, 33, 0.22) 0%, rgba(0, 12, 17, 0.52) 100%);
    z-index: 2;
}
.explore-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    pointer-events: none;
    z-index: 3;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23e6a530' stroke-width='0.75'%3E%3Cpath d='M40 0 L49 31 L80 40 L49 49 L40 80 L31 49 L0 40 L31 31 Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 64px 64px;
}

/* Hero Badge */
.ex-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(0, 24, 34, 0.45);
    border: 1px solid rgba(230, 165, 48, 0.45);
    color: #f7dfa5;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.12);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.ex-hero-badge:hover {
    background: rgba(0, 24, 34, 0.65);
    border-color: rgba(230, 165, 48, 0.7);
    transform: translateY(-1px);
}
.ex-badge-dot {
    width: 7px;
    height: 7px;
    background: #e6a530;
    border-radius: 50%;
    box-shadow: 0 0 10px #e6a530;
    animation: exPulse 2s infinite;
}
@keyframes exPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.ex-hero-title {
    font-size: clamp(34px, 5.5vw, 54px);
    font-weight: 950;
    color: #ffffff;
    margin: 0 0 14px;
    line-height: 1.25;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.9);
    font-family: 'Tajawal', sans-serif;
}
.ex-hero-subtitle-wrap {
    max-width: 760px;
    margin: 0 auto 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.ex-hero-subtitle-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f7dfa5;
    font-size: 18.5px;
    font-weight: 800;
    letter-spacing: -0.2px;
    text-shadow: 0 2px 14px rgba(230, 165, 48, 0.45);
}
.ex-hero-subtitle-gold i {
    font-size: 16px;
    color: #f7c355;
}
.ex-hero-subtitle-desc {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* Luxury Search Row Container */
.ex-search-row-container {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
@media (max-width: 768px) {
    .ex-search-row-container {
        flex-direction: column;
        gap: 10px;
    }
}
.ex-search-main-pill {
    flex: 1;
    background: #ffffff;
    border-radius: 60px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4), 0 0 0 1.5px rgba(255, 255, 255, 0.2), 0 0 35px rgba(230, 165, 48, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(230, 165, 48, 0.35);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    width: 100%;
}
.ex-search-main-pill:focus-within {
    border-color: #e6a530;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(230, 165, 48, 0.25), 0 0 40px rgba(230, 165, 48, 0.25);
    transform: translateY(-2px);
}
#explore-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15.5px;
    font-weight: 700;
    color: #0c3340;
    background: transparent;
    padding: 12px 6px;
    min-width: 0;
    font-family: 'Tajawal', sans-serif;
}
.ex-search-submit-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #003646 0%, #064c61 100%);
    color: #f7dfa5;
    border: 1px solid rgba(230, 165, 48, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 54, 70, 0.3);
}
.ex-search-submit-btn:hover {
    background: linear-gradient(135deg, #e6a530 0%, #c5a059 100%);
    color: #00222e;
    border-color: #f7e09e;
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

/* Advanced Search Pill Button */
.ex-advanced-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(0, 36, 49, 0.65);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 14px;
    backdrop-filter: blur(14px);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    font-family: 'Tajawal', sans-serif;
    flex-shrink: 0;
}
.ex-advanced-btn:hover {
    background: rgba(230, 165, 48, 0.2);
    border-color: #e6a530;
    color: #ffe49e;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(230, 165, 48, 0.25);
}
.ex-advanced-btn i {
    font-size: 13px;
    color: #f7dfa5;
}

/* Glassmorphic Search Tabs */
.explore-search-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 22px;
    justify-content: center;
}
.ex-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 24, 34, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.ex-tab-btn i {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.25s ease;
}
.ex-tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(230, 165, 48, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.ex-tab-btn:hover i {
    color: #f7dfa5;
}
.ex-tab-btn.active {
    background: rgba(230, 165, 48, 0.18) !important;
    border-color: #e6a530 !important;
    color: #ffe49e !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 18px rgba(230, 165, 48, 0.35), inset 0 0 10px rgba(230, 165, 48, 0.15) !important;
    transform: translateY(-2px);
}
.ex-tab-btn.active i {
    color: #e6a530 !important;
}

/* Trending Searches Row */
.ex-trending-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
    font-size: 13px;
}
.ex-trending-label {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ex-trending-row a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 14px;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.ex-trending-row a:hover {
    background: rgba(230, 165, 48, 0.22);
    color: #ffd875;
    border-color: rgba(230, 165, 48, 0.45);
    transform: translateY(-1px);
}
.ex-trending-dot {
    color: rgba(255, 255, 255, 0.25);
}

/* ── Section common ── */
.ex-section {
    padding: 70px 0 80px;
    background: #fff;
}
.ex-section-alt { background: #f8f9fc; }
.ex-section-dark { background: #003244; }

/* Section header ornament */
.ex-orn-header {
    text-align: center;
    margin-bottom: 45px;
}
.ex-orn-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 6px;
}
.ex-orn-line {
    height: 1.5px;
    width: 55px;
    background: linear-gradient(90deg, transparent, #c5a059);
    border-radius: 10px;
}
.ex-orn-line.rev { background: linear-gradient(90deg, #c5a059, transparent); }
.ex-orn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(197,160,89,0.1);
    border: 1px solid rgba(197,160,89,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5a059;
    font-size: 16px;
}
.ex-section-h2 {
    font-size: 28px;
    font-weight: 900;
    color: #11273d;
    margin: 10px 0 6px;
    line-height: 1.3;
}
.ex-section-h2.light { color: #fff; }
.ex-section-sub {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* ── Content Type Cards (Ultra Luxury Academic Redesign) ── */
.ct-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
@media (max-width: 1200px) { .ct-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (max-width: 768px)  { .ct-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px)  { .ct-grid { grid-template-columns: 1fr; gap: 12px; } }

.ct-card-new {
    background: #ffffff;
    border: 1.5px solid #edf2f7;
    border-radius: 22px;
    padding: 28px 16px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 290px;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px -2px rgba(0, 36, 49, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
}

/* Elegant top accent bar */
.ct-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: var(--theme-gradient, linear-gradient(90deg, #0c6277, #e6a530));
    opacity: 0.85;
    transition: height 0.3s ease, opacity 0.3s ease;
}

.ct-card-new:hover {
    border-color: var(--hover-border, rgba(197,160,89,0.5));
    box-shadow: 0 20px 38px -8px var(--theme-shadow, rgba(0,0,0,0.12)), 0 0 0 1px var(--hover-border, rgba(197,160,89,0.25));
    transform: translateY(-8px);
    text-decoration: none;
}
.ct-card-new:hover::before {
    height: 5px;
    opacity: 1;
}

.ct-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    margin-bottom: 6px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.7), 0 8px 20px -4px var(--theme-shadow, rgba(0,0,0,0.1));
    border: 1px solid rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}
.ct-card-new:hover .ct-icon-circle {
    transform: scale(1.1) rotate(-4deg);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.9), 0 12px 25px -4px var(--theme-shadow, rgba(0,0,0,0.2));
}

.ct-name-new {
    font-size: 15.5px;
    font-weight: 900;
    color: #0f2438;
    line-height: 1.35;
    margin-bottom: 2px;
    font-family: 'Tajawal', sans-serif;
    transition: color 0.3s ease;
}
.ct-card-new:hover .ct-name-new {
    color: var(--theme-accent, #003646);
}

.ct-subtypes-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 6px 0 14px;
    min-height: 42px;
    line-height: 1.6;
}
.ct-sub-item {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    transition: color 0.25s ease;
}
.ct-card-new:hover .ct-sub-item {
    color: #1e293b;
}
.ct-sub-dot {
    color: #cbd5e1;
    font-size: 10px;
    margin: 0 1px;
}
.ct-sub-plus {
    font-size: 10px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
}

.ct-count-badge-wrap {
    width: 100%;
    margin-top: auto;
}
.ct-count-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 155px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    font-family: 'Tajawal', sans-serif;
}
.ct-count-icon {
    font-size: 10px;
    color: #94a3b8;
    transition: color 0.3s ease;
}
.ct-count-num {
    font-weight: 900;
    font-size: 13px;
}
.ct-count-arrow {
    font-size: 9px;
    opacity: 0;
    transform: translateX(6px);
    transition: all 0.3s ease;
    margin-right: 2px;
}
.ct-card-new:hover .ct-count-pill {
    background: var(--theme-gradient, #003646);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 18px -2px var(--theme-shadow, rgba(0,0,0,0.25));
    transform: translateY(-2px);
}
.ct-card-new:hover .ct-count-icon {
    color: rgba(255, 255, 255, 0.8);
}
.ct-card-new:hover .ct-count-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── Academic Fields Grid (Luxury Modern Refinement) ── */
.af-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
@media (max-width: 1200px) { .af-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (max-width: 768px)  { .af-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px)  { .af-grid { grid-template-columns: 1fr; gap: 12px; } }

.af-card {
    background: #ffffff;
    border: 1.5px solid #edf2f7;
    border-radius: 22px;
    padding: 26px 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    min-height: 252px;
    height: 100%;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px -2px rgba(0, 36, 49, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.af-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: var(--af-accent, #c5a059);
    opacity: 0.85;
    transition: all 0.3s ease;
}
.af-card:hover {
    border-color: var(--af-color, #c5a059);
    box-shadow: 0 16px 36px -6px rgba(0, 36, 49, 0.12), 0 0 0 1px var(--af-color, #c5a059);
    transform: translateY(-6px);
    text-decoration: none;
}
.af-card:hover::before {
    height: 5px;
    opacity: 1;
}

.af-icon-wrap {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    margin-bottom: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
}
.af-card:hover .af-icon-wrap {
    transform: scale(1.1) rotate(-4deg);
    box-shadow: 0 12px 26px -3px rgba(0, 0, 0, 0.16);
}

.af-name {
    font-size: 16px;
    font-weight: 900;
    color: #0f2942;
    line-height: 1.35;
    margin-bottom: 6px;
    font-family: 'Tajawal', sans-serif;
    transition: color 0.3s ease;
}
.af-card:hover .af-name {
    color: var(--af-color, #003646);
}

.af-subtopics {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    line-height: 1.65;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}
.af-card:hover .af-subtopics {
    color: #334155;
}

.af-count {
    margin-top: auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
    width: 100%;
    max-width: 145px;
}
.af-count-arrow {
    font-size: 9px;
    opacity: 0;
    transform: translateX(4px);
    transition: all 0.3s ease;
    margin-right: 2px;
}
.af-card:hover .af-count {
    background: var(--af-color, #003646);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}
.af-card:hover .af-count i,
.af-card:hover .af-count span {
    color: #ffffff !important;
}
.af-card:hover .af-count-arrow {
    opacity: 1;
    transform: translateX(0);
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(197,160,89,0.4);
    color: #c5a059;
    background: transparent;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
    transition: 0.3s;
    margin-top: 32px;
}
.view-all-link:hover {
    background: rgba(197,160,89,0.08);
    color: #c5a059;
}

/* ── Featured Groups (Curated Scholarly Tracks) ── */
.fg-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
@media (max-width: 1200px) { .fg-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (max-width: 768px)  { .fg-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px)  { .fg-grid { grid-template-columns: 1fr; gap: 12px; } }

.fg-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1.5px solid #edf2f8;
    border-radius: 22px;
    padding: 26px 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 290px;
    height: 100%;
    text-decoration: none;
    transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px -2px rgba(15, 35, 55, 0.05), 0 1px 4px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.fg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--fg-accent, #c5a059);
    opacity: 0.85;
    transition: all 0.3s ease;
}
.fg-card:hover {
    border-color: var(--fg-color, #c5a059);
    box-shadow: 0 18px 40px -6px rgba(15, 35, 55, 0.12), 0 0 0 1px var(--fg-color, #c5a059);
    transform: translateY(-6px);
    text-decoration: none;
}
.fg-card:hover::before {
    height: 5.5px;
    opacity: 1;
}

.fg-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.fg-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
}
.fg-card:hover .fg-icon-wrap {
    transform: scale(1.1) rotate(-4deg);
    box-shadow: 0 12px 24px -3px rgba(0, 0, 0, 0.16);
}

.fg-pill-badge {
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--fg-badge-bg, rgba(197, 160, 89, 0.12));
    color: var(--fg-color, #003646);
    border: 1px solid var(--fg-badge-border, rgba(197, 160, 89, 0.25));
    font-family: 'Tajawal', sans-serif;
    letter-spacing: -0.2px;
}

.fg-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.fg-name {
    font-size: 16px;
    font-weight: 900;
    color: #0f2942;
    line-height: 1.35;
    margin-bottom: 8px;
    font-family: 'Tajawal', sans-serif;
    transition: color 0.3s ease;
}
.fg-card:hover .fg-name {
    color: var(--fg-color, #003646);
}

.fg-desc {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    line-height: 1.65;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 58px;
}
.fg-card:hover .fg-desc {
    color: #334155;
}

.fg-footer-pill {
    margin-top: auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}
.fg-footer-left {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fg-footer-arrow {
    font-size: 10px;
    opacity: 0.6;
    transform: translateX(3px);
    transition: all 0.3s ease;
}
.fg-card:hover .fg-footer-pill {
    background: var(--fg-color, #003646);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}
.fg-card:hover .fg-footer-pill span,
.fg-card:hover .fg-footer-pill i {
    color: #ffffff !important;
}
.fg-card:hover .fg-footer-arrow {
    opacity: 1;
    transform: translateX(0);
}


/* ── Search Input Placeholder Permanent Visibility Fix ── */
#explore-search-input,
#explore-search-input::placeholder,
#explore-search-input:focus::placeholder {
    transition: none !important;
}
#explore-search-input::-webkit-input-placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-weight: 600 !important;
}
#explore-search-input::-moz-placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-weight: 600 !important;
}
#explore-search-input:-ms-input-placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-weight: 600 !important;
}
#explore-search-input::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-weight: 600 !important;
}
#explore-search-input:focus::-webkit-input-placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
    visibility: visible !important;
}
#explore-search-input:focus::-moz-placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
    visibility: visible !important;
}
#explore-search-input:focus:-ms-input-placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
    visibility: visible !important;
}
#explore-search-input:focus::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
    visibility: visible !important;
}
#explore-search-input {
    color: #11273d !important;
}

/* ── Multi-Language RTL / LTR Directional Rules ── */
html[dir="rtl"] .ex-hero-badge,
html[dir="rtl"] .ex-hero-subtitle-wrap,
html[dir="rtl"] .ex-search-row-container,
html[dir="rtl"] .explore-search-tabs,
html[dir="rtl"] .ex-trending-row,
html[dir="rtl"] .ct-subtypes-wrap,
html[dir="rtl"] .af-subtopics,
html[dir="rtl"] .fg-desc {
    direction: rtl;
}
html[dir="rtl"] .ex-search-main-pill {
    padding: 6px 8px 6px 20px;
}
html[dir="rtl"] #explore-search-input {
    text-align: right;
}
html[dir="rtl"] .ct-count-arrow {
    transform: translateX(6px);
    margin-right: 2px;
    margin-left: 0;
}
html[dir="rtl"] .ct-card-new:hover .ct-count-arrow {
    transform: translateX(0);
}
html[dir="rtl"] .af-count-arrow {
    transform: translateX(4px);
    margin-right: 2px;
    margin-left: 0;
}
html[dir="rtl"] .af-card:hover .af-count-arrow {
    transform: translateX(0);
}
html[dir="rtl"] .fg-footer-arrow {
    transform: translateX(3px);
}
html[dir="rtl"] .fg-card:hover .fg-footer-arrow {
    transform: translateX(0);
}

html[dir="ltr"] .ex-hero-badge,
html[dir="ltr"] .ex-hero-subtitle-wrap,
html[dir="ltr"] .ex-search-row-container,
html[dir="ltr"] .explore-search-tabs,
html[dir="ltr"] .ex-trending-row,
html[dir="ltr"] .ct-subtypes-wrap,
html[dir="ltr"] .af-subtopics,
html[dir="ltr"] .fg-desc {
    direction: ltr !important;
}
html[dir="ltr"] .ex-hero-title,
html[dir="ltr"] .ex-hero-subtitle-desc,
html[dir="ltr"] .ex-advanced-btn,
html[dir="ltr"] .ex-tab-btn,
html[dir="ltr"] .ct-name-new,
html[dir="ltr"] .af-name,
html[dir="ltr"] .fg-name,
html[dir="ltr"] .ex-section-h2,
html[dir="ltr"] .ex-section-sub {
    font-family: inherit !important;
}
html[dir="ltr"] .ex-search-main-pill {
    padding: 6px 20px 6px 8px !important;
}
html[dir="ltr"] #explore-search-input {
    text-align: left !important;
    font-family: inherit !important;
}
html[dir="ltr"] .fg-desc {
    text-align: left !important;
}
html[dir="ltr"] .ct-count-arrow {
    transform: translateX(-6px) !important;
    margin-left: 2px !important;
    margin-right: 0 !important;
}
html[dir="ltr"] .ct-card-new:hover .ct-count-arrow {
    transform: translateX(0) !important;
}
html[dir="ltr"] .af-count-arrow {
    transform: translateX(-4px) !important;
    margin-left: 2px !important;
    margin-right: 0 !important;
}
html[dir="ltr"] .af-card:hover .af-count-arrow {
    transform: translateX(0) !important;
}
html[dir="ltr"] .fg-footer-arrow {
    transform: translateX(-3px) !important;
}
html[dir="ltr"] .fg-card:hover .fg-footer-arrow {
    transform: translateX(0) !important;
}
html[dir="ltr"] .fg-footer-left {
    flex-direction: row !important;
}
html[dir="ltr"] .fg-footer-pill {
    flex-direction: row !important;
}
