/* ============== CSS Variables ============== */
:root {
  /* Colors */
  --primary-color: #001524;
  --secondary-color: #0B3B49;
  --background-dark: #0B3B49;
  --accent-color: #15616D;
  --s-light-color: #638F8E;
  --background-light: #B1BEB0;
  --light-color: #FFECD1;
  --orange-light: #FFB569;
  --orange-color: #FF7D00;
  --dark-S-color: #BC5308;
  --dark-color: #78290F;

  /* Fonts */
  --heading-font: 'Bebas Neue', sans-serif;
  --body-font: 'Raleway', sans-serif;

  /* Spacing */
  --section-padding: 50px 20px;
  --card-padding: 20px;
  --border-radius: 10px;

  /* Transitions */
  --transition-base: 0.25s ease;
  --transition-medium: 0.4s ease;
}

/* ============== Base Styles ============== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--body-font);
  background-color: var(--light-color);
  color: var(--primary-color);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-medium), color var(--transition-medium);
}

/* ============== Typography ============== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 400;
  color: var(--dark-color);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

/* ============== Layout Components ============== */
.section {
  padding: var(--section-padding);
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  margin: 20px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-medium);
}

.sec-diff {
  background-color: rgba(177, 190, 176, 0.25);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ============== Navigation ============== */
nav {
  background-color: var(--primary-color);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-base);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-link {
  color: var(--light-color);
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  position: relative;
  transition: all var(--transition-base);
}

.nav-link:hover {
  color: var(--orange-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--orange-light);
  transition: width var(--transition-base), left var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* ============== Buttons ============== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-family: var(--body-font);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--light-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-light {
  background-color: var(--light-color);
  color: var(--primary-color);
}

.btn-light:hover {
  background-color: #e8d9c1;
  transform: translateY(-3px);
}

/* ============== Cards ============== */
.card {
  background-color: var(--light-color);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-medium);
  margin-bottom: 20px;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: var(--card-padding);
}

.card-footer {
  background-color: transparent;
  border-top: none;
  padding: 0 var(--card-padding) var(--card-padding);
}

/* ============== Form Styles ============== */
.form-control {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all var(--transition-base);
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem rgba(21, 97, 109, 0.25);
}

.is-invalid {
  border-color: #dc3545 !important;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ============== Loading Screen ============== */
#content-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.spinner {
  border: 4px solid var(--accent-color);
  border-top: 4px solid var(--light-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============== Watermark ============== */
#watermark {
  position: fixed;
  opacity: 0.05;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#watermark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============== Stats Section ============== */
.stat-item {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-value {
  color: var(--accent-color);
  font-size: 2.5rem;
  font-weight: bold;
}

.stat-label {
  color: var(--secondary-color);
  font-weight: 500;
}

/* ============== Testimonials ============== */
.avatar-placeholder {
  width: 50px;
  height: 50px;
  background-color: var(--background-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============== Alert Messages ============== */
.alert {
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* ============== Dark Mode Styles ============== */
body.dark-mode {
  background-color: var(--background-dark);
  color: var(--light-color);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
  color: var(--orange-color);
}

body.dark-mode .card {
  background-color: var(--primary-color);
  color: var(--light-color);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .section {
  background-color: rgba(0, 21, 36, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .sec-diff {
  background-color: rgba(99, 143, 142, 0.2);
}

body.dark-mode .spinner {
  border-color: var(--orange-color);
  border-top-color: var(--background-dark);
}

body.dark-mode .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-color);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ============== Responsive Design ============== */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
  }

  .nav-menu {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  .section {
    margin: 10px 0;
    padding: 30px 15px;
  }

  .stat-item {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
  }
}


/* Courses Page Styles */
.courses-page {
    /* padding-top: 1px; */
}

.section-title {
    font-family: var(--heading-font);
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--orange-color);
}

/* Features Section */
.feature-card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: var(--light-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}

.feature-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.sub-features {
    list-style: circle;
    padding-left: 20px;
    margin-top: 10px;
}

/* Courses Section */
.courses-section {
    background-color: rgba(177, 190, 176, 0.25);
}

.course-card {
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.course-img-container {
    height: 180px;
    overflow: hidden;
}

.course-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover img {
    transform: scale(1.1);
}

.course-card .card-body {
    display: flex;
    flex-direction: column;
}

.course-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

/* Contact Section */
.contact-info {
    list-style: none;
    padding-left: 0;
}

.contact-info li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

/* Modal Styles */
.modal-content {
    border-radius: 10px;
    border: none;
}

.topics-list {
    list-style: none;
    padding-left: 0;
}

.topics-list li {
    padding: 5px 0;
}

.price .original-price {
    text-decoration: line-through;
    color: var(--orange-color);
    margin-right: 10px;
}

.price .discounted-price {
    color: var(--dark-color);
    font-weight: bold;
}

.features-list {
    list-style: none;
    padding-left: 0;
}

.features-list li {
    padding: 5px 0;
}