.vision-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
  
    border-bottom-left-radius: 15px;  
    border-bottom-right-radius: 15px;   
	background-color: rgba(255, 255, 255, 0.6); 
    background-image: url('images/bac2.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
}  


.vision-container {
    display: flex;
    align-items: center;
    gap: 30px; 
    max-width: 800px;
    width: 100%;
}

.vision-image img {
    width: 200px;
    height: auto;
    border-radius: 30px;
    border-top-right-radius: 80px; 
    object-fit: cover;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
	
	

}
@keyframes changeImage {
    0% { content: url('images/KidsImage.jpeg'); }
    50% { content: url('images/KidsImage2.jpeg'); }
    100% { content: url('images/Basketball.jpeg'); }
}

.vision-image img {
    width: 200px;
    height: auto;
    border-radius: 30px;
    border-top-right-radius: 80px;
	display: block;
    object-fit: cover;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    animation: changeImage 30s infinite; 
}






.vision-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.vision-title {
    font-size: 34px;
    font-style: italic;
    color: #555;
    font-weight: bold;
    margin-bottom: 20px;
}

.vision-text-box {
    background-color:  #EAE3D8;
    padding: 30px 20px;
    border-radius: 15px;
    max-width: 500px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.vision-text-box p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}










.activities-section {
    padding: 40px;
    background-color: #F9F9F9;
    text-align: center;
}

.activities-box {
    background: #EBEEEC;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.filter-bar {
    display: flex;
    justify-content: left;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-bar input {
    display: none;
}

.filter-btn {
    background: #EAE3D8;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
}

.filter-bar input:checked + .filter-btn {
    background: #DAC9BA;
    font-weight: bold;
}

.separator {
    width: 100%;
    height: 2px;
    background: #C2CBC6;
    margin: 15px 0;
}

.activities-container {
    width: 100%;
    overflow-x: auto; 
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.activities-wrapper {
    display: flex;
    gap: 15px;
    white-space: nowrap;
    padding: 10px 0;
}

.activities-container::-webkit-scrollbar {
    display: none;
}

.activity-card {
    background:  #EAE3D8;
    border-radius: 15px;
    padding: 15px;
    width: 250px;
    text-align: left;
    flex-shrink: 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease-in-out;
}

.activity-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}




.activity-image {
    width: 100%; 
    height: 140px; 
    object-fit: cover; 
    border-radius: 10px; 
    display: block;
}



.coaches-section {
    padding: 40px;
    background-color: #F9F9F9;
    text-align: center;
}

.section-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.coaches-container {
    display: flex;
    gap: 20px;
    overflow-x: auto; 
    padding-bottom: 10px;
    justify-content: center;
}

.coach-card {
    background: #EAE3D8;
    border-radius: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 240px;
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.coach-card:hover {
    transform: scale(1.05);
}

.coach-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%; 
    object-fit: cover;
    margin-bottom: 10px;
}

.coach-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.coach-description {
    font-size: 14px;
    color: #555;
    margin: 0;
}
.more-button {
    display: block;
    width: fit-content;
    padding: 5px 15px;
    background: #C2CBC6;
  color:#fff;
    font-size: 16px;
    border-radius: 10px;
    text-decoration: none;
    margin-left: auto; 
    margin-right: 90px; 
	margin-top:60px;
}



.more-button:hover {
    background: #AEB5AF;
}










.comments-section {
    padding: 40px;
    background-color: #F9F9F9;
    text-align: center;
}

.section-title {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.comments-container {
    display: flex;
    gap: 20px;
    overflow-x: auto; 
    padding-bottom: 10px;
    justify-content: center;
}

.comment-card {
    background: #EAE3D8;
    border-radius: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 340px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-user img {
    width: 50px;
    height: 50px;
    border-radius: 50%; 
    object-fit: cover;
}

.comment-text {
    background: #EAE3D8;
    padding: 10px;
    border-radius: 15px;
    flex-grow: 1;
    text-align: left;
}








.add-comment-container {
    text-align: right;
    padding-right: 20px; 
	margin: 60px;
}

.add-comment-btn {
    display: inline-block;
    background: #C2CBC6;
    padding: 8px 15px;
    border: none;
    border-radius: 10px;
    font-size: 14px;

	color:#fff;
    cursor: pointer;
    transition: 0.3s ease-in-out;
	
}

.add-comment-btn:hover {
    background: #BEBEBE;
}

.add-comment-container details {
    display: inline-block;
    width: 100%;
}

.add-comment-container textarea {
    display: block;
    width: 100%;
	
    max-width: 400px;
    height: 60px;
    padding: 10px;
    margin-top: 10px;
    border-radius: 15px;
    border: 1px solid #ccc;
}

.submit-comment-btn {
    background-color: #C2CBC6;
	color:#fff;
    border: none;
    padding: 10px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background-color 0.2s;
	margin-bottom: 60px;
}

.submit-comment-btn:hover {
    background-color: #AEB5AF;
}

























/* 🌙 DARK MODE - Home Page Adjustments */

/* الهيدر والفوتر والأزرار */

body.dark-theme .filter-btn,
body.dark-theme .more-button,
body.dark-theme .add-comment-btn,
body.dark-theme .submit-comment-btn,
body.dark-theme .theme-btn,
body.dark-theme .profile-btn {
    background-color: #5D2048 !important;
    color: #fff !important;
}

body.dark-theme .filter-btn:hover,
body.dark-theme .more-button:hover,
body.dark-theme .add-comment-btn:hover,
body.dark-theme .submit-comment-btn:hover,
body.dark-theme .theme-btn:hover,
body.dark-theme .profile-btn:hover {
    background-color: #7A3664 !important;
}

/* خلفيات السكاشن */
body.dark-theme .activities-section,
body.dark-theme .coaches-section,
body.dark-theme .comments-section {
    background-color: #0B0E20!important;
}

/* الكروت ومحتواها */
body.dark-theme .activity-card,
body.dark-theme .coach-card,
body.dark-theme .comment-card,
body.dark-theme .vision-text-box {
    background-color: #420D32 !important;
    color: #fff !important;
}

/* النصوص داخل الكروت */
body.dark-theme .activity-title,
body.dark-theme .activity-description,
body.dark-theme .activity-time,
body.dark-theme .coach-name,
body.dark-theme .coach-description,
body.dark-theme .comment-text p,
body.dark-theme .vision-text-box p {
    color: #ffffff !important;
}

/* صندوق التعليق */
body.dark-theme .comment-text {
    background-color: #5D2048 !important;
    color: #fff !important;
}






body.dark-theme .vision-section {
    background-color: rgba(0, 0, 0, 0.5); /* تغميق بسيط */
    background-image: url('images/dark-bg-vision.jpeg'); /* نفس الصورة */
    background-blend-mode: multiply; /* يخلي الصورة تتمازج مع التغميق */
    color: #fff;
}

.review-popup {
  display: none;
  position: absolute;
  background-color: #fff;
  color: #000;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  width: 250px;
  top: 80%;
  left: 20%;
  z-index: 10;
  font-size: 14px;
}

.comment-card {
  position: relative;
}

body.dark-theme .review-popup {
  background-color: #420D32;
  color: #fff;
}
#theme-toggle {
  background-color: #420D32;
  color: #fff;
  border: none;
  border-radius: 30%;
  padding: 5px;
  width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#theme-toggle:hover {
  background-color: #3a0d3d;
  transform: scale(1.1);
}
#theme-toggle span {
  transition: transform 0.3s ease;
}

#theme-toggle:active span {
  transform: rotate(180deg);
}




.auth-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* تصميم زر السويتش */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: 0.4s;
}

.slider::before {
  position: absolute;
  content: "🌙";
  height: 21px;
  width: 21px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

input:checked + .slider {
  background-color: #5D2048;
}

input:checked + .slider::before {
  transform: translateX(24px);
  content: "☀️";
}
.slider-icon {
  position: absolute;
  right: 5px;
  top: 2px;
  font-size: 16px;
  pointer-events: none;
}
@media (max-width: 768px) {

  /* ✅ قسم الأنشطة */
  .activities-wrapper {
    display: flex;
    flex-direction: row;
    gap: 15px;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
  }

  .activity-card {
    flex-shrink: 0;
    width: 250px;
  }

  .activities-container {
    overflow-x: auto;
  }

  /* ✅ قسم الكوتشز */
  .coaches-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
  }

  .coach-card {
    flex-shrink: 0;
    width: 240px;
  }

  /* ✅ قسم الكومنتات */
  .comments-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
  }

  .comment-card {
    flex-shrink: 0;
    width: 300px;
  }

  /* ✅ الرؤية */
  .vision-container {
    flex-direction: column;
    text-align: center;
  }

  .vision-image img {
    margin-bottom: 20px;
  }
}


.activity-card,
.coach-card,
.comment-card {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.activity-info,
.coach-info,
.comment-text {
  max-width: 100%;
}
.comments-section {
  padding: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
}
