/* Global Styles */
:root {
  --primary: #0062b0;
  --secondary: #00a0e3;
  --accent: #64d6ff;
  --light: #f5f9fc;
  --dark: #333;
  --success: #4caf50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  color: var(--dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--primary);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary);
  color: white;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.section-title p {
  color: #777;
  max-width: 700px;
  margin: 0 auto;
}

/* Page Header */
.page-header {
  background: linear-gradient(rgba(0, 98, 176, 0.8), rgba(0, 160, 227, 0.8)),
    url("website_header.webp") center/cover no-repeat;
  color: white;
  padding: 150px 0 80px;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

/* About Intro Section */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-intro-img img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-intro-content h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-intro-content p {
  margin-bottom: 20px;
}

/* Stats Section */
.stats {
  background-color: var(--light);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

/* Mission and Vision */
.mission-vision {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.mission,
.vision {
  background: var(--light);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.mission h3,
.vision h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
  text-align: center;
}

.mission-icon,
.vision-icon {
  font-size: 3rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 20px;
}

/* History Timeline */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background-color: var(--primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid var(--primary);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-left {
  left: 0;
}

.timeline-right {
  left: 50%;
}

.timeline-right::after {
  left: -16px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-year {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.team-photo {
  height: 250px;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  padding: 20px;
}

.team-info h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.team-position {
  color: #777;
  font-style: italic;
  margin-bottom: 15px;
}

/* Certifications Section */
.certifications {
  background-color: var(--light);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
}

.cert-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cert-logo {
  /* height: 100px; */
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-logo img {
  max-height: 100%;
}

/* CTA Section */
.cta {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn {
  background: white;
  color: var(--primary);
}

.cta .btn:hover {
  background: var(--light);
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--secondary);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.social-icon:hover {
  background: var(--secondary);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .about-intro {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission-vision {
    grid-template-columns: 1fr;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item::after {
    left: 15px;
  }

  .timeline-right {
    left: 0;
  }
}

@media (max-width: 500px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.hidden {
  display: none !important;
}

/* Overlay for mobile menu */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.overlay.active {
  display: block;
}

/* Enhanced Responsive Styles */
@media (max-width: 992px) {
  /* Medium devices (tablets) */
  .page-header h1 {
    font-size: 2.5rem;
  }

  .section-title h2,
  .about-intro-content h2 {
    font-size: 2.2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission-vision {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .mission h3,
  .vision h3 {
    font-size: 1.7rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  /* Small devices (landscape phones) */

  /* Page Header */
  .page-header {
    padding: 100px 0 50px;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  /* About Intro Section */
  .about-intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-intro-img {
    order: 2;
  }

  .about-intro-content {
    order: 1;
  }

  .about-intro-content h2 {
    font-size: 2rem;
  }

  /* Stats Section */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-item {
    padding: 20px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  /* Mission and Vision Section */
  .mission-vision {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .mission,
  .vision {
    padding: 30px;
  }

  .mission h3,
  .vision h3 {
    font-size: 1.8rem;
  }

  /* Timeline Section */
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    margin-bottom: 20px;
  }

  .timeline-item::after {
    left: 15px;
  }

  .timeline-right {
    left: 0;
  }

  .timeline-content {
    padding: 15px 20px;
  }

  .timeline-year {
    font-size: 1.3rem;
  }

  /* Team Section */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .team-photo {
    height: 200px;
  }

  .team-info h3 {
    font-size: 1.3rem;
  }

  /* Certifications Section */
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTA Section */
  .cta h2 {
    font-size: 2rem;
  }

  .cta .btn {
    display: block;
    width: 80%;
    margin: 0 auto;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Sections */
  .section {
    padding: 50px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }
}

@media (max-width: 576px) {
  /* Extra small devices (portrait phones) */

  /* Typography */
  .page-header h1 {
    font-size: 1.8rem;
  }

  .section-title h2,
  .about-intro-content h2 {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Stats Section */
  .stats-grid {
    grid-template-columns: 1fr;
  }

  /* Team Section */
  .team-grid {
    grid-template-columns: 1fr;
  }

  /* Certifications Section */
  .cert-grid {
    grid-template-columns: 1fr;
  }

  /* CTA Section */
  .cta h2 {
    font-size: 1.7rem;
  }

  .cta .btn {
    width: 100%;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }

  /* Timeline */
  .timeline-content {
    padding: 15px;
  }

  /* Sections */
  .section {
    padding: 40px 0;
  }
}
