@import url(https://fonts.googleapis.com/css?family=Montserrat:400,600,700|Open+Sans:400,400i,600);

/* --- GLOBAL RESETS & TYPOGRAPHY --- */
body {
  padding-top: 110px; 
  background: #fdfdfd;
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 15px;
}

a {
  color: #F9690E;
  transition: all 0.3s ease;
}
a:hover {
  color: #d35400;
  text-decoration: none;
}

/* --- BUTTONS --- */
.btn {
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  padding: 12px 25px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #F9690E;
  color: #fff;
  box-shadow: 0 4px 6px rgba(249, 105, 14, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
  background: #e65e0b;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(249, 105, 14, 0.4);
}

.pulse-button {
  animation: pulse-orange 2s infinite;
}
@keyframes pulse-orange {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 105, 14, 0.7); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(249, 105, 14, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 105, 14, 0); }
}

/* --- NAVIGATION --- */
.navbar-default {
  background: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 10px 0;
}
/* FIX: Tighten the logo container so it doesn't hang low */
.navbar-brand {
    padding: 10px 15px; /* Reduced top/bottom padding */
    height: auto;
}

.navbar-brand img {
  height: 50px; /* Slightly smaller to fit the bar perfectly */
  width: auto;
  margin-top: -5px; /* Pulls the logo up visually to center it */
}
.navbar-nav > li > a {
  color: #444 !important;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-size: 13px;
}
.navbar-nav > li.active > a, .navbar-nav > li > a:hover {
  color: #F9690E !important;
  background: transparent !important;
}
.login-btn {
  border: 1px solid #F9690E;
  border-radius: 4px;
  padding: 5px 15px !important;
  margin-top: 10px;
  color: #F9690E !important;
}
.login-btn:hover {
  background: #F9690E !important;
  color: #fff !important;
}

/* --- HERO SECTION (Refined) --- */
#hero-banner {
  position: relative;
  height: auto;
  min-height: 650px;
  padding: 80px 0;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* The Background Image Setup */
#hero-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  
  /* 1. Gradient: Dark on left (for text), transparent on right (to see the inspector)
     2. Image: Standard positioning
  */
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.2) 100%), url('../images/inspection.jpg');
  
  background-size: cover;
  background-position: center;
  /* Removed the mirror scaleX(-1) to keep the original photo composition natural */
  z-index: -1;
}

.hero-content {
    padding-right: 30px;
}
.hero-content h1 {
  font-size: 46px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  margin-bottom: 20px;
}
.hero-content h1 span {
  color: #F9690E;
}
.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  font-weight: 400;
  opacity: 0.95;
}
.hero-check-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}
.hero-check-list li {
  font-size: 18px;
  margin-bottom: 12px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-check-list li i {
  color: #F9690E;
  margin-right: 10px;
}

/* Hero Pricing Card */
.hero-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4); /* Deeper shadow for pop */
  text-align: center;
  color: #333;
  position: relative;
  margin-top: 20px;
  border: 4px solid rgba(255,255,255,0.2); /* Glass effect border */
  background-clip: padding-box;
}
.best-value-ribbon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #2ecc71; 
  color: #fff;
  padding: 5px 20px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.hero-card h3 {
  font-size: 20px;
  margin-top: 10px;
  color: #555;
}
.price-tag {
  margin: 15px 0;
}
.price-tag .old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 18px;
  display: block;
}
.price-tag .new-price {
  color: #F9690E;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}
.hero-card .guarantee-text {
  font-size: 12px;
  color: #777;
  margin-top: 15px;
}

/* --- TRUST BAR --- */
#trust-bar {
  background: #fff;
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}
.trust-item i {
  font-size: 36px;
  color: #F9690E;
  margin-right: 15px;
}
.trust-text h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.trust-text p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

/* --- COURSE PACKAGE --- */
#package-section {
  padding: 80px 0;
  background: #f9f9f9;
}
.package-container {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  border: 1px solid #e1e1e1;
}
.package-header {
  background: #333;
  color: #fff;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.package-header h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
}
.package-header .pkg-price {
  font-size: 28px;
  font-weight: 700;
  color: #F9690E;
}
.package-body {
  padding: 30px;
}
.course-list-styled {
  list-style: none;
  padding: 0;
  columns: 2; 
  -webkit-columns: 2;
  -moz-columns: 2;
}
.course-list-styled li {
  margin-bottom: 15px;
  break-inside: avoid;
}
.course-list-styled li a {
  display: block;
  color: #555;
  font-weight: 600;
  padding: 8px;
  border-radius: 4px;
  background: #f4f4f4;
  font-size: 14px;
}
.course-list-styled li a:hover {
  background: #F9690E;
  color: #fff;
}
.course-list-styled li a i {
  margin-right: 8px;
}

/* --- TESTIMONIALS (Fixed for 2 items) --- */
#testimonials {
  padding: 80px 0;
  background: #fff;
}
.testimonial-box {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid #eee; /* Slight border to frame them */
  border-radius: 8px;
  margin: 10px;
  background: #fcfcfc;
}
.stars {
  color: #f1c40f;
  font-size: 20px;
  margin-bottom: 15px;
}
.quote-text {
  font-style: italic;
  font-size: 17px;
  color: #555;
  line-height: 1.6;
}
.quote-author {
  font-weight: 700;
  margin-top: 15px;
  color: #333;
}

/* --- INDIVIDUAL COURSES --- */
#individual-courses {
    padding-bottom: 60px;
}

/* FIX: Use Flexbox to cure the "Gap" issue in the grid */
#individual-courses .row {
  display: flex;
  flex-wrap: wrap;
}

/* Optional: Ensure columns don't collapse in weird ways on older browsers */
#individual-courses .row > [class*='col-'] {
  display: flex;
  flex-direction: column;
}
.media.service-box {
  background: #fff;
  border: 1px solid #eee;
  padding: 20px;
  margin-bottom: 30px;
  transition: transform 0.3s;
  min-height: 160px; /* Uniform height */
}
.media.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* FIX: Make the buttons obvious! */
.media.service-box .btn {
    background-color: #f8f8f8;
    border: 2px solid #e1e1e1;
    color: #333;
    font-weight: 700;
    margin-top: 15px;
    width: 100%; /* Optional: Makes button full width of card */
}

/* Hover state for the button */
.media.service-box .btn:hover {
    background-color: #F9690E;
    border-color: #F9690E;
    color: #fff;
}
.media.service-box .pull-left i {
  color: #F9690E;
  font-size: 24px;
  border: 2px solid #F9690E;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  line-height: 46px;
  text-align: center;
}

/* --- CONTACT SECTION (The Big One) --- */
#contact {
    padding: 80px 0;
    background: #222;
    color: #fff;
}
#contact .contact-info {
    padding: 20px;
}
#contact h3 {
    color: #fff;
    margin-top: 0;
}
#contact address {
    font-size: 16px;
    line-height: 1.8;
    color: #ccc;
}
#contact .form-control {
    background: #333;
    border: 1px solid #444;
    color: #fff;
    height: 50px;
    margin-bottom: 20px;
    border-radius: 4px;
}
#contact textarea.form-control {
    height: auto;
}
#contact .form-control:focus {
    border-color: #F9690E;
    box-shadow: none;
}
#contact .btn-primary {
    width: 100%;
    font-size: 18px;
}

/* --- FOOTER & MISC --- */
#footer {
  background: #111; /* Darker than contact section */
  color: #666;
  padding: 30px 0;
  border-top: 1px solid #333;
}
#footer a { color: #999; }
#footer a:hover { color: #F9690E; }

.section-header .section-title {
  color: #333;
  text-transform: uppercase;
  font-size: 32px;
}
.section-header .section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #F9690E;
  margin: 15px auto;
}

/* --- RESPONSIVE TWEAKS --- */
@media (max-width: 768px) {
  #hero-banner { text-align: center; padding: 60px 0; }
  #hero-banner::before {
      /* On mobile, darken the whole thing so white text is readable */
      background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/inspection.jpg');
  }
  .hero-content { padding-right: 0; }
  .hero-content h1 { font-size: 32px; }
  .course-list-styled { columns: 1; }
  .mobile-sticky-cta { display: block; }
  .hero-card { margin-top: 30px; }
  #package-header { flex-direction: column; text-align: center; }
  .trust-item { justify-content: flex-start; }
}

.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 10px 15px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 9999;
  text-align: center;
}