/* ============================================
   DIVE IN HURGHADA — ARTICLES LISTING PAGE
   articles.css — Used by articles.html
   ============================================ */

/* ── PAGE HERO ── */
.page-hero {
  position: relative; z-index: 1;
  min-height: 50vh;
  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: #00c8ff; 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;
  color: #ffffff;
}
.page-title em { font-style: italic; color: #00c8ff; }
.page-sub {
  margin-top: 1.2rem; font-size: 1rem; color: #94b2d0; max-width: 620px; line-height: 1.7;
  animation: fadeUp 0.7s 0.3s both;
}

/* ── ARTICLES SECTION ── */
.articles-section {
  position: relative; z-index: 1;
  padding: 0 4rem 6rem;
}
.articles-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

/* ── ARTICLE CARD ── */
.article-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;
}
.article-card:hover {
  transform: translateY(-10px);
  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);
}
.article-card-link {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  height: 100%;
}
.article-card-img {
  height: 200px; overflow: hidden; position: relative;
}
.article-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s; filter: brightness(0.85) saturate(1.2);
}
.article-card:hover .article-card-img img {
  transform: scale(1.08);
}
.article-card-cat {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: 100px;
  background: rgba(240,165,0,0.2); color: #f0a500; border: 1px solid rgba(240,165,0,0.4);
}
.article-card-body {
  padding: 1.5rem; flex: 1; display: flex; flex-direction: column;
}
.article-card-meta {
  display: flex; gap: 1rem; margin-bottom: 0.8rem;
}
.article-card-date, .article-card-read {
  font-size: 0.75rem; color: #94b2d0; letter-spacing: 0.05em;
}
.article-card-body h2 {
  font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.6rem;
  color: #ffffff; line-height: 1.3;
}
.article-card-body p {
  font-size: 0.88rem; color: #94b2d0; line-height: 1.7; flex: 1;
  margin-bottom: 1.2rem;
}
.article-card-cta {
  font-size: 0.82rem; font-weight: 700; color: #00c8ff;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: opacity 0.2s;
}
.article-card:hover .article-card-cta {
  opacity: 0.8;
}

/* ── 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; color: #ffffff; }
.cta-banner p { color: #94b2d0; margin-bottom: 1.8rem; font-size: 0.95rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .articles-section { padding: 0 1.5rem 4rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .cta-banner { margin: 0 1.5rem 4rem; padding: 2rem; }
}
