/* Page Header - Professional Version */
.page-header {
  background: linear-gradient(135deg, 
    #27ae60 0%, 
    #219a52 25%, 
    #1e8c4f 50%, 
    #1a7a46 75%, 
    #166d3e 100%);
  color: white;
  padding: 140px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255,255,255,0.08) 0%, transparent 50%);
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 0%, 100% 100%, 50% 50%;
  }
  50% {
    background-position: 100% 100%, 0% 0%, 80% 80%;
  }
}

.header-content {
  position: relative;
  z-index: 2;
}

.header-icon {
  margin-bottom: 30px;
}

.icon-wrapper {
  position: relative;
  display: inline-block;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #b3ff00, #caff4e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 10px 30px rgba(255, 215, 0, 0.3),
    inset 0 -5px 15px rgba(0,0,0,0.1),
    inset 0 5px 15px rgba(255,255,255,0.3);
  animation: float 3s ease-in-out infinite;
}

.icon-wrapper::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.6;
  filter: blur(15px);
}

.icon-wrapper i {
  font-size: 2.5rem;
  color: #2c3e50;
  text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.icon-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, 
    transparent 0%, 
    rgba(255,255,255,0.4) 50%, 
    transparent 100%);
  border-radius: 50%;
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0%, 100% {
    transform: translateX(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(100%) rotate(45deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(2deg);
  }
  66% {
    transform: translateY(-5px) rotate(-1deg);
  }
}

.header-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 15px rgba(0,0,0,0.1);
  line-height: 1.2;
}

.title-accent {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.title-accent::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
  border-radius: 2px;
}

.header-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
}

.divider-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255,255,255,0.8), 
    transparent);
}

.divider-dot {
  width: 8px;
  height: 8px;
  background: #ffd700;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
  }
}

.header-description {
  font-size: 1.3rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto 50px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
  font-weight: 300;
}

.achievement-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  min-width: 200px;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #b3ff00, #caff4e);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.stat-icon i {
  font-size: 1.5rem;
  color: #2c3e50;
}

.stat-content {
  text-align: right;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.header-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: floatParticle 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  width: 8px;
  height: 8px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 12px;
  height: 12px;
  top: 60%;
  left: 80%;
  animation-delay: 1s;
}

.particle:nth-child(3) {
  width: 6px;
  height: 6px;
  top: 80%;
  left: 20%;
  animation-delay: 2s;
}

.particle:nth-child(4) {
  width: 10px;
  height: 10px;
  top: 30%;
  left: 70%;
  animation-delay: 3s;
}

.particle:nth-child(5) {
  width: 7px;
  height: 7px;
  top: 70%;
  left: 40%;
  animation-delay: 4s;
}

@keyframes floatParticle {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(90deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-10px) translateX(20px) rotate(180deg);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-15px) translateX(-10px) rotate(270deg);
    opacity: 0.5;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    padding: 120px 0 80px;
  }
  
  .header-title {
    font-size: 2.5rem;
  }
  
  .header-description {
    font-size: 1.1rem;
    padding: 0 20px;
  }
  
  .achievement-stats {
    gap: 20px;
  }
  
  .stat-item {
    min-width: 160px;
    padding: 15px 20px;
  }
  
  .stat-number {
    font-size: 1.7rem;
  }
  
  .icon-wrapper {
    width: 80px;
    height: 80px;
  }
  
  .icon-wrapper i {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .header-title {
    font-size: 2rem;
  }
  
  .header-description {
    font-size: 1rem;
  }
  
  .achievement-stats {
    flex-direction: column;
    align-items: center;
  }
  
  .stat-item {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
  
  .header-divider {
    gap: 10px;
  }
  
  .divider-line {
    width: 50px;
  }
}

/* Certificates Section */
.Certificates {
  padding: 80px 0;
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.section-header h2 i {
  color: #27ae60;
}

.section-description {
  color: #666;
  font-size: 1.1rem;
  max-width: 600px;
  /* margin: 0 auto; */
  line-height: 1.6;
}

/* Swiper Styles */
.swiper {
  width: 100%;
  max-width: 800px;
  padding: 40px 20px 60px;
  margin: 0 auto;
}

.swiper-slide {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 10px;
}

/* Pagination */
.swiper-pagination {
  bottom: -30px !important;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #bdc3c7;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #27ae60;
  opacity: 1;
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .Certificates {
    padding: 70px 0;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .swiper {
    max-width: 700px;
    padding: 30px 15px 50px;
  }

  .swiper-slide img {
    max-height: 350px;
  }
}

@media (max-width: 768px) {
  .Certificates {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-description {
    font-size: 1rem;
    padding: 0 20px;
  }

  .swiper {
    max-width: 90%;
    padding: 20px 10px 40px;
  }

  .swiper-slide {
    padding: 15px;
  }

  .swiper-slide img {
    max-height: 300px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .Certificates {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 10px;
  }

  .section-description {
    font-size: 0.95rem;
    padding: 0 15px;
  }

  .swiper {
    max-width: 95%;
    padding: 15px 5px 35px;
  }

  .swiper-slide {
    padding: 10px;
  }

  .swiper-slide img {
    max-height: 250px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 35px;
    height: 35px;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 14px;
  }

  .swiper-button-prev {
    left: 5px;
  }

  .swiper-button-next {
    right: 5px;
  }
}

/* Events Section */
.events-section {
  padding: 80px 0;
}

.eventsSwiper {
  width: 100%;
  padding: 50px 0 70px;
}

.event-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.event-card img {
  width: 100%;
  aspect-ratio: 3 / 4; /* أو 4 / 3 حسب اللي يناسبك */
  object-fit: contain;
}

.event-info {
  padding: 20px;
  text-align: center;
}

.event-info h3 {
  color: #2c3e50;
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.event-info p {
  color: #27ae60;
  margin: 0;
  font-weight: 500;
}


/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    padding: 100px 0 60px;
  }

  .page-header h2 {
    font-size: 2.2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .certificate-card img {
    height: 300px;
  }

  .eventsSwiper {
    padding: 30px 0 50px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 80px 0 40px;
  }

  .page-header h2 {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 10px;
  }

  .section-header h2 {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 10px;
  }

  .certificate-card img {
    height: 250px;
  }

  .certificate-info,
  .event-info {
    padding: 15px;
  }
}
