/* General Rules */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth; 
}

body {
  background: #0f172a;
  color: white;
  overflow-x: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 15px 5%;
    background: #0f172a;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    position: absolute; 
    left: 50%;
    transform: translateX(-50%); 
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}


@media (max-width: 768px) {
    .nav-links {
        position: static;
        transform: none;
        display: none; 
    }
}.logo {
  font-size: 24px;
  font-weight: 700;
  color: #38bdf8;
}

.nav-links a:hover {
  color: #38bdf8;
}

.buttons {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
  white-space: nowrap;
}

.whatsapp { background: #22c55e; color: white; }
.book { background: #38bdf8; color: #0f172a; }
.btn:hover { transform: scale(1.05); }

/* Hero Section */
.hero {
  text-align: center;
  padding: 200px 20px 100px; 
}

.hero h1 {
  font-size: clamp(32px, 8vw, 60px);
  color: #38bdf8;
}

/* Contact Section */
.contact-section {
  padding: 100px 20px;
  text-align: center;
  background: rgba(255,255,255,0.02);
}

.contact-section h2 {
  font-size: 36px;
  color: #38bdf8;
  margin-bottom: 50px;
}

.contact-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.contact-card {
  background: #1e293b;
  padding: 40px 20px;
  border-radius: 20px;
  width: 300px;
  transition: 0.3s;
  border: 1px solid rgba(255,255,255,0.05);
}

.contact-card:hover {
  transform: translateY(-10px);
  border-color: #38bdf8;
}

.contact-card i {
  font-size: 45px;
  color: #38bdf8;
  margin-bottom: 20px;
}

.contact-link {
  display: inline-block;
  margin-top: 15px;
  color: #38bdf8;
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid #38bdf8;
  border-radius: 5px;
}

/* Modal & Footer */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; transition: 0.3s;
  z-index: 2000;
}

.modal.active { opacity: 1; visibility: visible; }

.form-box {
  background: #1e293b;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
}

.form-box input, .form-box select {
  width: 100%; margin: 10px 0; padding: 12px;
  background: #0f172a; border: 1px solid #334155;
  color: white; border-radius: 8px;
}

footer {
  text-align: center;
  padding: 40px;
  background: #020617;
  font-size: 14px;
  color: #64748b;
}


.logo img {
  height: 80px; 
  width: auto;
  display: block;
  transition: 0.3s; 
}


.navbar {
  padding: 10px 5%; 
 
}

.contact-link {
    display: inline-block;
    margin-top: 15px;
    color: #38bdf8; 
    text-decoration: none;
    padding: 10px 25px;
    border: 1px solid #38bdf8;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease; 
}


.contact-link:hover {
    background-color: #ffffff; 
    color: #0f172a;            
    border-color: #ffffff;    
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); 
    transform: translateY(-3px); 
}
/* About Diploma Section */
.about-diploma {
    padding: 100px 5%;
    background-color: #0f172a;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #38bdf8;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 60px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    overflow: hidden; 
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s;
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: #38bdf8;
}

.info-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(30%); 
    transition: 0.4s;
}

.info-card:hover .info-img img {
    filter: grayscale(0%); 
}

.info-content {
    padding: 25px;
}

.info-content h3 {
    color: #38bdf8;
    margin-bottom: 15px;
    font-size: 22px;
}

.info-content p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 15px;
}
/* Enroll Now Section */
.enroll-now {
    padding: 100px 8%;
    background: linear-gradient(135px, #0f172a 0%, #1e293b 100%);
    color: white;
}

.enroll-container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap; /* عشان الموبايل */
}

.enroll-text {
    flex: 1;
    min-width: 300px;
}

.badge {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.enroll-text h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.enroll-text p {
    color: #94a3b8;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    margin-bottom: 40px;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.features-list i {
    color: #22c55e; 
    font-size: 20px;
}


.btn-primary {
    padding: 15px 35px;
    background: #38bdf8;
    color: #0f172a;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.4);
}


.enroll-images {
    flex: 1;
    position: relative;
    min-width: 300px;
    height: 450px;
}

.img-wrapper {
    border-radius: 20px;
    overflow: hidden;
    border: 5px solid #0f172a;
    position: absolute;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.main-img {
    width: 80%;
    z-index: 2;
    top: 0;
    left: 0;
}

.sub-img {
    width: 60%;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.img-wrapper {
    background: #1e293b; 
    min-height: 200px;   
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px; 
    padding: 8px 15px;
    font-size: 14px;
    border: 1px solid #38bdf8 !important;
    background: transparent;
    color: #38bdf8;
    cursor: pointer;
    transition: 0.3s;
}

.lang-btn:hover {
    background: #38bdf8;
    color: #0f172a;
    transform: scale(1.05);
}
/* للموبايل */
@media (max-width: 768px) {
    .enroll-images {
        height: 350px;
        margin-top: 40px;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

body.ar {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}


body.ar .nav-links {
    margin-right: 0;
    margin-left: auto;
    flex-direction: row-reverse;
}

body.ar .navbar {
    flex-direction: row; 
}

body.ar .nav-links {
    margin-right: auto; 
    margin-left: 20px;
    display: flex;
    gap: 20px;
}

body.ar .logo img {
   
    transform: none; 
}


.logo a {
    display: flex;
    align-items: center;
    min-width: 150px; 
}
/* Authority Section Styles */
.authority-section {
    padding: 80px 8%;
    background: #0f172a;
    border-top: 1px solid rgba(56, 189, 248, 0.1);
}

.authority-container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.authority-logo {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.authority-logo img {
    width: 100%;
    max-width: 350px; 
    height: auto;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.2)); 
}

.authority-text {
    flex: 1.5;
    min-width: 300px;
}

.authority-text h2 {
    color: #38bdf8;
    font-size: 32px;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.authority-text p {
    color: #94a3b8;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.year-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid #38bdf8;
    border-radius: 50px;
    font-weight: bold;
    font-size: 20px;
    margin-top: 10px;
}


body.ar .authority-container {
    flex-direction: row-reverse;
}

/* للموبايل */
@media (max-width: 768px) {
    .authority-container {
        text-align: center;
        flex-direction: column !important;
    }
    .authority-logo img {
        max-width: 250px;
        margin-bottom: 30px;
    }
    .authority-text h2 {
        font-size: 28px;
    }
    }
