/* Home page mobile styles shared across Arabic and English.
   Direction-specific differences are kept under html[dir="rtl"] / html[dir="ltr"] selectors. */

.pillar-title-mobile,
.pillar-copy-mobile {
  display: none;
}

@media (max-width: 760px) {
  .nav-top-home {
    min-height: 62px;
    padding: 8px 0 10px;
    align-items: center;
    justify-content: center;
    border-bottom: none;
    position: relative;
  }

  .nav-top-home .nav-main-group {
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: 0 0 auto;
    width: auto;
  }

  .nav-top-home .nav-links {
    display: none;
  }

  .nav-top-home .nav-logo {
    font-size: 2.68rem;
    line-height: 0.95;
    text-align: center;
  }

  .nav-top-home .lang-toggle {
    padding: 5px 9px;
    border-radius: 12px;
  }

  .nav-top-home .lang-toggle span {
    font-size: 0.82rem;
  }

  .nav-top-home .lang-toggle svg {
    width: 16px;
    height: 16px;
  }

  html[dir="rtl"] .nav-top-home .nav-main-group {
    margin-left: 0;
  }

  html[dir="ltr"] .nav-top-home .nav-main-group {
    margin-right: 0;
  }

  html[dir="rtl"] .nav-top-home .nav-top-left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
  }

  html[dir="ltr"] .nav-top-home .nav-top-left {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
  }

  .hero {
    padding: 26px 4% 24px;
  }

  .hero-tag {
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(200,164,90,0.16);
    border: 1px solid rgba(226,192,122,0.30);
    color: var(--gold-light) !important;
    letter-spacing: 0.04em;
    box-shadow:
      0 10px 24px rgba(0,0,0,0.22),
      inset 0 1px 0 rgba(255,255,255,0.10);
  }

  html[dir="rtl"] .hero-tag {
    font-size: 1.34rem;
  }

  html[dir="ltr"] .hero-tag {
    font-size: 1.05rem;
    line-height: 1.5;
  }

  .hero .subtitle {
    font-size: 0.94rem;
    line-height: 1.68;
    margin: 0 auto 20px;
    max-width: 100%;
  }

  .hero-cta-home-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
  }

  .hero-cta-home-menu .cta-btn {
    width: 100%;
    min-height: 60px;
    justify-content: center;
    text-align: center;
    padding: 14px 14px;
    border-radius: 18px;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.35;
    gap: 6px;
    position: relative;
    overflow: hidden;
    color: var(--gold-light) !important;
    background: var(--bg2) !important;
    box-shadow:
      0 14px 30px rgba(0,0,0,0.28),
      0 0 0 1px rgba(200,164,90,0.08),
      inset 0 1px 0 rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  html[dir="rtl"] .hero-cta-home-menu .cta-btn {
    direction: rtl;
  }

  html[dir="ltr"] .hero-cta-home-menu .cta-btn {
    direction: ltr;
  }

  .hero-cta-home-menu .cta-btn svg {
    display: none;
  }

  .hero-cta-home-menu .cta-btn::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 17px;
    border: 1px solid rgba(255,255,255,0.06);
    pointer-events: none;
  }

  html[dir="rtl"] .hero-cta-home-menu .cta-btn::after {
    content: '←' !important;
    display: inline-block;
    margin-inline-start: 8px;
    font-size: 1rem;
    line-height: 1;
    color: var(--gold-light) !important;
    text-shadow: 0 1px 0 rgba(0,0,0,0.18);
  }

  html[dir="ltr"] .hero-cta-home-menu .cta-btn::after {
    content: '→' !important;
    display: inline-block;
    margin-inline-start: 8px;
    font-size: 1rem;
    line-height: 1;
    color: var(--gold-light) !important;
    text-shadow: 0 1px 0 rgba(0,0,0,0.18);
  }

  .hero-cta-home-menu .cta-btn:hover,
  .hero-cta-home-menu .cta-btn:active {
    transform: translateY(-1px);
    color: var(--gold-light) !important;
    background: var(--bg2) !important;
    border-color: rgba(226,192,122,0.46);
    box-shadow:
      0 18px 34px rgba(0,0,0,0.34),
      0 0 0 1px rgba(200,164,90,0.12),
      inset 0 1px 0 rgba(255,255,255,0.18);
  }

  .hero-cta-home-menu .cta-btn:last-child {
    grid-column: 1 / -1;
  }

  .pillars {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
    padding: 28px 4% 36px !important;
  }

  .pillars > .pillar {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 16px 10px !important;
    border-radius: 16px !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.015) 100%),
      rgba(15,15,18,0.96) !important;
    border: 1px solid rgba(200,164,90,0.18) !important;
    box-shadow:
      0 14px 28px rgba(0,0,0,0.25),
      inset 0 1px 0 rgba(255,255,255,0.05) !important;
    text-align: center !important;
    overflow: hidden !important;
  }

  .pillars > .pillar:nth-child(4) {
    display: none !important;
  }

  .pillars > .pillar .pillar-icon {
    display: block !important;
    font-size: 1.7rem !important;
    margin-bottom: 10px !important;
    animation: none !important;
  }

  .pillars > .pillar h3 {
    display: block !important;
    width: 100% !important;
    margin: 0 0 6px !important;
    font-size: 0.86rem !important;
    line-height: 1.35 !important;
    color: var(--gold-light) !important;
    word-break: break-word !important;
  }

  .pillars > .pillar p {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 0.72rem !important;
    line-height: 1.45 !important;
    color: var(--text-muted) !important;
    word-break: break-word !important;
  }

  .pillars > .pillar h3 span,
  .pillars > .pillar p span {
    display: inline !important;
  }

  .pillar-title-desktop,
  .pillar-copy-desktop {
    display: none !important;
  }

  .pillar-title-mobile,
  .pillar-copy-mobile {
    display: inline !important;
  }
}

@media (max-width: 420px) {
  .nav-top-home {
    min-height: 56px;
    padding: 7px 0 8px;
  }

  .nav-top-home .nav-logo {
    font-size: 2.26rem;
  }

  .nav-top-home .lang-toggle {
    padding: 4px 8px;
    border-radius: 11px;
  }

  .nav-top-home .lang-toggle span {
    font-size: 0.78rem;
  }

  .nav-top-home .lang-toggle svg {
    width: 15px;
    height: 15px;
  }

  .hero {
    padding: 22px 4% 20px;
  }

  html[dir="rtl"] .hero-tag {
    font-size: 1.18rem;
    padding: 7px 14px;
    margin-top: 6px;
    margin-bottom: 10px;
  }

  html[dir="ltr"] .hero-tag {
    font-size: 0.92rem;
    padding: 7px 12px;
    margin-top: 6px;
    margin-bottom: 10px;
  }

  .hero-cta-home-menu {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-cta-home-menu .cta-btn {
    min-height: 54px;
    font-size: 0.90rem;
    border-radius: 16px;
  }

  .hero-cta-home-menu .cta-btn::before {
    border-radius: 15px;
  }

  .hero-cta-home-menu .cta-btn:last-child {
    grid-column: auto;
  }

  .pillars {
    gap: 7px !important;
    padding: 24px 4% 30px !important;
  }

  .pillars > .pillar {
    padding: 13px 7px !important;
    border-radius: 14px !important;
  }

  .pillars > .pillar .pillar-icon {
    font-size: 1.42rem !important;
  }

  .pillars > .pillar h3 {
    font-size: 0.74rem !important;
  }

  .pillars > .pillar p {
    font-size: 0.60rem !important;
    line-height: 1.35 !important;
  }
}
