/* Import the fonts */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;700;900&family=Montserrat:wght@300;400;600&family=Lato:wght@300;400;700&display=swap");
/* Base Styles */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --text-light: #7f8c8d;
  --white: #fff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-heading: "Playfair Display", serif;
  --font-subheading: "Montserrat", sans-serif;
  --font-body: "Lato", sans-serif;
}

/* Application */
body {
  font-family: var(--font-body);
  line-height: 1.6;
}

h1,
h2,
h3,
.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
}

h4,
h5,
h6,
.hero h2,
.section-1a h2 {
  font-family: var(--font-subheading);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-weight: 900; /* Extra bold for main headline */
  letter-spacing: 0.5px;
}

.top-nav ul li a {
  font-family: var(--font-subheading);
  font-weight: 600;
}

blockquote,
.testimonial p {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: italic;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

.headies {
  text-align: center;
  margin-bottom: 2rem;
}

.headies h1 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* Navigation */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-logo {
  height: 50px;
}

.top-nav ul {
  display: flex;
  gap: 1.5rem;
}

.top-nav ul li a {
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.top-nav ul li a.active_tab {
  color: var(--accent-color);
  font-weight: 700;
}

.top-nav ul li a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.top-nav ul li a:hover:after {
  width: 100%;
}

.menutoggle {
  display: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  position: relative;
}

/* Hero Section */
.hero {
  display: flex;
  min-height: 80vh;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
}

.hero-1 {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 5%;
}

.hero-1 h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-1 h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-1 a {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
}

.hero-1 a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-2 {
  flex: 1;
  background: url("../img/math.jpg") center/cover no-repeat;
}

/* Section Styles */
.section-1 {
  display: flex;
  padding: 4rem 5%;
  gap: 2rem;
}

.section-1a {
  flex: 1;
}

.section-1a h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.section-1a p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: left;
}

.section-1a a {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
}

.section-1a a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.section-1b {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-1b img {
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.section-1b p {
  font-size: 1.2rem;
  font-weight: 500;
}

.section-1b p span {
  display: block;
  text-align: center;
  font-size: 1rem;
  color: var(--text-light);
}

/* Testimonials */
.section-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.section-2a {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.section-2a:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.section-2a img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.section-2a h3 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.section-2a p {
  font-style: italic;
  color: var(--text-light);
}

.quos {
  font-size: 2rem;
  line-height: 0;
  color: var(--primary-color);
}

/* Video Section */
.vintro {
  /*width: 100%; */
  max-width: 400px;
  display: block;
  margin: 0 auto 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.spa,
.spb {
  display: block;
  text-align: center;
}

.spa {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.spb {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.fcta {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 1rem 2.5rem;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
}

.fcta:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Forms */
.formsy {
  max-width: 600px;
  margin: 2em auto;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.formsy label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.formsy input,
.formsy textarea,
.formsy select {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.formsy input:focus,
.formsy textarea:focus,
.formsy select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.formsy textarea {
  min-height: 150px;
  resize: vertical;
}

.formsy button {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.formsy button:hover {
  background-color: var(--secondary-color);
}

.checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.checkbox-container input {
  width: auto;
  margin-right: 0.5rem;
  margin-bottom: 0;
}

/* About Page Specific */
.abs {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.abs:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.abs h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.dicon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-color);
  border-radius: 50%;
}

.dicon svg {
  width: 30px;
  height: 30px;
  color: var(--primary-color);
}

.values,
.goals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.values span,
.goals span {
  padding: 0.5rem 1rem;
  background-color: var(--light-color);
  border-radius: 50px;
  font-size: 0.9rem;
}

/* Enrol Page Specific */
.sh1 {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.simg {
  height: 200px;
  margin: 1rem 0;
  overflow: hidden;
  border-radius: 5px;
}

.simg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.simg:hover img {
  transform: scale(1.05);
}

.charg {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
}

.charg h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.charg span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Contact Page Specific */
.section-y {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.contas {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contas ul li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.contas ul li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contas ul li span {
  display: block;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.contas ul li a {
  color: var(--text-color);
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 3rem 5% 1rem;
}

.footsy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footsy h1 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footsy ul li {
  margin-bottom: 1rem;
}

.footsy ul li a {
  color: var(--light-color);
}

.foot-socials {
  text-align: center;
  margin: 2rem 0;
}

.foot-socials h2 {
  margin-bottom: 1.5rem;
}

.foot-socials ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.foot-socials ul li a {
  color: var(--white);
  font-weight: 500;
}

.footnote {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footnote ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footnote ul li {
  color: var(--light-color);
}

.footnote ul li a {
  color: var(--white);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
  }

  .hero-2 {
    min-height: 400px;
  }

  .section-1 {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .menutoggle {
    display: block;
  }

  .top-nav ul {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition);
  }

  .top-nav ul.active {
    left: 0;
  }

  .hero-1 h1 {
    font-size: 2.5rem;
  }

  .hero-1 h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
  }

  .headies h1 {
    font-size: 2rem;
  }

  .section-1a h1 {
    font-size: 2rem;
  }
}

/* Updated Section-2 Styles */
.section-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  align-items: stretch; /* Ensure cards stretch to same height */
}

/* Improved ABS Card Styles */
.abs {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure full height */
}

.abs:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Content Alignment Inside Cards */
.abs > div {
  margin-bottom: 1.5rem;
}

.abs > div:last-child {
  margin-bottom: 0;
}

.abs h1 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
  text-align: left;
}

.dicon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-color);
  border-radius: 50%;
}

.dicon svg {
  width: 30px;
  height: 30px;
  color: var(--primary-color);
}

/* Improved Paragraph Alignment */
.abs p {
  text-align: left;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 90%;
  color: var(--text-color);
}

/* Values/Goals Alignment */
.values,
.goals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.values span,
.goals span {
  padding: 0.6rem 1.2rem;
  background-color: var(--light-color);
  border-radius: 50px;
  font-size: 0.9rem;
  text-align: center;
  flex: 1 0 auto;
  min-width: 120px;
  max-width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .section-2 {
    grid-template-columns: 1fr;
  }

  .abs {
    padding: 1.5rem;
  }

  .abs p {
    max-width: 100%;
  }

  .values span,
  .goals span {
    min-width: 100px;
    padding: 0.5rem 1rem;
  }
}

p {
  text-align: center;
}

.flinks li {
  display: flex;
  gap: 1em;
  justify-content: space-between;
}

/* Hero Section Styles */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
    url("img/teach.webp") center/cover no-repeat;
  color: white;
  padding: 0 5%;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-family: var(--font-body);
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero .btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-family: var(--font-subheading);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0.5rem;
}

.hero .btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.hero .btn-primary:hover {
  background-color: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero .btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.hero .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero .btn {
    display: block;
    width: 80%;
    margin: 0.5rem auto;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

.alert {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 5px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-error p {
  margin: 0.5rem 0;
}

 /* WhatsApp Widget Styles */
  .whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
  }
  
  .whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
  }
  
  .whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
  }
  
  .tooltip {
    position: absolute;
    right: 70px;
    width: max-content;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .tooltip:before {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #333;
  }
  
  .whatsapp-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
  }
  
  /* Pulse Animation */
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
  }
  
  .whatsapp-btn {
    animation: pulse 2s infinite;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .whatsapp-widget {
      bottom: 20px;
      right: 20px;
    }
    
    .whatsapp-btn {
      width: 50px;
      height: 50px;
      font-size: 25px;
    }
    
    .tooltip {
      display: none;
    }
  }

  /* Mobile Menu Toggle Styles */
.menutoggle {
    display: none; /* Hidden by default on desktop */
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.menutoggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--secondary-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menutoggle span:nth-child(1) {
    top: 5px;
}

.menutoggle span:nth-child(2),
.menutoggle span:nth-child(3) {
    top: 13px;
}

.menutoggle span:nth-child(4) {
    top: 21px;
}

.menutoggle.active span:nth-child(1) {
    top: 13px;
    width: 0%;
    left: 50%;
}

.menutoggle.active span:nth-child(2) {
    transform: rotate(45deg);
}

.menutoggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

.menutoggle.active span:nth-child(4) {
    top: 13px;
    width: 0%;
    left: 50%;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menutoggle {
        display: block; /* Show only on mobile */
    }
    
    .top-nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: all 0.5s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }
    
    .top-nav ul.active {
        left: 0;
    }
    
    .top-nav ul li {
        margin: 1.5rem 0;
    }
    
    .top-nav ul li a {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }
}