/* ========= Root Variables ========= */
:root {
  --dark-blue: #0f172a;
  --light-blue: #1e293b;
  --green: #16a34a;
  --green-dark: #15803d;
  --gray-bg: #f3f4f6;
  --white: #ffffff;
  --font: Arial, sans-serif;
}

/* ========= Reset ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font);
  line-height: 1.6;
  background: var(--white);
  color: var(--dark-blue);
  scroll-padding-top: 80px; /* prevent header overlap */
}

/* ========= Header ========= */
.header {
  background: var(--dark-blue);
  color: var(--white);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}
.logo {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: bold;
  gap: 10px; /* space between logo and text */
}

.logo img {
  height: 40px; /* adjust size of logo */
  width: auto; /* keeps aspect ratio */
}

.menu {
  list-style: none;
  display: flex;
}
.menu li {
  margin-left: 20px;
}
.menu a {
  text-decoration: none;
  color: var(--white);
  font-weight: bold;
  transition: color 0.3s;
}
.menu a:hover {
  color: var(--green);
}
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
}

/* ========= Banner ========= */
.banner {
  text-align: center;
  padding: 100px 20px 60px;
  background: linear-gradient(to right, var(--dark-blue), var(--light-blue));
  color: var(--white);
}
.banner h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.banner p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--green);
  color: var(--white);
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}
.btn:hover {
  background: var(--green-dark);
}

/* ========= Courses Section ========= */
.courses-section {
  background: linear-gradient(to right, #f9fafb, var(--gray-bg));
  padding: 70px 20px;
  text-align: center;
}

.courses-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--dark-blue);
  position: relative;
}

.courses-section h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 5px;
  background: var(--green);
  margin: 15px auto 0;
  border-radius: 3px;
}

/* Course container scroll */
.courses-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;

  max-width: 1200px; /* control width */
  margin: 0 auto; /* center it */
}

@media (min-width: 900px) {
  .courses-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    overflow: visible;

    max-width: 1200px;
    margin: 0 auto;
  }
}

.courses-scroll::-webkit-scrollbar {
  height: 8px;
}
.courses-scroll::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 4px;
}

/* Course cards */
.card {
  flex: 0 0 280px; /* fixed width for scroll */
  padding: 30px 20px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: start;
  border: 2px solid #1e293b;
}

.card h3 {
  margin: 15px 0;
  color: var(--green);
}

.card .icon {
  font-size: 40px;
  margin-bottom: 15px;
  background: var(--green);
  color: var(--white);
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* On large screens → grid instead of scroll */
@media (min-width: 900px) {
  .courses-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    overflow: visible;
  }
  .card {
    flex: unset;
  }
}

/* ===== Faculty Section ===== */
.faculty-section {
  background: linear-gradient(to right, #f9fafb, var(--gray-bg));
  width: 100%;
  background: #f9fafb;
  padding: 80px 0;
}

.faculty-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.faculty-section h2 {
  font-size: 2.4rem;
  color: var(--dark-blue);
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}
.faculty-section h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 5px;
  background: var(--green);
  margin: 14px auto 0;
  border-radius: 3px;
}

/* Scroll container */
.faculty-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.faculty-scroll::-webkit-scrollbar {
  height: 8px;
}
.faculty-scroll::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 4px;
}

/* Faculty Card */
.faculty-card {
  flex: 0 0 280px; /* fixed width for scrolling */
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 24px 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  scroll-snap-align: start;
  border: 2px solid #1e293b;
}

.avatar {
  width: 130px;
  height: 130px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--green);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-card h3 {
  font-size: 1.15rem;
  margin: 8px 0 4px;
  color: #111827;
  font-weight: 700;
}
.faculty-card .subject {
  color: var(--green);
  font-weight: 600;
  margin-bottom: 6px;
}
.faculty-card .meta {
  color: #6b7280;
  font-size: 0.95rem;
}

/* ===== About Us Section ===== */

.about-section {
  background: linear-gradient(to right, #f9fafb, var(--gray-bg));
  width: 100%;
  padding: 80px 0;
}

.about-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 60px; /* bigger gap between left & right */
}

.about-image {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.about-image img {
  width: 100%;
  height: 350px; /* smaller image */
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.03);
  filter: brightness(0.9);
}

.about-extra {
  background: #f9f9f9;
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.about-extra p {
  margin-bottom: 12px;
}
.about-extra p:last-child {
  margin-bottom: 0;
}

.about-content {
  flex: 1.2;
  text-align: left;
}

.about-content h2 {
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 20px;
  position: relative;
}
.about-content h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  background: #2ecc71;
  margin-top: 10px;
  border-radius: 2px;
}

.about-content h3 {
  font-size: 1.3rem;
  color: #2ecc71;
  margin: 25px 0 15px;
}

.about-content p,
.about-content ul li {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
}

.about-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.about-content ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
}
.about-content ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #2ecc71;
  font-weight: bold;
  font-size: 1.1rem;
}

.contact-info .intro {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.contact-info p i {
  min-width: 22px; /* aligns icons neatly */
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    gap: 40px;
  }
  .about-image img {
    height: 220px;
  }
}

/* Contact Section */
.contact {
  background: linear-gradient(to right, #f9fafb, var(--gray-bg));
  padding: 70px 50px;
}

.contact-container {
  display: flex;
  align-items: stretch;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px; /* control width */
  margin: 0 auto;
}

.contact-info {
  flex: 1;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
  font-size: 28px;
  margin-bottom: 20px;
  position: relative;
  color: #222;
}

.contact-info h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: green;
  margin-top: 10px;
  border-radius: 2px;
}

.contact-info p {
  font-size: 17px;
  margin: 12px 0;
  color: #444;
  display: flex;
  align-items: center;
}

.contact-info i {
  color: green;
  margin-right: 10px;
  font-size: 18px;
}

.social-icons {
  margin-top: 20px;
}

.social-icons a {
  display: inline-block;
  margin-right: 15px;
  font-size: 24px;
  color: #555;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: green;
  transform: scale(1.2);
}

.contact-map {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  aspect-ratio: 16 / 9; /* Keep nice ratio */
  min-height: auto; /* Let aspect ratio control height */
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .contact {
    padding: 40px 0; /* remove side padding */
  }

  .contact-container {
    flex-direction: column;
    gap: 0; /* remove space between child divs */
  }

  .contact-info,
  .contact-map {
    flex: none;
    width: 100%; /* occupy full screen width */
    border-radius: 0; /* optional: edge-to-edge look */
  }
}

/* ========= Footer ========= */
.footer {
  background: var(--dark-blue);
  color: #fff;
  padding: 40px 20px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  text-align: left;
}

.footer h3,
.footer h4 {
  color: var(--green);
  margin-bottom: 15px;
}

.footer p,
.footer a {
  font-size: 15px;
  color: #ccc;
  text-decoration: none;
}

.footer a:hover {
  color: var(--green);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-social a {
  margin-right: 12px;
  font-size: 18px;
  color: #ccc;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: var(--green);
  transform: scale(1.2);
}

/* Bottom Bar */
.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  text-align: center;
  font-size: 14px;
  color: #aaa;
}

/* ========= Responsive ========= */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-about,
  .footer-links,
  .footer-contact {
    flex: 1;
  }
}

/* ========= Responsive ========= */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    background: var(--dark-blue);
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 15px;
    border-radius: 5px;
  }
  .menu.active {
    display: flex;
  }
  .menu li {
    margin: 10px 0;
  }
  .menu-toggle {
    display: block;
  }
}
