/* ========== GLOBAL ========== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  padding-top: 70px; /* Adjusted for removed flashbar */
}

h1, h2, h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

code, pre {
  font-family: 'Source Code Pro', monospace;
}

:root {
  --primary-color: #0B6623;     /* Deep forest green */
  --secondary-color: #1FAA59;   /* Vibrant medium green */
  --accent-color: #7CFC00;      /* Bright lime accent */
}


/* ========== NAVBAR ========== */
.main-nav {
  background: #0B6623; 
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--secondary-color) !important;
}

.nav-link {
  color: #f7f7f7 !important;
  font-weight: 500;
  margin: 0 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

/* Custom Toggler */
.custom-toggler {
  background-color: var(--primary-color) !important;
  border: none !important;
  border-radius: 5px;
  padding: 6px 10px;
}

.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.custom-toggler:focus,
.custom-toggler:active {
  outline: none !important;
  box-shadow: none !important;
}

/* ========== SEARCH BAR ========== */
.search-bar {
  --search-radius: 1.75rem; /* Rounded pill shape */
  --search-border: 1px solid #e3e8ef;
  --search-bg: #ffffff;

  max-width: 400px;
  width: 100%;
  border-radius: var(--search-radius);
  border: var(--search-border);
  background-color: var(--search-bg);
  box-shadow: 0 1px 2px rgba(18, 25, 33, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar:focus-within {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.search-bar .form-control {
  height: 40px;
  padding: 0.75rem 1.5rem;
  border: 0;
  background: transparent;
  border-radius: var(--search-radius); /* Match outer border */
  box-shadow: none;
}

.search-icon {
  color: #aaa;
  font-size: 1rem;
  pointer-events: none; /* Prevent it from capturing clicks */
}


.loginBtn,
.registerBtn {
  border-radius: 0.5rem; /* Less round than pill */
  font-weight: 500;
}

.loginBtn:hover {
  color: #116d04;
  border-color: white;
}

.registerBtn {
  background-color: #123803;
  border-color: #116d04;
  transition: background-color 0.15s, box-shadow 0.15s;
}


.registerBtn:hover {
  background-color: #068d55;
  border-color: #ffffff;
}

.auth-btn {
  width: 140px; /* or try 160px, depending on your layout */
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 500;
}


/* Large screen adjustment */
@media (min-width: 992px) {
  .navbar-collapse .search-bar {
    margin-left: 2rem;
  }
}

/* ========== INTERACTIONS ========== */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.icon-large {
  font-size: 3rem;
}

/* ========== HERO SECTION ========== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1fa93a 100%);
  padding: 160px 0 100px;
  color: white;
}


.gradient-text {
  background: linear-gradient(135deg, #0B6623, #1FAA59);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}


/* ========== CARD STYLES ========== */
.category-card {
  border: none;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.course-card {
  border: none;
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--primary-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer a {
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover,
.footer a:focus,
.footer a:active {
  color: #e0e0e0;
  text-decoration: underline;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  text-decoration: none !important;
}


.hover-scale {
  transition: transform 0.3s ease;
}
.hover-scale:hover {
  transform: scale(1.02);
}
.icon-square {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}


.accordion {
  --bs-accordion-border-width: 0;
  max-width: 800px;
  margin: 2rem auto;
}

.accordion-item {
  background: #fff;
  border-radius: 10px !important;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.accordion-button {
  background: #f8f9fa !important;
  border-radius: 10px !important;
  font-weight: 600;
  position: relative;
  padding-right: 3rem;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: #08640d !important;
  color: white !important;
  box-shadow: none;
}

.accordion-button:hover {
  background: #e9ecef !important;
}

.accordion-button:not(.collapsed):hover {
  background: #08640d !important;
}

.accordion-button::after {
  font-family: 'bootstrap-icons';
  content: "\f4fe"; /* plus-lg icon */
  font-size: 1.2rem;
  position: absolute;
  right: 1.5rem;
  transition: transform 0.3s ease;
  background-image: none !important;
}

.accordion-button:not(.collapsed)::after {
  content: "\f2ea"; /* dash-lg icon */
}

.accordion-body {
  color: #495057;
  line-height: 1.6;
  padding: 1rem 1.5rem;
}


.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: #08640d !important;
  border-radius: 50%;
  opacity: 0.9;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.testimonial-section {
  background-color: #f8f9fa;
}

.testimonial-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card i.fa-quote-left {
  opacity: 0.7;
}

.testimonial-card p {
  font-size: 1.125rem;
  color: #495057;
}

.job-title {
  color: #6c757d;
  font-size: 0.875rem;
}
/* Carousel Indicators */
.carousel-indicators {
  position: static;
  margin: 2rem 0 0;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #adb5bd;
  border: none;
  margin: 0 8px;
  transition: background-color 0.3s ease;
}

.carousel-indicators .active {
  background-color: #08640d !important;
  width: 12px;
  height: 12px;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 45px;
  height: 45px;
  background-color: #08640d !important;
  border-radius: 50%;
  opacity: 0.9;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
}

.carousel-control-prev {
  left: -25px;
}

.carousel-control-next {
  right: -25px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 70%;
  filter: invert(1);
}

/* Articles Section */
.articles-section {
  background-color: #f9f9fa;
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #6c757d;
  margin-bottom: 3rem;
}

/* Article Cards */
.article-card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
}

.article-img {
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-img {
  transform: scale(1.05);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 1rem;
}

.card-text {
  color: #495057;
  margin-bottom: 1.5rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #4299e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #1d6fa5;
}

.read-more i {
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(4px);
}


/* light horizontal separators */
hr.border-light {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero button hover */
#about-hero .btn-light:hover {
  background-color: rgba(255,255,255,0.9);
  color: #094b22;
}

/* Accordion override for values */
#values .accordion-button {
  font-weight: 600;
  color: #343a40;
}
#values .accordion-body {
  color: #495057;
}

/* News links hover */
#news a:hover {
  color: #4299e1;
  text-decoration: underline;
}

/* ensure Bootstrap’s gradient utility is available */
.bg-secondary.bg-gradient {
  background: linear-gradient(135deg, #4299e1 0%, #667eea 100%) !important;
}

/* if you want a softer overlay effect, you can also add: */
.bg-secondary.bg-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  pointer-events: none;
}
section.py-5 { position: relative; }


/* About page */
.builders-section {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  background: linear-gradient(
    rgba(248, 249, 250, 0.9),
    rgba(248, 249, 250, 0.9)
  );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 4rem 0;
}


.builders-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(173, 216, 230, 0.15); /* Light blue overlay */
  z-index: 1;
}

.text-primary {
  color: #2b6cb0 !important; /* Darker blue for better contrast */
}

.fs-2 {
  font-size: 2rem;
}

@media (min-width: 768px) {
  .fs-md-1 {
    font-size: 3rem;
  }
  .builders-section {
    min-height: 500px;
  }
}

.btn-success {
  background-color: #04491e;
  border-color: #4299e1;
  transition: all 0.3s ease;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(66, 153, 225, 0.3);
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.timeline-step {
  flex: 1;
  padding: 2rem;
  text-align: center;
  position: relative;
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -20%;
  width: 40%;
  height: 2px;
  background: #dee2e6;
}

.timeline-step:hover {
  transform: translateY(-5px);
}

.timeline-content {
  position: relative;
  z-index: 2;
}



.team-card {
  background: white;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.1);
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.avatar-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 0.5rem;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.avatar-wrapper:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .avatar-wrapper {
    height: 200px;
  }
}


.news-card {
  border: 1px solid rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-color: transparent;
}

.news-card h3 {
  color: #212529;
  transition: color 0.3s ease;
}

.news-card:hover h3 {
  color: #4299e1;
}


.newsletter-icon {
  transition: transform 0.3s ease;
}

.newsletter-icon:hover {
  transform: translateY(-5px);
}

.newsletter-form .form-control {
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
  border-color: #4299e1;
  box-shadow: none;
}


@media (max-width: 576px) {
  .input-group {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100% !important;
    border-radius: 0.5rem !important;
  }
}


.text-bg-container {
  background-color: rgba(0, 0, 0, 0.6); /* semi-transparent black */
  padding: 0.75rem 1rem; /* adjust padding as needed */
  border-radius: 0.5rem;
}


/* Services Section */
#services {
  background-color: #f8f9fa;
}

#services .service-icon {
  font-size: 3rem;
  color: #0d6efd;
}

.service-card {
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

#services .card-title {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

#services .card-text {
  font-size: 0.95rem;
  color: #6c757d;
}

#services ul {
  list-style: none;
  padding-left: 0;
}

#services ul li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

#services ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #0d6efd;
}

#services .btn-outline-primary {
  border-width: 2px;
}

#why-us i {
  color: #0d6efd;
}

#why-us .border {
  border-color: #eaeaea !important;
}

#why-us h5 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

#cta {
  background: linear-gradient(90deg, #0d6efd, #0a58ca);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#cta h2 {
  font-size: 2rem;
}

#cta .btn-light:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
}

.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.shadow-sm-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shadow-sm-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.rating i { margin-right: 2px; }

.hover-bg-light { transition: background-color 0.2s; }
    .hover-bg-light:hover { background-color: var(--bs-light); }
    .hover-lift { transition: transform 0.2s; }
    .hover-lift:hover { transform: translateY(-2px); }
    .rating { display: inline-flex; gap: 2px; }

.star {
      width: 30px;
      height: 30px;
      cursor: pointer;
      background: url('star-empty.png') no-repeat center center;
      background-size: contain;
  }
  
.star.hovered {
      background: url('star-filled.png') no-repeat center center;
      background-size: contain;
  }
