/* ========================================
   CSS MASTER FILE - نادي الحرية الرياضي
   ======================================== */

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: #f9fbfa;
  color: #1e2b2c;
  overflow-x: hidden;
}

:root {
  --primary: #5ac387;
  --primary-dark: #3e9f6e;
  --primary-light: #b8e4cb;
  --gray-bg: #f0f4f2;
  --shadow: 0 8px 20px rgba(0, 30, 20, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER / NAV ===== */
.header {
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 0 20px;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
}

.logo-icon img{
  width: 40px;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: #1d2f2a;
}

.logo-text span {
  color: var(--primary);
}

.logo a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

/* ===== NAV LINKS ===== */
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  font-weight: 500;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #1e2b2c;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 50px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 10px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

.nav-links a:hover {
  background: rgba(90, 195, 135, 0.1);
  color: var(--primary);
}

/* ===== DROPDOWN ===== */
.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border-radius: 16px;
  padding: 8px 0;
  border: 1px solid rgba(90, 195, 135, 0.1);
  z-index: 100;
}

.dropdown-content::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 30px;
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
  border-top: 1px solid rgba(90, 195, 135, 0.1);
  border-right: 1px solid rgba(90, 195, 135, 0.1);
  z-index: -1;
}

.dropdown-content li {
  padding: 0;
  list-style: none;
}

.dropdown-content a {
  padding: 10px 24px;
  border-radius: 0;
  font-size: 15px;
  justify-content: flex-start;
  white-space: nowrap;
}

.dropdown-content a::after {
  display: none;
}

.dropdown-content a:hover {
  background: rgba(90, 195, 135, 0.08);
  padding-right: 30px;
}

.dropdown-parent:hover .dropdown-content {
  display: block;
  animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-toggle .arrow {
  transition: transform 0.3s ease;
  font-size: 12px;
}

.dropdown-parent:hover .dropdown-toggle .arrow {
  transform: rotate(180deg);
}

/* ===== SEARCH MODAL ===== */
.search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.search-overlay.active {
  display: flex;
  animation: overlayFade 0.3s ease;
}

.search-modal {
  background: white;
  border-radius: 32px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-modal h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #1e2b2c;
  text-align: center;
}

.search-box {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f5f7f6;
  border-radius: 60px;
  padding: 4px 4px 4px 8px;
  border: 2px solid transparent;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(90, 195, 135, 0.1);
}

.search-box input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: 16px;
  background: transparent;
  font-family: 'Tajawal', sans-serif;
  outline: none;
  color: #1e2b2c;
}

.search-box input::placeholder {
  color: #8a9e95;
}

.search-box button {
  background: var(--primary);
  border: none;
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
}

.search-box button:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}

.close-search {
  position: absolute;
  top: 30px;
  left: 30px;
  background: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e2b2c;
}

.close-search:hover {
  transform: rotate(90deg);
  background: var(--primary);
  color: white;
}

/* ===== MOBILE MENU ===== */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #1e2b2c;
  z-index: 1000;
  padding: 4px 8px;
  border-radius: 12px;
  transition: var(--transition);
  background: none;
  border: none;
}

.hamburger:hover {
  background: rgba(90, 195, 135, 0.1);
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  backdrop-filter: blur(4px);
}

.nav-overlay.active {
  display: block;
  animation: overlayFade 0.3s ease;
}

@keyframes overlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 820px) {
  .header {
    padding: 0 16px;
  }

  .hamburger {
    display: block;
  }

  .nav-overlay.active {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px 20px 30px;
    gap: 4px;
    align-items: stretch;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    overflow-y: auto;
    z-index: 999;
    border-radius: 0 0 0 32px;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 17px;
    justify-content: flex-start;
    width: 100%;
    white-space: normal;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover {
    background: rgba(90, 195, 135, 0.1);
    transform: translateX(-8px);
  }

  /* Mobile Dropdown */
  .dropdown-content {
    position: static;
    box-shadow: none;
    background: rgba(90, 195, 135, 0.05);
    border-radius: 16px;
    margin: 4px 0 4px 16px;
    padding: 4px 0;
    border: none;
    display: none;
    animation: mobileDropdown 0.3s ease;
    width: auto;
  }

  .dropdown-content::before {
    display: none;
  }

  .dropdown-content a {
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 12px;
  }

  .dropdown-content a:hover {
    padding-right: 32px;
    background: rgba(90, 195, 135, 0.1);
  }

  .dropdown-parent.dropdown-open .dropdown-content {
    display: block !important;
  }

  .dropdown-parent.dropdown-open .dropdown-toggle .arrow {
    transform: rotate(180deg);
  }

  .dropdown-parent .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .dropdown-parent .dropdown-toggle .arrow {
    transition: transform 0.3s ease;
  }

  .dropdown-parent:hover .dropdown-content {
    display: none;
  }

  .dropdown-parent.dropdown-open .dropdown-content {
    display: block !important;
  }
}

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

/* ===== IMAGE SLIDER ===== */
.slider-section {
  margin: 32px 0 28px;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 40px;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 24px 32px;
  border-radius: 20px;
  color: white;
  max-width: 550px;
  border-right: 5px solid var(--primary);
  animation: slideContent 0.8s ease;
}

@keyframes slideContent {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-content .badge {
  background: var(--primary);
  color: #1e2b2c;
  padding: 4px 16px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 10px;
}

.slide-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}

.slide-content p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.slide-content .btn {
  background: var(--primary);
  color: #1e2b2c;
  border: none;
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}

.slide-content .btn:hover {
  background: white;
  transform: scale(1.05);
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid transparent;
}

.dot.active {
  background: var(--primary);
  border-color: white;
  transform: scale(1.2);
}

/* ===== TICKER ===== */
.ticker-wrap {
  background: white;
  border-radius: 60px;
  padding: 12px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ticker-label {
  background: var(--primary);
  color: white;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 40px;
  font-size: 14px;
}

.ticker {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 500;
}

.ticker span {
  display: inline-block;
  padding-left: 40px;
  animation: ticker 18s linear infinite;
  color: #1e3a2f;
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ===== ABOUT SHORT ===== */
.about-short {
  display: flex;
  flex-wrap: wrap;
  background: white;
  border-radius: 32px;
  padding: 40px 32px;
  margin: 30px 0 40px;
  box-shadow: var(--shadow);
  gap: 30px;
  align-items: center;
}

.about-short .text {
  flex: 2;
}

.about-short .text h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 14px;
}

.about-short .text h3 i {
  color: var(--primary);
  margin-left: 8px;
}

.about-short .text p {
  font-size: 17px;
  line-height: 1.7;
  color: #2d403a;
}

.about-short .stats {
  flex: 1;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  animation: statPulse 2s ease-in-out infinite;
}

.stat-item:nth-child(2) { animation-delay: 0.5s; }
.stat-item:nth-child(3) { animation-delay: 1s; }

@keyframes statPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.stat-item .num {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
}

.stat-item .label {
  font-weight: 500;
  color: #3b5349;
}

/* ===== LATEST NEWS & ACTIVITIES ===== */
.section-title {
  font-size: 28px;
  font-weight: 800;
  margin: 40px 0 20px;
  position: relative;
  padding-right: 18px;
}

.section-title::before {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  width: 6px;
  height: 28px;
  background: var(--primary);
  border-radius: 10px;
}

.news-grid, .activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 30px;
}

.news-card, .activity-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.news-card.visible, .activity-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.news-card:hover, .activity-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(90, 195, 135, 0.15);
}

.news-card:nth-child(1) { transition-delay: 0.1s; }
.news-card:nth-child(2) { transition-delay: 0.2s; }
.news-card:nth-child(3) { transition-delay: 0.3s; }
.activity-card:nth-child(1) { transition-delay: 0.15s; }
.activity-card:nth-child(2) { transition-delay: 0.25s; }
.activity-card:nth-child(3) { transition-delay: 0.35s; }
.activity-card:nth-child(4) { transition-delay: 0.45s; }

.card-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: var(--transition);
}

.news-card:hover .card-image,
.activity-card:hover .card-image {
  transform: scale(1.05);
}

.card-image .card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: #1e2b2c;
  padding: 4px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 700;
  animation: tagPulse 2s ease-in-out infinite;
}

@keyframes tagPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.card-body {
  padding: 18px 20px 22px;
}

.card-body h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-body p {
  color: #3e5a4f;
  font-size: 15px;
  line-height: 1.6;
}

.card-body .date, .card-body .event-date {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #5f7a6e;
}

.card-body .event-date {
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 40px;
  display: inline-block;
  margin-top: 12px;
}

.card-body .btn-read {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.card-body .btn-read:hover {
  color: var(--primary-dark);
  transform: translateX(-5px);
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  padding: 60px 0 40px;
  border-radius: 32px;
  margin: 30px 0 40px;
  text-align: center;
  color: white;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 18px;
  opacity: 0.9;
}

/* ===== ABOUT PAGE ===== */
.about-page {
  background: white;
  border-radius: 32px;
  padding: 50px 40px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.about-page h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.about-page h2 i {
  margin-left: 10px;
}

.about-page p {
  font-size: 17px;
  line-height: 1.8;
  color: #2d403a;
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.feature-item {
  text-align: center;
  padding: 25px 20px;
  background: var(--gray-bg);
  border-radius: 20px;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-item i {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 12px;
}

.feature-item h4 {
  font-size: 18px;
  font-weight: 700;
}

.feature-item p {
  font-size: 14px;
  color: #5f7a6e;
  margin-top: 6px;
}

/* ===== CONTACT PAGE ===== */
.contact-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.contact-info {
  background: white;
  border-radius: 32px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f4f2;
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-item i {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary-dark);
}

.contact-info-item div h5 {
  font-size: 16px;
  font-weight: 700;
}

.contact-info-item div p {
  color: #5f7a6e;
  font-size: 15px;
}

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

.contact-form h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1e2b2c;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8edeb;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Tajawal', sans-serif;
  transition: var(--transition);
  background: #f9fbfa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  outline: none;
  background: white;
  box-shadow: 0 0 0 4px rgba(90, 195, 135, 0.1);
}

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

.btn-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Tajawal', sans-serif;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}

/* ===== NEWS PAGE ===== */
.news-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.news-page-item {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.news-page-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.news-page-item .card-body .date {
  color: var(--primary-dark);
}

/* ===== CATEGORIES PAGE ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.category-card {
  background: white;
  padding: 30px 20px;
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(90, 195, 135, 0.2);
}

.category-card i {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 12px;
}

.category-card h4 {
  font-size: 20px;
  font-weight: 700;
}

.category-card p {
  color: #5f7a6e;
  font-size: 14px;
  margin-top: 6px;
}

/* ===== SEARCH PAGE ===== */
.search-page {
  background: white;
  border-radius: 32px;
  padding: 50px 40px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.search-page .search-box {
  max-width: 600px;
  margin: 0 auto 30px;
}

.search-results {
  margin-top: 30px;
}

.search-result-item {
  padding: 20px;
  border-bottom: 1px solid #f0f4f2;
  transition: var(--transition);
}

.search-result-item:hover {
  background: #f9fbfa;
  border-radius: 12px;
}

.search-result-item h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.search-result-item h4 a {
  color: #1e2b2c;
  text-decoration: none;
}

.search-result-item h4 a:hover {
  color: var(--primary);
}

.search-result-item p {
  color: #5f7a6e;
  font-size: 15px;
}

.search-result-item .meta {
  font-size: 13px;
  color: #8a9e95;
  margin-top: 6px;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
}

.pagination a {
  padding: 8px 16px;
  border-radius: 8px;
  background: white;
  color: #1e2b2c;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.pagination a:hover,
.pagination a.active {
  background: var(--primary);
  color: white;
}

/* ===== FOOTER ===== */
.footer {
  background: #13211c;
  color: #d4e3dc;
  padding: 48px 0 28px;
  margin-top: 40px;
  border-radius: 40px 40px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 32px;
}

.footer h5 {
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer p {
  line-height: 1.8;
  font-size: 15px;
  opacity: 0.8;
}

.footer ul {
  list-style: none;
}

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

.footer ul a {
  color: #bdd3ca;
  text-decoration: none;
  transition: 0.2s;
}

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

.footer .social i {
  font-size: 24px;
  margin-left: 16px;
  color: #bdd3ca;
  transition: 0.2s;
  cursor: pointer;
}

.footer .social i:hover {
  color: var(--primary);
}

.footer-copy {
  border-top: 1px solid #2a423a;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
  .contact-page {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .about-page {
    padding: 30px 20px;
  }
}

@media (max-width: 500px) {
  .slider-container {
    height: 300px;
  }

  .slide {
    padding: 20px;
  }

  .slide-content {
    padding: 16px 20px;
    max-width: 100%;
  }

  .slide-content h2 {
    font-size: 22px;
  }

  .about-short .stats {
    gap: 10px;
  }

  .news-grid, .activities-grid,
  .news-page-grid, .categories-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    width: 90%;
    max-width: 320px;
    padding: 70px 16px 20px;
  }

  .search-modal {
    padding: 30px 20px;
  }

  .search-box {
    flex-direction: column;
    background: transparent;
    padding: 0;
  }

  .search-box input {
    width: 100%;
    background: #f5f7f6;
    border-radius: 60px;
    padding: 14px 20px;
  }

  .search-box button {
    width: 100%;
    justify-content: center;
  }

  .contact-info,
  .contact-form {
    padding: 24px 20px;
  }

  .about-page {
    padding: 24px 16px;
  }

  .search-page {
    padding: 30px 20px;
  }
}
/* ========================================
   SINGLE POST PAGE
   ======================================== */

.single-post {
  background: white;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.single-post .featured-image {
  width: 100%;
  height: 450px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.single-post .featured-image .tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: #1e2b2c;
  padding: 6px 20px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 14px;
}

.single-post .featured-image .date-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: white;
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 14px;
}

.single-post .post-content {
  padding: 40px;
}

.single-post .post-content h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.single-post .post-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f4f2;
}

.single-post .post-meta span {
  color: #5f7a6e;
  font-size: 14px;
}

.single-post .post-body {
  font-size: 17px;
  line-height: 1.9;
  color: #2d403a;
}

.single-post .post-body p {
  margin-bottom: 16px;
}

.single-post .post-body .highlight-box {
  background: var(--gray-bg);
  padding: 20px 24px;
  border-radius: 16px;
  margin: 24px 0;
  border-right: 4px solid var(--primary);
}

.single-post .post-body .highlight-box p {
  margin-bottom: 0;
}

.single-post .post-body .highlight-box .quote-author {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.single-post .post-body .highlight-box .quote-author i {
  color: var(--primary);
  margin-left: 8px;
}

.single-post .post-body .highlight-box .quote-text {
  font-style: italic;
  color: #3e5a4f;
  margin: 0;
}

.single-post .post-body h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: #1e2b2c;
}

.single-post .post-body h2 i {
  color: var(--primary);
  margin-left: 8px;
}

.single-post .post-body .info-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.single-post .post-body .info-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f4f2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.single-post .post-body .info-list li i {
  color: var(--primary);
  width: 24px;
}

.single-post .share-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #f0f4f2;
}

.single-post .share-section .share-label {
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-buttons a {
  padding: 8px 20px;
  border-radius: 40px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  color: white;
}

.share-buttons a:hover {
  transform: translateY(-2px);
}

.share-buttons .facebook { background: #1877f2; }
.share-buttons .twitter { background: #1da1f2; }
.share-buttons .whatsapp { background: #25d366; }
.share-buttons .instagram { background: #e4405f; }

/* ===== COMMENTS ===== */
.comments-section {
  background: white;
  border-radius: 32px;
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.comments-section h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.comments-section h3 i {
  color: var(--primary);
  margin-left: 10px;
}

.comment-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f4f2;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-header strong {
  font-size: 16px;
}

.comment-header .comment-date {
  font-size: 13px;
  color: #8a9e95;
}

.comment-body p {
  margin-top: 6px;
  color: #2d403a;
  line-height: 1.6;
}

.comment-form-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-form .form-group {
  margin-bottom: 0;
}

.comment-form .form-group input,
.comment-form .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8edeb;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Tajawal', sans-serif;
  transition: var(--transition);
  background: #f9fbfa;
}

.comment-form .form-group input:focus,
.comment-form .form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  background: white;
  box-shadow: 0 0 0 4px rgba(90, 195, 135, 0.1);
}

.comment-form .form-group textarea {
  resize: vertical;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .single-post .featured-image {
    height: 280px;
  }
  
  .single-post .post-content {
    padding: 24px;
  }
  
  .single-post .post-content h1 {
    font-size: 24px;
  }
  
  .comments-section {
    padding: 24px;
  }
  
  .comment-item {
    flex-direction: column;
    gap: 8px;
  }
  
  .comment-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 500px) {
  .single-post .featured-image {
    height: 220px;
  }
  
  .single-post .post-content {
    padding: 16px;
  }
  
  .single-post .post-content h1 {
    font-size: 20px;
  }
  
  .single-post .post-meta {
    gap: 10px;
    font-size: 13px;
  }
  
  .share-buttons a {
    padding: 6px 14px;
    font-size: 13px;
  }
  
  .comments-section {
    padding: 16px;
  }
}