/* -------------------- */
/* About Us Page Specific */

/* Hero Section for About Us */
/* Hero Section */
.hero {
    height: calc(100vh - 90px); /* full viewport minus header */
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-image: url('images/hero-bg.jpg'); /* correct relative path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 90%;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 46px;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* -------------------- */
/* About Section */
.about-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 60px 60px;
}

.about-text {
    flex: 1 1 500px;
    color: #cbd5e1;
    line-height: 1.7;
}

.about-text h2 {
    font-size: 32px;
    color: #FFD700;
    margin-bottom: 20px;
}

.about-image {
    flex: 1 1 500px;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
}

/* -------------------- */
/* Mission & Vision Section */
.about-section:nth-of-type(2) {
    background: #0f1a3b;
    color: #cbd5e1;
    padding: 60px 60px;
}

.about-section:nth-of-type(2) h2 {
    color: #FFD700;
    font-size: 28px;
    margin-bottom: 15px;
}

/* -------------------- */
/* Why Choose Us Section */
/* Add space between heading and cards in What We Offer section */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px 60px 100px; /* top 20px gives a bit of space from heading */
    justify-items: center;
    align-items: stretch;
}

/* Cards inherit styling from homepage */

/* -------------------- */
/* -------------------- */
/* Our Accreditation Section */
/* Our Accreditation Section with white background */
.accreditation-grid.white-bg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    padding: 40px 60px;
    justify-items: center;
    align-items: center;
    background: #ffffff; /* white background */
    border-radius: 12px; /* optional: rounded corners for style */
}

/* Images inside accreditation cards */
/* Our Accreditation Images Container with white background */
/* Our Accreditation Images Container with full-width white background */
.accreditation-grid.white-bg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;               /* space between images */
    padding: 20px 0;         /* minimal top/bottom padding */
    justify-items: center;
    align-items: center;
    width: 100%;             /* full width */
    background: #ffffff;     /* clean white background */
    box-shadow: none;         /* remove any shadow/edges */
    border-radius: 0;        /* remove box rounding */
}

/* Accreditation card images */
.accreditation-card img {
    max-width: 120px;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accreditation-card img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Ensure heading sticks with previous section */
.section-heading {
    margin-top: 0;
    margin-bottom: 0;
}
/* Ensure heading is flush with previous section */
.section-heading {
    margin-top: 0;
    margin-bottom: 0;  /* no extra space below heading */
}/* -------------------- */
/* CTA Section */
.cta {
    background: linear-gradient(135deg, #FFD700, #e6b800);
    color: #081229;
    padding: 60px 20px;
    text-align: center;
    font-weight: bold;
}

.cta .btn {
    margin-top: 20px;
}

/* -------------------- */
/* Responsive */
@media (max-width: 900px) {
    .about-section {
        flex-direction: column;
        padding: 40px 20px;
    }
    .offer-grid {
        padding: 0 20px 60px;
    }
    .accreditation-grid {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 34px;
    }
    .about-text h2 {
        font-size: 28px;
    }
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

header .logo img {
  max-width: 150px;
  height: auto;
}

/* Desktop menu */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
}

/* Dropdown menu */
nav ul li .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #0f1a3b;
  display: none;
  flex-direction: column;
  min-width: 200px;
  border-radius: 6px;
  padding: 10px 0;
}

nav ul li:hover .dropdown {
  display: flex;
}

/* ------------------- */
/* Mobile styles */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    display: none; /* hide menu initially */
    gap: 0;
    background: #0f1a3b;
    width: 100%;
    position: absolute;
    top: 70px; /* below header */
    left: 0;
    padding: 20px 0;
  }

  nav ul li {
    width: 100%;
    text-align: center;
  }

  nav ul li .dropdown {
    position: static;
    display: none;
    background: none;
    padding: 0;
  }

  /* Hamburger button */
  .hamburger {
    display: block;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
  }

  .hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    display: block;
  }

  nav.active ul {
    display: flex;
  }
}