/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom, #eef2f0, #e4ebe7);
  color: #1c1c1c;
  line-height: 1.6;
}

.container {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  margin: 40px auto;
}

/* ===== Carousel ===== */
.carousel-container {
    width: 100%;
    max-width: 600px;
    height: 350px;
    margin: 30px auto;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

/* ===== Header et Hamburger ===== */
.header {
    background-color: #1E3A8A; /* اللون الجديد للأستاذ */
    color: white;
    padding: 15px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 15px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav a:hover {
    background-color: white;
    color: #1E3A8A;
}

/* Hamburger button */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        flex-direction: column;
        background-color: #1E3A8A; 
        width: 100%;
        text-align: center;
        padding: 10px 0;
        margin-top: 10px;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        margin: 5px 0;
        padding: 10px 0;
    }
}

/* ===== Carousel Slide ===== */
.carousel-slide {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 0 0 100%;
}

/* ===== Buttons ===== */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(30,58,138,0.6);
    color: white;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    z-index: 10;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.prev-btn:hover,
.next-btn:hover {
    background-color: #12255a;
}

/* ===== Section Title ===== */
.section-title {
    text-align: center;
    margin: 40px 0 20px;
    color: #1E3A8A;
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.service-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.service-card h3 {
    color: #1E3A8A;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 15px;
    color: #555;
}

.duration {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #12255a;
}

/* ===== Form Styling ===== */
.service-form,
.contact-form {
    max-width: 500px;
    margin: auto;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.service-form input,
.service-form select,
.service-form textarea,
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #c8d6cf;
    background-color: #f9fbfa;
    font-size: 15px;
    transition: all 0.3s ease;
}

.service-form input:focus,
.service-form select:focus,
.service-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1E3A8A;
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(30,58,138,0.2);
}

.service-form button,
.contact-form button,
button {
    width: 100%;
    padding: 12px;
    background-color: #1E3A8A;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.service-form button:hover,
.contact-form button:hover,
button:hover {
    background-color: #12255a;
    transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero,
.contact-hero {
    background: linear-gradient(rgba(30,58,138,0.8), rgba(30,58,138,0.8)),
                url('poul1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero h2,
.contact-hero h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.hero p,
.contact-hero p {
    font-size: 18px;
    margin-bottom: 25px;
}

.hero-btn {
    background: white;
    color: #1E3A8A;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.hero-btn:hover {
    background: #12255a;
    color: white;
}

/* ===== Features ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    font-weight: bold;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* ===== Stats ===== */
.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
    margin: 15px;
}

.stat h3 {
    font-size: 32px;
    color: #1E3A8A;
}

/* ===== CTA ===== */
.cta {
    background: #1E3A8A;
    color: white;
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.cta h3 {
    margin-bottom: 15px;
}

/* ===== About Page ===== */
.about-intro {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  margin-bottom: 15px;
  color: #1E3A8A;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.mission-vision {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
}

.mission-vision .box {
  flex: 1;
  background: #f4f9f4;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
}

.mission-vision h3 {
  margin-bottom: 10px;
  color: #1E3A8A;
}

.why-us h2 {
  margin-bottom: 20px;
  color: #1E3A8A;
}

.why-us li {
  background: #ffffff;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ===== Footer ===== */
.footer {
  background-color: #1E3A8A;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.footer p {
  margin: 5px 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .carousel-container {
      height: 220px;
  }
  .about-intro,
  .mission-vision {
    flex-direction: column;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
}