/* ============================================
   AlhunainNew ─ Complete Site Styles
   Arabic RTL-first · No Red · Brand Colors
   ============================================ */

/* ── CSS Variables ── */
:root {

    --color-black:#000;
    /* Scholarly Theme ─ Teal & Steel Blue (inspired by saadalkhathlan.com) */
    --color-primary: #1ebcae;
    --color-primary-dark: #179e93;
    --color-primary-light: #e0f7f5;
    --color-secondary: #4b75a3;
    --color-accent: #1ebcae;
    --color-accent-light: #3dd4c6;
    --color-nav-bg: #1ebcae;
    --color-body-bg: #ffffff;
    --color-text: #374151;
    --color-text-light: #6b7280;
    --color-heading: #1f2937;
    --color-dark-section: #1a3a5c;
    --color-gray-bg: #f8fafc;
    --color-border: #c0c4cc;
    --color-white: #ffffff;
    --color-gold: #1ebcae;
    --color-gold-light: #e0f7f5;
    --color-cream: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1ebcae 0%, #4b75a3 100%);
    --gradient-subtle: linear-gradient(135deg, #f0fdfb 0%, #f8fafc 100%);
    --gradient-section: linear-gradient(90deg, #1ebcae 0%, #4b75a3 100%);
    --gradient-gold: linear-gradient(135deg, #1ebcae 0%, #3dd4c6 50%, #1ebcae 100%);
    --gradient-emerald: linear-gradient(to bottom, #1ebcae 0%, #4b75a3 100%);
    --gradient-glass: linear-gradient(135deg, rgba(30,188,174,.85) 0%, rgba(75,117,163,.7) 100%);

    --font-arabic: 'Tajawal', 'Amiri', 'Segoe UI', sans-serif;

    --section-padding: 32px 0;
    --section-padding-sm: 24px 0;

    --shadow-sm: 0 1px 4px rgba(30,188,174,.06);
    --shadow-md: 0 3px 12px rgba(30,188,174,.08);
    --shadow-lg: 0 6px 20px rgba(30,188,174,.1);
    --shadow-hover: 0 6px 24px rgba(30,188,174,.15);
    --shadow-gold: 0 4px 20px rgba(30,188,174,.2);

    --transition-fast: .15s ease;
    --transition-base: .25s ease;
    --transition-slow: .4s ease;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
}

/* ── Base / Typography ── */
html { overflow-x: hidden; }
body {
    font-family: var(--font-arabic) !important;
    font-weight: 400;
    direction: rtl;
    text-align: right;
    color: var(--color-text);
    background: var(--color-cream);
    line-height: 1.7;
    font-size: .9rem;
    overflow-x: hidden;
}

/* ── Heading Hierarchy ── */
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
h5 { font-size: .95rem; font-weight: 600; }
h6 { font-size: .88rem; font-weight: 600; }
p, li, span, td, th, label, input, textarea, select {
    color: #020202;
}
/* Override back to white for dark-background sections */
.site-footer p,
.site-footer li,
.site-footer span,
.site-footer td,
.site-footer label,
.page-header-compact p,
.page-header-compact li,
.page-header-compact span,
.hp-vslider-noimg p,
.hp-vslider-noimg li,
.hp-vslider-noimg span,
.site-button span {
    color: inherit;
}
/* ── Skip-to-content (a11y) ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-secondary);
    color: #fff;
    padding: 8px 20px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-size: .85rem;
    z-index: 100000;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
    color: #fff;
}

h1, h2, h3, h4, h5, h6,
.title, .footer-title {
    font-family: var(--font-arabic) !important;
    color: var(--color-heading);
    line-height: 1.5;
}
.nav, .navbar-nav {
    font-family: var(--font-arabic) !important;
}

a {
    color: var(--color-heading);
    transition: color var(--transition-fast);
    text-decoration: none;
}
a:hover { color: var(--color-gold); text-decoration: none; }

/* ── Focus-visible states (a11y) ── */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.site-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--color-accent);
}

/* ── Section Utilities ── */
.section-full { padding: var(--section-padding); }
.content-inner { padding: 40px 0; }
.content-inner-1 { padding: 50px 0 30px; }
.bg-gray { background-color: var(--color-gray-bg) !important; }
.bg-brand { background-color: var(--color-secondary) !important; }
.bg-brand-light { background-color: var(--color-primary) !important; }

.section-head {
    margin-bottom: 40px;
}
.section-head .title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-heading);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.section-head .title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 2px;
}
.text-center .section-head .title::after,
.section-head.text-center .title::after {
    right: 50%;
    transform: translateX(50%);
}

/* ── Buttons ── */
.site-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    font-family: var(--font-arabic) !important;
    font-size: .9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-accent);
    background: var(--color-accent);
    color: #fff !important;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none !important;
    line-height: 1.5;
}
.site-button:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff !important;
}
.site-button.outline {
    background: transparent;
    color: var(--color-accent) !important;
}
.site-button.outline:hover {
    background: var(--color-accent);
    color: #fff !important;
}
.site-button.white {
    background: #fff;
    border-color: #fff;
    color: var(--color-secondary) !important;
}
.site-button.white:hover {
    background: transparent;
    color: #fff !important;
    border-color: #fff;
}
.site-button.btn-sm, .site-button.sm {
    padding: 6px 16px;
    font-size: .82rem;
}
.site-button svg, .site-button i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* ── SVG Icon Base ── */
.icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icon-svg svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Research Portal Header ── */
.research-header {
    background: var(--gradient-emerald);
    border-bottom: none;
    padding: 16px 0;
    position: relative;
}
.research-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    background-size: 200% 100%;
    animation: goldShimmer 3s ease infinite;
}
@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.rh-row {
    display: flex;
    align-items: center;
    gap: 20px;
}
/* Logo block: suptitle above, logo, subtitle below */
.rh-logo-block {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.rh-suptitle {
    font-size: .72rem;
    /*color: rgba(255,255,255,.85);*/
    font-weight: 400;
     color: transparent; /* إخفاء النص الأصلي */
  position: relative;
}
.rh-suptitle::after {
  content: "موقع الاستاذ الدكتور";
  color: rgba(255,255,255,.85);
  position: absolute;
  left: 0;
  top: 0;
}
.rh-logo-link {
    display: block;
    line-height: 0;
}
.rh-logo-link img {
    height: 60px;
    width: auto;
    max-width: 220px;
}
.rh-subtitle {
    font-size: .68rem;
    color: rgba(255,255,255,.75);
    font-weight: 300;
    text-align: center;
    max-width: 260px;
    line-height: 1.4;
}
.rh-center {
    flex: 1;
    min-width: 0;
}
.rh-search {
    display: flex;
    min-width: 200px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background: rgba(255,255,255,.15);
}
.rh-search:focus-within {
    border-color: rgba(255,255,255,.6);
    box-shadow: 0 0 0 3px rgba(255,255,255,.15);
}
.rh-search input {
    flex: 1;
    border: none;
    padding: 7px 14px;
    font-family: var(--font-arabic);
    font-size: .82rem;
    background: transparent;
    outline: none;
    direction: rtl;
    color: #fff;
    min-width: 0;
}
.rh-search input::placeholder {
    color: rgba(255,255,255,.6);
}
.rh-search button {
    background: rgba(255,255,255,.2);
    border: none;
    padding: 7px 12px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background var(--transition-fast);
}
.rh-search button:hover {
    background: rgba(255,255,255,.3);
    color: #fff;
}
.rh-search input:focus-visible {
    outline: none;
}
.rh-search button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}
/* Actions area (left side) */
.rh-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.rh-action-icons {
    display: flex;
    gap: 6px;
}
.rh-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: .65rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: color .15s, background .15s;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-arabic);
}
.rh-action-btn:hover {
    color: #fff;
    background: rgba(255,255,255,.15);
}
.rh-action-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.rh-action-btn svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

/* ── Navigation ── */
.main-bar {
    background: linear-gradient(135deg, #153350 0%, #1a3a5c 50%, #234b72 100%) !important;
    border-bottom: 2px solid var(--color-accent);
}

/* Desktop nav: icon above text (binbaz-style) */
.header-nav .nav.navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    justify-content: center;
}
.header-nav .nav.navbar-nav-icons > li {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
}
.header-nav .nav.navbar-nav-icons > li > a {
    font-family: var(--font-arabic) !important;
    font-size: .78rem;
    font-weight: 500;
    padding: 10px 12px !important;
    line-height: 1.2;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    min-height: 70px;
    white-space: normal;
    color: #fff !important;
    transition: color .15s, background .15s, border .15s;
    text-decoration: none;
    border: 2px solid transparent !important;
    height: 100%;
}
/* Kill navstyle2 :after pseudo-element border */
.navstyle2 .header-nav .nav > li > a:after,
.header-nav .nav.navbar-nav-icons > li > a:after {
    content: none !important;
    display: none !important;
}
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.5;
}
.nav-label {
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    color: #fff !important;
}
.header-nav .nav.navbar-nav-icons > li > a:hover {
    background: rgba(30,188,174,.2) !important;
    color: #fff !important;
    border: 2px solid rgba(30,188,174,.4) !important;
    border-radius: 6px;
}
.header-nav .nav.navbar-nav-icons > li.active > a {
    background: rgba(30,188,174,.35) !important;
    color: #fff !important;
    border: 2px solid rgba(30,188,174,.6) !important;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(30,188,174,.25);
}
.header-nav .nav.navbar-nav-icons > li > a:focus-visible {
    outline: 2px solid rgba(255,255,255,.6);
    outline-offset: -2px;
    color: #fff !important;
}
.header-nav .nav.navbar-nav-icons > li > a:active {
    color: #fff !important;
}
/* Separator between nav items */
.header-nav .nav.navbar-nav-icons > li + li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(30,188,174,.25);
}

.search-link {
    color: #fff !important;
    text-decoration: none;
    transition: opacity var(--transition-fast);
    display: flex;
    align-items: center;
}
.search-link:hover { opacity: .75; }
.search-link:focus-visible,
.survey-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.navbar-toggler:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ── Hero Slider (pure CSS version, kept as fallback alongside revslider) ── */
.hero-slider-section {
    position: relative;
    overflow: hidden;
}

/* ── Hub Quick-Access Cards ── */
.hub-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px 15px 22px;
    text-align: center;
    transition: all var(--transition-base);
    text-decoration: none !important;
    color: var(--color-heading);
    box-shadow: var(--shadow-sm);
    min-height: 140px;
}
.hub-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    color: var(--color-heading);
}
.hub-card-inner {
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.hub-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-bg);
    border-radius: 50%;
    color: var(--color-accent);
    font-size: 1.4rem;
    transition: all var(--transition-base);
}
.hub-card:focus-within {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-hover);
}
.hub-card:hover .hub-card-icon {
    background: var(--color-accent);
    color: #fff;
}
.hub-card h5 {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
}

/* ── Biography CTA ── */
.bio-cta {
    background: var(--gradient-emerald);
    padding: 28px 0;
    position: relative;
    overflow: hidden;
}
.bio-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 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' stroke='%231ebcae' stroke-width='0.4' opacity='0.1'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
}
.bio-cta h4 {
    color: #fff;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

/* ── Content Cards ── */
.content-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.content-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.content-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.content-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 8px;
    line-height: 1.6;
}
.content-card .card-title a { color: var(--color-heading); }
.content-card .card-title a:hover { color: var(--color-accent); }
.content-card .card-text {
    color: var(--color-text-light);
    font-size: .85rem;
    line-height: 1.7;
    flex: 1;
}
.content-card .card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    color: var(--color-text-light);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

/* ── Video Card ── */
.video-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-primary);
    transition: all var(--transition-base);
    height: 100%;
}
.video-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.video-card .video-thumb {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: #000;
}
.video-card .video-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.video-card:hover .video-thumb img {
    transform: scale(1.05);
}
.video-card .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.4rem;
    transition: all var(--transition-base);
    z-index: 2;
}
.video-card:hover .video-play-icon {
    background: var(--color-accent);
    color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}
.video-card .card-body {
    padding: 16px;
}
.video-card .card-title {
    color: #fff;
    font-size: .92rem;
    margin: 0;
    font-weight: 600;
}
.video-card .card-title a { color: #fff; }

/* ── Book Card ── */
.book-card {
    text-align: center;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 15px;
    transition: all var(--transition-base);
    height: 100%;
}
.book-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.book-card img {
    max-height: 180px;
    width: auto;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
}
.book-card h6 {
    font-size: .88rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 10px;
}
.book-card h6 a { color: var(--color-heading); }
.book-card h6 a:hover { color: var(--color-accent); }

/* ── Internal Page Header (Compact) ── */
.page-header-compact {
    background: #3a3a3a;
    padding: 14px 0;
    position: relative;
    overflow: hidden;
}
.page-header-compact::before {
    content: none;
}
.page-header-compact h1 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px;
}

/* ── Breadcrumb (Arabic, no "ood") ── */
.breadcrumb-clean {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: .82rem;
    direction: rtl;
}
.breadcrumb-clean li {
    display: flex;
    align-items: center;
    gap: 4px;
}
.breadcrumb-clean li + li::before {
    content: '\203A';
    color: rgba(255,255,255,.45);
    margin: 0 2px;
}
.breadcrumb-clean li a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: .78rem;
    transition: color var(--transition-fast);
}
.breadcrumb-clean li a:hover { color: var(--color-gold); }
.breadcrumb-clean li.active {
    color: rgba(255,255,255,.9);
    font-weight: 500;
    font-size: .78rem;
}

/* ── Internal Layout: Sidebar RIGHT (RTL natural) ── */
.internal-layout {
    padding: 30px 0;
}
/* Hide sidebar completely — full width content */
.internal-sidebar {
    display: none !important;
}
.internal-main-content {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* ── Sidebar Widget ── */
.sidebar-widget-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar-widget-card .widget-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--color-heading);
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--color-gold);
    display: flex;
    align-items: center;
    gap: 6px;
}
.sidebar-hub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-hub-list li {
    margin-bottom: 2px;
}
.sidebar-hub-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: var(--color-heading);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    transition: all var(--transition-fast);
}
.sidebar-hub-list li a:hover,
.sidebar-hub-list li a.active {
    background: var(--color-gray-bg);
    color: var(--color-accent);
    padding-right: 16px;
}
.sidebar-hub-list li a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-primary-dark);
    transition: color var(--transition-fast);
}
.sidebar-hub-list li a:hover svg,
.sidebar-hub-list li a.active svg {
    color: var(--color-accent);
}

/* ── Filters ── */
.filter-container {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.filter-container .filter-label {
    font-weight: 600;
    font-size: .85rem;
    color: var(--color-heading);
    margin-left: 10px;
}
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    font-size: .82rem;
    font-family: var(--font-arabic);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #fff;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-heading);
}
.filter-btn.active {
    background: var(--color-accent) !important;
    color: #fff !important;
    border-color: var(--color-accent) !important;
}
.filter-container.filter-art {
    border-right: 3px solid var(--color-primary);
    margin-bottom: 12px;
}
.filter-container.filter-art + .filter-container {
    margin-top: 0;
}

/* ── Audio Table ── */
.audio-table {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
}
.audio-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.audio-table thead th {
    background: var(--color-primary);
    color: var(--color-gold-light);
    padding: 14px 16px;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
}
.audio-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
    font-size: .88rem;
}
.audio-table tbody tr {
    transition: background var(--transition-fast);
}
.audio-table tbody tr:hover {
    background: var(--color-gray-bg);
}
.audio-table tbody tr:last-child td { border-bottom: none; }

/* Action Icons */
.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-gray-bg);
    color: var(--color-accent);
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    text-decoration: none !important;
}
.action-icon:hover {
    background: var(--color-accent);
    color: #fff;
    transform: scale(1.1);
}
.action-icon svg {
    width: 18px;
    height: 18px;
}

/* ── Item List Cards (Hub listings) ── */
.item-list-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    transition: all var(--transition-base);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.item-list-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}
.item-list-card .item-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--color-gray-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}
.item-list-card .item-icon svg {
    width: 22px;
    height: 22px;
}
.item-list-card .item-body { flex: 1; min-width: 0; }
.item-list-card .item-body h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.item-list-card .item-body h5 a { color: var(--color-heading); }
.item-list-card .item-body h5 a:hover { color: var(--color-accent); }
.item-list-card .item-body p {
    color: var(--color-text-light);
    font-size: .85rem;
    margin-bottom: 8px;
    line-height: 1.7;
}
.item-list-card .item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .78rem;
    color: var(--color-text-light);
}
.item-list-card .item-meta .badge {
    background: var(--color-gray-bg);
    color: var(--color-text);
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-xl);
    font-size: .75rem;
}

/* ── Article Detail ── */
.article-details {
    line-height: 2;
}
.article-details img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: var(--radius-sm);
}
.article-details .entry-content {
    font-size: .95rem;
    line-height: 2.1;
    color: var(--color-text);
}

/* ── Search Page ── */
.search-page .form-control {
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-border);
    padding: 12px 16px;
    font-family: var(--font-arabic);
    font-size: .95rem;
    transition: border-color var(--transition-fast);
}
.search-page .form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(6,99,123,.12);
    outline: none;
}

/* ── Pagination ── */
.pagination .page-link {
    font-family: var(--font-arabic);
    color: var(--color-heading);
    border-color: var(--color-border);
    transition: all var(--transition-fast);
}
.pagination .page-item.active .page-link {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}
.pagination .page-link:hover {
    background-color: var(--color-gray-bg);
    color: var(--color-accent);
}

/* ── Footer ── */
.site-footer {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a5580 40%, #4b75a3 100%);
    color: rgba(255,255,255,.9);
    font-weight: 400;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--color-accent);
}
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    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='%231ebcae' stroke-width='0.5' opacity='0.08'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z'/%3E%3Cpath d='M20 0L60 0L80 20L80 60L60 80L20 80L0 60L0 20Z'/%3E%3Ccircle cx='40' cy='40' r='15'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
    pointer-events: none;
}
.site-footer .footer-top {
    padding: 24px 0 16px;
    position: relative;
    z-index: 1;
}
.site-footer h5.footer-title {
    color: var(--color-gold) !important;
    font-size: .92rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 8px;
}
.site-footer h5.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--color-gold);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 0; border: none; }
.site-footer ul li a {
    color: rgba(255,255,255,.75);
    transition: color var(--transition-fast), padding var(--transition-fast);
    font-size: .85rem;
    display: block;
    padding: 4px 0;
    text-decoration: none;
}
.site-footer ul li a:hover {
    color: var(--color-gold);
    padding-right: 5px;
}
/* Sitemap nav grid ─ two columns */
.ft-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
/* Contact list — override template .ft-contact (templete.min.css) */
.site-footer .ft-contact {
    background: transparent !important;
    border-radius: 0 !important;
    display: block !important;
    padding: 0;
    margin: 0;
}
.ft-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.75);
    font-size: .85rem;
    margin-bottom: 6px;
}
.ft-contact li svg { flex-shrink: 0; color: var(--color-gold); }
/* Visitor counter */
.ft-visitor-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.75);
    font-size: .85rem;
    margin-top: 12px;
}
.ft-visitor-counter svg { flex-shrink: 0; color: var(--color-gold); }
.ft-visitor-counter strong { color: var(--color-gold); }
/* Copyright column */
.ft-copy-col {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}
.ft-copy {
    font-size: .78rem;
    color: rgba(255,255,255,.45);
}

/* ── Scroll-to-top ── */
.scroltop {
    background: var(--color-gold) !important;
    border-color: var(--color-gold) !important;
    color: #fff !important;
}
.scroltop:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--color-accent);
}

/* ── Featured Banner (Books) ── */
.featured-banner {
    background: var(--gradient-emerald);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.featured-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 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' stroke='%231ebcae' stroke-width='0.4' opacity='0.1'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
}
.featured-banner h3 {
    color: #fff;
    margin-bottom: 8px;
}
.featured-banner p {
    color: rgba(255,255,255,.8);
    margin-bottom: 16px;
}

/* ── Entrance Animations ── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .4s ease, transform .4s ease;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: .08s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: .16s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: .24s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: .32s; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: .4s; }
.stagger-children .animate-on-scroll:nth-child(7) { transition-delay: .48s; }
.stagger-children .animate-on-scroll:nth-child(8) { transition-delay: .56s; }
.stagger-children .animate-on-scroll:nth-child(9) { transition-delay: .64s; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ── Override theme red '†’ teal ── */
.bg-primary { background-color: var(--color-accent) !important; }
.text-primary { color: var(--color-accent) !important; }
.btn-primary { background-color: var(--color-accent) !important; border-color: var(--color-accent) !important; }
.btn-primary:hover { background-color: var(--color-accent-light) !important; border-color: var(--color-accent-light) !important; }
.btn-outline-primary { color: var(--color-accent) !important; border-color: var(--color-accent) !important; }
.btn-outline-primary:hover { background-color: var(--color-accent) !important; color: #fff !important; }
.badge-primary { background-color: var(--color-accent) !important; }
.badge-secondary { background-color: var(--color-gray-bg) !important; color: var(--color-text) !important; }
.border-primary { border-color: var(--color-accent) !important; }

/* ── Modal ── */
.modal-header {
    background: var(--color-primary);
    color: #fff;
    border-bottom: 2px solid var(--color-gold);
}
.modal-header .modal-title {
    font-family: var(--font-arabic);
    color: #fff;
}
.modal-header .close {
    color: #fff;
    text-shadow: none;
}

/* ── Stats Section (ط§ظ„ظ…ظˆظ‚ط¹ ظپظٹ ط£ط±ظ‚ط§ظ…) ── */
.stats-section {
    background: var(--color-primary);
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute; inset: 0;
    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='%231ebcae' stroke-width='0.5' opacity='0.08'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z'/%3E%3Cpath d='M20 0L60 0L80 20L80 60L60 80L20 80L0 60L0 20Z'/%3E%3Ccircle cx='40' cy='40' r='15'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
    pointer-events: none;
}
.stat-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-md);
    padding: 22px 14px;
    text-align: center;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.stat-card:hover {
    background: rgba(30,188,174,.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    border-color: rgba(30,188,174,.3);
}
.stat-icon {
    font-size: 2.4rem;
    line-height: 1;
    filter: grayscale(0);
}
.stat-number {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    font-feature-settings: 'tnum';
}
.stat-label {
    font-size: clamp(.75rem, 1.3vw, .88rem);
    color: rgba(255,255,255,.65);
    font-weight: 500;
}

/* ── Slider Responsive Typography ── */
.slider-title {
    font-size: clamp(1.5rem, 4vw, 3rem) !important;
    line-height: 1.3 !important;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.slider-subtitle {
    font-size: clamp(.875rem, 2vw, 1.25rem) !important;
    line-height: 1.5 !important;
    text-shadow: 0 1px 8px rgba(0,0,0,.3);
}

/* ── Menu Centering ── */
.header-nav.justify-content-center .nav.navbar-nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ── Footer Social Links ── */
.footer-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.footer-social .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: var(--color-gold);
    transition: var(--transition-base);
    border: 1px solid rgba(30,188,174,.25);
}
.footer-social .social-icon:hover {
    background: var(--color-gold);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30,188,174,.3);
}
.footer-social .social-icon:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}
.site-footer ul li a:focus-visible {
    outline: 1px solid var(--color-gold);
    outline-offset: 1px;
}

/* ── Footer Visitor Counter ── */
.visitor-counter {
    color: rgba(255,255,255,.7);
    font-size: .85rem;
}
.visitor-counter strong {
    color: var(--color-gold);
}

/* '•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ
   Responsive ─ Main Layout
   '•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ */

/* ── 1440px: ease nav spacing ── */
@media (max-width: 1440px) {
    .header-nav .nav.navbar-nav-icons > li > a { padding: 10px 8px; }
    .nav-label { font-size: .74rem; }
}

/* ── 1024px: tablet landscape ── */
@media (max-width: 1024px) {
    .header-nav .nav.navbar-nav-icons > li > a { padding: 8px 6px; }
    .nav-icon svg { width: 22px; height: 22px; }
    .nav-label { font-size: .72rem; }
    .rh-logo-link img { height: 50px; }
    .rh-search { min-width: 160px; }
    .hp-top-grid { gap: 12px; }
    .hp-video-grid { grid-template-columns: repeat(3, 1fr); }
    .hp-books-grid { grid-template-columns: repeat(3, 1fr); }
    .section-head .title { font-size: 1.4rem; }
}

/* ── 991px: collapse nav to mobile ── */
@media (max-width: 991px) {
    .featured-banner { flex-direction: column; text-align: center; }

    /* ─ Fix 3: Mobile menu dark background + visible items ─ */
    .header-nav .nav.navbar-nav {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: stretch;
        background: linear-gradient(135deg, #153350 0%, #1a3a5c 50%, #234b72 100%) !important;
    }
    .header-nav .nav.navbar-nav-icons > li {
        max-width: none;
        flex: 0 0 auto;
    }
    .header-nav .nav.navbar-nav-icons > li > a {
        flex-direction: row;
        gap: 10px;
        white-space: normal;
        text-align: right;
        justify-content: flex-start;
        padding: 12px 16px;
        font-size: .9rem;
        min-height: auto;
        border-bottom: 1px solid rgba(255,255,255,.15) !important;
        color: #fff !important;
    }
    .header-nav .nav.navbar-nav-icons > li > a:hover {
        background: rgba(30,188,174,.25) !important;
    }
    .header-nav .nav.navbar-nav-icons > li.active > a {
        background: rgba(30,188,174,.35) !important;
    }
    .nav-label { color: #fff !important; font-size: .85rem; }
    .nav-icon svg { width: 22px; height: 22px; stroke: #fff; }
    .header-nav .nav.navbar-nav-icons > li + li::before { display: none; }
    /* Override template white background */
    .header-nav .nav {
        background: linear-gradient(135deg, #153350 0%, #1a3a5c 50%, #234b72 100%) !important;
    }
    .header-nav .logo-header {
        background: linear-gradient(135deg, #153350 0%, #1a3a5c 50%, #234b72 100%) !important;
        padding: 10px 15px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        text-align: center;
    }
    .header-nav .logo-header > a {
        display: block;
        text-align: center;
    }
    .header-nav .logo-header img {
        max-width: 160px;
        height: auto;
    }
    .mobile-nav-suptitle,
    .mobile-nav-subtitle {
        display: block;
        text-align: center;
        color: rgba(255,255,255,0.85);
        font-family: var(--font-arabic);
        line-height: 1.6;
    }
    .mobile-nav-suptitle {
        font-size: .8rem;
        margin-bottom: 4px;
    }
    .mobile-nav-subtitle {
        font-size: .7rem;
        margin-top: 4px;
        opacity: 0.75;
    }
}

/* ── 768px: tablet portrait ── */
@media (max-width: 767px) {
    .ft-copy-col { justify-content: center; margin-top: 14px; }

    /* Mobile header: vertical stacking, no overlap */
    .research-header { padding: 10px 0; }
    .rh-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .rh-logo-block {
        width: 100%;
        align-items: center;
        text-align: center;
    }
    .rh-suptitle { text-align: center; font-size: .68rem; }
    .rh-logo-link { text-align: center; }
    .rh-logo-link img { height: 44px; }
    .rh-subtitle {
        display: block !important;
        font-size: .6rem;
        max-width: 85%;
        margin: 2px auto 0;
    }
    .rh-center { display: none; }

    /* Actions area: search row with small icons beside it */
    .rh-actions {
        width: 100%;
        flex-direction: row-reverse;
        align-items: center;
        gap: 6px;
    }
    .rh-search { flex: 1; min-width: 0; width: auto; }
    .rh-action-icons {
        flex-direction: row;
        gap: 2px;
        flex-shrink: 0;
    }
    .rh-action-btn {
        padding: 3px 4px;
        font-size: 0;       /* hide text labels */
        gap: 0;
    }
    .rh-action-btn svg { width: 20px; height: 20px; }

    .section-full { padding: 28px 0; }
    .hub-card { padding: 20px 12px; min-height: auto; }
    .item-list-card { flex-direction: column; }
    .filter-container { padding: 14px; }
    .page-header-compact h1 { font-size: 1.1rem; }
    .stat-card { padding: 16px 10px; }
    .stat-icon { font-size: 2rem; }
    .hp-section { padding: 12px 0; }
    .hp-section-title { font-size: .92rem; }
    .hp-title-main { font-size: .95rem; }
    .hp-list li { font-size: .82rem; }
    .section-head { margin-bottom: 24px; }
    .section-head .title { font-size: 1.3rem; }
}

/* ── 576px: small phones ── */
@media (max-width: 576px) {
    .filter-btn { padding: 5px 12px; font-size: .78rem; }
    .audio-table thead th,
    .audio-table tbody td { padding: 10px 12px; font-size: .82rem; }
    .stat-card { padding: 14px 8px; }
    .stat-number { font-size: 1.3rem; }
    .stat-icon { font-size: 1.6rem; }
    .ft-nav-grid { gap: 0 10px; }
}

/* ── 390px: narrow mobile ── */
@media (max-width: 420px) {
    body { font-size: .87rem; }
    .rh-logo-link img { height: 34px; }
    .rh-suptitle { font-size: .65rem; }
    .rh-title { font-size: .82rem; }
    .rh-subtitle { display: block !important; font-size: .55rem; }
    .rh-search input { font-size: .78rem; padding: 6px 10px; }
    .hp-slider .hp-slide { height: 170px; }
    .hp-slide-overlay h3 { font-size: .88rem; }
    .hp-slide-overlay p { font-size: .72rem; }
    .hp-card { padding: 10px 12px; }
    .hp-section-title { font-size: .85rem; gap: 6px; }
    .hp-sub-title { font-size: .82rem; }
    .hp-list li { padding: 4px 0; font-size: .8rem; }
    .ft-nav-grid { grid-template-columns: 1fr 1fr; }
    .ft-contact li { font-size: .78rem; }
    .ft-copy { font-size: .72rem; }
    .site-footer h5.footer-title { font-size: .82rem; }
    .site-footer .footer-top { padding: 16px 0 10px; }
    .footer-social .social-icon { width: 28px; height: 28px; }
    .section-head .title { font-size: 1.15rem; }
    .site-button { padding: 8px 18px; font-size: .82rem; }
}

/* '•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ
   Hub Controls ─ Toolbar, Pagination, Views
   '•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ */

/* ── Toolbar ── */
.hub-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}
.hub-toolbar-start, .hub-toolbar-end { display: flex; align-items: center; gap: 10px; }
.hub-count { font-size: .82rem; color: var(--color-text-light); }
.pp-label {
    font-size: .82rem; color: var(--color-text); display: flex;
    align-items: center; gap: 6px; margin: 0; white-space: nowrap;
}
.pp-select {
    padding: 4px 8px; border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); font-family: var(--font-arabic);
    font-size: .82rem; background: #fff; cursor: pointer;
}
.view-toggle {
    display: inline-flex; border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); overflow: hidden;
}
.view-toggle-btn {
    padding: 6px 10px; background: #fff; border: none;
    cursor: pointer; color: var(--color-text-light);
    transition: all var(--transition-fast); display: inline-flex; align-items: center;
}
.view-toggle-btn + .view-toggle-btn { border-right: 1px solid var(--color-border); }
.view-toggle-btn.active { background: var(--color-accent); color: #fff; }
.view-toggle-btn svg { width: 16px; height: 16px; }

/* ── Hub Table Header ── */
.hub-table-header {
    display: grid;
    grid-template-columns: 1fr 120px 80px 80px;
    background: var(--color-primary);
    color: var(--color-gold-light);
    padding: 12px 16px;
    font-size: .85rem;
    font-weight: 600;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    gap: 12px;
}
.hub-table-header span:nth-child(3),
.hub-table-header span:nth-child(4) { text-align: center; }

/* '•گ'•گ AUDIO HUB: Table View '•گ'•گ */
.hub-audio.view-table .hub-items-wrap {
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: #fff;
}
.hub-audio.view-table .hub-item {
    display: grid;
    grid-template-columns: 1fr 120px 80px 80px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--color-border);
    align-items: center;
    gap: 12px;
    transition: background var(--transition-fast);
}
.hub-audio.view-table .hub-item:last-child { border-bottom: none; }
.hub-audio.view-table .hub-item:hover { background: var(--color-gray-bg); }
.hub-audio.view-table .hi-title a { color: var(--color-heading); font-weight: 600; font-size: .88rem; }
.hub-audio.view-table .hi-title a:hover { color: var(--color-accent); }
.hub-audio.view-table .hi-cat { font-size: .82rem; color: var(--color-text-light); }
.hub-audio.view-table .hi-listen,
.hub-audio.view-table .hi-download { text-align: center; }
.hub-audio.view-table .hi-icon { display: none; }

/* '•گ'•گ AUDIO HUB: Cards View '•گ'•گ */
.hub-audio.view-cards .hub-table-header { display: none !important; }
.hub-audio.view-cards .hub-items-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.hub-audio.view-cards .hub-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all var(--transition-base);
}
.hub-audio.view-cards .hub-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}
.hub-audio.view-cards .hi-icon {
    width: 44px; height: 44px;
    background: var(--color-gray-bg);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-accent); flex-shrink: 0;
}
.hub-audio.view-cards .hi-title a {
    color: var(--color-heading); font-size: 1rem; font-weight: 700;
}
.hub-audio.view-cards .hi-title a:hover { color: var(--color-accent); }
.hub-audio.view-cards .hi-cat {
    display: inline-block; background: var(--color-gray-bg);
    padding: 2px 10px; border-radius: var(--radius-xl); font-size: .78rem;
    color: var(--color-text); width: fit-content;
}
.hub-audio.view-cards .hi-listen,
.hub-audio.view-cards .hi-download { display: inline-flex; }
.hub-audio.view-cards .hub-item .hi-actions-row {
    display: flex; gap: 8px; margin-top: auto;
}

/* '•گ'•گ TEXT HUB (Articles, Fatwas, Benefits, LessonsText): List View '•گ'•گ */
.hub-text.view-list .hub-items-wrap {
    display: flex; flex-direction: column; gap: 16px;
}
.hub-text.view-list .hub-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all var(--transition-base);
}
.hub-text.view-list .hub-item:hover {
    box-shadow: var(--shadow-md); border-color: var(--color-primary-light);
}
.hub-text.view-list .hi-icon {
    flex-shrink: 0; width: 44px; height: 44px;
    background: var(--color-gray-bg); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-accent);
}
.hub-text.view-list .hi-icon svg { width: 22px; height: 22px; }
.hub-text.view-list .hi-body { flex: 1; min-width: 0; }
.hub-text.view-list .hi-title { margin-bottom: 4px; }
.hub-text.view-list .hi-title a { color: var(--color-heading); font-size: 1rem; font-weight: 700; }
.hub-text.view-list .hi-title a:hover { color: var(--color-accent); }
.hub-text.view-list .hi-excerpt {
    color: var(--color-text-light); font-size: .85rem; line-height: 1.7; margin-top: 4px;
}
.hub-text.view-list .hi-meta {
    display: flex; align-items: center; gap: 12px; margin-top: 8px;
    font-size: .78rem; color: var(--color-text-light);
}
.hub-text.view-list .hi-meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.hub-text.view-list .hi-cover { display: none; }

/* '•گ'•گ TEXT HUB: Cards View '•گ'•گ */
.hub-text.view-cards .hub-items-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.hub-text.view-cards .hub-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all var(--transition-base);
}
.hub-text.view-cards .hub-item:hover {
    box-shadow: var(--shadow-md); border-color: var(--color-primary-light);
    transform: translateY(-2px);
}
.hub-text.view-cards .hi-icon { display: none; }
.hub-text.view-cards .hi-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.hub-text.view-cards .hi-title a { color: var(--color-heading); font-size: .95rem; font-weight: 700; }
.hub-text.view-cards .hi-title a:hover { color: var(--color-accent); }
.hub-text.view-cards .hi-excerpt {
    color: var(--color-text-light); font-size: .82rem; line-height: 1.7; margin-top: 6px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hub-text.view-cards .hi-meta {
    display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px;
    font-size: .78rem; color: var(--color-text-light);
}
.hub-text.view-cards .hi-meta svg { width: 14px; height: 14px; }
.hub-text.view-cards .hi-cover { display: none; }

/* '•گ'•گ GRID HUB (Books, Research): Cards View '•گ'•گ */
.hub-grid.view-cards .hub-items-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.hub-grid.view-cards .hub-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    transition: all var(--transition-base);
}
.hub-grid.view-cards .hub-item:hover {
    box-shadow: var(--shadow-md); transform: translateY(-3px);
}
.hub-grid.view-cards .hi-cover img {
    width: 100%; height: 126px; object-fit: cover;
    border-radius: var(--radius-sm); margin-bottom: 12px;
}
.hub-grid.view-cards .hi-title { margin-bottom: 8px; }
.hub-grid.view-cards .hi-title a { color: var(--color-heading); font-size: .9rem; font-weight: 700; }
.hub-grid.view-cards .hi-title a:hover { color: var(--color-accent); }

/* '•گ'•گ GRID HUB: List View '•گ'•گ */
.hub-grid.view-list .hub-items-wrap {
    display: flex; flex-direction: column; gap: 12px;
}
.hub-grid.view-list .hub-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all var(--transition-base);
}
.hub-grid.view-list .hub-item:hover { box-shadow: var(--shadow-md); }
.hub-grid.view-list .hi-cover img {
    width: 60px; height: 80px; object-fit: cover; border-radius: var(--radius-sm);
}
.hub-grid.view-list .hi-body { flex: 1; }
.hub-grid.view-list .hi-title a { color: var(--color-heading); font-weight: 600; font-size: .9rem; }
.hub-grid.view-list .hi-title a:hover { color: var(--color-accent); }

/* '•گ'•گ VIDEO HUB: Cards View '•گ'•گ */
.hub-video.view-cards .hub-items-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.hub-video.view-cards .video-card .video-play-icon {
    width: 40px;
    height: 40px;
}
.hub-video.view-cards .video-card .video-play-icon svg {
    width: 18px;
    height: 18px;
}
.hub-video.view-cards .video-card .card-body {
    padding: 10px 12px;
}
.hub-video.view-cards .video-card .card-title {
    font-size: .82rem;
}
.hub-video.view-cards .hub-item { transition: all var(--transition-base); }

/* '•گ'•گ VIDEO HUB: List View '•گ'•گ */
.hub-video.view-list .hub-items-wrap {
    display: flex; flex-direction: column; gap: 12px;
}
.hub-video.view-list .hub-item .video-card {
    display: flex; flex-direction: row; gap: 16px; background: var(--color-primary);
}
.hub-video.view-list .hub-item .video-thumb {
    width: 180px; flex-shrink: 0; height: 110px;
}
.hub-video.view-list .hub-item .card-body { padding: 12px 16px; }

/* '•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ
   Sticky Audio Player Bar
   '•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ */
#audioPlayerBar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform .3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,.25);
}
#audioPlayerBar.active { transform: translateY(0); }
.apb-title {
    font-weight: 600; font-size: .9rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 250px; flex-shrink: 0;
}
#audioPlayerBar audio {
    flex: 1; height: 36px; min-width: 200px;
}
.apb-close {
    background: none; border: none; color: rgba(255,255,255,.7);
    cursor: pointer; padding: 6px; font-size: 1.4rem; line-height: 1;
    transition: color .2s; flex-shrink: 0;
}
.apb-close:hover { color: #fff; }

/* '•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ
   Responsive ─ Hub Controls
   '•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ */
@media (max-width: 991px) {
    .hub-audio.view-table .hub-table-header,
    .hub-audio.view-table .hub-item {
        grid-template-columns: 1fr 80px 60px 60px;
    }
}
@media (max-width: 767px) {
    .hub-toolbar { padding: 8px 12px; }
    .hub-text.view-list .hub-item { flex-direction: column; }
    .hub-text.view-list .hi-icon { display: none; }
    .hub-grid.view-cards .hub-items-wrap {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
    }
    .hub-grid.view-cards .hi-cover img { height: 180px; }
    .hub-video.view-list .hub-item .video-thumb { width: 120px; height: 80px; }

    #audioPlayerBar { flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
    .apb-title { max-width: 100%; flex-basis: calc(100% - 40px); order: 1; font-size: .82rem; }
    #audioPlayerBar audio { order: 2; flex-basis: 100%; min-width: 0; height: 32px; }
    .apb-close { order: 1; }

    .hub-audio.view-table .hub-table-header { display: none !important; }
    .hub-audio.view-table .hub-item {
        display: flex; flex-direction: column; gap: 8px;
        padding: 14px; border-bottom: 1px solid var(--color-border);
    }
    .hub-audio.view-table .hub-items-wrap {
        border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff;
    }
    .hub-audio.view-table .hi-listen,
    .hub-audio.view-table .hi-download { text-align: right; display: inline-flex; }
}
@media (max-width: 576px) {
    .hub-audio.view-cards .hub-items-wrap { grid-template-columns: 1fr; }
    .hub-text.view-cards .hub-items-wrap { grid-template-columns: 1fr; }
    .hub-video.view-cards .hub-items-wrap { grid-template-columns: 1fr; }
    .hub-toolbar-end { flex-wrap: wrap; }
    .view-toggle-btn { padding: 5px 8px; }
}

/* '•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ
   Star Rating Widget
   '•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ */
.star-rating-widget {
    user-select: none;
}
.rating-star {
    color: var(--color-border);
    font-size: 1.8rem;
    transition: color .15s, transform .15s;
    line-height: 1;
}
.rating-star.filled {
    color: #f5a623;
}
.rating-star.hover {
    color: #f5c518;
    transform: scale(1.15);
}
.rating-star[style*="cursor: pointer"]:hover {
    transform: scale(1.2);
}

/* '•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ
   Survey Components
   '•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ */
.survey-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.survey-tab.active {
    color: var(--color-gold) !important;
    border-bottom-color: var(--color-gold) !important;
    font-weight: 600;
}
.survey-tab:hover {
    color: var(--color-heading);
}
.survey-question {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    transition: all var(--transition-base);
}
.survey-option:hover {
    border-color: var(--color-primary) !important;
    background: var(--color-gray-bg) !important;
}
.surveys-grid .survey-card {
    display: flex;
    flex-direction: column;
}

/* Survey icon in header */
.survey-link {
    color: rgba(255,255,255,.85);
    display: inline-flex;
    align-items: center;
    transition: color var(--transition-fast);
}
.survey-link:hover {
    color: #fff;
}

@media (max-width: 576px) {
    .surveys-grid {
        grid-template-columns: 1fr !important;
    }
    .survey-question {
        padding: 14px;
    }
}

/* '•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ
   Homepage Redesign ─ Scholarly Prestige
   '•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ'•گ */
.hp-section { padding: 20px 0; }
.hp-alt-bg  { background: var(--color-gray-bg); }

/* ── Islamic Geometric Pattern (SVG background) ── */
.islamic-pattern-bg {
    position: relative;
}
.islamic-pattern-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    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='%231ebcae' stroke-width='0.5' opacity='0.08'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z'/%3E%3Cpath d='M20 0L60 0L80 20L80 60L60 80L20 80L0 60L0 20Z'/%3E%3Ccircle cx='40' cy='40' r='15'/%3E%3Cpath d='M40 10L55 25L55 55L40 70L25 55L25 25Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

/* Section titles ─ animated gradient backgrounds */
@keyframes titleGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hp-section-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 16px;
    padding: 12px 18px;
    background: var(--gradient-subtle);
    border-right: 3px solid var(--color-gold);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hp-section-title svg {
    flex-shrink: 0;
    background: var(--color-accent);
    color: #fff;
    stroke: #fff;
    fill: none;
    width: 30px;
    height: 30px;
    padding: 5px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}
/* Animated leaf/mango title variant */
.hp-section-title.hp-title-animated {
    color: var(--color-heading);
    border-right: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
    overflow: visible;
    padding: 0 0 12px 0;
    gap: 12px;
    animation: none;
}
.hp-section-title.hp-title-animated::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}
.hp-section-title.hp-title-animated::after {
    content: none;
}
.hp-section-title.hp-title-animated svg {
    background: var(--gradient-primary);
    color: #fff;
    stroke: #fff;
    width: 34px;
    height: 34px;
    padding: 6px;
    border-radius: 50% 50% 50% 8px;
    box-shadow: 0 2px 8px rgba(30,188,174,.2);
}
/* Unified title gradients ─ no longer needed, kept for compat */
.hp-title-lessons,
.hp-title-visuals,
.hp-title-research,
.hp-title-books,
.hp-title-articles,
.hp-title-benefits,
.hp-title-quran,
.hp-title-fatwas {
    background: transparent;
}
.hp-title-main { font-size: 1rem; }

/* ── Sub-hub Boxes (تأملات قرآنية) ── */
.hp-subhub-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}
.hp-subhub-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
    text-align: center;
}
.hp-subhub-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}
.hp-subhub-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(30,188,174,.06);
    margin-bottom: 16px;
}
.hp-subhub-icon svg {
    stroke: var(--color-primary);
}
.hp-subhub-name {
    font-family: var(--font-arabic);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 6px;
}
.hp-subhub-desc {
    font-size: .85rem;
    color: #666;
    margin: 0;
}
@media (max-width: 576px) {
    .hp-subhub-boxes { grid-template-columns: 1fr; gap: 16px; }
    .hp-subhub-box { padding: 24px 16px; }
}

.hp-sub-title {
    font-size: .86rem;
    font-weight: 600;
    color: var(--color-heading);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hp-sub-title svg {
    flex-shrink: 0;
    background: rgba(30,188,174,.15);
    color: var(--color-accent);
    stroke: var(--color-accent);
    fill: none;
    padding: 4px;
    border-radius: var(--radius-sm);
}

/* 1. Top grid: slider + research sidebar */
.hp-top-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 16px;
    align-items: stretch;
}
.hp-slider-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Compact Slider */
.hp-slider .hp-slide {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: var(--radius-md);
}
.hp-slide-overlay {
    position: absolute;
    bottom: 0; right: 0; left: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    color: #fff;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.hp-slide-overlay h3 { color: #fff; font-size: 1rem; margin: 0 0 4px; }
.hp-slide-overlay p  { font-size: .8rem; margin: 0 0 8px; opacity: .9; }

.hp-slider .owl-dots {
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}
.hp-slider .owl-dot span {
    width: 8px; height: 8px;
    margin: 0 3px;
    background: rgba(255,255,255,.5);
}
.hp-slider .owl-dot.active span { background: #fff; }

/* ── Research VSlider with Image Bottom ── */
.hp-research-vslider-bottom {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    position: relative;
    padding: 16px 18px;
}

/* ── Slides container ── */
.rv-slides-container {
    position: relative;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

/* ── Individual slide ── */
.rv-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease, transform .5s ease;
    transform: translateY(30px);
}
.rv-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.rv-slide.rv-slide-down {
    animation: rvSlideDown .5s ease forwards;
}
.rv-slide.rv-slide-up {
    animation: rvSlideUp .5s ease forwards;
}
@keyframes rvSlideDown {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes rvSlideUp {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Slide text area (top) ── */
.rv-slide-top {
    padding: 16px 18px 8px;
    flex-shrink: 0;
}
.rv-slide-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    line-height: 1.5;
    margin-bottom: 6px;
    transition: color .2s;
}
.rv-slide-title:hover {
    color: var(--color-gold);
    text-decoration: none;
}
.rv-slide-desc {
    font-size: .99rem;
    line-height: 1.6;
    color: #000;
    margin: 0;
}

/* ── Slide image area (bottom, always contain) ── */
.rv-slide-image {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 10px 18px 14px;
    min-height: 130px;
    position: relative;
}
.rv-slide-image img {
    max-width: 100%;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform .25s ease;
}
.rv-slide-image img:hover {
    transform: scale(1.04);
}

/* ── Dot navigation ── */
.rv-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 14px;
}
.rv-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--color-border);
    cursor: pointer;
    padding: 0;
    transition: all .3s;
}
.rv-dot.active {
    background: var(--color-gold);
    transform: scale(1.3);
}
.rv-dot:hover {
    background: var(--color-gold);
}
/* Magnifying glass zoom icon */
.rv-zoom-btn {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    background: rgba(30,188,174,.7);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s;
    z-index: 2;
    padding: 0;
}
.rv-slide-image:hover .rv-zoom-btn,
.rv-slide.active .rv-zoom-btn {
    opacity: .8;
}
.rv-zoom-btn:hover {
    opacity: 1 !important;
    background: rgba(30,188,174,.9);
}
/* Lightbox overlay for full-size image */
.rv-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    cursor: pointer;
    padding: 20px;
}
.rv-lightbox.active {
    display: flex;
}
.rv-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.rv-lightbox-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.rv-lightbox-close:hover {
    background: rgba(255,255,255,.3);
}
.rv-slide-image .rv-placeholder-img,
.rv-image-bottom .rv-placeholder-img {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30,188,174,.08);
}

/* ── Research + Books Side-by-Side Row ── */
.hp-research-books-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}
.hp-rb-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.hp-rb-col > .hp-research-vslider-bottom,
.hp-rb-col > .hp-books-box {
    flex: 1;
}
.hp-books-box {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    padding: 16px 18px;
}
.hp-books-box .hp-section-title {
    margin-bottom: 12px;
}
.hp-books-box .hp-books-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Research Vertical Slider (kept for reference) */
.hp-research-vslider {
    display: flex;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    height: 100%;
    min-height: 280px;
}
/* Image on the right (first in RTL flex = right side) */
.rv-image-right {
    order: -1;
    width: 150px;
}

/* Fatwa VSlider — no image variant */
.hp-vslider-noimg {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    height: 100%;
    padding: 16px 14px;
}
.hp-vslider-noimg .rv-heading {
    color: var(--color-heading);
}
.hp-vslider-noimg .rv-heading svg {
    stroke: var(--color-accent);
    background: var(--color-primary-light);
}
.hp-vslider-noimg .rv-title-item {
    color: var(--color-text);
}
.hp-vslider-noimg .rv-title-item:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.hp-vslider-noimg .rv-title-item.active {
    color: var(--color-primary-dark);
    font-weight: 600;
    background: var(--color-primary-light);
}
.hp-vslider-noimg .rv-bar {
    background: var(--color-border);
}
.hp-vslider-noimg .rv-title-item.active .rv-bar {
    background: var(--color-accent);
}
.rv-titles-area {
    flex: 1;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
}
.rv-heading {
    margin-bottom: 12px !important;
}
.rv-title-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 8px;
    color: var(--color-text);
    text-decoration: none;
    font-size: .85rem;
    line-height: 1.5;
    transition: all .3s ease;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.rv-title-item:hover {
    color: var(--color-primary);
    background: rgba(30,188,174,.08);
    text-decoration: none;
}
.rv-title-item.active {
    color: var(--color-primary);
    font-weight: 600;
    background: rgba(30,188,174,.12);
}
.rv-bar {
    display: block;
    width: 3px;
    min-height: 20px;
    align-self: stretch;
    border-radius: 2px;
    background: var(--color-border);
    flex-shrink: 0;
    transition: background .3s ease;
}
.rv-title-item.active .rv-bar {
    background: var(--color-gold);
}
.rv-text {
    flex: 1;
}
.rv-image-area {
    width: 200px;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(180deg, var(--color-primary) 0%, rgba(30,188,174,.85) 100%);
    overflow: hidden;
}
.rv-image-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .6s ease, transform .6s ease;
    transform: translateY(30px);
}
.rv-image-slide.active {
    opacity: 1;
    transform: translateY(0);
}
.rv-image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rv-placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(30,188,174,.08);
}
.rv-color-sweep {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30,188,174,.35) 0%, transparent 100%);
    opacity: 0;
    pointer-events: none;
}
.rv-color-sweep.sweep-animate {
    animation: rvSweep .8s ease forwards;
}
@keyframes rvSweep {
    0%   { opacity: 1; transform: translateY(-100%); }
    60%  { opacity: .6; }
    100% { opacity: 0; transform: translateY(100%); }
}

/* Card block */
.hp-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
}

/* Dual grid */
.hp-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Compact list */
.hp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hp-list li {
    padding: 5px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: .85rem;
    line-height: 1.5;
}
.hp-list li:last-child { border-bottom: none; }
.hp-list li a {
    color: var(--color-heading);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.hp-list li a:hover { color: var(--color-gold); }

/* Rich list (with thumbnails) */
.hp-list-rich li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hp-list-rich li img {
    width: 36px; height: 48px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.hp-list-rich li div { flex: 1; min-width: 0; }
.hp-list-rich li a {
    color: var(--color-heading);
    font-size: .85rem;
}
.hp-list-rich li a:hover {
    color: var(--color-gold);
}
.hp-dl {
    color: var(--color-accent);
    margin-right: 6px;
    display: inline-flex;
    vertical-align: middle;
}
.hp-dl:hover { color: var(--color-primary-dark); }

/* Two-column list */
.hp-list-2col {
    columns: 2;
    column-gap: 24px;
}
.hp-list-2col li { break-inside: avoid; }

/* 3. Video grid */
.hp-video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}
.hp-video-thumb {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16/9;
    display: block;
}
.hp-video-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}
.hp-video-thumb:hover img { transform: scale(1.05); }
.hp-video-thumb .play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 30px; height: 30px;
    background: rgba(0,0,0,.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.hp-video-thumb:hover .play-icon { opacity: 1; }

/* 5. Books grid */
.hp-books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.hp-book-item img {
    width: 100%; height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: box-shadow var(--transition-fast);
}
.hp-book-placeholder {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-bg);
    border-radius: var(--radius-sm);
    transition: box-shadow var(--transition-fast);
}
.hp-book-item h6 {
    font-size: .75rem;
    margin: 6px 0 0;
    line-height: 1.3;
    color: var(--color-heading);
}

/* Benefit excerpt */
.benefit-excerpt {
    font-size: .88rem;
    color: var(--color-black);
    margin: 4px 0 0;
    line-height: 1.5;
}

/* ── Benefits Dual Grid (side by side categories) ── */
.hp-benefits-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.hp-benefits-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.hp-benefits-column-title {
    font-size: .92rem;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 12px;
    padding: 10px 16px;
    background: var(--color-primary-light);
    border-right: 3px solid var(--color-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.hp-benefits-column-title::after {
    content: none;
}
.hp-benefits-column-title svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--color-accent);
    padding: 4px;
    border-radius: var(--radius-sm);
    color: #fff;
    stroke: #fff;
    fill: none;
}
.hp-benefits-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hp-benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(30,188,174,.5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all .25s ease;
    text-decoration: none;
    color: var(--color-text);
}
.hp-benefit-card:hover {
    box-shadow: var(--shadow-gold);
    border-color: var(--color-gold);
    transform: translateY(-2px);
    color: var(--color-text);
    text-decoration: none;
}
.hp-benefit-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all .25s ease;
}
.hp-benefit-card:hover .hp-benefit-icon {
    box-shadow: 0 0 0 6px rgba(30,188,174,.15);
}
.hp-benefit-icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
}
.hp-benefit-body {
    flex: 1;
    min-width: 0;
}
.hp-benefit-body h6 {
    font-size: .88rem;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.5;
    color: var(--color-heading);
}
.hp-benefit-body h6 a {
    color: var(--color-heading);
    text-decoration: none;
}
.hp-benefit-body h6 a:hover {
    color: var(--color-gold);
}
.hp-benefit-body .benefit-excerpt {
    margin: 2px 0 0;
}

@media (max-width: 768px) {
    .hp-benefits-dual { grid-template-columns: 1fr; }
}

/* ── Card Slider sections ── */
.hp-card-slider .owl-stage-outer { padding: 4px 0; }
.hp-card-slider .owl-dots {
    text-align: center;
    margin-top: 14px;
}
.hp-card-slider .owl-dot span {
    width: 8px; height: 8px;
    margin: 0 3px;
    background: var(--color-border);
    border-radius: 50%;
    display: inline-block;
    transition: background .2s;
}
.hp-card-slider .owl-dot.active span {
    background: var(--color-gold);
    width: 20px;
    border-radius: 4px;
}
.hp-card-slider .owl-nav { display: none !important; }

/* Lesson card ─ glassmorphism */
.hp-lesson-card {
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border:1px solid rgb(6 41 93 / 50%);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: all .25s ease;
    aspect-ratio: 1;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
}
.hp-lesson-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231ebcae' stroke-width='0.3' opacity='0.06'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 40px 40px;
    pointer-events: none;
}
.hp-lesson-card:hover {
    box-shadow: var(--shadow-gold);
    border-color: var(--color-gold);
    transform: translateY(-3px);
}
.hp-lesson-card h6 {
    font-size: .88rem;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.5;
}
.hp-lesson-card h6 a { color: var(--color-heading); text-decoration: none; }
.hp-lesson-card h6 a:hover { color: var(--color-primary); }
.hp-lesson-card .card-date {
    font-size: .72rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Video slider card ─ glassmorphism */
.hp-vid-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-primary);
    transition: all .25s ease;
    border: none;
    box-shadow: var(--shadow-sm);
}
.hp-vid-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.hp-vid-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.hp-vid-card:hover img { transform: scale(1.05); }
.hp-vid-card .vid-play {
    position: absolute;
    top: 50%; left: 50%; right: auto !important;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-primary);
    opacity: 0;
    transition: opacity .2s;
}
.hp-vid-card:hover .vid-play { opacity: 1; }
/* Remove owl-item padding to prevent black lines between vid cards */
.hp-card-slider .owl-item { padding: 0; }

/* Article card grid */
.hp-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.hp-article-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all .25s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
}
.hp-article-card:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
    border-color: var(--color-accent);
}
.hp-article-thumb {
    width: 90px;
    min-height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--color-primary-light);
}
.hp-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hp-article-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}
.hp-article-info {
    flex: 1;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
}
.hp-article-info h6 {
    font-size: .99rem;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.5;
    color: var(--color-heading);
}
.hp-article-card:hover h6 { color: var(--color-primary); }
.hp-article-info p {
    font-size: .88rem;
    color: var(--color-black);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Slider nav hidden ── */
.hp-slider .owl-nav { display: none !important; }

/* ── Color Blindness Toggle ── */
.color-blind-mode {
    filter: saturate(0.3) contrast(1.15);
}
.color-blind-mode .hp-section-title.hp-title-animated {
    animation: none;
}
.rh-action-btn.cb-active {
    color: #fff;
    background: var(--color-gold);
}

/* ── Survey animated icon ─ golden aura ── */
.survey-animated {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: surveyFloat 3s ease-in-out infinite;
}
.survey-animated::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--color-gold);
    border-bottom-color: var(--color-gold);
    animation: surveyAuraRotate 3s linear infinite;
    opacity: .6;
}
.survey-animated::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,188,174,.15) 0%, transparent 70%);
    animation: surveyAuraPulse 2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes surveyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
@keyframes surveyAuraRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes surveyAuraPulse {
    0%, 100% { opacity: .3; transform: scale(1); }
    50% { opacity: .7; transform: scale(1.15); }
}
.survey-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-gold);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: badgePingGold 1.5s ease-in-out infinite;
}
@keyframes badgePingGold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(30,188,174,.5); }
    50% { box-shadow: 0 0 0 8px rgba(30,188,174,0); }
}

/* ── Benefits Hub Tabs ── */
.benefits-tabs-wrapper {
    margin-bottom: 20px;
}
.benefits-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-border);
}
.benefits-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-family: var(--font-arabic);
    font-size: .9rem;
    font-weight: 500;
    color: var(--color-text-light);
    transition: all .2s;
    margin-bottom: -2px;
}
.benefits-tab:hover {
    color: var(--color-gold);
    background: rgba(30,188,174,.06);
}
.benefits-tab.active {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
    font-weight: 600;
}
.tab-count {
    font-size: .75rem;
    color: var(--color-text-light);
}
.benefits-tab-content {
    display: none;
}
.benefits-tab-content.active {
    display: block;
}

/* ── Enhanced card borders/shadows ─ glassmorphism ── */
.hp-book-item {
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    display: block;
    border: 1px solid rgba(30,188,174,.2);
    border-radius: var(--radius-md);
    padding: 10px;
    transition: all .25s ease;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}
.hp-book-item:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-3px);
    border-color: var(--color-gold);
}
.hp-card {
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(30,188,174,.15);
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ── Golden Halo Border Animation ── */
@keyframes haloTravel {
    0% { background-position: 0% 0%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}
.halo-border {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 2px;
}
.halo-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: linear-gradient(
        var(--halo-angle, 0deg),
        transparent 0%,
        rgba(30,188,174,.05) 20%,
        rgba(30,188,174,.4) 45%,
        var(--color-gold) 50%,
        rgba(30,188,174,.4) 55%,
        rgba(30,188,174,.05) 80%,
        transparent 100%
    );
    background-size: 300% 300%;
    animation: haloTravel 6s linear infinite;
    z-index: -1;
    pointer-events: none;
}

/* ── Icon glow on hover ── */
.icon-glow {
    transition: all var(--transition-base);
}
.icon-glow:hover {
    filter: drop-shadow(0 0 8px rgba(30,188,174,.5));
    color: var(--color-gold) !important;
}
.nav-icon svg {
    transition: filter var(--transition-base);
    stroke: #fff;
}
.header-nav .nav.navbar-nav-icons > li > a:hover .nav-icon svg {
    filter: drop-shadow(0 0 6px rgba(30,188,174,.6));
    stroke: #fff;
}
/* Action button icon glow */
.rh-action-btn:hover svg {
    filter: drop-shadow(0 0 6px rgba(30,188,174,.35));
}

/* ── Asymmetric Research Grid ── */
.hp-research-asymmetric {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 16px;
}
.hp-research-asymmetric > :first-child {
    grid-row: span 2;
}

/* ── Glassmorphism utility ── */
.glass-card {
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(30,188,174,.18);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}
.glass-card:hover {
    box-shadow: var(--shadow-gold);
    border-color: rgba(30,188,174,.35);
}

/* ── Homepage Responsive ── */
@media (max-width: 991px) {
    .hp-video-grid { grid-template-columns: repeat(3, 1fr); }
    .hp-articles-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-research-books-row { grid-template-columns: 1fr; }
    .hp-books-box .hp-books-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .hp-top-grid,
    .hp-dual-grid { grid-template-columns: 1fr; }
    .hp-video-grid { grid-template-columns: repeat(3, 1fr); }
    .hp-books-grid { grid-template-columns: repeat(3, 1fr); }
    .hp-slide, .hp-slider .hp-slide { height: 200px; }
    .hp-list-2col { columns: 1; }
    .hp-research-vslider { flex-direction: column; }
    .rv-image-area { width: 100%; height: 180px; }
    .rv-image-right { order: 0; width: 100%; height: 160px; }
    .hp-articles-grid { grid-template-columns: 1fr; }
    .rv-slide-image img { max-height: 120px; }
    .rh-search { width: 100%; min-width: 0; }
}
@media (max-width: 576px) {
    .hp-video-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-books-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-tabs { flex-direction: column; }
    .benefits-tab { justify-content: center; }
}

/* ── Content Detail Image Constraints ── */
.detail-image img {
    max-width: 100%;
    max-height: 400px;
    width: auto !important;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.detail-body img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
    margin: 12px auto;
}

/* ── Homepage Image Constraints ── */
.hp-list-rich li img {
    width: 40px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.hp-book-item img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}
