/* style.css */
body {
    font-family: sans-serif;
    margin: 0;
    background-color: #e0f2f7; /* Light blue-gray background */
    color: #1a237e; /* Dark blue text */
}

header {
    background-color: #2196f3; /* Blue header */
    color: white;
    padding: 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 0 1.5rem;
    position: relative;
    z-index: 100;
}

.logo-pic-container {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
}
.pic img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 0;
    transition: transform 1s cubic-bezier(.68,-0.55,.27,1.55);
}
.pic img:hover {
    transform: rotate(360deg);
}

div img{
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 50%;
    margin-left: 0px;
    position: relative;
}
.logo + div img {
    position: absolute;
    left: 182px;
    top: 5px;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    margin-left: 10px;
}
.logo + div img:hover {
    transform: rotate(360deg);
    transition: transform 1s;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-left: 2.5rem;
    font-weight: 350;
    font-size: 1.1em;


}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth color transition */
}

nav a:hover {
    color: #bbdefb; /* Lighter blue on hover */
}
#about p{
    text-wrap:left; 
    font-size: 1.2em;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease; /* Fade-in up animation with delay */
}


.hero {
    text-align: center;
    padding: 100px 0;
    
}

.hero h1 {
    font-size: 2.8em;
    font-weight: bold;
    color:white;
    letter-spacing: 1px;
    margin-bottom: 18px;
    transition: color 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}

.hero h1:hover {
    color: #111;
    transition: color 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #1976d2; /* Darker blue button */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    transition: background-color 0.3s ease; /* Smooth background transition */
    animation: fadeInUp 1.2s cubic-bezier(.68,-0.55,.27,1.55) 0.5s both; /* نفس أنيميشن زرار about مع تأخير */
}

.cta-button:hover {
    background-color: #1565c0; /* Even darker blue on hover */
}

section {
    padding: 40px;
    background-color: white; /* White section background */
    margin-bottom: 20px;  /* Space between sections */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    opacity: 0; /* Initially hidden */
    transform: translateY(20px); /* Slightly moved down */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth transitions */
}

section.active { /* Class added by JavaScript when section is in viewport */
    opacity: 1;
    transform: translateY(0);
}
.teacher-info {
    display: flex;
    justify-content:space-around;
    align-items: center;
    margin: 20px 10px;
    flex-wrap: wrap;
}

.teacher-info p ,
.teacher-info h4{
  display: flex;
  justify-content: center;
  text-align: center;
}

.teacher1 img, 
.teacher2 img,
.teacher3 img{
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
}

/* wrong and want to edit to be responsive */
.exclusive-img{
    display: flex;
    justify-content: center;
    align-items: center;

}
.new-teacher .exclusive-img img {
    width: 330px;
    height: 170px;
    border-radius: 10%;
}
.exclusives{
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 20px 10px;
    flex-wrap: wrap;
}
 .exclusive-teacher1 img,
 .exclusive-teacher2 img,
 .exclusive-teacher3 img,
 .exclusive-teacher4 img{
    width: 18.5rem;
    height: 18.5rem;
    border-radius: 10px;
    margin-top: 10px;
} 
.exclusive-teacher1 img:hover,
.exclusive-teacher2 img:hover,
.exclusive-teacher3 img:hover,
.exclusive-teacher4 img:hover{
    filter: grayscale(70%);
 transition: filter 0.5s, transform 0.5s;
    transform: scale(1.1);
}

h2 {
    color: #087cdb; /* Dark blue headings */
    margin-bottom: 20px;
    text-align: center;
}


/* حذف جميع استايلات الكورسات */

#contact a{
    text-decoration: none;
    color: #1a237e;
    font-size: 1.2em;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease; /* Fade-in up animation with delay */
    font-size: 1.2em;
}

/* Contact Us Section Styling */
#contact {
  background: linear-gradient(120deg, #e0f7fa 60%, #bbdefb 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px #2196f340;
  padding: 12px 8px 8px 8px;      /* تقليل البادينج */
  margin: 18px auto 12px auto;    /* تقليل المسافة */
  max-width: 400px;
  min-height: unset;              /* لا يوجد ارتفاع إجباري */
}

#contact h2 {
  color: #1976d2;
  text-align: center;
  margin-bottom: 10px;            /* تقليل المسافة */
  letter-spacing: 1px;
  font-size: 1.1em;               /* تصغير الخط */
}

.contact-info {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 8px;
}

.contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.95em;
  color: #1976d2;
  background: #fff;
  border-radius: 16px;
  padding: 5px 10px;
  margin: 0;
  box-shadow: 0 1px 4px #2196f320;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, transform 0.18s;
  position: relative;
}

.contact-info a i {
  font-size: 1em;
  margin-right: 3px;
  transition: color 0.2s;
}

.contact-info a:hover {
  background: linear-gradient(90deg, #2196f3 60%, #6dd5ed 100%);
  color: #fff;
  transform: scale(1.06) translateY(-2px);
}

/* تخصيص لون الأيقونة عند الهوفر حسب نوع الرابط */
.contact-info a[href^="tel"]:hover i {
  color: #25d366; /* أخضر */
}
.contact-info a[href*="facebook"]:hover i {
  color: #1877f3; /* أزرق فيسبوك */
}
.contact-info a[href*="wa.me"]:hover i {
  color: #25d366; /* أخضر واتساب */
}
.contact-info a[href*="instagram"]:hover i {
  color: #c32aa3; /* بنفسجي انستجرام */
}
.contact-info p {
  flex-basis: 88%;
  margin: 4px 0 0 0;
  color: #333;
  font-size: 0.93em;
  text-align: center;
  background: #f5faff;
  border-radius: 8px;
  padding: 4px 6px;
  box-shadow: 0 1px 4px #2196f310;
}

/* احذف أي <br> بين الروابط في index.html ليظهروا بجانب بعض */
footer {
    background-color: #2196f3;
    color: white;
    text-align: center;
    padding: 10px;
}
/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
    from {
        opacity: 0;
    }
}

/* Responsive Design */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto)
}
.user-menu {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  margin-left: 1.2rem;
  color: #fff;
  font-weight: 600;
  font-size: 1.08em;
  z-index: 200;
}
.user-name-nav {
  padding: 8px 18px;
  border-radius: 18px;
  background: #2196f3;
  outline: 2px solid rgba(0, 0, 0, 0.491);
  color: #fff;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}
.user-name-nav:hover,
.user-menu:focus-within .user-name-nav {
  background: #6dd5ed;
  color: #1e3c72;
}
.user-dropdown {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  background: #fff;
  color: #0059ff;
  border-radius: 12px;
  box-shadow: 0 4px 18px 0 rgba(30,60,114,0.13);
  min-width: 180px;
  z-index: 200;
  flex-direction: column;
  padding: 8px 0;
  animation: fadeInDown 0.4s;
}
.user-dropdown a {
  color: #1e3c72;
  text-decoration: none;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  font-size: 1em;
}
.user-dropdown a:hover {
  background: #e0f2f7;
}
.user-menu:focus-within .user-dropdown,
.user-name-nav:hover + .user-dropdown,
.user-menu:hover .user-dropdown {
  display: flex;
}
/* زرار الدارك مود */
#darkModeToggle {
  background: linear-gradient(135deg, #1e3c72 60%, #6dd5ed 100%);
  border: none;
  border-radius: 50%;
  color: #fff;
  width: 3.1rem;
  height: 2.5rem;
  margin-left: 1.4rem;
  cursor: pointer;
  font-size: 1.3em;
  box-shadow: 0 2px 10px #1e3c7240;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
#darkModeToggle:hover {
  background: linear-gradient(135deg, #6dd5ed 60%, #1e3c72 100%);
  transform: scale(1.08) rotate(-10deg);
}
#darkIcon {
  transition: transform 0.5s cubic-bezier(.68,-0.55,.27,1.55), color 0.3s;
  font-size: 1.5em;
  will-change: transform;
}
body.dark-mode #darkIcon {
  transform: rotate(-180deg) scale(1.2);
  color: #ffd700;
  text-shadow: 0 0 8px #ffd70099;
}

/* ستايل الدارك مود */
body.dark-mode {
    background: linear-gradient(135deg, #1A237E 0%, #030405 100%);
  color: #e0e0e0;
}
body.dark-mode header,
body.dark-mode nav,
body.dark-mode .hero,
body.dark-mode section,
body.dark-mode footer {
  background: transparent !important;
  color: #e0e0e0 !important;
}
body.dark-mode .course,
body.dark-mode .teacher1,
body.dark-mode .teacher2,
body.dark-mode .teacher3,
body.dark-mode .exclusive-teacher1,
body.dark-mode .exclusive-teacher2,
body.dark-mode .exclusive-teacher3 {
  background: rgba(30,60,114,0.18) !important;
  color: #fff !important;
  box-shadow: 0 4px 24px 0 #1e3c7240;
}
body.dark-mode .cta-button,
body.dark-mode .course-button {
  background: linear-gradient(90deg, #6dd5ed 0%, #2193b0 100%);
  color: #fff;
  border: none;
}
body.dark-mode .cta-button:hover,
body.dark-mode .course-button:hover {
  background: linear-gradient(90deg, #2193b0 0%, #6dd5ed 100%);
  color: #fff;
}
body.dark-mode nav ul li a {
  color: #e0e0e0 !important;
}
body.dark-mode nav ul li a:hover {
  color: #6dd5ed !important;
}
body.dark-mode .logo {
  color: #6dd5ed !important;
}
body.dark-mode .pic img {
  filter: grayscale(0.3) brightness(0.8);
}
body.dark-mode .social-icon {
  color: #6dd5ed !important;
}
body.dark-mode footer {
  background: transparent !important;
  color: #6dd5ed !important;
}

/* تنسيق قسم الإنجازات في الوضع المظلم */
body.dark-mode #achievements {
  background-color: #1a237e;
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(39, 22, 150, 0.3);
}

/* body.dark-mode #achievements h2 {
  color: #fff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
} */

body.dark-mode .stats-container {
  background: linear-gradient(135deg, #1a237e 0%, #0d0f23 50%,  #1a237e 100%) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .stat-item {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff !important;
}

body.dark-mode .stat-item:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 20px 40px rgba(14, 19, 86, 0.6);
}

body.dark-mode .stat-number {
  color: #1e00ff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

body.dark-mode .stat-label {
  color: #fff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

body.dark-mode .stat-icon {
  filter: brightness(1.2) contrast(1.1);
}

.offers-flip-cards {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 18px 0 10px 0;
  flex-wrap: wrap;
}
.flip-card {
  background: transparent;
  width: 120px;
  height: 140px;
  perspective: 700px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(.68,-0.55,.27,1.55);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 14px;
  box-shadow: 0 2px 12px #2196f320;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.flip-card-front {
  background: linear-gradient(120deg, #e0f7fa 60%, #bbdefb 100%);
  color: #1976d2;
  font-size: 1.1em;
  font-weight: 600;
  gap: 8px;
}
.flip-card-front i {
  font-size: 2.2em;
  margin-bottom: 8px;
  color: #2a65dc;
}
.flip-card-back {
  background: #fff;
  color: #333;
  transform: rotateY(180deg);
  font-size: 1em;
  padding: 12px;
  text-align: center;
  box-sizing: border-box;
}

/* === Flip Cards Dark Mode === */
body.dark-mode .offers-flip-cards .flip-card-front {
  background: linear-gradient(120deg, #232946 60%, #16161a 100%) !important;
  color: #e0e0e0 !important;
  box-shadow: 0 2px 12px #0008;
}

body.dark-mode .offers-flip-cards .flip-card-front i {
  color: #6dd5ed !important;
}
body.dark-mode .offers-flip-cards .flip-card-back {
  background: #232946 !important;
  color: #fff !important;
  box-shadow: 0 2px 12px #000a;
}

/* === Contact Us Links Dark Mode === */
body.dark-mode #contact a,
body.dark-mode .contact-info a {
  color: #e0e0e0 !important;
  background: #232946 !important;
  border: 1px solid #6dd5ed;
  box-shadow: 0 1px 8px #0004;
}
body.dark-mode .contact-info a:hover {
  background: linear-gradient(90deg, #6dd5ed 60%, #2193b0 100%) !important;
  color: #232946 !important;
  border-color: #fff;
}
body.dark-mode .contact-info a i {
  color: #6dd5ed !important;
}

body.dark-mode .contact-info p {
  background: #232946 !important;
  color: #e0e0e0 !important;
  border: 1px solid #6dd5ed;
  box-shadow: 0 1px 8px #0004;
}

/* Dark Mode للعنوان في newTeachers */
body.dark-mode #newTeachers  h4 {
  color: #fff !important;
}

@media (max-width: 600px) {
  #contact {
    padding: 7px 1vw 7px 1vw;
    max-width: 98vw;
  }
  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
  }
  .contact-info a {
    font-size: 0.93em;
    padding: 5px 7px;
  }
  .contact-info p {
    font-size: 0.91em;
    padding: 3px 3px;
  }
}
@media (max-width: 1024px) {
    nav {
        flex-direction: column; /* Stack navigation vertically */
        align-items: initial;
    }
    nav ul {
        flex-direction: column; /* Stack list items vertically */
        margin-top: 10px;
    }
    nav li {
        margin: 20px 0;
    }
    .course-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }
    #darkModeToggle {
        position: absolute;
        top: 1rem ;
        right: 1rem;
    }
}

.one_theth {
  display: flex;  
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
}
.one_theth h3 {
  margin: 0;
}
.one_theth p {
  margin: 0;
}



/* Teacher Management Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-buttons {
    text-align: center;
    margin-top: 20px;
}

.submit-btn, .cancel-btn {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.submit-btn {
    background-color: #007bff;
    color: white;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.cancel-btn {
    background-color: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background-color: #545b62;
}

/* أزرار تسجيل الدخول والتسجيل في قسم Exclusive Offers */
.auth-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.auth-buttons .cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.auth-buttons .login-btn {
    background: linear-gradient(90deg, #2193b0 0%, #6dd5ed 100%);
    color: white;
}

.auth-buttons .login-btn:hover {
    background: linear-gradient(90deg, #6dd5ed 0%, #2193b0 100%);
    transform: scale(1.07);
    box-shadow: 0 4px 18px 0 #2193b055;
}

.auth-buttons .signin-btn {
    background: linear-gradient(90deg, #2193b0 0%, #6dd5ed 100%);
    color: white;
}

.auth-buttons .signin-btn:hover {
    background: linear-gradient(90deg, #6dd5ed 0%, #2193b0 100%);
    transform: scale(1.07);
    box-shadow: 0 4px 18px 0 #2193b055;
}

/* Authentication Button Styles */
.auth-button-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.auth-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #6dd5ed 100%);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(30, 60, 114, 0.2);
}

.auth-btn:hover {
    background: linear-gradient(135deg, #6dd5ed 0%, #1e3c72 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
    color: #fff;
}

.auth-btn.logout-btn {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
}

.auth-btn.logout-btn:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #dc3545 100%);
}

.auth-btn.login-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.auth-btn.login-btn:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
}

.user-name-nav {
    color: #fff;
    font-weight: 600;
    font-size: 1em;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* تحسين شكل كروت المدرسين */
.teacher-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px 15px;
    margin: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    width: 150px;
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
    background-clip: padding-box;
    flex-shrink: 0;
}

.teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 15px;
    z-index: 1;
}

.teacher-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.3);
}

.teacher-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.teacher-card:hover img {
    border-color: rgba(255,255,255,0.6);
    transform: scale(1.1);
}

.teacher-card h4 {
    margin: 0 0 8px 0;
    font-size: 1em;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.teacher-card p {
    margin: 4px 0;
    color: rgba(255,255,255,0.9);
    font-size: 0.85em;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.teacher-card .subject {
    color: #ffd700;
    font-weight: 600;
    font-size: 0.9em;
}

.teacher-card .grade {
    color: rgba(255,255,255,0.8);
    font-size: 0.8em;
    font-style: italic;
}

/* تحسين شكل عرض المدرسين بدون صور */
.teacher-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px 20px;
    margin: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
    width: 150px;
    flex-shrink: 0;
}

.teacher-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 15px;
}

.teacher-info-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.3);
}

.teacher-details {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.teacher-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.teacher-subject {
    margin: 6px 0;
    font-size: 1em;
    opacity: 0.95;
    color: #ffd700;
    font-weight: 600;
}

.teacher-grade {
    margin: 6px 0;
    font-size: 0.85em;
    opacity: 0.85;
    font-style: italic;
}

/* تحسين شكل رسائل عدم وجود نتائج */
.no-result {
    text-align: center;
    padding: 25px;
    color: #666;
    font-style: italic;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 2px dashed #dee2e6;
}

/* صور المدرسين الجدد (new teachers) */
#newTeachers {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  gap: 18px;
  margin: 12px 0 18px 0;
}
#newTeachers .exclusive-teacher1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
}
#newTeachers .exclusive-teacher1 img {
  width: 250px;
  height: 250px;
  border-radius: 15%;
  object-fit: cover;
  margin-bottom: 8px;
  background: #f8f9fa;
  transition: filter 0.4s, transform 0.4s;
  box-shadow: none;
  border: none;
}
#newTeachers .exclusive-teacher1 img:hover {
  filter: grayscale(80%);
  transform: scale(1.08);
}
#newTeachers .exclusive-teacher1 h4 {
  font-size: 1.1em;
  margin: 0;
  color: #222;
}
#newTeachers .exclusive-teacher1 p {
  font-size: 0.95em;
  color: #1976d2;
  margin: 0;
}

/* فلترة المدرسين في قسم الكورسات */
.courses-filter {
    margin: 30px 0;
    text-align: center;
}

.filter-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    min-width: 200px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #2196f3;
}

.clear-btn {
    padding: 10px 20px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.clear-btn:hover {
    background: #d32f2f;
}

.teachers-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.select-message {
    text-align: center;
    color: #666;
    font-size: 18px;
    font-style: italic;
}

.teacher-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    text-align: center;
    transition: all 0.3s ease;
}

.teacher-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.teacher-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.teacher-subject {
    font-size: 14px;
    color: #666;
}

.no-teachers {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* تحسين التجاوب */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-select {
        min-width: 100%;
        max-width: 300px;
    }
}

/* قسم الكورسات - العنوان فقط */


/* إحصائيات المركز التعليمي */
.stats-container {
    padding: 60px 20px;
    background: linear-gradient(135deg, #2196f3 80%, #556be7 50%);
    margin: 40px 0;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 1);
}

.stat-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

.stat-number {
    font-size: 3.5em;
    font-weight: bold;
    color: #2196f3;
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
}

.stat-label {
    font-size: 1.2em;
    color: #666;
    font-weight: 500;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

.counting {
    animation: countUp 0.5s ease;
}

/* تحسين التجاوب */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-icon {
        font-size: 2.5em;
    }
    
    .stat-number {
        font-size: 2.5em;
    }
    
    .stat-label {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

html {
  scroll-behavior: smooth;
}

