/* style.css */
:root {
  /* Light Theme Colors */
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --accent-color: #4895ef;
  --text-color: #2b2d42;
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --footer-bg: #2b2d42;
  --footer-text: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  /* Dark Theme Colors */
  --primary-color: #4895ef;
  --secondary-color: #4361ee;
  --accent-color: #3f37c9;
  --text-color: #f8f9fa;
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --footer-bg: #0d0d0d;
  --footer-text: #e0e0e0;
  --nav-bg: rgba(30, 30, 30, 0.95);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: var(--transition);
}

.website-container {
  max-width: 100%;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  text-transform: capitalize;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

/* Header & Navigation */
.main-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--nav-bg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.logo img {
  height: 50px;
  width: auto;
  border-radius: 5px;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-list li {
  margin-left: 2rem;
}

.nav-list a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-list a:hover::after {
  width: 100%;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 1rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--primary-color);
}

/* Home Section */
.home {
  min-height: 100vh;
  padding: 8rem 5% 5rem;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.banner-desc {
  flex: 1;
  min-width: 300px;
  padding-right: 2rem;
}

.banner-desc h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.banner-desc p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.banner-img {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.banner-img-container {
  max-width: 500px;
  width: 100%;
}

.banner-img-container img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Section Styling */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 5%;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-color);
  opacity: 0.9;
}

/* Services Section */
.services {
  padding: 5rem 5%;
  background-color: var(--bg-color);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 5%;
}

.service-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.service-features {
  list-style: none;
  margin: 1.5rem 0;
}

.service-features li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.service-features i {
  color: var(--primary-color);
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.service-btn {
  width: 100%;
  margin-top: 1rem;
}

/* How It Works Section */
.how-it-works {
  padding: 5rem 5%;
  background-color: var(--card-bg);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  padding: 0 5%;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-color);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.step:hover {
  transform: translateY(-5px);
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.step-content h3 {
  color: var(--primary-color);
}

.cta-container {
  text-align: center;
  margin-top: 3rem;
}

/* Why Choose Us Section */
.why-choose-us {
  padding: 5rem 5%;
  background-color: var(--bg-color);
}

.benefits-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 5%;
}

.benefit-box {
  display: flex;
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.benefit-box:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 1.5rem;
}

.benefit-desc h3 {
  margin-bottom: 0.5rem;
}

/* Become Tutor Section */
.become-tutor {
  padding: 5rem 5%;
  background-color: var(--card-bg);
}

.qualification-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 5%;
  margin-bottom: 3rem;
}

.qualification-card {
  background-color: var(--bg-color);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.qualification-card:hover {
  transform: translateY(-5px);
}

.qual-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.qualification-card ul {
  list-style-position: inside;
  margin-top: 1rem;
}

.qualification-card li {
  margin-bottom: 0.8rem;
}

.application-process {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-color);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.application-process ol {
  text-align: left;
  display: inline-block;
  margin: 1.5rem 0;
}

.application-process li {
  margin-bottom: 0.8rem;
}

/* Meet The Team Section */
.meet-team {
  padding: 5rem 5%;
  background-color: var(--bg-color);
}

.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  padding: 0 5%;
}

.team-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-img {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.team-card:hover .team-img img {
  transform: scale(1.05);
}

.team-info {
  padding: 1.5rem;
}

.position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.email {
  color: var(--text-color);
  opacity: 0.8;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Testimonials Section */
.tutor-testimonials, .student-testimonials {
  padding: 5rem 5%;
  background-color: var(--card-bg);
}

.testimonial-container {
  padding: 0 5%;
}

.testimonial-item {
  background-color: var(--bg-color);
  border-radius: 10px;
  padding: 2rem;
  margin: 1rem;
  box-shadow: var(--shadow);
}

.tutor-info, .student-info {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.tutor-info img, .student-info img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1.5rem;
  border: 3px solid var(--primary-color);
}

.tutor-details span, .student-details span {
  display: block;
  color: var(--text-color);
  opacity: 0.8;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.rating {
  color: #ffc107;
  margin-top: 1rem;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 5%;
  background-color: var(--bg-color);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  text-align: left;
  background-color: var(--card-bg);
  border: none;
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--primary-color);
  color: white;
}

.faq-question i {
  transition: var(--transition);
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: var(--card-bg);
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 5rem 5% 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: var(--footer-text);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-col a:hover {
  opacity: 1;
  padding-left: 5px;
}

.contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.contact-info i {
  margin-right: 0.8rem;
  color: var(--primary-color);
  width: 20px;
}

.social-media {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.social-media a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.newsletter h4 {
  margin-bottom: 1rem;
  color: white;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 50px 0 0 50px;
  outline: none;
}

.newsletter-form button {
  border-radius: 0 50px 50px 0;
  padding: 0 1.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--primary-color);
  font-weight: 600;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  background-color: var(--card-bg);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  position: relative;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--primary-color);
}

.modal h2 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.modal p {
  margin-bottom: 2rem;
  color: var(--text-color);
  opacity: 0.8;
}

/* Form Styles */
.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem 1.5rem;
}

.form-group {
  flex: 1;
  min-width: 250px;
  margin: 0 1rem 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

input, select, textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
}

.subject-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.subject-checkboxes label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
}

.other-subject {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.other-subject input[type="text"] {
  flex: 1;
  margin-left: 0.5rem;
}

.form-footer {
  text-align: center;
  margin-top: 2rem;
}

.submit-btn {
  width: 100%;
  max-width: 300px;
  padding: 1rem;
  font-size: 1.1rem;
}

.form-note {
  font-size: 0.9rem;
  margin-top: 1rem;
  opacity: 0.7;
}



/* Owl Carousel Customization */
.owl-carousel .owl-stage {
  display: flex;
  align-items: stretch;
}

.owl-carousel .owl-item {
  height: auto;
}

.owl-carousel .testimonial-item {
  height: 100%;
}

.owl-nav {
  text-align: center;
  margin-top: 2rem;
}

.owl-prev, .owl-next {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 5px;
  transition: var(--transition);
}

.owl-prev:hover, .owl-next:hover {
  background-color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .banner-desc h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .menu-btn {
    display: flex;
  }
  
  .nav-list {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--nav-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav-list.active {
    left: 0;
  }
  
  .nav-list li {
    margin: 1.5rem 0;
  }
  
  .banner {
    flex-direction: column;
    text-align: center;
  }
  
  .banner-desc {
    padding-right: 0;
    margin-bottom: 3rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .banner-desc h1 {
    font-size: 2rem;
  }
  
  .form-row {
    flex-direction: column;
    margin: 0;
  }
  
  .form-group {
    margin: 0 0 1rem;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }


/* Scroll Animation Styles */
section {
  opacity: 0;
  transition: all 0.8s ease;
}

/* Different Animation Effects */
.fade-in { animation: fadeIn 0.8s ease forwards; }
.slide-left { animation: slideLeft 0.8s ease forwards; }
.slide-right { animation: slideRight 0.8s ease forwards; }
.zoom-in { animation: zoomIn 0.8s ease forwards; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Force exact two-column structure */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem; /* row-gap / column-gap */
}

/* Base alignment for all subject items */
.subject-label,
.other-label {
  display: flex;                /* simpler than nested grid here */
  align-items: center;          /* vertical center for box + text/input */
  gap: 0.5rem;                   /* consistent space between box and text/input */
  line-height: 1.2;              /* prevent tall line offset */
}

/* Uniform checkbox sizing */
.subject-label input[type="checkbox"],
.other-label input[type="checkbox"] {
  flex-shrink: 0;                /* stop checkbox from shrinking */
  width: 16px;
  height: 16px;
}

/* 'Other' text field style + alignment */
.other-label input[type="text"] {
  flex: 1;                       /* fill remaining space */
  min-width: 0;
  padding: 0.25rem 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Optional: match font & prevent wrapping misalignment */
.subject-label span,
.other-label span {
  display: inline-block;
  vertical-align: middle;
}
