/* ============================================
   DIVE IN HURGHADA — COURSES PAGE STYLES
   courses.css — Used only by courses.html
   ============================================ */

/* ── PAGE HERO ── */
.page-hero {
  position: relative; z-index: 1;
  min-height: 55vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 8rem 2rem 4rem; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: -40px;
  background-size: cover; background-position: center 35%;
  filter: saturate(1.2) brightness(0.4);
  z-index: 0;
}
.page-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(2,12,24,0.4) 0%, rgba(2,12,24,0.2) 50%, rgba(2,12,24,0.95) 100%);
}
.page-hero > *:not(.page-hero-bg):not(.page-hero-overlay) { position: relative; z-index: 2; }
.page-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--glow); border: 1px solid rgba(0,200,255,0.35);
  padding: 0.35rem 1rem; border-radius: 100px; margin-bottom: 1.2rem;
  animation: fadeUp 0.7s 0.1s both;
}
.page-title {
  font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700; line-height: 1.1; animation: fadeUp 0.7s 0.2s both;
}
.page-title em { font-style: italic; color: var(--glow); }
.page-sub {
  margin-top: 1.2rem; font-size: 1rem; color: var(--muted); max-width: 620px; line-height: 1.7;
  animation: fadeUp 0.7s 0.3s both;
}

/* ── FILTER TABS ── */
.filter-wrap {
  position: relative; z-index: 1;
  display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap;
  padding: 0 2rem 3rem;
}
.filter-btn {
  background: transparent; border: 1px solid rgba(0,200,255,0.2);
  color: var(--muted); padding: 0.55rem 1.4rem; border-radius: 100px;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase; cursor: pointer;
  transition: all 0.25s;
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(0,200,255,0.12); border-color: var(--glow); color: var(--glow);
}

/* ── COURSES SECTION ── */
.courses-section { position: relative; z-index: 1; padding: 0 4rem 6rem; }
.courses-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.course-card {
  background: linear-gradient(145deg, rgba(6,32,64,0.9), rgba(2,12,24,0.95));
  border: 1px solid rgba(0,200,255,0.12); border-radius: 20px;
  overflow: hidden; transition: transform 0.4s cubic-bezier(.23,1,.32,1), box-shadow 0.4s, border-color 0.4s;
  transform-style: preserve-3d;
  display: none;
}
.course-card.visible-card { display: flex; flex-direction: column; }
.course-card:hover {
  transform: translateY(-10px) rotateX(3deg);
  box-shadow: 0 40px 70px rgba(0,0,0,0.5), 0 0 30px rgba(0,200,255,0.12);
  border-color: rgba(0,200,255,0.35);
}
.course-img {
  height: 200px; overflow: hidden; position: relative;
}
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; filter: brightness(0.85) saturate(1.2); }
.course-card:hover .course-img img { transform: scale(1.08); }
.course-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 100px;
}
.course-popular-flag {
  position: absolute; top: 12px; right: 12px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: 100px;
  background: rgba(240,165,0,0.2); color: var(--gold); border: 1px solid rgba(240,165,0,0.4);
}
.badge-beginner { background: rgba(0,200,255,0.2); color: var(--glow); border: 1px solid rgba(0,200,255,0.4); }
.badge-advanced { background: rgba(120,60,200,0.25); color: #c084fc; border: 1px solid rgba(160,80,240,0.4); }
.badge-specialty { background: rgba(0,255,160,0.15); color: var(--glow2); border: 1px solid rgba(0,255,160,0.35); }
.badge-pro { background: rgba(255,100,50,0.2); color: #ff8c69; border: 1px solid rgba(255,100,50,0.4); }
.badge-bsac { background: rgba(200,200,200,0.2); color: #ccc; border: 1px solid rgba(200,200,200,0.4); }
.course-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.course-body h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.5rem; }
.course-body p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; flex: 1; }
.course-meta {
  display: flex; gap: 1rem; margin-top: 1.2rem; padding-top: 1rem;
  border-top: 1px solid rgba(0,200,255,0.1); flex-wrap: wrap;
}
.meta-item { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 0.3rem; }
.meta-item span:first-child { font-size: 0.95rem; }
.course-includes {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem;
}
.inc-tag {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.05em;
  background: rgba(0,200,255,0.08); color: var(--muted);
  border: 1px solid rgba(0,200,255,0.15); padding: 0.25rem 0.6rem;
  border-radius: 100px; text-transform: uppercase;
}
.course-price {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.2rem;
}
.price-tag { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--glow); }
.price-tag small { font-family: var(--font-body); font-size: 0.75rem; color: var(--muted); font-weight: 400; display: block; line-height: 1; }
.btn-book {
  background: linear-gradient(135deg, var(--glow), var(--glow2));
  color: var(--deep); padding: 0.6rem 1.3rem; border-radius: 100px;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-book:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,200,255,0.4); }

/* ── FEATURED COURSE ── */
.featured-course {
  max-width: 1200px; margin: 0 auto 2rem;
  background: linear-gradient(135deg, rgba(6,32,64,0.95), rgba(2,20,48,0.98));
  border: 1px solid rgba(0,200,255,0.25); border-radius: 24px;
  overflow: hidden; display: grid; grid-template-columns: 1fr 1fr;
  position: relative;
}
.featured-course::before {
  content: 'FEATURED';
  position: absolute; top: 20px; right: 20px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em;
  background: rgba(0,200,255,0.2); color: var(--glow);
  border: 1px solid rgba(0,200,255,0.4); padding: 0.3rem 0.9rem; border-radius: 100px;
  z-index: 2;
}
.featured-img { height: 100%; min-height: 360px; overflow: hidden; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8) saturate(1.3); transition: transform 0.6s; }
.featured-course:hover .featured-img img { transform: scale(1.05); }
.featured-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.featured-body .course-badge { position: static; display: inline-block; margin-bottom: 0.5rem; }
.featured-body .course-popular {
  display: inline-block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(240,165,0,0.2); color: var(--gold); border: 1px solid rgba(240,165,0,0.4);
  padding: 0.25rem 0.7rem; border-radius: 100px; margin-bottom: 1rem; width: fit-content;
}
.featured-body h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.8rem; line-height: 1.2; }
.featured-body p { font-size: 0.92rem; color: var(--muted); line-height: 1.7; }
.featured-highlights {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin: 1.5rem 0;
}
.highlight-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--muted);
}
.highlight-item span:first-child { font-size: 1rem; }
.featured-includes {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem;
}
.featured-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; }

/* ── SPECIALTY SECTION ── */
.specialty-section {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto 6rem; padding: 0 4rem;
}
.specialty-header {
  text-align: center; margin-bottom: 3rem;
}
.specialty-header h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.8rem;
}
.specialty-header h2 em { font-style: italic; color: var(--glow); }
.specialty-header p { color: var(--muted); max-width: 500px; margin: 0 auto; line-height: 1.7; }
.specialty-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem;
}
.specialty-item {
  background: linear-gradient(145deg, rgba(6,32,64,0.8), rgba(2,12,24,0.9));
  border: 1px solid rgba(0,200,255,0.1); border-radius: 16px;
  padding: 1.5rem; text-align: center; transition: all 0.3s;
}
.specialty-item:hover {
  border-color: rgba(0,200,255,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 20px rgba(0,200,255,0.08);
  transform: translateY(-5px);
}
.specialty-icon {
  font-size: 2rem; display: block; margin-bottom: 0.8rem;
}
.specialty-item h4 {
  font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.3rem;
}
.specialty-item p {
  font-size: 0.78rem; color: var(--muted); line-height: 1.5;
}

/* ── TRUST BADGES ── */
.trust-badges {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto 6rem; padding: 0 4rem;
  display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(145deg, rgba(6,32,64,0.8), rgba(2,12,24,0.9));
  border: 1px solid rgba(0,200,255,0.15); border-radius: 100px;
  padding: 0.8rem 1.5rem; font-size: 0.85rem; font-weight: 600;
  color: var(--light);
}
.trust-icon { font-size: 1.2rem; }

/* ── CTA BANNER ── */
.cta-banner {
  position: relative; z-index: 1;
  margin: 0 4rem 6rem;
  max-width: 1200px; margin-left: auto; margin-right: auto;
  background: linear-gradient(135deg, rgba(0,60,120,0.5), rgba(0,180,255,0.1));
  border: 1px solid rgba(0,200,255,0.2); border-radius: 20px;
  padding: 3rem; text-align: center;
}
.cta-banner h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.8rem; }
.cta-banner p { color: var(--muted); margin-bottom: 1.8rem; font-size: 0.95rem; }

/* ── COURSES RESPONSIVE ── */
@media (max-width: 1024px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-course { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .courses-section { padding: 0 1.5rem 4rem; }
  .courses-grid { grid-template-columns: 1fr; }
  .featured-img { min-height: 220px; }
  .cta-banner { margin: 0 1.5rem 4rem; padding: 2rem; }
  .specialty-section { padding: 0 1.5rem; }
  .trust-badges { padding: 0 1.5rem; gap: 1rem; }
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .specialty-grid { grid-template-columns: 1fr; }
  .featured-highlights { grid-template-columns: 1fr; }
}
