/* ==========================================================================
   School Al Quran - Premium Visual & Interaction Upgrade (upgrade.css)
   Teal (#0b3b33 / #0a2824) + Gold (#e2c35a) Theme Polish
   ========================================================================== */

/* 1. Sticky Header with Subtle Backdrop Blur & Soft Shadow */
.header-area.is-scrolled,
.navbar-area.is-scrolled,
.nav-area .navbar-area.is-sticky {
  background-color: rgba(10, 40, 36, 0.94) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

/* 2. Card Elevation & Hover Transitions */
.single-courses,
.single-services,
.single-pricing,
.single-blog,
.single-blog-post,
.single-feature,
.single-client,
.single-process,
.pricing-area .col-lg-3 > div,
.pricing-card,
.card {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, box-shadow;
}

.single-courses:hover,
.single-services:hover,
.single-pricing:hover,
.single-blog:hover,
.single-blog-post:hover,
.single-feature:hover,
.pricing-area .col-lg-3 > div:hover,
.pricing-card:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(10, 40, 36, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);
}

/* 3. Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* 4. Inner Page Title Banners */
.page-title-area,
.page-title-area[class*="bg-"] {
  background: linear-gradient(rgba(10, 40, 36, 0.72), rgba(10, 40, 36, 0.72)), url(../img/page-bg.jpg) center / cover no-repeat !important;
  position: relative;
}

/* 5. Top Bar Text (Never Cut, Responsive Wrapping) */
.top-header-area .header-content-left,
.top-header-area .header-content-left li,
.top-header-area .header-content-left a,
.top-header-area .header-content-left marquee {
  display: inline-block;
  white-space: normal !important;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .top-header-area {
    padding: 8px 0;
  }
  .top-header-area .header-content-left,
  .top-header-area .header-content-right {
    text-align: center;
    float: none !important;
  }
  .top-header-area .header-content-left li,
  .top-header-area .header-content-right li {
    padding: 2px 8px;
    white-space: normal !important;
  }
}

/* 6. Consistent Section Spacing */
section,
.ptb-100 {
  padding-top: 85px;
  padding-bottom: 85px;
}

@media (max-width: 767px) {
  section,
  .ptb-100 {
    padding-top: 55px;
    padding-bottom: 55px;
  }
}

/* 7. Accessibility - Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
    transform: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* 8. Hero: soft left-side shade instead of two dark half bands */
.hero-slider-area .slider-item::before {
  height: 100% !important;
  background: linear-gradient(90deg, rgba(8,34,30,.82) 0%, rgba(8,34,30,.55) 45%, rgba(8,34,30,.08) 100%) !important;
  animation: none !important;
}
.hero-slider-area .slider-item::after { display: none !important; }
.hero-slider-area .slider-item .slider-text h1 { text-shadow: 0 2px 14px rgba(0,0,0,.35); }
/* 3D star sits on the right on desktop; hide the old play button there */
@media (min-width: 768px) {
  .hero-slider-area .video-btn-animat { display: none !important; }
  #hero3d { z-index: 3 !important; filter: drop-shadow(0 10px 30px rgba(255,187,21,.25)); }
}
/* 9. Top bar: hide when header turns sticky so it never overlaps */
.header-area:has(.navbar-area.is-sticky) .top-header-area { display: none; }
.top-header-area .header-content-left li a { white-space: nowrap; }
/* 10. Hero has no extra section padding; small 3D star in the empty space, not over the Quran */
section.hero-slider-area { padding: 0 !important; }
@media (min-width: 992px) {
  #hero3d { right: auto !important; left: 43% !important; top: 150px !important; transform: none !important;
    width: 170px !important; height: 170px !important; opacity: .9; }
  #hero3d canvas { width: 170px !important; height: 170px !important; }
}
@media (max-width: 991px) { #hero3d { display: none !important; } }
/* page title is now h1 (SEO); keep the old h2 look */
.page-title-area .page-title-content h1 { color:#fff; font-size: 40px; margin-bottom: 15px; }
@media (max-width: 767px) { .page-title-area .page-title-content h1 { font-size: 28px; } }
