:root {
  /* start green */
  --green-one: #22c55e;
  --green-two: #10b981;
  --green-three: #16a34a;
  /* end green */
  /* Start gray */
  --gray-one: #f4f4f5;
  --gray-two: #e5e7eb;
  --gray-three: #9ca3af;
  /* end gray */
  /* Start black */
  --black-one: #111827;
  --black-two: #1f2937;
  /* End black */
}
.main-heading p{
  width: 900px;
}
.main-header {
  background-image: url("../images/Main-head-image-2.jpg");
}
.main-header .container .slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-header .container .slide .text {
  text-align: center;
}
.main-header .container .slide .text h3 {
  font-size: 90px;
  margin-bottom: 90px;
  color: var(--green-three);
}
.main-header .container .slide .text p {
  font-size: 20px;
}

.health-section {
  padding-bottom: 20px;
}
.health-section .container {
  display: grid;
  grid-template-rows: repeat(1, 1fr);
  row-gap: 30px;
}
.health-section .container .content {
  display: flex;
  justify-content: space-between;
  background-image: url("../images/Main-head-image-2.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 10px;
  border-radius: 5px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  gap: 40px;
}
.health-section .container .content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.678); 
  z-index: -2;
}
.health-section .container .content .cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.health-section .container .content:last-child .cards{
  align-content: center;
}
.health-section .container .content .text {
  order: 2;
  width: 50%;
}
.health-section .container .content .text div{
  background-color: white;
  padding: 5px;
  border-radius: 5px;
}
.health-section .container .image{
  background-color: red;
  width: 100%;
  height: 50%;
}
.health-section .container .image img {
  max-width: 100%;
}

.card {
  position: relative;
  width: 300px;
  height: 200px;
  background-color: #f2f2f2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1000px;
  box-shadow: 0 0 0 5px #ffffff80;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card svg {
  width: 48px;
  fill: #333;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
  
}

.card__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: #f2f2f2;
  transform: rotateX(-90deg);
  transform-origin: bottom;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .card__content {
  transform: rotateX(0deg);
}

.card__title {
  margin: 0;
  font-size: 24px;
  color: #333;
  font-weight: 700;
}

.card:hover svg {
  scale: 0;
}

.card__description {
  margin: 2px 0 0;
  font-size: 11px;
  color: #777;
  line-height: 1.4;
}

.education{
  background-image: url("../images/Main-head-image-3.jpg");
}

.education-section{
  padding: 50px;
  background-color: var(--gray-two);
}
.education-section .container .image{
  overflow: hidden;
}
.education-section .container img{
  max-width: 300px;
  border-radius: 5px;
}
.education-section .container {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.education-section .container .content{
  background-color: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.education-section .container .content .click{
  display: block;
  width: fit-content;
  margin: 70px auto 5px;
  padding: 10px 30px;
  color: var(--black-two);
  border: 1px solid var(--green-three);
  transition: .3s;
  border-radius: 5px;
  font-weight: 500;
  position: relative;
  z-index: 1;
  background-color: none;
  cursor: pointer;
}
.education-section .container .content .click::before{
  content: "";
  position: absolute;
  width: 0;
  height: 100%;
  transform: translate(-30px, -10px);
  border-radius: 4px;
  transition: 0.3s;
  z-index: -1;
}
.education-section .container .content .click:hover::before{
  width: 100%;
  background-color: var(--green-three);
}
.education-section .container .content .click:hover{
  color: white;
}
.education-section .container .content:nth-child(2) .click{
  margin: 60px auto 5px;
}
.section-box{

}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none; /* نخفيها في البداية */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}


.modal {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  animation: popUp 0.3s ease-in-out;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  overflow: auto;
  height: inherit;
  position: relative;
}


.section-box {
  position: relative;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  max-width: 100%;
  margin: 15px auto;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 16px;
  line-height: 1.6;
  box-sizing: border-box;
}

.section-box p a {
  color: var(--green-one);
}

.section-title {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  padding: 0 12px;
  font-size: 14px;
  font-weight: bold;
  max-width: 90%;
  text-align: center;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #333;
  transition: color 0.2s;
}
.section-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  padding: 10px;
}

/* ✅ Media Queries للموبايلات */
@media (max-width: 600px) {
  .section-box {
    padding: 12px;
    font-size: 14px;
  }

  .section-title {
    font-size: 12px;
    padding: 0 8px;
  }

  .close-btn {
    font-size: 20px;
  }
}

/* spor */
.sport{
  background-image: url("../images/Main-head-image-4.jpg");
}
.sport::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.856); 
  z-index: -2;
}
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.overlay-content {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: fadeInUp 0.5s ease;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #222;
  cursor: pointer;
}
.close-btn:hover {
  color: crimson;
}

.txt {
  color: var(--green-three);
  margin-top: 20px;
}

.ul {
  margin-left: 20px;
  list-style-type: disc;
}





/* Media q */
@media (max-width: 768px) {
  .education-section .container{
    flex-direction: column;
  }
  .section-title{
    width: 150px;
    font-size: 8px;
  }
  .main-header .container .slide .text h3 {
    font-size: 75px;
  }
}
@media (max-width: 875px) {
  .health-section .container .content{
    flex-direction: column;
  }
  .health-section .container .content .text{
    order: 0;
    width: 100%;
  }
}
@media (max-width: 630px){
  .health-section .container .content .cards{
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* animation  */
@keyframes popUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* @keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}