/*Nav*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  padding-top: 100px; /* Adjust depending on your header’s height */

}

.cta-btn {
  background-color: cyan;
  color: #072E33;
  align-content:flex-end;
  padding: 15px 20px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.5s ease-in-out;
  font-size: larger;
  margin-right: 20px;
  box-shadow: cyan 0px 0px 5px;
}

.logo {
  max-width: 70px;
  height: auto;
  vertical-align: middle;
  margin: 20px;
}

header {
  text-align: center;
  background-color: #0C7075;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  right: 0;
  padding: 20px;
  margin-bottom: 50px;
}

.nav-btn-Active {
    margin: 0 15px;
    align-content: space-evenly;
    text-decoration: underline;
    font-weight: bolder;
    color: cyan; 
    font-size: larger;
    text-shadow: cyan 0px 0px 5px;
}

.nav-btn {
  margin: 0 15px;
  align-content: space-evenly;
  text-decoration: none;
  font-weight: bolder;
  color: white;
  font-size: larger;
  transition: 0.5s ease-in-out;
}

.nav-btn:hover {
  color: cyan;
  transition: 0.5s ease-in-out;
  text-shadow: cyan 0px 0px 5px;
  font-weight: bolder;
  text-decoration: underline;
}

.cta-btn:hover {
  background-color: #072E33;
  color: cyan;
  transition: 0.5s ease-in-out;
  box-shadow: cyan 0px 0px 5px;
}

/* MAIN */

html {
  scroll-snap-type: y mandatory;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: white; 
}

section {
  scroll-snap-align: start;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color:#0C7075;
}

.section-courses {
  background-color:#0c70758d;
  padding: 50px 20px 60px; /* Top padding increased */
  text-align: center;
  scroll-snap-type: mandatory;
  margin-top: 150px;
}

.table-heading {
  font-size: 2rem;
  color: white;
  margin-bottom: 20px;
}

.table-intro {
  text-align:justify;
  font-size: 1rem;
  color: white;
  margin-bottom: 30px;
}

.table-container {
  overflow-x: auto; /* Makes it scrollable on small screens */
}

.course-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
}

.course-table thead {
  background-color:#0C7075;
  color: white;
}

.course-table th, 
.course-table td {
  padding: 15px 20px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.course-table tbody tr:hover {
  background-color:#0c707570;
  transition: background 0.3s ease;
  color: #0C7075;
}

.course-table td:first-child {
  font-weight: bold;
  color:#0C7075;
}

.course-table tr:last-child td {
  border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .course-table th, 
  .course-table td {
    padding: 10px;
    font-size: 0.9rem;
  }
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* SECTIONS */
.section-home {
  background-image: linear-gradient(to bottom right, #072E33, #0C7075);
  flex-direction: column;
}

.home-container {
  text-align: center;
  max-width: 55rem;
  height: 100%;
}

.section-home {
  height: auto;
}

.home-paragraph {
  font-size: 1.25rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.home-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  margin-bottom: 20px;
}
.btn-home {
  background-color: transparent;
  border: 2px solid cyan;
  color: cyan;
  transition: 0.5s ease-in-out;
}
.btn-home:hover {
  background-color: cyan;
  color: #072E33;
  box-shadow: cyan 0px 0px 10px;
}

/* Card Container Styles */
.card-container {
  text-align: center;
  max-width: 42rem;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-heading {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.card-paragraph {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.flex-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Individual Stat Block */
.stat-block {
  text-align: center;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/*Not displayed */
.divider {
  height: 2rem;
  width: 1px;
  display: none;
}

.instructor-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.instructor-img {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  border: 2px solid white;
  /* New image styles */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.instructor-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: white;
}

.instructor-title {
  font-size: 0.875rem;
}

.btn {
  background-color: transparent;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-size: 1.125rem;
  text-decoration: none;
  display: inline-block; 
}

/* Card Specific*/

/* Card 1: Algebra */
.section-algebra {
  background-image: linear-gradient(to bottom right, #45757f, #05161A);
}
.text-algebra-p { 
color: #dbeafe; 
}
.text-algebra-stats { 
color: #eff6ff;
}
.divider-algebra { 
background-color: #93c5fd; 
}
.img-algebra {
  background-image: url('Instructors/Judy.jpg');
}
.text-algebra-title {
  color:#0C7075;
}
.btn-algebra { 
  background-color: transparent;
  border: 2px solid cyan;
  color: cyan;
  transition: 0.5s ease-in-out;
}
.btn-algebra:hover {
  background-color: cyan;
  color: #072E33;
  box-shadow: cyan 0px 0px 10px
}

/* Card 2: Geometry */
.section-geometry {
  background-image: linear-gradient(to bottom right, #072E33, #047857);
}
.text-geometry-p { 
color: white;
}
.text-geometry-stats { 
color: #eef2ff;
}
.divider-geometry { 
background-color: #c7d2fe;
}
.img-geometry {
  background-image: url('Instructors/Andiswa.jpg'); 
}
.text-geometry-title { 
color:#029b70;
}
.btn-geometry { 
  background-color: transparent;
  border: 2px solid cyan;
  color: cyan;
  transition: 0.5s ease-in-out;
}
.btn-geometry:hover {
  background-color: cyan;
  color: #072E33;
  box-shadow: cyan 0px 0px 10px
}

/* Card 3: Functions */
.section-functions {
  background-image: linear-gradient(to bottom right, #18261e, #0b4363);
}
.text-functions-p { 
color: white;
}
.text-functions-stats {
  color: white;
  }
.divider-functions { 
background-color: #a7f3d0; 
}
.img-functions {
  background-image: url('Instructors/Rama.jpg'); 
}
.text-functions-title { 
color:#0C7075; 
}
.btn-functions { 
  color: #2563eb;
  background-color: transparent;
  border: 2px solid cyan;
  color: cyan;
  transition: 0.5s ease-in-out;
}
.btn-functions:hover {
  background-color: cyan;
  color: #072E33;
  box-shadow: cyan 0px 0px 10px
}

/* Card 4: Trigonometry */
.section-trigonometry {
  background-image: linear-gradient(to bottom right, #0C7075, #054f53);
}
.text-trigonometry-p { 
color: #fce7f3;
}
.text-trigonometry-stats { 
color: white;
}
.divider-trigonometry { 
background-color: #fbcfe8; 
}
.img-trigonometry {
  background-image: url('Instructors/Bri.jpg');
}
.text-trigonometry-title { 
color:#13a1a8;
}
#Trigonometry-heading {
  color: #072E33;
}
.btn-trigonometry { 
  color: #2563eb;
  background-color: transparent;
  border: 2px solid cyan;
  color: cyan;
  transition: 0.5s ease-in-out;
}
.btn-trigonometry:hover {
  background-color: cyan;
  color: #072E33;
  box-shadow: cyan 0px 0px 10px
}

/* Card 5: Finance */
.section-finance {
  background-image: linear-gradient(to bottom right, rgb(28, 170, 170), #0C7075);
}
.text-finance-p { 
color: white;
}
.text-finance-stats { 
color: White;
}
.divider-finance {
  background-color: #fbcfe8; 
  }
.img-finance {
  background-image: url('Instructors/Noma.jpg');
}
.text-finance-title { 
color: #052829; 
}

#finance-heading {
  color:#094648;
}

.btn-finance { 
  color: #2563eb;
  background-color: transparent;
  border: 2px solid cyan;
  color: cyan;
  transition: 0.5s ease-in-out;
}
.btn-finance:hover {
  background-color: cyan;
  color: #072E33;
  box-shadow: cyan 0px 0px 10px
}

/*FOOTER*/

.footer {
  background-color: #0C7075;
  color: #FFFFFF;
  padding: 40px 20px;
}
 
footer {
  display: block; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center; 
  text-align: center;
  scroll-snap-align: start;
  height: auto; 
  padding-top: 40px; 
}
    
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-col h3 {
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 2px solid #fff;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-col p,
.footer-col ul {
  font-size: 14px;
  line-height: 1.5;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.5s;
}

.footer-col ul li a i {
  padding-right: 5px;
}

.footer-col ul li a:hover {
  color: cyan;
  font-weight: bold;
  transition: color 0.5s;
}

.footer-logo {
  width: 60px;
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
}

.Legal-docs {
    color: white;
    text-decoration: none;
}

.Legal-docs:hover {
    color: cyan;
    transition: 0.5s ease-in-out;
    box-shadow: cyan 0px 0px 5px;
}

/*CREDITS FOOTER*/

.team-credit {
    margin-top: 3rem;
    padding: 2rem;
    background:linear-gradient(to top,rgba(5, 22, 26, 0.7),#0C7075);
    border-radius: 10px;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.team-member {
    padding: 0.8rem;
    background: #6ae1e7;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.member-name {
    display: block;
    font-weight: bold;
    color: #2c3e50;
}

.member-role {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.credit-note {
    font-style: italic;
    color: #495057;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Icons */
.close-icon, .open-icon {
  display: none;
}

/* RESPONSIVE DESIGN */
/* ---------- Tablet View (<=1024px) ---------- */
@media (max-width: 1024px) {
  .close-icon, .open-icon {
  display: none;
  }

  header {
    flex-direction: column;
    align-items: center;
    padding-bottom: 30px;
  }

  .nav-btn {
    margin: 10px;
    padding: 15px 0;
  }

  .cta-btn {
    margin-top: 20px;
  }

   .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) and (min-width: 701px) {
  .container {
    justify-content: center;
  }

  .form-section, .details-section {
    flex: 1 1 45%; /* Two side by side */
  }

  .map-section {
    flex: 1 1 100%; /* Full width underneath */
  }
}

/* ---------- Mobile View (<=700px) ---------- */
@media (max-width: 700px) {
  /* Footer responsiveness */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    margin: auto;
  }

  .cta-btn {
    font-size: 1em;
    padding: 10px 15px;
    margin-right: 15px;
  }

  /* Icons */
  .close-icon,
  .open-icon {
    display: block;
    color: white;
    margin: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    border: #072e33 solid 2px;
    border-radius: 5px;
    padding: 5px;
    background-color: #072e33;
  }

  .close-icon,
  .open-icon:hover {
    background-color: cyan;
    color: #072e33;
    border: cyan solid 2px;
    transition: 0.3s ease-in-out;
  }

  /* Header layout */
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    z-index: 1002;
  }

  .logo {
    max-width: 70px;
    padding: 0;
    margin: 0;
  }

  header h1 {
    font-size: 30px;
    margin: 0;
    padding: 10px 0;
  }

  /* NAV MENU OVERLAY */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 30%;
    height: 100vh; /* full screen */
    background-color: #0C7075;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;
    z-index: 1000;
    box-shadow: cyan 0px 0px 8px;
  }

  .container {
    flex-direction: column;
    align-items: center;
    margin-top: 200px;
  }

  nav.active {
    transform: translateY(0);
  }

  nav.active {
    transform: translateX(0);
  }

  .nav-btn {
    color: white;
    font-size: 1rem;
    padding: 10px;
  }
  .close-icon {
    display: none; /* Hide close icon by default */
  }

  /* Smooth icon toggle */
  .open-icon,
  .close-icon {
    transition: opacity 0.3s ease;
  }
}
