/* ==========================================================================
   Header & Top Announcement Bar Stylesheet (Compact & Responsive)
   ========================================================================== */

/* Top Motivation Announcement Bar */
.top-announcement-bar {
  background: linear-gradient(90deg, #012425 0%, #023638 50%, #012425 100%);
  color: #ffffff;
  padding: 8px 0;
  border-bottom: 1px solid rgba(205, 159, 92, 0.3);
  font-size: 0.84rem;
  position: relative;
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.top-bar-inner.centered {
  justify-content: center;
}

.top-bar-content-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.top-bar-sparkle {
  color: #CD9F5C;
  font-size: 0.95rem;
}

.top-bar-hadith {
  color: #f7dcae;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.top-bar-text {
  color: #c9dbdd;
  font-weight: 500;
}

.btn-top-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(205, 159, 92, 0.18);
  border: 1px solid rgba(205, 159, 92, 0.65);
  color: #fefefe;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-top-share svg {
  fill: #CD9F5C;
  transition: transform 0.25s ease, fill 0.25s ease;
}

.btn-top-share:hover {
  background: linear-gradient(135deg, #CD9F5C 0%, #e8c48c 100%);
  color: #012425;
  border-color: #ffffff;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 14px rgba(205, 159, 92, 0.5);
}

.btn-top-share:hover svg {
  fill: #012425;
  transform: rotate(15deg);
}

/* Main Sticky Header Container - Always follows user on scroll */
#app-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.site-header {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(205, 159, 92, 0.25);
  box-shadow: 0 2px 15px rgba(2, 54, 56, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled,
.site-header.is-sticky {
  background: rgba(255, 255, 255, 0.99);
  border-bottom: 2px solid var(--secondary, #CD9F5C);
  box-shadow: 0 8px 30px rgba(2, 54, 56, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px; /* Roomy & spacious for large, prominent logos */
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 2px; /* Very close and unified as requested */
  text-decoration: none;
}

.logo-img {
  height: 68px; /* Prominently enlarged for crisp, vivid emblem visibility */
  width: auto;
  filter: drop-shadow(0 3px 10px rgba(205, 159, 92, 0.4));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.logo-text-img {
  height: 58px; /* Prominently enlarged brand typography image (logo3.png) */
  width: auto;
  max-width: 275px;
  object-fit: contain;
  margin-inline-start: -14px; /* Brings logo and typography gracefully closer without touching/overlapping */
  filter: drop-shadow(0 1px 4px rgba(2, 54, 56, 0.12));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-wrapper:hover .logo-img {
  transform: scale(1.06);
}

.logo-wrapper:hover .logo-text-img {
  transform: scale(1.04);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #023638;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 3px;
  line-height: 1.15;
}

.logo-title span {
  color: #CD9F5C;
}

.logo-tagline {
  font-size: 0.7rem;
  color: #4b6668;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: #274749;
  position: relative;
  padding: 6px 2px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #CD9F5C;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2.5px;
  background: #CD9F5C;
  transition: width 0.25s ease;
  border-radius: 999px;
}

body[dir="ltr"] .nav-link::after {
  right: auto;
  left: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   Header Live Instant Search Box (البحث الشامل في الهيدر)
   ========================================================================== */
.header-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-box {
  display: flex;
  align-items: center;
  background: #f4f8f6;
  border: 1.5px solid #d5e5df;
  border-radius: 999px;
  padding: 5px 12px;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 3px rgba(2, 54, 56, 0.04);
}

.header-search-box:focus-within {
  background: #ffffff;
  border-color: var(--secondary, #CD9F5C);
  box-shadow: 0 0 0 3px rgba(205, 159, 92, 0.2), 0 4px 12px rgba(2, 54, 56, 0.08);
}

.header-search-box .search-icon {
  stroke: #5a7578;
  flex-shrink: 0;
  transition: stroke 0.2s ease;
}

.header-search-box:focus-within .search-icon {
  stroke: var(--primary, #023638);
}

.header-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #023638;
  width: 185px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.header-search-input::placeholder {
  color: #7d9698;
  font-weight: 500;
}

.header-search-box:focus-within .header-search-input {
  width: 225px;
}

.search-clear-btn {
  background: rgba(2, 54, 56, 0.08);
  border: none;
  color: #5a7578;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.search-clear-btn:hover {
  background: #023638;
  color: #ffffff;
}

/* Search Dropdown Results Menu */
.header-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 420px;
  background: #ffffff;
  border: 1.5px solid rgba(205, 159, 92, 0.4);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(2, 54, 56, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow-y: auto;
  z-index: 1050;
  display: none;
  animation: searchDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body[dir="ltr"] .header-search-dropdown {
  right: auto;
  left: 0;
}

.header-search-dropdown.active {
  display: block;
}

@keyframes searchDropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-results-group {
  padding: 8px 0;
  border-bottom: 1px solid #edf4f1;
}

.search-results-group:last-child {
  border-bottom: none;
}

.search-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #8c734b;
  padding: 4px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.search-result-item:hover,
.search-result-item.highlighted {
  background: #f2f8f5;
}

.search-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.search-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.search-result-item:hover .search-item-icon {
  transform: scale(1.08);
}

.search-item-icon.quran-badge {
  background: rgba(2, 54, 56, 0.08);
  color: #023638;
  border: 1px solid rgba(2, 54, 56, 0.16);
}

.search-item-icon.sheikh-badge {
  background: rgba(205, 159, 92, 0.15);
  color: #a4732b;
  border: 1px solid rgba(205, 159, 92, 0.35);
}

.search-item-icon.program-badge {
  background: rgba(2, 54, 56, 0.08);
  color: #023638;
  border: 1px solid rgba(2, 54, 56, 0.16);
}

.search-item-icon.article-badge {
  background: rgba(205, 159, 92, 0.15);
  color: #a4732b;
  border: 1px solid rgba(205, 159, 92, 0.35);
}

.group-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex-shrink: 0;
}

.group-icon-svg.icon-emerald {
  background: rgba(2, 54, 56, 0.09);
  color: #023638;
}

.group-icon-svg.icon-gold {
  background: rgba(205, 159, 92, 0.2);
  color: #9c6c24;
}

.search-item-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.search-item-name {
  font-size: 0.86rem;
  font-weight: 800;
  color: #023638;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-meta {
  font-size: 0.7rem;
  color: #6a8284;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.search-item-arrow {
  color: #9db2b4;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.search-result-item:hover .search-item-arrow {
  color: #CD9F5C;
  transform: translateX(-4px);
}

.search-empty-state {
  padding: 24px 16px;
  text-align: center;
  color: #6a8284;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Custom Sleek Scrollbar in Site Theme */
.header-search-dropdown::-webkit-scrollbar {
  width: 6px;
}

.header-search-dropdown::-webkit-scrollbar-track {
  background: #f4f8f6;
  border-radius: 8px;
}

.header-search-dropdown::-webkit-scrollbar-thumb {
  background: #CD9F5C;
  border-radius: 8px;
}

.header-search-dropdown::-webkit-scrollbar-thumb:hover {
  background: #b58542;
}


/* Luxury Listen CTA with Animated Sound Wave Equalizer */
.btn-listen-header-premium {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px;
  background: linear-gradient(135deg, #023638 0%, #064e52 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  border-radius: 999px;
  border: 1.5px solid #CD9F5C;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(205, 159, 92, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-audio-wave {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
}

.btn-audio-wave span {
  display: inline-block;
  width: 2.5px;
  background: #CD9F5C;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.btn-audio-wave span:nth-child(1) {
  height: 6px;
  animation: audioWave 0.8s ease-in-out infinite alternate;
}

.btn-audio-wave span:nth-child(2) {
  height: 13px;
  animation: audioWave 1.1s ease-in-out 0.15s infinite alternate;
}

.btn-audio-wave span:nth-child(3) {
  height: 8px;
  animation: audioWave 0.9s ease-in-out 0.3s infinite alternate;
}

@keyframes audioWave {
  0% { height: 4px; }
  100% { height: 14px; }
}

.btn-listen-header-premium:hover {
  background: linear-gradient(135deg, #CD9F5C 0%, #e5bd82 100%);
  color: #012425;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(205, 159, 92, 0.45);
}

.btn-listen-header-premium:hover .btn-audio-wave span {
  background: #012425;
}

/* Fallback legacy classes */
.btn-lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(2, 54, 56, 0.05);
  border: 1px solid rgba(205, 159, 92, 0.35);
  border-radius: 999px;
  color: #023638;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-listen-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  background: linear-gradient(135deg, #023638 0%, #064e52 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.86rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(2, 54, 56, 0.2);
  border: 1px solid rgba(205, 159, 92, 0.3);
  transition: all 0.25s ease;
}

.btn-mobile-menu {
  display: none;
  color: #023638;
  font-size: 1.5rem;
  padding: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 992px) {
  .top-bar-text {
    display: none; /* Keep hadith & button compact on tablets/mobiles */
  }
}

@media (max-width: 868px) {
  .header-inner {
    height: 62px;
  }

  .header-search-input {
    width: 140px;
  }

  .header-search-box:focus-within .header-search-input {
    width: 175px;
  }

  .header-search-dropdown {
    width: 300px;
  }

  .main-nav {
    position: fixed;
    top: 62px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 25px;
    gap: 16px;
    border-bottom: 2px solid #CD9F5C;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .main-nav.active {
    display: flex;
  }

  .btn-mobile-menu {
    display: block;
  }

  .btn-listen-header,
  .btn-listen-header-premium {
    display: none;
  }
}

@media (max-width: 576px) {
  .top-announcement-bar {
    padding: 6px 0;
    font-size: 0.78rem;
  }

  .top-bar-inner {
    justify-content: center;
    gap: 8px;
  }

  .header-search-input {
    width: 105px;
    font-size: 0.75rem;
  }

  .header-search-box:focus-within .header-search-input {
    width: 140px;
  }

  .header-search-dropdown {
    width: 275px;
    right: -40px;
  }

  body[dir="ltr"] .header-search-dropdown {
    right: auto;
    left: -40px;
  }

  .btn-lang-toggle-premium {
    padding: 5px 9px;
  }

  .btn-lang-toggle-premium .lang-label {
    display: none;
  }

  .logo-title {
    font-size: 1.2rem;
  }

  .logo-img {
    height: 38px;
  }

  .logo-text-img {
    height: 32px;
    max-width: 135px;
    margin-inline-start: -8px;
  }
}


/* ==========================================================================
   Interactive Share Platform Modal (نافذة مشاركة المنصة - تصميم فاخر ومحسن)
   ========================================================================== */
.modal-overlay#sharePlatformModal .modal-dialog.share-modal-dialog,
.share-modal-dialog {
  max-width: 440px !important;
  width: 92% !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 24px 60px rgba(1, 30, 31, 0.45) !important;
  border: 1.5px solid rgba(205, 159, 92, 0.45) !important;
  background: #ffffff !important;
  padding: 0 !important;
}

.modal-dialog.share-modal-dialog .modal-header.share-modal-top,
.share-modal-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 13px 20px !important;
  background: linear-gradient(135deg, #012425 0%, #023638 100%) !important;
  border-bottom: 1.5px solid rgba(205, 159, 92, 0.4) !important;
  position: relative !important;
}

.share-modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-modal-title-group svg {
  flex-shrink: 0;
}

.modal-dialog.share-modal-dialog .share-modal-top .modal-title {
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
  letter-spacing: -0.3px;
}

.modal-dialog.share-modal-dialog .share-modal-top .btn-close-modal {
  color: #CD9F5C !important;
  width: 30px !important;
  height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(205, 159, 92, 0.3) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.modal-dialog.share-modal-dialog .share-modal-top .btn-close-modal:hover {
  background: #e53e3e !important;
  border-color: #e53e3e !important;
  color: #ffffff !important;
  transform: rotate(90deg) scale(1.05) !important;
}

.share-modal-compact {
  padding: 16px 20px 20px !important;
  background: #fdfcf9 !important;
}

.share-modal-header {
  text-align: center;
  margin-bottom: 12px;
}

.share-modal-badge {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(205, 159, 92, 0.14);
  color: #8c6328;
  border: 1px solid rgba(205, 159, 92, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.share-modal-hadith {
  font-size: 0.8rem;
  color: #557072;
  line-height: 1.4;
  margin: 0;
  font-weight: 600;
}

/* Sharing Section Cards (3 Clearly Numbered Methods) */
.share-section-card {
  background: #ffffff;
  border: 1.2px solid rgba(205, 159, 92, 0.3);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 11px;
  box-shadow: 0 2px 8px rgba(2, 54, 56, 0.03);
  transition: all 0.25s ease;
}

.share-section-card:hover {
  border-color: rgba(205, 159, 92, 0.6);
  box-shadow: 0 4px 14px rgba(2, 54, 56, 0.06);
}

.share-section-card:last-child {
  margin-bottom: 0;
}

.share-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #023638;
  margin-bottom: 8px;
  text-align: right;
}

.share-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #CD9F5C 0%, #b8863f 100%);
  color: #012425;
  font-size: 0.75rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Method 1: QR Code Sharing & Direct Download */
.share-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.share-qr-frame {
  position: relative;
  background: #ffffff;
  padding: 6px;
  border-radius: 14px;
  border: 2px solid var(--secondary, #CD9F5C);
  box-shadow: 0 4px 14px rgba(205, 159, 92, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.share-qr-frame:hover {
  transform: scale(1.02);
}

.share-qr-img {
  width: 105px;
  height: 105px;
  display: block;
  border-radius: 6px;
}

/* Snapchat Center Logo Badge */
.qr-center-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 1.5px solid var(--secondary, #CD9F5C);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(2, 54, 56, 0.2);
}

.qr-center-logo {
  width: 20px;
  height: auto;
}

/* Actual File Download Button for QR */
.btn-download-qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  max-width: 290px;
  padding: 7px 16px;
  background: linear-gradient(135deg, #023638 0%, #054c4f 100%);
  border: 1.5px solid #CD9F5C;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(2, 54, 56, 0.18);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-download-qr svg {
  fill: #CD9F5C;
  transition: transform 0.2s ease, fill 0.2s ease;
}

.btn-download-qr:hover {
  background: #CD9F5C;
  color: #012425;
  border-color: #023638;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(205, 159, 92, 0.4);
}

.btn-download-qr:hover svg {
  fill: #012425;
}

.share-sub-hint {
  font-size: 0.72rem;
  color: #6a8284;
  text-align: center;
  margin-top: 1px;
}

/* Method 2: Premium Copy Link Textbox */
.share-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid rgba(205, 159, 92, 0.5);
  border-radius: 10px;
  padding: 4px 5px 4px 10px;
  box-shadow: inset 0 1px 3px rgba(2, 54, 56, 0.04), 0 2px 6px rgba(205, 159, 92, 0.08);
  transition: all 0.2s ease;
}

.share-copy-box:hover,
.share-copy-box:focus-within {
  border-color: #CD9F5C;
  box-shadow: 0 0 0 3px rgba(205, 159, 92, 0.16);
}

.share-link-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(205, 159, 92, 0.12);
  border-radius: 6px;
  color: #CD9F5C;
  flex-shrink: 0;
}

.share-url-text {
  flex-grow: 1;
  font-size: 0.84rem;
  font-weight: 800;
  color: #023638;
  text-align: left;
  direction: ltr;
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.btn-copy-share-url {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--secondary) 0%, #b8863f 100%);
  color: #012425;
  border: none;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(205, 159, 92, 0.25);
}

.btn-copy-share-url svg {
  fill: #012425;
}

.btn-copy-share-url:hover {
  background: #023638;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 54, 56, 0.25);
}

.btn-copy-share-url:hover svg {
  fill: #CD9F5C;
}

/* Method 3: Social Media Channels (Strictly Themed in Site Colors) */
.share-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: nowrap;
  margin-top: 2px;
}

.social-round-btn.site-themed-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1.5px solid rgba(205, 159, 92, 0.45);
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 54, 56, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.social-round-btn.site-themed-btn svg {
  width: 18px;
  height: 18px;
  fill: #023638;
  transition: transform 0.25s ease, fill 0.25s ease;
}

/* Consistent Website Color Theme on Hover (Emerald & Gold) */
.social-round-btn.site-themed-btn:hover {
  background: linear-gradient(135deg, #023638 0%, #044b4e 100%);
  border-color: #CD9F5C;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 14px rgba(2, 54, 56, 0.25);
}

.social-round-btn.site-themed-btn:hover svg {
  fill: #CD9F5C;
  transform: scale(1.1);
}

@media (max-width: 400px) {
  .modal-overlay#sharePlatformModal .modal-dialog.share-modal-dialog {
    width: 95% !important;
    max-width: 350px !important;
  }
  .social-round-btn.site-themed-btn {
    width: 36px;
    height: 36px;
  }
  .social-round-btn.site-themed-btn svg {
    width: 16px;
    height: 16px;
  }
  .share-social-row {
    gap: 6px;
  }
}


/* Global Toast Notice Styling */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #023638;
  color: #CD9F5C;
  border: 1.5px solid #CD9F5C;
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(2, 54, 56, 0.25);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100000;
}
.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


/* ==========================================================================
   MEGA MENU — Full-width dropdowns under the header (Desktop only)
   القوائم المنسدلة العريضة بعرض الهيدر بالكامل
   ========================================================================== */

/* Nav items stretch to full header height so hover stays continuous
   from the link down into the dropdown panel */
.main-nav {
  align-self: stretch;
}

.nav-item {
  display: flex;
  align-items: center;
  /* NOT position:relative — the dropdown anchors to .site-header for full width */
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-caret {
  opacity: 0.55;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.nav-item.mega-open > .nav-link {
  color: #CD9F5C;
}

.nav-item.mega-open > .nav-link::after {
  width: 100%;
}

.nav-item.mega-open .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}

/* Panel */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 8% 0%, rgba(205, 159, 92, 0.10) 0%, transparent 38%),
    radial-gradient(circle at 95% 100%, rgba(2, 54, 56, 0.06) 0%, transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #fcfbf7 100%);
  border-top: 1px solid rgba(205, 159, 92, 0.28);
  border-bottom: 3px solid #CD9F5C;
  box-shadow: 0 28px 60px -12px rgba(1, 36, 37, 0.28), 0 10px 20px -10px rgba(1, 36, 37, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.25s;
  z-index: 999;
}

.nav-item.mega-open > .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s;
}

/* Decorative gold hairline on the top edge */
.mega-dropdown::before {
  content: "";
  position: sticky;
  top: 0;
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(205, 159, 92, 0.85) 50%, transparent 100%);
}

.mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 12px;
}

.mega-inner.mega-inner-full {
  grid-template-columns: minmax(0, 1fr);
}

/* Staggered entrance of panel content */
.nav-item.mega-open .mega-main,
.nav-item.mega-open .mega-side {
  animation: megaRise 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nav-item.mega-open .mega-side {
  animation-delay: 0.06s;
}

@keyframes megaRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mega-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.mega-kicker {
  font-size: 0.66rem;
  font-weight: 800;
  color: #a4732b;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mega-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #CD9F5C;
}

.mega-title {
  font-size: 0.98rem;
  font-weight: 900;
  color: #023638;
  margin: 0;
  letter-spacing: -0.3px;
}

/* Bottom CTA bar */
.mega-footer {
  border-top: 1px dashed rgba(205, 159, 92, 0.35);
  padding: 8px 0 10px;
  display: flex;
  justify-content: center;
  background: rgba(252, 251, 247, 0.85);
}

.mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #023638 0%, #064e52 100%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  border: 1.5px solid #CD9F5C;
  box-shadow: 0 6px 18px rgba(2, 54, 56, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-cta-arrow {
  color: #CD9F5C;
  transition: transform 0.25s ease, color 0.25s ease;
}

.mega-cta:hover {
  background: linear-gradient(135deg, #CD9F5C 0%, #e5bd82 100%);
  color: #012425;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(205, 159, 92, 0.4);
}

.mega-cta:hover .mega-cta-arrow {
  color: #012425;
  transform: translateX(-5px);
}

body[dir="ltr"] .mega-cta:hover .mega-cta-arrow {
  transform: translateX(5px) scaleX(-1);
}

/* ---------- Cards grid (Reciters & Programs) ---------- */
.mega-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.mega-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  background: #ffffff;
  border: 1.5px solid #eee7d8;
  border-radius: 13px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(205, 159, 92, 0.10) 0%, rgba(2, 54, 56, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.mega-card:hover,
.mega-card.is-active {
  border-color: #CD9F5C;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(2, 54, 56, 0.25);
}

.mega-card:hover::before,
.mega-card.is-active::before {
  opacity: 1;
}

.mega-card-media {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  background: #f2efe6;
}

.mega-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-card:hover .mega-card-media img {
  transform: scale(1.08);
}

.mega-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(205, 159, 92, 0.55), 0 6px 14px rgba(2, 54, 56, 0.18);
}

.mega-card-thumb {
  width: 92px;
  height: 54px;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(2, 54, 56, 0.15);
}

.mega-card-thumb-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(2, 54, 56, 0.72);
  border: 1.5px solid rgba(205, 159, 92, 0.85);
  backdrop-filter: blur(4px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.mega-card:hover .mega-card-thumb-play {
  transform: scale(1.12);
  background: #CD9F5C;
  color: #012425;
}

.mega-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.mega-card-tag {
  align-self: flex-start;
  max-width: 100%;
  font-size: 0.6rem;
  font-weight: 800;
  color: #8c6a32;
  background: rgba(205, 159, 92, 0.14);
  border: 1px solid rgba(205, 159, 92, 0.3);
  padding: 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-card-title {
  font-size: 0.82rem;
  font-weight: 900;
  color: #023638;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

.mega-card-desc {
  font-size: 0.68rem;
  font-weight: 500;
  color: #5d7577;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mega-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.64rem;
  font-weight: 800;
  color: #a4732b;
  margin-top: 1px;
}

.mega-card-arrow {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #9db2b4;
  background: #f4f8f6;
  transition: all 0.25s ease;
}

.mega-card:hover .mega-card-arrow,
.mega-card.is-active .mega-card-arrow {
  color: #ffffff;
  background: #023638;
  transform: translateX(-3px);
}

body[dir="ltr"] .mega-card-arrow {
  transform: scaleX(-1);
}

/* ---------- Side video ---------- */
.mega-side {
  display: flex;
  flex-direction: column;
}

.mega-video {
  height: 100%;
}

.mega-video.mega-video-swap .mega-video-card {
  animation: megaVideoSwap 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes megaVideoSwap {
  from { opacity: 0.2; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.mega-video-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(160deg, #012425 0%, #023638 60%, #064e52 100%);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  border: 1.5px solid rgba(205, 159, 92, 0.45);
  box-shadow: 0 16px 34px -12px rgba(1, 36, 37, 0.5);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.mega-video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -12px rgba(1, 36, 37, 0.6);
}

.mega-video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #012425;
}

.mega-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.mega-video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 36, 37, 0.05) 40%, rgba(1, 36, 37, 0.7) 100%);
}

.mega-video-card:hover .mega-video-thumb img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.mega-video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #012425;
  background: linear-gradient(135deg, #CD9F5C 0%, #e8c48c 100%);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

body[dir="ltr"] .mega-video-badge {
  right: auto;
  left: 10px;
}

.mega-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #012425;
  animation: megaPulse 1.4s ease-in-out infinite;
}

@keyframes megaPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.mega-video-duration {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 6px;
  direction: ltr;
}

.mega-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(2, 54, 56, 0.6);
  border: 2px solid #CD9F5C;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 0 rgba(205, 159, 92, 0.55);
  animation: megaPlayRing 2.2s ease-out infinite;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, color 0.25s ease;
}

.mega-video-play svg {
  margin-inline-start: 3px;
}

@keyframes megaPlayRing {
  0% { box-shadow: 0 0 0 0 rgba(205, 159, 92, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(205, 159, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(205, 159, 92, 0); }
}

.mega-video-card:hover .mega-video-play {
  transform: scale(1.12);
  background: #CD9F5C;
  color: #012425;
}

.mega-video-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 12px 10px;
  flex: 1;
}

.mega-video-owner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #e8c48c;
}

.mega-video-owner img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #CD9F5C;
}

.mega-video-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mega-video-sub {
  font-size: 0.72rem;
  color: #a9c4c6;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-video-action {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #012425;
  background: #CD9F5C;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.mega-video-card:hover .mega-video-action {
  background: #ffffff;
  transform: translateX(-3px);
}

/* ---------- Home tiles ---------- */
.mega-home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mega-home-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 2.7;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(160deg, #023638 0%, #064e52 100%);
  border: 1.5px solid rgba(205, 159, 92, 0.35);
  box-shadow: 0 10px 24px -12px rgba(1, 36, 37, 0.45);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.mega-home-tile:hover {
  transform: translateY(-4px);
  border-color: #CD9F5C;
  box-shadow: 0 18px 34px -12px rgba(1, 36, 37, 0.55);
}

.mega-home-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-home-tile:hover .mega-home-tile-img {
  transform: scale(1.08);
}

.mega-home-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 36, 37, 0.05) 15%, rgba(1, 36, 37, 0.88) 100%);
  transition: background 0.3s ease;
}

.mega-home-tile:hover .mega-home-tile-shade {
  background: linear-gradient(180deg, rgba(1, 36, 37, 0.15) 0%, rgba(1, 36, 37, 0.92) 100%);
}

.mega-home-tile-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-home-tile-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #012425;
  background: linear-gradient(135deg, #CD9F5C 0%, #e8c48c 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  margin-bottom: 4px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-home-tile:hover .mega-home-tile-icon {
  transform: rotate(-8deg) scale(1.08);
}

.mega-home-tile-name {
  font-size: 0.84rem;
  font-weight: 900;
  color: #ffffff;
}

.mega-home-tile-meta {
  font-size: 0.64rem;
  font-weight: 600;
  color: #e8dcc3;
}

/* Home "About" side card */
.mega-side-about {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(205, 159, 92, 0.22) 0%, transparent 60%),
    linear-gradient(160deg, #012425 0%, #023638 100%);
  border: 1.5px solid rgba(205, 159, 92, 0.45);
  color: #ffffff;
}

.mega-about-logo {
  width: 46px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(205, 159, 92, 0.5));
  margin-bottom: 8px;
}

.mega-about-title {
  font-size: 0.92rem;
  font-weight: 900;
  color: #e8c48c;
  margin: 0 0 4px;
}

.mega-about-text {
  font-size: 0.7rem;
  line-height: 1.7;
  color: #c9dbdd;
  margin: 0 0 8px;
}

.mega-about-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.mega-chip {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(205, 159, 92, 0.6);
  background: rgba(205, 159, 92, 0.12);
  transition: all 0.2s ease;
}

.mega-chip:hover {
  background: #CD9F5C;
  color: #012425;
}

/* ---------- Blog articles ---------- */
.mega-articles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mega-article-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid #eee7d8;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: megaRise 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}

.mega-article-card:hover {
  border-color: #CD9F5C;
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -12px rgba(2, 54, 56, 0.3);
}

.mega-article-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: #f2efe6;
}

.mega-article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-article-card:hover .mega-article-media img {
  transform: scale(1.07);
}

.mega-article-cat {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 10px;
  font-size: 0.66rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(2, 54, 56, 0.85);
  border: 1px solid rgba(205, 159, 92, 0.7);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

body[dir="ltr"] .mega-article-cat {
  right: auto;
  left: 10px;
}

.mega-article-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 11px 10px;
  flex: 1;
}

.mega-article-title {
  font-size: 0.78rem;
  font-weight: 900;
  color: #023638;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.mega-article-card:hover .mega-article-title {
  color: #a4732b;
}

.mega-article-excerpt {
  font-size: 0.68rem;
  color: #5d7577;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mega-article-date {
  margin-top: auto;
  padding-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #a4732b;
}

/* ---------- Skeleton loaders ---------- */
.mega-skeleton {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid #f0ebe0;
  border-radius: 16px;
}

.mega-skeleton-v {
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 14px;
  overflow: hidden;
}

.mega-skeleton-video {
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 16px;
  overflow: hidden;
  height: 100%;
  border-radius: 18px;
}

.mega-sk-media,
.mega-sk-lines span {
  background: linear-gradient(90deg, #f1ede3 0%, #faf8f3 50%, #f1ede3 100%);
  background-size: 200% 100%;
  animation: megaShimmer 1.2s linear infinite;
}

.mega-skeleton-h .mega-sk-media {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mega-skeleton-v .mega-sk-media,
.mega-skeleton-video .mega-sk-media {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.mega-sk-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.mega-skeleton-v .mega-sk-lines,
.mega-skeleton-video .mega-sk-lines {
  padding: 0 14px;
}

.mega-sk-lines span {
  height: 9px;
  border-radius: 6px;
}

.mega-sk-lines span:nth-child(1) { width: 40%; }
.mega-sk-lines span:nth-child(2) { width: 85%; }
.mega-sk-lines span:nth-child(3) { width: 65%; }

@keyframes megaShimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.mega-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #6a8284;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 24px 0;
}

/* Sleek scrollbar inside the panel */
.mega-dropdown::-webkit-scrollbar { width: 6px; }
.mega-dropdown::-webkit-scrollbar-thumb { background: #CD9F5C; border-radius: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .mega-inner { grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; }
  .mega-card-desc { -webkit-line-clamp: 1; }
}

@media (max-width: 1024px) {
  .mega-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-home-tile { aspect-ratio: 16 / 8; }
  .mega-articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-cards-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Mobile & tablet: mega menus are disabled — plain links in the slide-down nav */
@media (max-width: 868px) {
  .main-nav { align-self: auto; }
  .nav-item { display: block; width: 100%; }
  .nav-caret,
  .mega-dropdown { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .mega-dropdown,
  .mega-card,
  .mega-article-card,
  .mega-video-card,
  .mega-home-tile,
  .mega-video-play,
  .mega-live-dot,
  .nav-item.mega-open .mega-main,
  .nav-item.mega-open .mega-side {
    animation: none !important;
    transition: none !important;
  }
}
