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

html {
  scroll-behavior: smooth;
}

body {
  background: url("../images/cover4.jpg") no-repeat center center fixed;
  background-size: cover; 
  margin: 0;
  padding: 0;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

/* ========== PRELOADER ========== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #02538B 0%, #034a7a 50%, #025080 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  position: relative;
}

/* Logo Animation */
.loader-logo {
  margin-bottom: 30px;
  position: relative;
}

.pulse-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Spinner Rings */
.loader-spinner {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 30px;
}

.spinner-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid transparent;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
  width: 150px;
  height: 150px;
  animation-duration: 1.5s;
}

.spinner-ring:nth-child(2) {
  width: 120px;
  height: 120px;
  animation-duration: 2s;
  border-top-color: rgba(255, 255, 255, 0.7);
}

.spinner-ring:nth-child(3) {
  width: 90px;
  height: 90px;
  animation-duration: 2.5s;
  border-top-color: rgba(255, 255, 255, 0.5);
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Loader Text */
.loader-text {
  color: #fff;
  font-family: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

/* Loading Dots */
.loader-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.loader-dots .dot {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  animation: bounce-dots 1.4s infinite ease-in-out both;
}

.loader-dots .dot:nth-child(1) {
  animation-delay: -0.32s;
}

.loader-dots .dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce-dots {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .pulse-logo {
    width: 100px;
    height: 100px;
  }
  
  .loader-spinner {
    width: 120px;
    height: 120px;
  }
  
  .spinner-ring:nth-child(1) {
    width: 120px;
    height: 120px;
  }
  
  .spinner-ring:nth-child(2) {
    width: 95px;
    height: 95px;
  }
  
  .spinner-ring:nth-child(3) {
    width: 70px;
    height: 70px;
  }
  
  .loader-text {
    font-size: 1.5rem;
  }
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.show {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.show {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #02538B;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.scroll-top-btn:hover {
  background: #034a7a;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.scroll-top-btn.show {
  display: flex;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
.logo-img {
  height: 110px;
  border-radius: 50%;
  background: transparent;
  padding: 4px;
}
.container-fluid {
  color: #02538B;
}
ul.nav-links {
  list-style: none ;
}

/* زرار الموبايل */
.menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #02538B; 
  cursor: pointer;
  padding: 5px 10px;
}

/* اللينكات */
.nav-link {
  color: #02538B;
  position: relative;
  text-decoration: none;
  margin-left: 25px; /* مسافة أكبر بين اللينكات */
  font-size: 1.3rem; /* حجم خط أكبر */
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

/* underline effect */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: #02538B;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 70%;
}

/* اللوجو */
.logo-img {
  height: 140px; /* كبر اللوجو */
  border-radius: 50%;
  background: transparent;
  padding: 4px;
}

/* البراند */
.brand-name {
  font-size: 2.4rem; /* أكبر من قبل */
  font-weight: bold;
  font-family: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
  color: #02538B;
  margin-left: 12px;
}

/* اللينكات */
.nav-links .nav-link {
  color: #02538B !important;
  position: relative;
  text-decoration: none;
  margin-left: 30px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  padding-bottom: 5px;
  white-space: nowrap;
}

/* underline effect */
.nav-links .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 3px;
  background-color: #02538B;
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

/* زرار الموبايل */
.menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #02538B;
  cursor: pointer;
  padding: 5px 10px;
}

/* الموبايل */
#nav-links {
  display: none;
  flex-direction: column;
  gap: 15px;
}

#nav-links.show {
  display: flex;
}
/* اللينكات مبدئياً مخفية في الموبايل */
#nav-links {
  display: none;
  flex-direction: column;
  gap: 15px;
}

/* لما ياخد كلاس show يظهر */
#nav-links.show {
  display: flex;
}

/* الديسكتوب */
@media (min-width: 768px) {
  #nav-links {
    display: flex !important;
    flex-direction: row;
    align-items: center;
  }
}
/* الموبايل */
@media (max-width: 767px) {
  #navbar {
    position: relative;
  }

  #nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 999;
    animation: slideDown 0.3s ease-out;
  }

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

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

  #nav-links .nav-item {
    width: 100%;
    margin: 8px 0;
    text-align: center;
  }

  #nav-links .nav-link {
    color: #02538B !important;
    width: 100%;
    display: block;
    padding: 12px 20px;
    font-size: 1.1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-left: 0;
  }
  
  #nav-links .nav-link::after {
    bottom: 5px;
    height: 2px;
  }
  
  #nav-links .nav-link:hover {
    background: rgba(2, 83, 139, 0.1);
    transform: translateX(5px);
  }
  
  #nav-links .nav-link:hover::after,
  #nav-links .nav-link.active::after {
    width: 50%;
  }
  
  .logo-img {
    height: 60px;
  }
  
  .brand-name {
    font-size: 2rem;
  }
}


/* home-sec */ 
.hero {
  min-height: 100vh;
  padding: 120px 0 50px 0;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #02538B;
  font-family: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
}

.hero p {
  font-size: 1.2rem;
  color: #02538B;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

/* توزيع الصور باستخدام grid */
.hero-images {
  display: grid;
  grid-template-areas:
    "rounded hexagon"
    "circle hexagon";
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  justify-items: center;
  align-items: center;
  position: relative;
  padding: 20px;
}

/* الصور */
.img-rounded {
  grid-area: rounded;
  border-radius: 20px;
  object-fit: cover;
  transform: rotate(-5deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.img-rounded:hover {
  transform: rotate(-5deg) scale(1.05);
}

.img-hexagon {
  grid-area: hexagon;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  object-fit: cover;
  transform: rotate(5deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.img-hexagon:hover {
  transform: rotate(5deg) scale(1.05);
}

.img-circle {
  grid-area: circle;
  border-radius: 50%;
  object-fit: cover;
  transform: rotate(-8deg) translateX(60px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.img-circle:hover {
  transform: rotate(-8deg) translateX(60px) scale(1.05);
}

/* ========== IMAGE GALLERY SECTION ========== */
.gallery-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
}

.gallery-section .section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #02538B;
  font-family: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
  margin-bottom: 50px;
}

/* Gallery Slider Container */
.gallery-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 650px;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  background: #fff;
}

/* Slider Wrapper */
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Gallery Slides */
.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  display: flex;
  flex-direction: column;
}

.gallery-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* Slide Image Container */
.slide-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 1s ease-in-out;
}

.gallery-slide.active .gallery-image {
  animation: smoothZoom 1s ease-in-out forwards;
}

@keyframes smoothZoom {
  from {
    transform: scale(1.15);
  }
  to {
    transform: scale(1);
  }
}

/* Slide Overlay */
.slide-overlay {
  display: none;
}

/* Slide Info */
.slide-info {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 90%;
  max-width: 900px;
  padding: 25px 35px;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: all 0.8s ease-in-out 0.3s;
}

.gallery-slide.active .slide-info {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.slide-heading {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
  margin-bottom: 12px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 800px;
  margin: 0;
}

/* Navigation Buttons */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  color: #02538B;
  font-size: 1.5rem;
}

.gallery-nav-btn:hover {
  background: #02538B;
  color: #fff;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.gallery-nav-btn:active {
  transform: translateY(-50%) scale(1.05);
}

.prev-gallery-btn {
  left: 25px;
}

.next-gallery-btn {
  right: 25px;
}

/* Dots Indicator */
.gallery-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 20px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

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

.gallery-dot:hover {
  background: #02538B;
  transform: scale(1.3);
}

.gallery-dot.active {
  background: #02538B;
  width: 40px;
  border-radius: 12px;
  border-color: #fff;
  box-shadow: 0 0 15px rgba(2, 83, 139, 0.8);
}

/* Responsive Design */
@media (max-width: 992px) {
  .gallery-slider {
    height: 550px;
  }
  
  .slide-heading {
    font-size: 1.9rem;
  }
  
  .slide-text {
    font-size: 1rem;
  }
  
  .gallery-nav-btn {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .prev-gallery-btn {
    left: 20px;
  }
  
  .next-gallery-btn {
    right: 20px;
  }
}

@media (max-width: 768px) {
  .gallery-section {
    padding: 60px 0;
  }
  
  .gallery-section .section-title {
    font-size: 2.2rem;
    margin-bottom: 35px;
  }
  
  .gallery-slider {
    height: 500px;
    border-radius: 20px;
  }
  
  .slide-image-container {
    height: 100%;
  }
  
  .slide-info {
    bottom: 95px;
    width: 92%;
    padding: 20px 25px;
  }
  
  .slide-heading {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }
  
  .slide-text {
    font-size: 0.95rem;
  }
  
  .gallery-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  .prev-gallery-btn {
    left: 15px;
  }
  
  .next-gallery-btn {
    right: 15px;
  }
  
  .gallery-dots {
    gap: 12px;
    padding: 10px 16px;
  }
  
  .gallery-dot {
    width: 12px;
    height: 12px;
  }
  
  .gallery-dot.active {
    width: 32px;
  }
}

@media (max-width: 576px) {
  .gallery-section {
    padding: 50px 0;
  }
  
  .gallery-section .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  .gallery-slider {
    height: 450px;
    border-radius: 15px;
  }
  
  .slide-image-container {
    height: 100%;
  }
  
  .slide-info {
    bottom: 80px;
    width: 94%;
    padding: 18px 22px;
  }
  
  .slide-heading {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }
  
  .slide-text {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .gallery-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .prev-gallery-btn {
    left: 12px;
  }
  
  .next-gallery-btn {
    right: 12px;
  }
  
  .gallery-dots {
    gap: 10px;
    padding: 8px 14px;
  }
  
  .gallery-dot {
    width: 10px;
    height: 10px;
  }
  
  .gallery-dot.active {
    width: 28px;
  }
}

/* programs sec */
.programs {
    background-color: #0d5c99;
    color: #fff;
    padding: 100px 0 !important;
  }
  
  .programs h2 {
    font-size: 3.5rem !important;
    margin-bottom: 80px !important;
    font-family: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  .program-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px 30px !important;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
  }
  
  .program-box:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  }
  
  .program-box img {
    display: block;
    margin: 0 auto 30px;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
  }
  
  .program-box:hover img {
    transform: scale(1.1) rotate(5deg);
  }
  
  .program-box h5 {
    font-size: 1.8rem !important;
    margin-bottom: 20px;
    font-family: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
  }
  
  .program-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
  }
  
  @media (max-width: 768px) {
    .programs {
      padding: 60px 0 !important;
    }
    
    .programs h2 {
      font-size: 2.5rem !important;
      margin-bottom: 50px !important;
    }
    
    .program-box {
      padding: 40px 25px !important;
    }
    
    .program-box h5 {
      font-size: 1.5rem !important;
    }
    
    .program-box p {
      font-size: 1rem;
    }
  }
/* footer */
footer {
  padding: 40px 0;
  /* background-image: linear-gradient(#0009, #0009); */
  background-color:#001525;
  color: #fff;
}
footer .container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
footer .about .logo {
  display: flex;
  gap: 10px;
  
}
footer .about .logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: transparent;
  padding: 4px;
}
footer .about .logo h2 {
  color: #fff;
  font-size: 30px;
  font-weight: bold;
}
footer .about p {
  margin: 10px 0;
}
footer .about h3 {
  text-align: center;
  padding: 10px;
  margin-bottom: 15px;
  border-bottom: 2px solid white;
  padding-bottom: 10px;
}
footer .about .social-media {
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 50px;
  list-style: none;
}
footer .about .social-media li {
  list-style: none;
}
footer .about .social-media li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}
footer .about .social-media li a:hover {
  background: #02538B;
  transform: translateY(-3px);
  text-decoration: none;
}
footer .about .social-media li i {
  font-size: 28px;
  color: #fff;
}
footer .contact-details {
  width: 33.3333%;
}

footer .contact-details ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
footer .contact-details ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  white-space: nowrap;
}
footer .contact-details ul li i {
  width: 20px;
  height: 20px;
  font-size: 20px;
  color: #ce1212;
  margin-right: 8px;
}
footer .contact-details ul li a {
  color: #fff;
  display: inline-block;
}

@media screen and (max-width: 1200px) {
  footer .subscription .quick-links ul {
    gap: 0px;
  }
  footer .about,
  footer .subscription,
  footer .contact-details {
    width: 50%;
  }
}
@media screen and (max-width: 767px) {
  footer .container {
    flex-wrap: wrap;
    gap: 50px;
  }
  footer .about,
  footer .subscription,
  footer .contact-details {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .nav {
    /* flex-direction: column; */
    align-items: center;
    text-align: center;

  }
  .nav-item {
    margin-bottom: 10px;
  }
  .logo-img {
    height: 80px; /* تصغير اللوجو للموبايل */
  }
}
  /* تصغير العنوان */
  .hero h1 {
    font-size: 3rem;
  }

  /* الصور: نفس الأماكن لكن حجم أصغر */
  .hero-images img {
    width: 150px;
    height: auto; /* يحافظ على نسبة الأبعاد */
  }

  .img-hexagon {
    width: 160px;
    height: 160px;
  }

  .img-circle {
    width: 150px;
    height: 150px;
    transform: rotate(-8deg) translateX(40px); /* قلل الـ translateX عشان الموبايل */
  }
/* تكبير الصور في الديسكتوب */
@media (max-width: 500px) {
  .hero {
    padding: 100px 0 50px 0;
  }
  
  .hero .row {
    gap: 40px;
  }
  
  .hero-images {
    gap: 20px;
    padding: 15px;
    margin-top: 50px;
  }
  
  .hero-images img {
    width: 180px;
    height: auto;
  }
  
  .img-hexagon {
    width: 180px;
    height: 180px;
  }
  
  .img-circle {
    width: 160px;
    height: 160px;
    transform: rotate(-8deg) translateX(35px);
  }
  
  .img-rounded {
    width: 160px;
    height: 110px;
  }
}

@media (min-width: 501px) and (max-width: 991px) {
  .hero-images {
    gap: 20px;
    padding: 15px;
  }
  
  .hero-images img {
    width: 200px;
    height: auto;
  }
  
  .img-hexagon {
    width: 240px;
    height: 240px;
  }
  
  .img-circle {
    width: 200px;
    height: 200px;
    transform: rotate(-8deg) translateX(50px);
  }
  
  .img-rounded {
    width: 200px;
    height: 140px;
  }
}

@media (min-width: 992px) {
  .hero-images {
    gap: 35px;
    padding: 25px;
  }
  
  .hero-images img {
    width: 280px;
    height: auto;
  }

  .img-hexagon {
    width: 350px;
    height: 350px;
  }

  .img-circle {
    width: 320px;
    height: 320px;
    transform: rotate(-8deg) translateX(80px);
  }
  
  .img-circle:hover {
    transform: rotate(-8deg) translateX(80px) scale(1.05);
  }

  .img-rounded {
    width: 320px;
    height: 220px;
  }
}

/* ========== ADMISSION SECTION ========== */
.admission-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf7 100%);
  padding: 100px 0 !important;
}

.admission-section .section-title {
  color: #02538B;
  font-family: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
  font-size: 3.5rem !important;
  margin-bottom: 25px !important;
}

.admission-section .section-subtitle {
  color: #02538B;
  opacity: 0.85;
  font-size: 1.3rem;
  margin-bottom: 60px !important;
}

.admission-logo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  background: #fff;
  padding: 8px;
  transition: transform 0.3s ease;
}

.admission-logo:hover {
  transform: scale(1.05);
}

.logo-divider {
  display: inline-block;
  width: 3px;
  height: 160px;
  background: rgba(2,83,139,0.3);
  border-radius: 2px;
}

.btn-admission {
  --btn-bg: #02538B;
  --btn-bg-hover: #034a7a;
  --btn-shadow: rgba(2,83,139,0.35);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--btn-bg);
  color: #fff;
  border: none;
  padding: 18px 36px;
  border-radius: 14px;
  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: 0 12px 30px var(--btn-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-admission:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px var(--btn-shadow);
}

.btn-admission:active {
  transform: translateY(0);
}

.btn-admission i {
  font-size: 1.3rem;
}

/* ========== PDF MODAL ========== */
.pdf-modal {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1050;
}

.pdf-modal.open {
  visibility: visible;
  opacity: 1;
}

.pdf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}

.pdf-modal__dialog {
  position: relative;
  width: min(1000px, 92vw);
  height: min(85vh, 900px);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  transform: translateY(10px);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.pdf-modal.open .pdf-modal__dialog {
  transform: translateY(0);
}

.pdf-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(2,83,139,0.9);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.pdf-modal__close:hover {
  background: #034a7a;
}

.pdf-modal__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Modal Header with Logos */
.modal-header-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 20px;
  background: linear-gradient(135deg, #02538B 0%, #034a7a 100%);
  border-bottom: 3px solid #025080;
}

.modal-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Scrollable Content Area */
.modal-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 30px 40px;
  background: #f9fafb;
}

.policy-title {
  color: #02538B;
  font-family: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.policy-subtitle {
  color: #02538B;
  opacity: 0.8;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.policy-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.policy-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.policy-section h3 {
  color: #02538B;
  font-family: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-section h3 i {
  font-size: 1.2rem;
}

.policy-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.policy-section ul li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  line-height: 1.6;
  color: #333;
}

.policy-section ul li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: #02538B;
  font-weight: bold;
  font-size: 1.2rem;
}

.policy-section ul ul {
  margin-top: 8px;
  margin-left: 20px;
}

.policy-section ul ul li::before {
  content: "◦";
  font-size: 1rem;
}

.policy-section strong {
  color: #02538B;
  font-weight: 600;
}

.contacts-section a {
  color: #02538B;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contacts-section a:hover {
  color: #034a7a;
  text-decoration: underline;
}

/* Prevent background scroll when modal open */
body.modal-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content-scroll {
    padding: 20px 25px;
  }
  
  .policy-title {
    font-size: 1.6rem;
  }
  
  .policy-section h3 {
    font-size: 1.15rem;
  }
  
  .modal-header-logos {
    gap: 25px;
    padding: 15px;
  }
  
  .modal-logo {
    width: 65px;
    height: 65px;
  }
}

@media (max-width: 768px) {
  .admission-section {
    padding: 70px 0 !important;
  }
  
  .admission-section .section-title {
    font-size: 2.5rem !important;
  }
  
  .admission-section .section-subtitle {
    font-size: 1.1rem;
  }
  
  .admission-logo {
    width: 180px;
    height: 180px;
  }
  
  .logo-divider {
    height: 130px;
  }
  
  .btn-admission {
    padding: 16px 30px;
    font-size: 1.15rem;
  }
}

@media (max-width: 576px) {
  .admission-section {
    padding: 60px 0 !important;
  }
  
  .admission-section .section-title {
    font-size: 2rem !important;
  }
  
  .admission-logo {
    width: 140px;
    height: 140px;
  }
  .logo-divider { height: 100px; }
  
  .btn-admission {
    padding: 14px 26px;
    font-size: 1.05rem;
  }
  
  .modal-content-scroll {
    padding: 15px 20px;
  }
  
  .policy-title {
    font-size: 1.4rem;
  }
  
  .policy-subtitle {
    font-size: 0.95rem;
  }
  
  .policy-section {
    padding: 15px 18px;
  }
  
  .policy-section h3 {
    font-size: 1.05rem;
  }
  
  .modal-logo {
    width: 55px;
    height: 55px;
  }
}