/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* Root Variables */
:root {
  --theme-color: #810707;
  --theme-light: rgba(129, 7, 7, 0.1);
  --theme-lighter: rgba(129, 7, 7, 0.05);
}

/* Global Styles */
body {
  font-family: "Poppins", sans-serif !important;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #fafafa; /* Using the more specific background-color */
}

/* --- Reusable Sections & Animations --- */
.section-padding {
  padding: 100px 0; /* Consistent padding for most sections */
}

/* Override for specific sections with different padding */
.distribution-section {
  padding: 60px 0;
}

.pricing-card-section { /* Added a class for pricing section if needed for specific padding */
  padding: 80px 0;
}

.royalty-calculator-section { /* Added a class for royalty section if needed for specific padding */
  padding: 80px 0;
}


/* Common animation block for elements that animate on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header --- */
.header-btn > .btn:hover {
  color: var(--theme-color) !important;
  border: var(--theme-color) !important;
  background-color: white !important;
  transition: background-color 0.3s ease !important;
}

.box-btn {
  background-color: var(--theme-color) !important;
  color: white !important;
  border: 2px solid var(--theme-color) !important;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
  margin-bottom: 2px;
}

.box-btn:hover {
  color: var(--theme-color) !important;
  border: 2px solid var(--theme-color) !important;
  background-color: white !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-navbar .self-css {
  width: 80%;
  height: auto;
}

.header-number-css:hover {
  color: #eeeeee !important;
}

/* --- Card Hover & Animation Effects (Consolidated) --- */
/* Common styles for various cards */
.feature-card,
.achiever-card,
.service-card,
.book-feature-card,
.testimonial-card,
.pricing-card {
  transition: all 0.3s ease; /* Common transition for hover effects */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Common initial shadow */
  background: white; /* Most cards have a white background */
  border-radius: 12px; /* Common border-radius */
  /* padding: 30px; Common padding */
}

.feature-card,
.achiever-card {
  padding: 10px;
}

.testimonial-card,
.service-card {
  padding: 30px;
}

/* Cards that explicitly start with a transform for animation */
.feature-card,
.achiever-card {
  transform: translateY(30px); /* Using the smaller initial translateY */
  opacity: 0;
}

/* Common animated state for cards */
.feature-card.animated,
.achiever-card.animated {
  transform: translateY(0);
  opacity: 1;
}

/* Generic hover effect for cards that lift and cast a shadow */
.feature-card:hover,
.achiever-card:hover,
.book-feature-card:hover,
.testimonial-card:hover,
.pricing-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 25px rgba(129, 7, 7, 0.1) !important;
}

/* Specific overrides for certain cards */
.achiever-card:hover {
  box-shadow: 0 15px 30px #8107071a !important; /* Stronger shadow on hover for achiever */
}

.feature-card:hover .achiever-stats {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* --- Services Section specific styles --- */
.service-card {
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform: translateY(0); /* Initial state for animation/hover */
}

.service-card:hover {
  transform: translateY(-3px) !important; /* Slightly less lift for service card */
  box-shadow: 0 8px 25px rgba(129, 7, 7, 0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.05);
}

.service-hover-content {
  position: absolute;
  bottom: -80px;
  left: 0;
  right: 0;
  padding: 20px;
  color: white;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.service-card:hover .service-hover-content {
  bottom: 0;
}

.service-arrow {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid;
  margin: 10px auto 0;
  transition: all 0.3s ease;
}

.service-card:hover .service-arrow {
  transform: translateY(3px);
}

/* --- Mission / Book Feature Section --- */
.featured-book-section {
  background-color: #f8f9fa;
}

.title-divider {
  width: 80px;
  height: 3px;
  background: var(--theme-color);
  margin: 1rem auto;
}

.book-feature-card {
  border-left: 4px solid transparent;
}

.book-feature-card:hover {
  border-left: 4px solid var(--theme-color);
}

.feature-icon {
  font-size: 2rem;
  transition: all 0.3s ease;
}

.book-feature-card:hover .feature-icon {
  transform: scale(1.1);
}

/* --- Testimonial Section --- */
/* Quote Icon Animation */
.quote-icon {
  font-size: 2.5rem;
  opacity: 0.2;
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.testimonial-card:hover .quote-icon {
  opacity: 1;
  transform: scale(1.1) rotate(-5deg);
  color: var(--theme-color) !important;
}

/* Client Info Styling */
.client-info {
  padding-top: 15px;
  border-top: 1px solid rgba(129, 7, 7, 0.1);
  transition: all 0.3s ease;
}

/* Circular Profile Image Wrapper */
.client-img-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

/* Reviewer Focus Effect - Circular */
.testimonial-card:hover .client-img-wrapper {
  transform: scale(1.05);
  box-shadow: 0 0 0 2px var(--theme-color), 0 0 0 5px rgba(129, 7, 7, 0.2);
}

.testimonial-card:hover .client-info h6 {
  color: var(--theme-color);
}

/* Testimonial Text Styling */
.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #555;
}

/* --- Distribution Section --- */
.client-logo img {
  filter: grayscale(100%);
  transition: filter 0.3s ease-in-out;
  max-width: 100%;
  height: auto;
}

.client-logo img:hover {
  filter: grayscale(0%);
}

.distribution-section {
  text-align: center;
  background-color: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #333;
}

.client-logos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.client-logo {
  flex: 0 0 auto;
  width: 150px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo a {
  display: block;
}

/* --- Pricing Section --- */
.plan-button:hover {
  background-color: #6a0000 !important;
  transform: translateY(-2px);
}

.pricing-card .plan-features li {
  transition: all 0.2s ease;
}

.pricing-card:hover .plan-features li {
  transform: translateX(5px);
}

/* Highlighted Plan Styles */
.highlighted-plan {
  border: 2px solid var(--theme-color);
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(129, 7, 7, 0.2) !important;
}

.highlighted-plan .plan-header {
  background-color: var(--theme-color) !important;
}

.highlighted-plan .plan-header h2,
.highlighted-plan .plan-header .plan-price {
  color: white !important;
}

/* Adjust hover for highlighted plan to maintain focus */
.highlighted-plan:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(129, 7, 7, 0.3) !important;
}

/* Add a "Recommended" badge (optional) */
.highlighted-plan {
  position: relative;
}

.highlighted-plan::before {
  content: "Recommended";
  position: absolute;
  top: 0;
  right: 0;
  background-color: #ffc107;
  color: #333;
  padding: 5px 15px;
  border-bottom-left-radius: 12px;
  font-weight: bold;
  font-size: 0.9em;
  z-index: 10;
}

/* --- Royalty Calculator Section --- */
.royalty-calculator-container {
  transition: all 0.3s ease;
}

.results div[class^="col-"]:hover div {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(129, 7, 7, 0.1);
}

/* --- FAQ Section --- */
.faq-section {
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background-color: white !important;
  color: #333 !important;
  box-shadow: none;
}

.accordion-button:hover {
  background-color: rgba(129, 7, 7, 0.05) !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(129, 7, 7, 0.1);
}

/* --- Form Sections (General) --- */
.journey-section {
  position: relative;
  overflow: hidden;
}

.journey-section::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0) 70%
    );
  border-radius: 50%;
}

/* --- Common Form Control Styles --- */
.form-control,
.form-select {
  border-radius: 6px;
  padding: 12px 15px;
  border: 1px solid #ddd;
  transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--theme-color) !important; /* Using !important for consistency */
  box-shadow: 0 0 0 0.25rem rgba(129, 7, 7, 0.25); /* Stronger shadow, consolidating from duplicates */
}

/* Specific form adjustments */
.form-check-input:checked {
  background-color: var(--theme-color);
  border-color: var(--theme-color);
}

label.required::after {
  content: "*";
  color: var(--theme-color);
  margin-left: 4px;
  font-weight: bold;
}

.input-group-text {
  background-color: var(--theme-lighter);
  color: var(--theme-color);
  border: 1px solid #ddd;
  font-weight: 500;
}

.section-divider {
  border: 0;
  height: 1px;
  background-image: linear-gradient(
      to right,
      rgba(129, 7, 7, 0),
      rgba(129, 7, 7, 0.75),
      rgba(129, 7, 7, 0)
    );
  margin: 30px 0;
}

.info-message {
  color: var(--theme-color);
  background-color: var(--theme-light);
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
}

.info-message i {
  margin-right: 8px;
}

.price-display {
  background-color: var(--theme-lighter);
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
  border-left: 4px solid var(--theme-color);
}

.form-label {
  font-weight: 500;
  color: #555;
  margin-bottom: 8px;
}

.form-section-title {
  color: var(--theme-color);
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.form-container {
  background-color: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(129, 7, 7, 0.1);
  max-width: 700px;
  margin: 30px auto;
  border-top: 5px solid var(--theme-color);
}

.form-title {
  color: var(--theme-color);
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 3rem;
}

.highlight-plan-name {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--theme-color);
  margin: 15px 0;
  text-shadow: 0 2px 4px rgba(129, 7, 7, 0.1);
}


/* --- Footer --- */
.footer {
  background-color: #1a1a1a;
  color: #cccccc;
  padding: 60px 0;
  text-align: center;
  font-family: "Inter", sans-serif;
}

.footer-links {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 5px 10px;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.footer-links a:hover {
  color: var(--theme-color);
  transform: translateY(-3px);
}

.footer-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--theme-color);
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.social-icons {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icon-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #333333;
  color: #ffffff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.social-icon-item:hover {
  background-color: var(--theme-color);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 10px rgba(129, 7, 7, 0.4);
}

.copyright {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #999999;
}

.copyright i.fa-heart {
  color: #e74c3c;
  margin: 0 5px;
}

.copyright a {
  color: var(--theme-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.copyright a:hover {
  text-decoration: underline;
}

/* --- Media Queries (Consolidated) --- */
@media (max-width: 768px) {
  .header-navbar .self-css {
    width: 60%;
    height: auto;
  }
  .banner-header {
    font-size: 40px !important;
  }
  .pricing-plans {
    gap: 30px;
  }
  .highlighted-plan {
    transform: translateY(0); /* Remove initial lift on small screens */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important; /* Reset shadow */
  }
  .highlighted-plan:hover {
    transform: translateY(-5px); /* Standard hover effect on small screens */
    box-shadow: 0 10px 25px rgba(129, 7, 7, 0.1) !important;
  }
  .royalty-calculator-section {
    padding: 2rem !important;
  }
  .accordion-button {
    font-size: 1.1rem !important;
    padding: 1rem !important;
  }
  .journey-section::before {
    display: none;
  }
  .py-5 {
    text-align: center;
  }
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
  .footer-links a {
    font-size: 0.95rem;
    padding: 8px 0;
  }
  .social-icons {
    margin-bottom: 20px;
  }
  .social-icon-item {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .copyright {
    font-size: 0.8rem;
  }
}

/* Consolidated display heading sizes for smaller screens */
@media (max-width: 768px) {
  .display-4,
  .display-5 { /* Targeting both display-4 and display-5 for similar font-size on small screens */
    font-size: 2rem !important;
  }
  .display-5 { /* Specific adjustment for display-5 if needed */
    font-size: 2.2rem !important;
  }
}