

/* ===== CSS VARIABLES FOR CONSISTENCY ===== */
:root {
  --primary-color: #74a4d8; /* fixed double ## */
  --primary-hover: #51769d;
  --background-color: #f7f7f7;
  --card-background: #ffffff;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 6px 20px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}
/* ===== FONT FACE WITH PERFORMANCE OPTIMIZATIONS ===== */
@font-face {
  font-family: "IBM";
  src: url("/IBM/IBMPlexSansArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM";
  src: url("/IBM/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "vexa";
  src: url("/IBM/VEXA.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
button,
select,
nav,
input,
textarea {
  font-family: "IBM", system-ui, -apple-system, sans-serif;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--background-color);
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== RTL SUPPORT ===== */
body[lang="ar"] {
  direction: rtl;
  text-align: right;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--card-background);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.site-title {
  font-size: 1.6rem;
  color: var(--primary-color);
  font-weight: 700;
  font-family: "vexa";
}

#menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.tab-btn {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  color: #1a1a1a;
  padding: 0.5rem 1rem;
  transition: var(--transition);
  border-radius: 6px;
  font-family: "vexa";
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
}

.tab-btn:hover {
  color: var(--primary-hover);
  background: rgba(0, 35, 102, 0.05);
}

select {
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: var(--card-background);
}

/* ===== MAIN LAYOUT ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.card {
  background: var(--card-background);
  margin: 1rem 0;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
}

/* ===== FIXED PROFILE IMAGE STYLES ===== */
.photo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  background: linear-gradient(135deg, #cce0ff, #ffffff);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

#profile img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: block;
}

/* Base image styles */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Section images */
.section-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
  background-color: #f0f0f0;
}

/* Overview photo section */
.overview-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  width: 100%;
}

.overview-photo img {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: var(--transition);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.overview-photo img:hover,
.section-image:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* ===== HEADINGS ===== */
h2 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 700;
  text-align: center;
  font-size: clamp(1.4rem, 2vw, 2.2rem); /* responsive font */
}

#profile h2 {
  margin-top: 1rem;
}

#profile p {
  text-align: center;
  line-height: 1.8;
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    box-shadow: var(--shadow-heavy);
    z-index: 1000;
  }

  .nav-links.show {
    display: flex;
  }

  #menu-toggle {
    display: block;
  }

  .photo-container {
    max-width: 280px;
    padding: 12px;
  }

  .card {
    padding: 1.5rem;
  }

  .overview-photo img {
    max-width: 100%;
  }

  .section-image {
    max-height: 300px;
  }

  main {
    padding: 0.5rem;
  }
}

/* ===== DESKTOP STYLES ===== */
@media (min-width: 1024px) {
  main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    width: 100%;
    align-items: start;
  }

  #profile {
    grid-row: span 4;
    text-align: center;
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .photo-container {
    max-width: 320px;
  }

  .overview-photo img {
    max-width: 800px;
    max-height: 400px;
    object-fit: cover;
  }

  .section-image {
    height: 350px;
    object-fit: cover;
  }
}

/* ===== LARGE DESKTOP ===== */
@media (min-width: 1440px) {
  main {
    max-width: 1400px;
  }

  .photo-container {
    max-width: 350px;
  }

  .overview-photo img {
    max-height: 450px;
  }

  .section-image {
    height: 400px;
  }
}

/* ===== HIGH DPI ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card {
    border: 0.5px solid rgba(0, 0, 0, 0.05);
  }
}

/* ===== PRINT ===== */
@media print {
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .overview-photo img,
  .section-image {
    break-inside: avoid;
  }
}

/* ===== FOCUS ===== */
.tab-btn:focus-visible,
#menu-toggle:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== LOADING STATES ===== */
.img-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ===== ACHIEVEMENTS ===== */
#achievements {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

#achievements:hover {
  box-shadow: var(--shadow-heavy);
  transform: translateY(-2px);
}

#achievements h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

#achievements h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #317caf, var(--primary-color));
  border-radius: 2px;
}

#achievements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#achievements ul li  {
  background: var(--card-background);
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
  opacity: 0;
  animation: slideIn 0.5s ease forwards;
}

.ul-bold{
    font-weight: bold;
}
#achievements ul li::before {
  content: "✓";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  color: rgba(52, 152, 219, 0.1);
  font-weight: bold;
  font-family: "IBM", system-ui, -apple-system, sans-serif;
}

#achievements ul li:hover {
  transform: translateX(5px);
  border-left-color: var(--primary-color);
  box-shadow: var(--shadow-medium);
}

#achievements ul li strong {
  color: var(--primary-color);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* nested achievements */
#achievements ul li ul {
  margin-top: 1rem;
  margin-right: 1rem;
}

#achievements ul li ul li {
  background: #f8f9fa;
  border-left: 3px solid #27ae60;
  margin-bottom: 0.5rem;
  padding: 1rem;
  font-size: 0.95rem;
  box-shadow: none;
  position: relative; /* FIXED for arrow */
}

#achievements ul li ul li::before {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: #27ae60;
  font-size: 0.7rem;
}

/* RTL adjustments */
body[lang="ar"] #achievements ul li {
  border-left: 4px solid #3498db;
  text-align: right;
}

body[lang="ar"] #achievements ul li ul li {
  border-left: 3px solid #27ae60;
  margin-right: 1rem;
}

body[lang="ar"] #achievements ul li::before {
  right: -10px;
  left: auto;
}

body[lang="ar"] #achievements ul li ul li::before {
  right: auto;
  left: 8px;
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#achievements ul li:nth-child(1) { animation-delay: 0.1s; }
#achievements ul li:nth-child(2) { animation-delay: 0.2s; }
#achievements ul li:nth-child(3) { animation-delay: 0.3s; }
#achievements ul li:nth-child(4) { animation-delay: 0.4s; }
#achievements ul li:nth-child(5) { animation-delay: 0.5s; }
#achievements ul li:nth-child(6) { animation-delay: 0.6s; }
#achievements ul li:nth-child(7) { animation-delay: 0.7s; }
#achievements ul li:nth-child(8) { animation-delay: 0.8s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #achievements {
    padding: 1.5rem;
    margin: 0.5rem;
  }
  #achievements h2 { font-size: 1.8rem; }
  #achievements ul li { padding: 1.2rem; margin-bottom: 1rem; }
  #achievements ul li ul li { padding: 0.8rem; margin-right: 0.5rem; }
}

@media (max-width: 480px) {
  #achievements { padding: 1rem; }
  #achievements h2 { font-size: 1.6rem; }
  #achievements h2::after { width: 60px; }
  #achievements ul li { padding: 1rem; }
  #achievements ul li::before { font-size: 2.5rem; right: -12px; }
  #achievements ul li strong { font-size: 1rem; }
  #achievements ul li ul { margin-right: 0.5rem; }
  #achievements ul li ul li { padding: 0.8rem 0.6rem; font-size: 0.9rem; }
}

@media (max-width: 360px) {
  #achievements { padding: 0.8rem; }
  #achievements h2 { font-size: 1.4rem; }
  #achievements ul li { padding: 0.8rem; }
  #achievements ul li strong { font-size: 0.95rem; }
  #achievements ul li ul li { padding: 0.6rem; font-size: 0.85rem; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  #achievements ul li { animation: none; opacity: 1; transform: none; }
  #achievements:hover,
  #achievements ul li:hover,
  #achievements ul li ul li:hover { transform: none; }
}

/* ===== TOUCH DEVICES ===== */
@media (hover: none) and (pointer: coarse) {
  #achievements ul li:hover,
  #achievements ul li ul li:hover,
  #achievements:hover { transform: none; }
}

/* ===== ABOUT SECTION ===== */
#about {
  background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 100%);
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

#about:hover {
  box-shadow: var(--shadow-heavy);
  transform: translateY(-2px);
}

#about h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

#about h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #0065a8, var(--primary-color));
  border-radius: 2px;
}

.about-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.about-photo img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.about-photo img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

#about ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

#about ul li {
  background: #ffffff;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

#about ul li strong {
  color: var(--primary-color);
  font-weight: 700;
  margin-left: 0.5rem;
}

#about ul li:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-medium);
}

#about h3 {
  margin: 1.5rem 0 1rem;
  font-size: 1.2rem;
  color: var(--primary-hover);
  border-right: 4px solid var(--primary-color);
  padding-right: 0.5rem;
}

#about p {
  line-height: 1.8;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
}

/* Responsive */
@media (max-width: 768px) {
  #about { padding: 1.5rem; }
  #about h2 { font-size: 1.6rem; }
  .about-photo img { max-width: 220px; }
  #about ul li { padding: 0.8rem; font-size: 0.95rem; }
}/* ===== ACHIEVEMENT BUTTONS CENTERED ===== */
.achievement-buttons {
  display: flex;
  justify-content: center; /* مركز أفقي */
  gap: 15px; /* مسافة بين الأزرار */
  margin-bottom: 2rem;
}

.achievement-buttons button {
  font-family: "IBM", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  background: var(--primary-color);
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
}

.achievement-buttons button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* ===== RESPONSIVE BUTTONS ===== */
@media (max-width: 768px) {
  .achievement-buttons {
    flex-direction: column;
    align-items: center;
  }

  .achievement-buttons button {
    width: 80%;
    margin-bottom: 10px;
  }
}


.achievement-main {
  display: none;
  text-align: center;
  margin-top: 20px;
}

.achievement-main img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.media-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  margin: 15px auto;
  padding: 10px;
  max-width: 600px;
  transition: var(--transition);
  text-align: center;
}

.media-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-medium);
}

.media-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
}
.card-content h4 {
    color: #0065a8;
}
 #news {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center; /* center posts on large screens */
    
  }

  #news h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
  }

  .fb-post-wrapper {
    width: 90%; /* center content, not full width on desktop */
    max-width: 700px; /* max width for large screens */
    margin-bottom: 2rem;
  }

  .fb-post-wrapper iframe {
    width: 100% !important;
    min-height: 500px; /* approximate for most posts */
    height: 100% !important;
    border: none;
    display: block;
  }

  /* Responsive tweaks */
  @media (max-width: 1024px) {
    .fb-post-wrapper {
      width: 95%;
    }
    .fb-post-wrapper iframe {
      height: 100%;
    }
  }

  @media (max-width: 768px) {
    .fb-post-wrapper {
      width: 100%;
    }
    .fb-post-wrapper iframe {
      height: 100%;
    }
  }

  @media (max-width: 480px) {
    .fb-post-wrapper iframe {
      height: 100%;
    }
  }
   /* زر تحميل المزيد */
  .load-more-wrapper {
    width: 100%;
    display: flex;
    justify-content: center; /* يخلي الزر بالوسط */
    margin-top: 1rem;
  }

  #loadMoreBtn {
    background: var(--primary-color, #0066cc);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  #loadMoreBtn:hover {
    background: #004999;
  }
video {
  margin-top: 10px;
  box-shadow: 0 5px 10px rgba(100, 150, 255, 0.4); /* Light blue shadow */
  margin-bottom: 10px;
  border-radius: 10px;
}
/* ===== PARAGRAPH STYLES ===== */
p {
  font-family: "IBM", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1rem;
  text-align: justify;
  text-justify: inter-word;
}

/* Profile description */
#profile p {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  font-weight: 400;
  margin-top: 0.5rem;
}

/* Overview paragraphs */
#overview p {
  background: #f8f9fa;
  padding: 1.2rem;
  border-radius: 8px;
  border-right: 3px solid var(--primary-color);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

#overview p:hover {
  background: #ffffff;
  box-shadow: var(--shadow-medium);
  transform: translateX(-3px);
}

/* About section paragraphs */
#about p {
  background: #f9f9f9;
  padding: 1.2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Achievements paragraphs */
#achievements p {
  background: #ffffff;
  padding: 1rem;
  border-radius: 8px;
  margin: 0.5rem 0;
  line-height: 1.7;
}

/* Media card paragraphs */
.media-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  background: transparent;
  padding: 0.5rem 0;
  margin: 0;
  box-shadow: none;
}

/* Video fallback text */
#video-fallback {
  text-align: center;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Responsive paragraph sizes */
@media (max-width: 768px) {
  p {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: right;
  }
  
  #overview p,
  #about p {
    padding: 1rem;
  }
  
  #profile p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  #overview p,
  #about p {
    padding: 0.8rem;
  }
}
/* ===== OVERVIEW KEY POINTS STYLES ===== */
.ul-i {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.ul-i li {
  background: var(--card-background);
  margin-bottom: 1rem;
  padding: 1.2rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
  opacity: 0;
  animation: slideIn 0.5s ease forwards;
}

.ul-i li::before {
  content: "✓";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: rgba(116, 164, 216, 0.1);
  font-weight: bold;
  font-family: "IBM", system-ui, -apple-system, sans-serif;
}

.ul-i li:hover {
  transform: translateX(5px);
  border-left-color: var(--primary-hover);
  box-shadow: var(--shadow-medium);
}

.ul-i li:nth-child(1) { animation-delay: 0.1s; }
.ul-i li:nth-child(2) { animation-delay: 0.2s; }
.ul-i li:nth-child(3) { animation-delay: 0.3s; }
.ul-i li:nth-child(4) { animation-delay: 0.4s; }

/* RTL adjustments for overview key points */
body[lang="ar"] .ul-i li {
  border-left: 4px solid var(--primary-color);
  text-align: right;
}

body[lang="ar"] .ul-i li::before {
  right: -10px;
  left: auto;
}

/* Responsive styles */
@media (max-width: 768px) {
  .ul-i li {
    padding: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .ul-i li::before {
    font-size: 2.5rem;
    right: -12px;
  }
}

@media (max-width: 480px) {
  .ul-i li {
    padding: 0.8rem;
  }
  
  .ul-i li::before {
    font-size: 2rem;
  }
}
/* ===== PLANS SECTION STYLES ===== */
.plans-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.plan-category {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border-right: 4px solid var(--primary-color);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.plan-category:hover {
  transform: translateX(-5px);
  box-shadow: var(--shadow-medium);
}

.plan-category h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.3rem;
}

.vision-statement {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin-top: 2rem;
}

.vision-statement h3 {
  margin-bottom: 1rem;
  font-weight: 700;
}

.vision-statement p {
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Responsive design for plans */
@media (max-width: 768px) {
  .plans-content {
    gap: 1.5rem;
  }
  
  .plan-category {
    padding: 1.2rem;
  }
  
  .vision-statement {
    padding: 1.5rem;
  }
}
/* ===== FOOTER STYLES ===== */
.footer {
  background-color: var(--background-color);
  color: var(--primary-color);
  padding: 2rem 1rem 1rem;
  margin-top: 3rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
  color: #1a1a1a;
  font-family: "IBM", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

.footer-bottom p:last-child {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 1rem 1rem;
    margin-top: 2rem;
  }
  
  .footer-bottom p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 1rem 0.5rem 0.5rem;
  }
  
  .footer-bottom p {
    font-size: 0.9rem;
  }
}
/* ===== MOBILE MENU CLOSE BUTTON ===== */
.menu-close-btn {
  display: none;
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
  transition: var(--transition);
}

.menu-close-btn:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

/* Show close button when menu is open on mobile */
@media (max-width: 768px) {
  .nav-links.show .menu-close-btn {
    display: block;
  }
}
a {
    cursor: pointer;
    font-family:"vexa" ;
    transition: color 0.3s ease;
    text-decoration: none;
    color: inherit;
    font-weight: inherit;
    display: inline-block;
    color: var(--primary-color);
}

a:hover {
    color: #2c5aa0;
}

/* ===== PROGRAM SECTION STYLES ===== */
#program {
  background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 100%);
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

#program:hover {
  box-shadow: var(--shadow-heavy);
  transform: translateY(-2px);
}

#program h1 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

#program h2 {
  color: var(--primary-hover);
  margin: 1.5rem 0 1rem;
  font-weight: 600;
}

/* Responsive program section */
@media (max-width: 768px) {
  #program {
    padding: 1.5rem;
  }
  
  #program h1 {
    font-size: 1.6rem;
  }
  
  #program h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  #program {
    padding: 1rem;
  }
  
  #program h1 {
    font-size: 1.4rem;
  }
}
/* Program section HR styling */
#program hr {
  margin: 40px auto; 
  color: #74a4d8; 
  width: 60%; 
  max-width: 300px;
  border: none;
  border-top: 2px solid #74a4d8;
  opacity: 0.7;
}

/* Responsive HR */
@media (max-width: 768px) {
  #program hr {
    width: 70%;
    max-width: 250px;
    margin: 30px auto;
  }
}

@media (max-width: 480px) {
  #program hr {
    width: 80%;
    max-width: 200px;
    margin: 25px auto;
  }
}

/* ===== FACEBOOK POSTS & IFRAMES HEIGHT FIX ===== */

/* Remove generic iframe shadow that causes issues */
iframe {
  box-shadow: none !important;
}

/* Apply shadow to Facebook post wrappers in news section */
#news .fb-post-wrapper {
  box-shadow: 0 5px 10px rgba(100, 150, 255, 0.4);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  background: white;
  padding: 0;
  transition: all 0.3s ease;
  width: 90%;
  max-width: 700px;
}

/* Apply shadow to Facebook post wrappers in program section */
#program .fb-post-wrapper {
  box-shadow: 0 5px 10px rgba(100, 150, 255, 0.4);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  background: white;
  padding: 0;
  transition: all 0.3s ease;
  width: 90%;
  max-width: 700px;
}

/* Fix iframe height to match content */
.fb-post-wrapper iframe {
  box-shadow: none !important;
  border-radius: 10px;
  margin-bottom: 0;
  display: block;
  width: 100% !important;
  border: none;
  height: auto !important; /* Let content determine height */
  min-height: 500px; /* Fallback minimum height */
}

/* Specific height fixes for different post types */
.fb-post-wrapper iframe[src*="post.php"] {
  height: 600px !important; /* Standard post height */
}

.fb-post-wrapper iframe[src*="video.php"] {
  height: 400px !important; /* Video post height */
}

/* Hover effects for both sections */
#news .fb-post-wrapper:hover,
#program .fb-post-wrapper:hover {
  box-shadow: 0 8px 15px rgba(100, 150, 255, 0.6);
  transform: translateY(-2px);
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Tablet styles */
@media (max-width: 1024px) {
  #news .fb-post-wrapper,
  #program .fb-post-wrapper {
    width: 100%;
  }
  
  .fb-post-wrapper iframe[src*="post.php"] {
    height: 550px !important;
  }
  
  .fb-post-wrapper iframe[src*="video.php"] {
    height: 350px !important;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  #news .fb-post-wrapper,
  #program .fb-post-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(100, 150, 255, 0.4);
    border-radius: 8px;
  }
  
  .fb-post-wrapper iframe[src*="post.php"] {
    height: 500px !important;
  }
  
  .fb-post-wrapper iframe[src*="video.php"] {
    height: 300px !important;
  }
  
  .fb-post-wrapper iframe {
    min-height: 400px;
    border-radius: 8px;
  }
}

/* Small mobile styles */
@media (max-width: 480px) {
  #news .fb-post-wrapper,
  #program .fb-post-wrapper {
    margin-bottom: 12px;
    box-shadow: 0 3px 6px rgba(100, 150, 255, 0.3);
    border-radius: 6px;
  }
  
  .fb-post-wrapper iframe[src*="post.php"] {
    height: 450px !important;
  }
  
  .fb-post-wrapper iframe[src*="video.php"] {
    height: 250px !important;
  }
  
  .fb-post-wrapper iframe {
    min-height: 350px;
    border-radius: 6px;
  }
}

/* Extra small mobile styles */
@media (max-width: 360px) {
  #news .fb-post-wrapper,
  #program .fb-post-wrapper {
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(100, 150, 255, 0.25);
    border-radius: 5px;
  }
  
  .fb-post-wrapper iframe {
    min-height: 300px;
    border-radius: 5px;
  }
}