@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root {
  --primary-blue: #1b85d6;
  --header-bg: #2d98da;
  --dark-blue: #0b1a30;
  --accent-orange: #ff7043;
  --accent-green: #05c46b;
  --bg-soft: #f4f8fc;
  --card-bg: #ffffff;
  --text-main: #2d3436;
  --text-muted: #636e72;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Cairo', sans-serif;
}

/* SweetAlert2 Styling */
.swal2-popup {
  font-family: 'Cairo', sans-serif !important;
  direction: rtl !important;
  text-align: right !important;
  border-radius: 18px !important;
}

.swal2-title {
  font-family: 'Cairo', sans-serif !important;
  font-weight: 800 !important;
}

.swal2-html-container {
  font-family: 'Cairo', sans-serif !important;
  font-size: 1rem !important;
}

body {
  background-color: var(--bg-soft);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Nav */
header {
  background-color: var(--header-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  font-size: 0.85rem;
  padding: 4px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.nav-brand img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  object-position: center 20%;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-text p {
  font-size: 0.8rem;
  opacity: 0.9;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 10px;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.25);
}

.btn-contact {
  background: var(--accent-orange) !important;
  color: #fff !important;
}

.btn-contact:hover {
  background: #ff521a !important;
}

/* Layout & Main Container */
main {
  flex: 1;
  max-width: 1000px;
  width: 100%;
  margin: 30px auto;
  padding: 0 15px;
}

.main-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(45, 152, 218, 0.08);
  margin-bottom: 25px;
}

/* Doctor Hero Card */
.doc-hero {
  text-align: center;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 25px;
  margin-bottom: 25px;
}

.doc-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--primary-blue);
  object-fit: cover;
  object-position: center 20%;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(27, 133, 214, 0.2);
}

.doc-hero h2 {
  font-size: 1.6rem;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.doc-hero .spec {
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 15px;
}

/* Alert Box */
.alert-schedule {
  background: #eaf5ff;
  border-right: 4px solid var(--primary-blue);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.95rem;
  color: #0b4f8a;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Action Buttons */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-green);
  color: #fff;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 12px 35px;
  border-radius: 30px;
  box-shadow: 0 6px 16px rgba(5, 196, 107, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
  margin: 15px auto;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 196, 107, 0.4);
}

/* Sections & Lists */
.section-title {
  font-size: 1.25rem;
  color: var(--primary-blue);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.branch-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  background: #fafcff;
}

.branch-card h3 {
  color: var(--primary-blue);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.branch-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.services-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.services-list li {
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 10px;
  border-right: 3px solid var(--primary-blue);
  font-size: 0.95rem;
}

/* Clinic Photo Gallery */
.gallery-section {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid #eef2f7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.gallery-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-blue);
  box-shadow: 0 10px 25px rgba(45, 152, 218, 0.2);
}

.gallery-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #dcdde1;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

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

/* Time Slots Picker */
.slots-container {
  margin-top: 15px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 18px;
}

.slots-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slots-legend {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-available { background: var(--accent-green); }
.legend-booked { background: #ef4444; }
.legend-selected { background: var(--primary-blue); }

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.slot-btn {
  background: #fff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.slot-btn:hover:not(.booked):not(.selected) {
  border-color: var(--primary-blue);
  background: #f0f7ff;
  transform: translateY(-2px);
}

.slot-btn.selected {
  background: var(--primary-blue) !important;
  color: #fff !important;
  border-color: var(--primary-blue) !important;
  box-shadow: 0 4px 12px rgba(27, 133, 214, 0.35);
}

.slot-btn.booked {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
  cursor: not-allowed;
  opacity: 0.8;
  text-decoration: line-through;
}

.slot-status {
  font-size: 0.72rem;
  font-weight: 600;
}

.slot-btn.selected .slot-status {
  color: #e0f2fe;
}

.slot-btn.booked .slot-status {
  color: #b91c1c;
  text-decoration: none;
}

.friday-warning {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
}

/* Ticket Card & Actions */
.ticket-alert {
  background: #ecfdf5;
  border: 1.5px solid #05c46b;
  color: #065f46;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  max-width: 420px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ticket-card {
  max-width: 360px;
  margin: 20px auto;
  background: #ffffff;
  border-radius: 18px;
  border: 2.5px dashed #1b85d6;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
}

.ticket-header {
  border-bottom: 2px solid #eef2f7;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.ticket-logo {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  border: 3px solid #1b85d6;
  object-fit: cover;
  margin-bottom: 8px;
}

.ticket-header h3 {
  color: #1b85d6;
  font-size: 1.25rem;
  font-weight: 800;
}

.ticket-subtitle {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.ticket-body {
  text-align: right;
  direction: rtl;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.ticket-row {
  font-size: 0.92rem;
  color: #1e293b;
  display: flex;
  justify-content: space-between;
}

.ticket-row strong {
  color: #475569;
}

.ticket-row.highlight-id {
  border-top: 1px dashed #cbd5e1;
  padding-top: 8px;
  font-weight: 800;
  color: #1b85d6;
}

.qr-container {
  display: flex;
  justify-content: center;
  margin: 12px 0 6px;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: inline-block;
}

.ticket-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  margin: 24px auto 0;
}

.btn-download {
  background: #0984e3;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(9, 132, 227, 0.3);
}

.btn-download:hover {
  background: #076fc0;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #05c46b;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(5, 196, 107, 0.3);
}

.btn-whatsapp:hover {
  background: #04aa5c;
  transform: translateY(-2px);
}

.btn-new-booking {
  background: #f1f5f9;
  color: #475569;
  padding: 10px 20px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-new-booking:hover {
  background: #e2e8f0;
}

.video-card {
  background: var(--card-bg);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(45, 152, 218, 0.15);
}

.video-player-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
}

.video-player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-info {
  padding: 14px 16px;
  flex: 1;
}

.video-info h4 {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-main);
  font-weight: 700;
}

/* News Article */
.news-item {
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.news-item h3 {
  font-size: 1.15rem;
  color: var(--primary-blue);
  margin-bottom: 6px;
}

/* Featured Festival Card & Banner Styles */
.featured-news {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border: 2px solid #1b85d6;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(27, 133, 214, 0.12);
  margin-bottom: 30px;
  position: relative;
}

.featured-badge {
  display: inline-block;
  background: linear-gradient(45deg, #ff7043, #ff521a);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(255, 112, 67, 0.3);
}

.news-poster-wrapper {
  text-align: center;
  margin: 18px 0;
}

.news-poster-img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 3px solid #ffffff;
  transition: transform 0.3s ease;
}

.news-poster-img:hover {
  transform: scale(1.01);
}

.news-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1e293b;
  margin-bottom: 16px;
}

.festival-highlights {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  margin-bottom: 18px;
}

.festival-highlights h4 {
  color: #1b85d6;
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.festival-features-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.festival-features-list li {
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.6;
  padding-right: 4px;
}

.news-branch-notice {
  background: #f8fafc;
  border-right: 4px solid #05c46b;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  color: #0f172a;
  margin-top: 15px;
}

.news-branch-notice p {
  margin: 4px 0;
}

/* Homepage Festival Banner Card */
.festival-banner-card {
  background: linear-gradient(135deg, #0b1a30 0%, #154c79 50%, #1b85d6 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 24px;
  margin: 25px 0;
  box-shadow: 0 10px 30px rgba(27, 133, 214, 0.22);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.festival-header-wrap {
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 16px;
}

.festival-banner-badge {
  display: inline-block;
  background: linear-gradient(45deg, #ff7043, #ff521a);
  color: #ffffff;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(255, 112, 67, 0.35);
}

.festival-title {
  font-size: 1.45rem;
  color: #ffffff;
  margin-bottom: 6px;
  font-weight: 800;
  line-height: 1.35;
}

.festival-slogan {
  color: #ffd166;
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.festival-date {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.festival-banner-body {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: center;
}

.festival-banner-image {
  flex: 0 0 210px;
  max-width: 210px;
  text-align: center;
}

.festival-banner-image a {
  display: block;
  text-decoration: none;
}

.festival-banner-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease;
  display: block;
}

.festival-banner-image a:hover img {
  transform: scale(1.03);
}

.img-zoom-hint {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #cbd5e1;
  opacity: 0.85;
}

.festival-banner-details {
  flex: 1;
  min-width: 0;
}

.festival-quick-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.festival-quick-list li {
  color: #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.96rem;
  line-height: 1.5;
}

.festival-quick-list li i {
  color: #05c46b;
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.festival-actions {
  display: flex;
  gap: 12px;
}

.btn-festival-more {
  background: #ffffff;
  color: #1b85d6 !important;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-festival-more:hover {
  background: #f0f7ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.news-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Featured News - 1M YouTube Views */
.news-item-featured {
  background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
  border: 2px solid #fecaca;
  border-right: 6px solid #e62117;
  border-radius: 18px;
  padding: 26px 22px;
  margin-bottom: 30px;
  box-shadow: 0 10px 25px rgba(230, 33, 23, 0.08);
}

.news-badge-celebrate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, #e62117, #ff4d4d);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(230, 33, 23, 0.3);
}

.news-title-celebrate {
  color: #991b1b;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
}

.news-poster-wrapper {
  max-width: 440px;
  margin: 18px auto 22px auto;
  text-align: center;
}

.news-poster-wrapper a {
  display: block;
  text-decoration: none;
}

.news-poster-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 16px;
  border: 3px solid #fecaca;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease;
  display: block;
  margin: 0 auto;
}

.news-poster-wrapper a:hover .news-poster-img {
  transform: scale(1.02);
}

.celebrate-quote-box {
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-right: 4px solid #ef4444;
  border-radius: 14px;
  padding: 16px 20px;
  margin: 18px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.celebrate-quote-box p {
  margin: 0;
  color: #475569;
  line-height: 1.8;
  font-size: 0.96rem;
}

.btn-youtube-celebrate {
  background: #e62117;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(230, 33, 23, 0.35);
  transition: all 0.2s ease;
}

.btn-youtube-celebrate:hover {
  background: #cc1810;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 33, 23, 0.5);
}

.btn-videos-link {
  background: #ffffff;
  color: var(--primary-blue) !important;
  border: 1.5px solid #bfdbfe;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-videos-link:hover {
  background: #f0f7ff;
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background-color: var(--dark-blue);
  color: #fff;
  padding: 40px 20px 20px;
  margin-top: auto;
}

.footer-content {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.footer-info p {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.8;
}

.footer-social-title {
  color: #38bdf8;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 1.35rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.1);
}

.social-icon.whatsapp {
  background: #25d366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}
.social-icon.whatsapp:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.social-icon.tiktok {
  background: #000000;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.social-icon.tiktok:hover {
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.social-icon.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 4px 14px rgba(214, 36, 159, 0.4);
}
.social-icon.instagram:hover {
  box-shadow: 0 6px 20px rgba(214, 36, 159, 0.6);
}

.social-icon.facebook {
  background: #1877f2;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}
.social-icon.facebook:hover {
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.6);
}

.social-icon.youtube {
  background: #ff0000;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.4);
}
.social-icon.youtube:hover {
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
}

.footer-copy {
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    text-align: center;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }

  /* تنسيقات كارت المهرجان على الموبايل لتظهر بأعلى دقة وأناقة */
  .festival-banner-card {
    padding: 18px 14px;
    margin: 18px 0;
    border-radius: 18px;
  }

  .festival-header-wrap {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .festival-banner-badge {
    font-size: 0.8rem;
    padding: 4px 14px;
    margin-bottom: 8px;
  }

  .festival-title {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .festival-slogan {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .festival-date {
    font-size: 0.86rem;
    padding: 6px 14px;
    width: 100%;
    justify-content: center;
  }

  .festival-banner-body {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
  }

  .festival-banner-image {
    flex: none;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
  }

  .festival-banner-image img {
    max-width: 240px;
    margin: 0 auto;
  }

  .festival-banner-details {
    width: 100%;
  }

  .festival-quick-list {
    text-align: right;
    margin: 0 auto 16px auto;
    max-width: 320px;
  }

  .festival-quick-list li {
    font-size: 0.92rem;
  }

  .festival-actions {
    justify-content: center;
    width: 100%;
  }

  .btn-festival-more {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.95rem;
  }
}

/* ========================================================
   صفحة مهرجان العودة للمدارس - الدورة الثالثة (festival.html)
   ======================================================== */
.festival-main-wrapper {
  padding: 30px 25px;
}

.festival-page-hero {
  background: linear-gradient(135deg, #0b1a30 0%, #154c79 50%, #1b85d6 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 40px 25px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 12px 35px rgba(27, 133, 214, 0.25);
  position: relative;
  overflow: hidden;
}

.festival-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, #ff7043, #ff521a);
  color: #ffffff;
  padding: 7px 20px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(255, 112, 67, 0.4);
}

.festival-hero-title {
  font-size: 2.2rem;
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.3;
}

.festival-hero-slogan {
  font-size: 1.25rem;
  color: #ffd166;
  font-weight: 700;
  margin-bottom: 8px;
}

.festival-hero-sub {
  font-size: 1.05rem;
  color: #e2e8f0;
  margin: 0;
}

/* About Card */
.festival-about-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-right: 5px solid #1b85d6;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 35px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.about-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}

.about-text h3 {
  color: var(--primary-blue);
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 800;
}

.about-text p {
  color: #475569;
  line-height: 1.8;
  margin: 0;
  font-size: 0.98rem;
}

/* Section Heads */
.festival-section-head {
  text-align: center;
  margin-bottom: 25px;
}

.festival-section-head h3 {
  font-size: 1.6rem;
  color: #1e293b;
  font-weight: 800;
  margin-bottom: 6px;
}

.festival-section-head p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}

/* Features Grid */
.festival-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.feature-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.feature-item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(27, 133, 214, 0.12);
  border-color: #93c5fd;
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 15px auto;
}

.feature-item-card h4 {
  font-size: 1.15rem;
  color: #1e293b;
  margin-bottom: 8px;
  font-weight: 700;
}

.feature-item-card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Posters Gallery Grid */
.festival-posters-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 35px;
}

.poster-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.poster-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(27, 133, 214, 0.18);
}

.poster-img-wrap {
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}

.poster-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.poster-card:hover .poster-img-wrap img {
  transform: scale(1.03);
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 26, 48, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: 700;
  font-size: 1rem;
}

.poster-overlay i {
  font-size: 2rem;
  color: #ffd166;
}

.poster-card:hover .poster-overlay {
  opacity: 1;
}

.poster-info {
  padding: 16px 18px;
  background: #ffffff;
  text-align: right;
  flex: 1;
}

.poster-info h4 {
  font-size: 1.05rem;
  color: #1e293b;
  margin-bottom: 4px;
  font-weight: 800;
}

.poster-info p {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0;
}

.poster-wide {
  grid-column: 1 / -1;
}

/* Kids Celebration Banner */
.kids-celebration-banner {
  background: linear-gradient(135deg, #fdf2f8 0%, #fbcfe8 100%);
  border: 2px dashed #f472b6;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  margin-bottom: 40px;
}

.kids-badge {
  display: inline-block;
  background: #db2777;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.kids-celebration-banner h3 {
  color: #9d174d;
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.kids-celebration-banner p {
  color: #831843;
  font-size: 1rem;
  max-width: 650px;
  margin: 0 auto 15px auto;
  line-height: 1.7;
}

.kids-upload-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: #9d174d;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Festival CTA Box */
.festival-cta-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  margin-top: 20px;
}

.festival-cta-box h3 {
  color: #1e40af;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.festival-cta-box p {
  color: #3b82f6;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.cta-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-festival {
  background: #1b85d6;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(27, 133, 214, 0.3);
  transition: all 0.2s ease;
}

.btn-cta-festival:hover {
  background: #156eb5;
  transform: translateY(-2px);
}

.btn-whatsapp-festival {
  background: #25d366;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
}

.btn-whatsapp-festival:hover {
  background: #1eb956;
  transform: translateY(-2px);
}

/* Lightbox Modal */
.festival-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 15px;
  backdrop-filter: blur(5px);
}

.festival-lightbox.active {
  display: flex;
}

.lightbox-dialog {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-dialog img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: -10px;
  background: #ffffff;
  color: #1e293b;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.1);
  background: #fee2e2;
  color: #dc2626;
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 768px) {
  .festival-hero-title {
    font-size: 1.6rem;
  }
  .festival-hero-slogan {
    font-size: 1.05rem;
  }
  .festival-about-card {
    flex-direction: column;
    text-align: center;
  }
  .poster-overlay {
    display: none;
  }
  .btn-cta-festival,
  .btn-whatsapp-festival {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================================
   لوحة شرف الفائزين ومعرض صور الأطفال التفاعلي
   ======================================================== */
.festival-quick-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.quick-nav-btn {
  background: #ffffff;
  color: #1e293b;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.quick-nav-btn:hover {
  background: #1b85d6;
  color: #ffffff;
  border-color: #1b85d6;
  transform: translateY(-2px);
}

.section-tag-badge {
  display: inline-block;
  background: linear-gradient(45deg, #0284c7, #0369a1);
  color: #ffffff;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 10px;
}

/* Day Switcher */
.days-switcher {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.day-tab-btn {
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  color: #475569;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 25px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.day-tab-btn:hover {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #38bdf8;
}

.day-tab-btn.active {
  background: linear-gradient(45deg, #1b85d6, #0284c7);
  color: #ffffff;
  border-color: #1b85d6;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

/* Winners Content */
.day-winners-content {
  display: none;
  animation: fadeIn 0.35s ease;
}

.day-winners-content.active-day {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.winners-container-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  gap: 25px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.winners-poster-col {
  flex: 0 0 320px;
  max-width: 340px;
}

.winners-poster-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.3s ease;
  border: 2px solid #e2e8f0;
}

.winners-poster-box:hover {
  transform: scale(1.02);
}

.winners-poster-box img {
  width: 100%;
  height: auto;
  display: block;
}

.winners-list-col {
  flex: 1;
}

.day-header-badge {
  display: inline-block;
  background: linear-gradient(45deg, #1b85d6, #0284c7);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.prize-group {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.prize-group.bags-group {
  border-right: 4px solid #0284c7;
  background: #f0f9ff;
}

.prize-group.gifts-group {
  border-right: 4px solid #db2777;
  background: #fdf2f8;
}

.prize-group h4 {
  font-size: 1.05rem;
  color: #1e293b;
  margin-bottom: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.names-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.name-tag {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.name-tag i {
  color: #db2777;
}

.name-tag.gold {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #f59e0b;
  color: #92400e;
  font-weight: 800;
  font-size: 1rem;
}

.name-tag.gold i {
  color: #d97706;
}

/* Kids Photos Grid */
.kids-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.kid-photo-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.kid-photo-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.kid-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  background: #e2e8f0;
}

.kid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.kid-photo-card:hover .kid-img-wrap img {
  transform: scale(1.05);
}

.kid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 26, 48, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.25s ease;
  font-weight: 700;
  font-size: 0.85rem;
}

.kid-overlay i {
  font-size: 1.5rem;
  color: #ffd166;
}

.kid-photo-card:hover .kid-overlay {
  opacity: 1;
}

/* Load more button */
.btn-load-more {
  background: linear-gradient(135deg, #1b85d6 0%, #0284c7 100%);
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(27, 133, 214, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.btn-load-more:hover {
  background: #156eb5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 133, 214, 0.4);
}

/* Lightbox Nav Buttons */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  color: #1e293b;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
  color: #1b85d6;
}

.lightbox-nav-btn.prev-btn {
  right: -55px;
}

.lightbox-nav-btn.next-btn {
  left: -55px;
}

@media (max-width: 768px) {
  .winners-container-card {
    flex-direction: column;
    padding: 18px 14px;
  }
  .winners-poster-col {
    flex: none;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .kids-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }
  .lightbox-nav-btn.prev-btn {
    right: 5px;
    top: auto;
    bottom: -50px;
    transform: none;
  }
  .lightbox-nav-btn.next-btn {
    left: 5px;
    top: auto;
    bottom: -50px;
    transform: none;
  }
}
