/* ===== Base Styles ===== */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --text-light: #7f8c8d;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --font-main: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f8f9fa;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

p {
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-light {
  background-color: var(--light-color) !important;
}

.rounded {
  border-radius: 0.25rem !important;
}

.rounded-3 {
  border-radius: 0.5rem !important;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.d-flex {
  display: flex !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.align-items-center {
  align-items: center !important;
}

.gap-3 {
  gap: 1rem !important;
}

.w-100 {
  width: 100% !important;
}

.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: all var(--transition-speed);
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
}

.btn-primary {
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #1a252f;
  border-color: #1a252f;
}

.btn-outline-light {
  color: #f8f9fa;
  border-color: #f8f9fa;
}

.btn-outline-light:hover {
  color: #212529;
  background-color: #f8f9fa;
  border-color: #f8f9fa;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.badge {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.bg-danger {
  background-color: var(--accent-color) !important;
}

.alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.list-group {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
}

.list-group-item {
  position: relative;
  display: block;
  padding: 0.75rem 1.25rem;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.125);
}

.list-group-item-action {
  width: 100%;
  color: #495057;
  text-align: inherit;
}

.list-group-flush .list-group-item {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.list-group-flush .list-group-item:last-child {
  margin-bottom: -1px;
}

.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* ===== New Hero Slide Section ===== */
.hero-slide {
  position: relative;
  height: 100vh;
  max-height: 800px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.slide-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.slide-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--secondary-color);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.slide-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.slide-text {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.slide-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  transition: all var(--transition-speed);
}

.slide-btn:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  color: white;
}

.slide-nav {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-speed);
}

.slide-dot.active {
  background-color: white;
  transform: scale(1.3);
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  color: white;
  font-size: 1.5rem;
  transition: all var(--transition-speed);
}

.slide-arrow:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.slide-arrow-left {
  left: 2rem;
}

.slide-arrow-right {
  right: 2rem;
}

/* ===== About Section ===== */
.about-section {
  background-color: #fff;
  border-left: 4px solid var(--secondary-color);
}

/* ===== Latest Posts ===== */
.latest-posts .card {
  margin-bottom: 1.5rem;
  transition: transform var(--transition-speed);
}

.latest-posts .card:hover {
  transform: translateY(-5px);
}

.latest-posts .card-img-top {
  height: 180px;
  object-fit: cover;
}

.latest-posts .card-body {
  padding: 1.25rem;
}

.latest-posts .card-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.latest-posts .card-text {
  font-size: 0.9rem;
  color: var(--text-light);
}

.latest-posts .badge {
  margin-right: 0.5rem;
}

/* ===== Sidebar Sections ===== */
.sidebar-section {
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-color);
}

.list-group-item {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
}

.list-group-item:last-child {
  border-bottom: none;
}

/* ===== Training CTA ===== */
.signup-training {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.signup-training .btn-light {
  color: var(--primary-color);
}

.signup-training .btn-light:hover {
  background-color: #e2e6ea;
}

/* ===== FAQ Section ===== */
.faq-section {
  background-color: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
}

.accordion-button {
  font-weight: 600;
  padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: rgba(44, 62, 80, 0.05);
}

.accordion-body {
  padding: 1.25rem;
}

/* ===== Hover Effects ===== */
.hover-shadow {
  transition: box-shadow var(--transition-speed);
}

.hover-shadow:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

/* ===== Animations ===== */
.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animate__fadeInUp {
  animation-name: fadeInUp;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 992px) {
  .slide-title {
    font-size: 2.5rem;
  }
  
  .slide-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero-slide {
    height: 80vh;
  }
  
  .slide-title {
    font-size: 2rem;
  }
  
  .slide-text {
    font-size: 1rem;
  }
  
  .slide-content {
    padding: 0 1.5rem;
  }
  
  .slide-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .slide-arrow-left {
    left: 1rem;
  }
  
  .slide-arrow-right {
    right: 1rem;
  }
  
  .flex-wrap {
    flex-wrap: wrap;
  }
  
  .faq-section .d-flex {
    flex-direction: column;
  }
  
  #faqSearch {
    width: 100%;
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-slide {
    height: 70vh;
  }
  
  .slide-title {
    font-size: 1.8rem;
  }
  
  .slide-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .slide-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
  
  .sidebar-section {
    padding: 1rem;
  }
}

/* ===== Print Styles ===== */
@media print {
  .hero-slide,
  .sidebar-section,
  .signup-training {
    display: none !important;
  }
  
  body {
    background-color: #fff !important;
    color: #000 !important;
    font-size: 12pt;
  }
  
  a {
    color: #000 !important;
    text-decoration: underline !important;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
}