:root {
  --primary: #6E1F26;
  --dark: #2B2B2B;
  --light: #f8f9fa;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--light);
  color: var(--dark);
}

h1, h2, h3 {
  font-family: 'Raleway', sans-serif;
}

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

.btn-accent {
  background-color: var(--primary);
  color: #fff;
  border-radius: 0.25rem;
  padding: 0.75rem 1.5rem;
}

.btn-accent:hover {
  background-color: #4c141a;
}

.btn-outline-accent {
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000; /* fallback for loading or broken images */
  height: 100vh; /* full viewport height */
  max-height: 500px; /* optional: to cap huge screens */

}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-section .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;      /* vertically center content */
  align-items: center;          /* center horizontally */
  min-height: 80vh;
  padding-top: 3rem;            /* fine-tunes spacing from top */
  padding-bottom: 4rem;         /* prevents sticking to bottom */
  text-align: center;
}

/* Cards & Shadows */
.card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Testimonials Carousel */
.testimonial-card {
  max-width: 600px;
  margin: auto;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 2rem;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

footer {
  background: rgba(255, 255, 255, 0.2); /* semi-transparent white */
  backdrop-filter: blur(8px);           /* blur behind the footer */
  -webkit-backdrop-filter: blur(8px);   /* Safari support */
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 2rem 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.navbar .dropdown-menu {
  transition: opacity 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.navbar .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}
/* Hover dropdown for navbar */
.navbar .dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

.section-title {
  font-weight: 700;
  font-size: 2rem;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  margin: 8px auto 0;
  border-radius: 2px;
}

.services-section,
.training-section {
  background: #f4f7fb;
  padding: 5rem 0;
  border-radius: 1rem;
}

/* About Hero Section */
.about-hero {
  position: relative;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  text-align: center;
  color: #fff;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay */
  z-index: 0;
}

.about-hero .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

/* Section Title with Underline */
.section-title {
  font-family: 'Raleway', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* Mission & Vision Cards */
.about-section .card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: center;
}

.about-section .card:hover {
  transform: translateY(-5px);
}

.card-body {
  padding: 2rem;
}

.card-body i {
  background-color: rgba(218, 12, 29, 0.1); /* soft version of your brand red */
  padding: 1rem;
  border-radius: 0.5rem;
  display: inline-block;
}

/* Timeline Section */
.timeline {
  position: relative;
  border-left: 3px solid var(--primary);
  margin: 3rem auto;
  padding-left: 2rem;
  max-width: 800px;
}

.timeline-item {
  margin-bottom: 2.5rem;
  position: relative;
  padding-left: 1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -13px;
  top: 7px;
  width: 16px;
  height: 16px;
  background-color: var(--primary);
  border-radius: 50%;
}

.timeline-year {
  font-weight: bold;
  color: var(--primary);
  display: block;
  margin-bottom: 0.25rem;
}

/* CTA Section */
.about-cta {
  background: var(--primary);
  color: #fff;
  padding: 4rem 1rem;
  text-align: center;
}

.about-cta .btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.25rem;
}

/* Services Hero Banner */
.services-hero {
  position: relative;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  padding: 4rem 1rem;
}

.services-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.services-hero .container {
  position: relative;
  z-index: 1;
}

/* Service Card Style */
.service-card {
  border: none;
  border-radius: 0.75rem;
  background-color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* Training Hero Banner */
.training-hero {
  position: relative;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  padding: 4rem 1rem;
}

.training-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.training-hero .container {
  position: relative;
  z-index: 1;
}

/* Training Cards */
.training-card {
  border: none;
  border-radius: 0.75rem;
  background-color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.training-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.card-body .btn-outline-primary {
  border-radius: 0.25rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

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

/* Testimonials Hero */
.testimonials-hero {
  position: relative;
  min-height: 50vh;
  background-size: cover;
  background-position: center;
  padding: 4rem 1rem;
}

.testimonials-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.testimonials-hero .container {
  position: relative;
  z-index: 1;
}

/* Testimonial Card Style */
.testimonial-card i.bi-star,
.testimonial-card i.bi-star-fill {
  font-size: 1.2rem;
  margin: 0 1px;
}

.star-rating .star-label i {
  font-size: 1.4rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s ease;
}

.star-rating .star-label:hover i {
  color: #ffc107;
}
.star-display {
  font-size: 1rem;
  color: #ffc107;
  margin: 0 1px;
}

.testimonial-card p {
  font-size: 1.05rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.contact-hero .container {
  position: relative;
  z-index: 1;
}
