/* ============================================================
   Safr Yo theme — combined stylesheet.
   First block: base layout (navbar, hero, sections, footer, etc.)
   Second block: content-site extensions (categories, featured, archive, static pages).
   ============================================================ */

/* ====================================
   موقع رحلة - Rehla Travel
   تصميم: مغامرة ونشاط
   ==================================== */

:root {
  --primary: #ff6b35;
  --primary-dark: #e8541f;
  --secondary: #004e89;
  --accent: #00a8a8;
  --dark: #1a2238;
  --light: #f7f9fc;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --white: #ffffff;
  --success: #28a745;
  --warning: #ffc107;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 15px 40px rgba(0,0,0,0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

body[dir="ltr"] {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==== Buttons ==== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--dark);
  transform: translateY(-2px);
}

/* ==== Navbar ==== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(26, 34, 56, 0.9);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(26, 34, 56, 0.98);
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 22px;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 10px 16px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

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

.lang-toggle {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: none;
  padding: 9px 18px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.lang-toggle:hover {
  background: var(--primary);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

/* ==== Hero ==== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(26,34,56,0.75), rgba(0,78,137,0.6)),
              url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?w=1920&q=80') center/cover;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,107,53,0.2), transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 120px 0 60px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,107,53,0.2);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,107,53,0.3);
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--warning));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 19px;
  margin-bottom: 36px;
  opacity: 0.9;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Search box on hero */
.search-box {
  position: relative;
  z-index: 3;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 8px;
  max-width: 900px;
}

.search-field {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--light);
}

.search-field label {
  display: block;
  font-size: 12px;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 4px;
}

.search-field input,
.search-field select {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  font-family: inherit;
}

.search-btn {
  padding: 0 32px;
  border-radius: var(--radius-sm);
}

/* ==== Sections ==== */
section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-head p {
  color: var(--gray);
  font-size: 17px;
}

/* ==== Features ==== */
.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.feature-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  background: var(--light);
  border: 1px solid transparent;
}

.feature-card:hover {
  background: var(--white);
  border-color: var(--gray-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.feature-card:nth-child(2) .feature-icon {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.feature-card:nth-child(3) .feature-icon {
  background: linear-gradient(135deg, var(--accent), var(--success));
}

.feature-card:nth-child(4) .feature-icon {
  background: linear-gradient(135deg, var(--warning), var(--primary));
}

.feature-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
  font-size: 14.5px;
}

/* ==== Destinations Grid ==== */
.destinations {
  background: var(--light);
}

.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.dest-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 380px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.dest-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.dest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.dest-card:hover img {
  transform: scale(1.1);
}

.dest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: var(--white);
}

.dest-overlay .dest-rating {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  background: rgba(255,255,255,0.95);
  color: var(--dark);
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dest-overlay .dest-rating::before {
  content: '★';
  color: var(--warning);
}

.dest-card h3 {
  font-size: 24px;
  margin-bottom: 6px;
}

.dest-card .dest-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  opacity: 0.85;
  font-size: 14px;
}

.dest-card .dest-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.dest-card .price {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.dest-card .price small {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}

.dest-card .dest-btn {
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}

.dest-card:hover .dest-btn {
  background: var(--white);
  color: var(--primary);
}

/* ==== Stats ==== */
.stats {
  background: linear-gradient(135deg, var(--secondary), var(--dark));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1530789253388-582c481c54b0?w=1920&q=80') center/cover;
  opacity: 0.15;
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 52px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--warning));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.stat-item p {
  font-size: 16px;
  opacity: 0.9;
}

/* ==== Articles / Blog ==== */
.articles {
  background: var(--white);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.article-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.article-category {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}

.article-body {
  padding: 24px;
}

.article-meta {
  display: flex;
  gap: 16px;
  color: var(--gray);
  font-size: 13px;
  margin-bottom: 12px;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--dark);
  line-height: 1.4;
  transition: var(--transition);
}

.article-card:hover .article-body h3 {
  color: var(--primary);
}

.article-body p {
  color: var(--gray);
  font-size: 14.5px;
  margin-bottom: 16px;
}

.article-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==== Page Hero (sub pages) ==== */
.page-hero {
  position: relative;
  padding: 180px 0 80px;
  background: linear-gradient(135deg, rgba(26,34,56,0.85), rgba(0,78,137,0.7)),
              url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=1920&q=80') center/cover;
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 18px;
  opacity: 0.92;
  max-width: 700px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ==== Filters ==== */
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--dark);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ==== Packages ==== */
.package-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.package-img {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.package-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.package-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: var(--success);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 12px;
}

.package-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.package-body h3 {
  font-size: 21px;
  margin-bottom: 8px;
  color: var(--dark);
}

.package-location {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.package-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.package-features span {
  background: var(--light);
  color: var(--dark);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.package-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--gray-light);
  margin-top: auto;
}

.package-price strong {
  font-size: 24px;
  color: var(--primary);
  font-weight: 800;
}

.package-price small {
  display: block;
  font-size: 12px;
  color: var(--gray);
}

/* ==== About Page ==== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.about-img img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.about-badge {
  position: absolute;
  bottom: 30px;
  inset-inline-end: 30px;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.about-badge h3 {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 4px;
}

.about-badge p {
  color: var(--gray);
  font-size: 13px;
}

.about-content .section-tag {
  margin-bottom: 12px;
}

.about-content h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 18px;
  color: var(--dark);
  font-weight: 800;
  line-height: 1.2;
}

.about-content > p {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 24px;
}

.about-list {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
}

.about-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about-list .ic {
  width: 38px;
  height: 38px;
  background: rgba(255,107,53,0.12);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.about-list h4 {
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--dark);
}

.about-list p {
  color: var(--gray);
  font-size: 14px;
}

/* ==== Team ==== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.team-card {
  text-align: center;
  background: var(--white);
  padding: 30px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  border: 5px solid var(--light);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h4 {
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--dark);
}

.team-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.team-social a {
  width: 36px;
  height: 36px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: var(--transition);
}

.team-social a:hover {
  background: var(--primary);
  color: var(--white);
}

/* ==== Contact ==== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  background: linear-gradient(135deg, var(--secondary), var(--dark));
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255,107,53,0.2);
  border-radius: 50%;
  bottom: -80px;
  inset-inline-end: -80px;
}

.contact-info h3 {
  font-size: 26px;
  margin-bottom: 12px;
  position: relative;
}

.contact-info > p {
  opacity: 0.9;
  margin-bottom: 30px;
  position: relative;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
  position: relative;
}

.contact-icon {
  width: 46px;
  height: 46px;
  background: rgba(255,107,53,0.2);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.contact-item h4 {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 16px;
  font-weight: 600;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  position: relative;
}

.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-row a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
  background: var(--light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ==== Newsletter / CTA ==== */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
}

.cta h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 14px;
  font-weight: 800;
}

.cta p {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 30px;
  max-width: 600px;
  margin-inline: auto;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  background: var(--white);
  border-radius: 50px;
  padding: 6px;
  box-shadow: var(--shadow-md);
}

.newsletter-form input {
  flex: 1;
  border: none;
  padding: 12px 22px;
  font-size: 15px;
  outline: none;
  background: transparent;
  font-family: inherit;
}

.newsletter-form button {
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* ==== Footer ==== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  margin: 18px 0;
  font-size: 14.5px;
  line-height: 1.8;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 17px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 14.5px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-inline-start: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 14px;
}

.footer-bottom a {
  color: var(--primary);
}

/* ==== Animations ==== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.8s ease forwards;
}

/* ==== Article Detail Page ==== */
.article-hero {
  position: relative;
  min-height: 540px;
  padding: 180px 0 80px;
  background: linear-gradient(to bottom, rgba(26,34,56,0.4), rgba(26,34,56,0.95));
  color: var(--white);
  display: flex;
  align-items: flex-end;
}

.article-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
}

.article-hero .container {
  max-width: 900px;
}

.article-hero .article-category {
  position: static;
  display: inline-block;
  margin-bottom: 18px;
}

.article-hero h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.article-hero .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: rgba(255,255,255,0.9);
  font-size: 14.5px;
  margin-bottom: 0;
}

.article-hero .article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-author-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 6px 14px 6px 6px;
  border-radius: 50px;
}

.article-author-pill img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.article-content-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 70px 24px;
}

.article-content {
  font-size: 17px;
  line-height: 1.9;
  color: #2c3e50;
}

.article-content > p:first-of-type::first-letter {
  font-size: 56px;
  font-weight: 800;
  color: var(--primary);
  float: inline-start;
  line-height: 1;
  padding-inline-end: 10px;
  padding-top: 4px;
}

.article-content p {
  margin-bottom: 22px;
}

.article-content h2 {
  font-size: 28px;
  color: var(--dark);
  margin: 40px 0 18px;
  font-weight: 800;
  line-height: 1.3;
  position: relative;
  padding-inline-start: 18px;
}

.article-content h2::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  bottom: 8px;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.article-content h3 {
  font-size: 22px;
  color: var(--dark);
  margin: 30px 0 14px;
  font-weight: 700;
}

.article-content ul,
.article-content ol {
  margin: 0 0 22px;
  padding-inline-start: 22px;
}

.article-content ul li,
.article-content ol li {
  margin-bottom: 10px;
  list-style: revert;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(255,107,53,0.3);
  text-underline-offset: 3px;
}

.article-content a:hover {
  text-decoration-color: var(--primary);
}

.article-content blockquote {
  background: linear-gradient(135deg, rgba(255,107,53,0.08), rgba(0,168,168,0.06));
  border-inline-start: 5px solid var(--primary);
  padding: 24px 28px;
  margin: 30px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 18px;
  font-style: italic;
  color: var(--dark);
}

.article-content figure {
  margin: 30px 0;
}

.article-content figure img {
  border-radius: var(--radius-md);
  width: 100%;
}

.article-content figure figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--gray);
  margin-top: 10px;
  font-style: italic;
}

.article-callout {
  background: linear-gradient(135deg, #fff3e6, #fff);
  border: 2px dashed var(--primary);
  padding: 22px 26px;
  border-radius: var(--radius-md);
  margin: 30px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.article-callout-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.article-callout h4 {
  color: var(--dark);
  margin-bottom: 6px;
}

.article-callout p {
  margin: 0;
  font-size: 15px;
  color: var(--gray);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 30px 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  margin: 40px 0 30px;
}

.article-tags span {
  background: var(--light);
  color: var(--dark);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.article-share strong {
  color: var(--dark);
}

.article-share a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--light);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: var(--transition);
}

.article-share a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.author-card {
  background: var(--light);
  padding: 30px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 50px;
}

.author-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-card h4 {
  color: var(--dark);
  margin-bottom: 4px;
  font-size: 18px;
}

.author-card .author-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.author-card p {
  color: var(--gray);
  font-size: 14.5px;
  margin: 0;
}

/* ==== Responsive ==== */
@media (max-width: 900px) {
  .search-box { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 70px;
    inset-inline-end: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: var(--dark);
    flex-direction: column;
    padding: 30px 20px;
    transition: var(--transition);
    align-items: stretch;
  }
  .nav-links.open { inset-inline-end: 0; }
  .nav-links a { padding: 14px 18px; }
  section { padding: 60px 0; }
  .hero-content { padding: 100px 0 40px; }
  .search-box { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .author-card { flex-direction: column; text-align: center; }
  .article-content-wrap { padding: 50px 20px; }
  .article-content { font-size: 16px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* ============================================================
   Content-site extensions
   ============================================================ */
/* ===== Content-site extensions on top of source CSS ===== */
    .navbar { background: rgba(26, 34, 56, 0.95); }
    /* Hero headline: smaller for content-site + white first line, gradient second line */
    .hero h1 {
      font-size: clamp(30px, 4vw, 48px) !important;
      line-height: 1.2;
    }
    .hero h1 span:first-of-type {
      background: none;
      -webkit-text-fill-color: #fff;
      color: #fff;
    }
    .hero h1 span:last-of-type {
      background: linear-gradient(135deg, var(--primary), var(--warning));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .hero-content { max-width: 800px; }

    /* Category grid */
    .cat-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 20px;
    }
    .cat-card {
      position: relative;
      height: 200px;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      transition: var(--transition);
      cursor: pointer;
    }
    .cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
    .cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
    .cat-card:hover img { transform: scale(1.08); }
    .cat-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(135deg, rgba(26,34,56,0.4), rgba(26,34,56,0.85));
      padding: 22px;
      color: #fff;
      display: flex; flex-direction: column; justify-content: flex-end;
    }
    .cat-emoji {
      width: 48px; height: 48px;
      border-radius: 14px;
      background: rgba(255,255,255,0.18);
      backdrop-filter: blur(8px);
      display: inline-flex; align-items: center; justify-content: center;
      font-size: 24px; margin-bottom: 10px;
    }
    .cat-overlay h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
    .cat-count { font-size: 13px; opacity: 0.85; }

    /* Featured article */
    .featured-article {
      position: relative; display: block;
      height: 480px;
      border-radius: 24px;
      overflow: hidden;
      box-shadow: var(--shadow-md);
      transition: var(--transition);
      cursor: pointer;
    }
    .featured-article:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
    .featured-article > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
    .featured-article:hover > img { transform: scale(1.05); }
    .featured-overlay {
      position: absolute; inset: 0;
      padding: 50px 50px;
      background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.4) 55%, transparent 90%);
      color: #fff;
      display: flex; flex-direction: column; justify-content: flex-end;
      gap: 12px;
    }
    .featured-cat {
      display: inline-flex; align-items: center; gap: 6px;
      background: rgba(255,107,53,0.95);
      color: #fff;
      padding: 6px 16px;
      border-radius: 50px;
      font-size: 13px; font-weight: 700;
      align-self: flex-start;
      margin-bottom: 4px;
    }
    .featured-overlay h3 {
      font-size: clamp(24px, 3vw, 36px);
      font-weight: 800; line-height: 1.25;
      max-width: 700px;
    }
    .featured-overlay p {
      font-size: 15px;
      opacity: 0.9;
      max-width: 600px;
      line-height: 1.6;
    }
    .featured-meta {
      display: flex; align-items: center; gap: 10px;
      font-size: 13px; opacity: 0.85;
      margin-top: 6px;
      flex-wrap: wrap;
    }
    .featured-meta > * { white-space: nowrap; }
    .featured-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
    .featured-cta {
      display: inline-flex; align-self: flex-start;
      background: #fff; color: var(--dark);
      padding: 12px 24px;
      border-radius: 50px;
      font-weight: 700; font-size: 14px;
      margin-top: 8px;
      transition: var(--transition);
    }
    .featured-article:hover .featured-cta { background: var(--primary); color: #fff; }

    /* Article body extras */
    .article-lead {
      font-size: 19px !important;
      line-height: 1.7 !important;
      color: var(--dark) !important;
      font-weight: 500;
      margin-bottom: 26px !important;
    }
    .article-content h2 { margin-top: 36px !important; }

    /* Article archive category chips */
    .cat-chips {
      display: flex; gap: 10px; flex-wrap: wrap;
      justify-content: center;
      margin-bottom: 50px;
    }
    .cat-chip {
      padding: 10px 22px;
      background: #fff;
      border: 2px solid var(--gray-light);
      border-radius: 50px;
      font-weight: 600; font-size: 14.5px;
      color: var(--dark);
      cursor: pointer;
      transition: var(--transition);
      font-family: inherit;
    }
    .cat-chip:hover { border-color: var(--primary); color: var(--primary); }
    .cat-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

    /* Single article hero adjustments */
    .article-detail-hero {
      position: relative;
      min-height: 480px;
      padding: 160px 0 70px;
      color: #fff;
      display: flex;
      align-items: flex-end;
    }
    .article-detail-hero .container { max-width: 900px; position: relative; z-index: 2; }
    .article-detail-hero h1 {
      font-size: clamp(28px, 4.5vw, 48px);
      font-weight: 800;
      line-height: 1.25;
      margin: 16px 0 20px;
    }

    /* Privacy / about / contact tweaks */
    .static-content { max-width: 800px; margin: 0 auto; padding: 70px 24px; font-size: 16px; line-height: 1.8; color: var(--dark); }
    .static-content h2 { font-size: 26px; margin: 36px 0 14px; color: var(--dark); font-weight: 800; }
    .static-content h3 { font-size: 19px; margin: 24px 0 10px; color: var(--dark); font-weight: 700; }
    .static-content p { color: var(--gray, #6c757d); margin-bottom: 16px; }
    .static-content ul { margin: 0 0 18px; padding-inline-start: 22px; }
    .static-content ul li { margin-bottom: 8px; color: var(--gray, #6c757d); list-style: disc; }

    .value-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 22px;
      margin: 40px 0;
    }
    .value-card {
      background: #fff;
      border-radius: 14px;
      padding: 28px 24px;
      box-shadow: var(--shadow-sm);
      transition: var(--transition);
    }
    .value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
    .value-emoji {
      width: 56px; height: 56px;
      border-radius: 16px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 26px;
      margin-bottom: 14px;
    }
    .value-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
    .value-card p { font-size: 14px; color: var(--gray, #6c757d); }

    .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
    @media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
