:root {
  /* Colors */
  --bg-primary: #efece3;
  --bg-white: #ffffff;
  --color-primary: #4a70a9;
  --color-secondary: #8fabd4;
  --text-primary: #000000;
  --text-secondary: #666666;
  --border: #e0e0e0;
  --error: #dc3545;
  --success: #28a745;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(74, 112, 169, 0.15);

  /* Other */
  --border-radius: 8px;
  --transition: 0.3s ease;
  --max-width: 1450px;
  --header-height: 70px;
}

/*=============================================
   All PAGE - STYLES
  ============================================= */
/*========== global styles ==========*/
/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-width: 425px;
}
a {
  text-decoration: none;
  color: var(--color-primary);
  transition: var(--transition);
}

/***** btn *****/
button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  background: none;
}

.btn {
  padding: 14px 32px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: #3d5c8a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
}

.cta-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}
/* White BG, Blue Text */
.cta-btn-primary {
  background: var(--bg-white);
  color: var(--color-primary);
  border: 2px solid var(--bg-white);
}
.cta-btn-primary:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--bg-white);
}
/* Transparent BG, White Border */
.btn-outline {
  background: transparent;
  color: var(--bg-white);
  border: 2px solid var(--bg-white);
}
.btn-outline:hover {
  background: var(--bg-white);
  color: var(--color-primary);
}
/***** End btn *****/

/***** Section styles *****/
/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Section Styles */
.section {
  padding: var(--space-2xl) 0;
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}
/***** End Section styles *****/

/* === ANIMATION CLASSES === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered animation */
.why-card:nth-child(2) {
  transition-delay: 0.1s;
}
.why-card:nth-child(3) {
  transition-delay: 0.2s;
}
.timeline-step:nth-child(2) {
  transition-delay: 0.1s;
}
.timeline-step:nth-child(3) {
  transition-delay: 0.2s;
}
.timeline-step:nth-child(4) {
  transition-delay: 0.3s;
}

/* === FORM COMPONENTS === */
.form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-card h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: var(--space-sm);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label,
.form-label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin: var(--space-xs) 0;
}

input[type="text"],
input[type="email"],
select,
textarea,
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-family: var(--font-family);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74, 112, 169, 0.2);
}

textarea,
.form-textarea {
  min-height: calc(1.6em * 6);
  resize: vertical;
}

.char-counter {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: right;
  margin-top: var(--space-xs);
}

.char-counter.success {
  color: #059669;
}

.field-note {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.error-message {
  color: var(--error);
  font-size: 14px;
  margin-top: var(--space-xs);
}

.error-message.show {
  display: block;
}

.form-group.error .error-message {
  display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--error);
}

.form-group.error input:focus,
.form-group.error select:focus,
.form-group.error textarea:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
  border-color: var(--success);
}

.form-input.error,
.form-textarea.error {
  border-color: #dc2626;
}

.captcha-group {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.captcha-group input[type="checkbox"] {
  width: auto;
  height: 16px;
  width: 16px;
}

.captcha-group label {
  margin-bottom: 0;
  font-weight: normal;
}

.privacy-notice {
  background: var(--bg-primary);
  padding: var(--space-sm);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-secondary);
  margin: var(--space-sm) 0;
}

.privacy-notice a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}

.success-icon {
  font-size: 48px;
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  background: #eaf6ec;
  color: var(--success);
  margin: 0 auto var(--space-md);
}

.success-message h4 {
  font-size: 24px;
  margin-bottom: var(--space-sm);
}

.success-message p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

/* Success Screen */
.success-screen {
  display: none;
  text-align: center;
  padding: var(--space-2xl);
}

.success-screen.show {
  display: block;
}

.success-screen h2 {
  font-size: 32px;
  margin-bottom: var(--space-md);
}

.success-screen p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.success-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* === RADIO & CHECKBOX COMPONENTS === */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.radio-option {
  display: flex;
  align-items: center;
  padding: var(--space-sm);
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition);
}

.radio-option:hover {
  border-color: var(--color-secondary);
  background: #f9fafb;
}

.radio-option input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: var(--space-sm);
  cursor: pointer;
}

.radio-option.selected {
  border-color: var(--color-primary);
  background: #eff6ff;
}

.checkbox-group {
  padding: var(--space-sm) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.checkbox-option {
  display: flex;
  align-items: start;
  gap: var(--space-sm);
}

.checkbox-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-option label {
  cursor: pointer;
  flex: 1;
}

.checkbox-option.large {
  padding: var(--space-sm);
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  cursor: pointer;
  transition: color var(--transition);
}

.checkbox-label:hover {
  color: var(--color-primary);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

/* === RATING COMPONENTS === */
.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.rating-grid {
  flex-direction: column;
}

.rating-group {
  margin-bottom: var(--space-lg);
}

.rating-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.stars {
  display: flex;
  gap: 8px;
}

.stars.large {
  gap: 12px;
}

.star {
  font-size: 18px;
  color: #e0e0e0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stars.large .star {
  font-size: 60px;
}

.stars .star {
  font-size: 30px;
}

.star.filled {
  color: var(--color-primary);
}

.star.half {
  color: var(--color-primary);
  opacity: 0.5;
}

.star.empty {
  color: #e0e0e0;
}

.star:hover {
  transform: scale(1.1);
}

.rating-number {
  font-weight: bold;
  color: var(--text-primary);
}

.review-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.rating-text {
  margin-top: var(--space-sm);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-primary);
  min-height: 27px;
}

.category-rating {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.category-rating .rating-label {
  min-width: 180px;
  margin-bottom: 0;
}

.rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.rating-bar-item {
  display: grid;
  grid-template-columns: 50px 1fr 180px;
  align-items: center;
  gap: var(--space-md);
}

.rating-bar-container {
  height: 12px;
  background-color: rgba(143, 171, 212, 0.3);
  border-radius: 6px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background-color: var(--color-primary);
  transition: width var(--transition);
}

.rating-count {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: right;
}

.category-ratings-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.category-rating-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: var(--space-md);
}

.category-name {
  font-weight: 500;
}

.category-stars {
  color: var(--color-primary);
  font-size: 18px;
  letter-spacing: 2px;
}

.category-score {
  font-weight: bold;
  font-size: 18px;
  color: var(--text-primary);
}
/*========== End global styles ==========*/

/*========== global Section ==========*/
/***** header Section *****/
.header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/*
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
} 
*/

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.nev-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.nav-menu {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-menu a:hover {
  color: var(--color-primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* User Menu Button */
.header-user-menu {
  margin-left: auto;
}

.btn-dashboard,
.btn-login {
  display: inline-block;
  padding: 10px 24px;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-dashboard:hover,
.btn-login:hover {
  background: #3a5a89;
  transform: translateY(-2px);
}

/* Dropdown Submenu */
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  min-width: 200px;
  box-shadow: var(--shadow-md);
  border-radius: 4px;
  padding: 10px 0;
  margin-top: 10px;
  z-index: 1000;
  list-style: none;
}

.nav-menu li {
  position: relative;
}

.nav-menu li:hover > .sub-menu {
  display: block;
}

.nav-menu .sub-menu li {
  display: block;
}

.nav-menu .sub-menu a {
  padding: 10px 20px;
  display: block;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav-menu .sub-menu a:hover {
  background: #f5f5f5;
  color: var(--color-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    gap: 0;
  }

  .nav-menu.active {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .nav-menu.active .menu-item {
    padding: 0.8rem 1.4rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  .mobile-menu-toggle {
    display: block;
    order: 3;
  }

  /* Move user menu inside hamburger on mobile */
  .header-user-menu {
    display: none;
    width: 100%;
    padding-top: var(--space-sm);
    border-top: 1px solid #e0e0e0;
    margin-top: var(--space-sm);
  }

  .nav-menu.active ~ .header-user-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    margin-top: 0;
    z-index: 999;
  }

  .btn-dashboard,
  .btn-login {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }

  /* Dropdown submenu on mobile */
  .nav-menu .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    padding-left: 20px;
    margin-top: 0;
    background: #f5f5f5;
  }

  .nav-menu li.menu-item-has-children > a::after {
    content: " ▼";
    font-size: 12px;
    margin-left: 5px;
  }

  .nav-menu li.menu-item-has-children.active > .sub-menu {
    display: flex;
    flex-direction: column;
  }

  .nav-menu li.menu-item-has-children.active > a::after {
    content: " ▲";
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
/***** End header Section *****/

/***** footer Section *****/
.footer {
  background-color: var(--text-primary);
  color: white;
  padding: var(--space-xl) var(--space-md);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.footer-section h4 {
  margin-bottom: var(--space-sm);
  font-size: 18px;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-xs);
  transition: color var(--transition);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}
/***** End footer Section *****/

/***** STATISTICS Section *****/
.stats-section {
  /* 20% opacity of #8FABD4 */
  background-color: rgba(143, 171, 212, 0.2);
  padding: 60px 0;
  margin: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  text-align: center;
}
.stat-number,
.stat-plus {
  font-size: 48px;
  font-weight: bold;
  color: var(--color-primary);
  display: inline; /* Keep number and plus on same line */
}
.stat-number {
  min-width: 80px; /* Give space for counting */
  display: inline-block;
  text-align: right;
}
.stat-plus {
  text-align: left;
}
.stat-label {
  font-size: 18px;
  color: var(--text-secondary);
  display: block;
  margin-top: var(--space-xs);
}
/***** End stats Section *****/

/***** CTA Section *****/
.cta-section {
  background: var(--color-primary);
  color: var(--bg-white);
  padding: 80px var(--space-md);
  border-radius: var(--border-radius);
  margin: 60px auto;
  max-width: var(--max-width);
  text-align: center;
}
.cta-section h2 {
  font-size: 36px; /* Matches H2 spec */
  font-weight: bold;
  margin-bottom: var(--space-sm);
  color: var(--bg-white); /* Ensure override */
}
.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: var(--space-lg);
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/***** End CTA Section *****/

/***** FAQ ACCORDION Section *****/
.faq-section {
  background: var(--bg-white);
  padding: var(--space-2xl) 0;
}
.faq-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.faq-container h2 {
  font-size: 32px;
  margin-bottom: 2rem;
}
.accordion {
  text-align: left;
}
.accordion-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: var(--space-sm);
}
.accordion-item:last-child {
  margin-bottom: 0;
}
.accordion-header {
  font-size: 18px;
  font-weight: bold;
  padding: var(--space-md);
  cursor: pointer;
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-header::-webkit-details-marker {
  display: none; /* Hide for Webkit */
}
.accordion-header::after {
  content: ">";
  font-size: 14px;
  transition: var(--transition);
  transform: rotate(0deg);
}
.accordion-item[open] {
  background: #fcfcfc;
}
.accordion-item[open] .accordion-header::after {
  transform: rotate(90deg);
  content: "▼";
}
.accordion-content {
  padding: 0 var(--space-md) var(--space-md) var(--space-md);
  color: var(--text-secondary);
  line-height: 1.6;
}
.accordion-content p {
  margin-bottom: 0;
}
/***** End F&Q Section *****/

/***** review cards *****/
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.review-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background: var(--bg-white);
  padding: var(--space-md);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.rc-company-logo {
  width: 48px;
  height: 48px;
  background-color: var(--bg-primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-primary);
}

.rc-company-logo img {
  background-position: center;
  object-fit: cover;
  object-position: center center;
}

.rc-company-info h4 {
  font-size: 16px;
  margin-bottom: 2px;
}

.rc-stars {
  color: #ffa500;
  font-size: 20px;
  letter-spacing: 2px;
}

.review-text {
  flex: 1;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.review-meta {
  justify-self: flex-end;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}
/***** End review cards *****/

/***** BREADCRUMB Section *****/
.breadcrumb {
  background: var(--bg-white);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 14px;
  color: var(--text-secondary);
}

.breadcrumb-nav a {
  color: var(--color-primary);
  transition: color var(--transition);
}

.breadcrumb-nav a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--text-secondary);
}

.breadcrumb .separator {
  margin: 0 var(--space-xs);
  color: var(--text-secondary);
}
/***** End BREADCRUMB Section *****/

/*========== End global Section ==========*/

/* =============================================
    End All PAGE - STYLES
   ============================================= */

/* =============================================
    Home PAGE - STYLES
   ============================================= */
/***** hero Section *****/
.hero-home {
  background: linear-gradient(135deg, var(--bg-primary) 0%, #e0ddd0 100%);
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
}

.hero-home .hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-home h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.hero-home p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.hero-home .search-bar {
  max-width: 600px;
  margin: 0 auto var(--space-md);
  position: relative;
}

.hero-home .search-bar input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  padding-left: 48px;
  /* border: 2px solid var(--border); */
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: border-color var(--transition);
}

.hero-home .search-bar input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.hero-home .search-icon {
  position: absolute;
  left: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

/***** search bar template-part *****/
/* Search Bar Wrapper */
.search-bar-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Search Bar */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 50px;
  padding: 0 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.search-bar:focus-within {
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

.search-icon {
  font-size: 1.3rem;
  margin-right: 10px;
  opacity: 0.6;
}

.company-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 18px 0;
  font-size: 1rem;
  background: transparent;
}

.search-loading {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  max-height: 500px;
  overflow-y: auto;
  z-index: 1000;
}

.search-results-content {
  padding: 10px 0;
}

/* Search Result Item */
.search-result-item {
  border-bottom: 1px solid #f0f0f0;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.search-result-link:hover {
  background: #f8f9fa;
}

.search-result-logo {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 15px;
}

.search-result-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.search-result-name {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.search-result-category {
  display: inline-block;
  font-size: 0.85rem;
  color: #667eea;
  background: #f0f2ff;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-size: 0.85rem;
  color: #666;
  justify-content: space-between;
}

.search-result-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-result-rating .stars {
  color: #ffc107;
}

.search-result-rating .rating-text {
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Search Results Footer */
.search-results-footer {
  padding: 12px 20px;
  border-top: 1px solid #f0f0f0;
  background: #f8f9fa;
  border-radius: 0 0 12px 12px;
}

.view-all-results {
  display: block;
  text-align: center;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.view-all-results:hover {
  color: #5568d3;
}

/* No Results */
.search-no-results {
  padding: 30px 20px;
  text-align: center;
}

.search-no-results p {
  margin: 0 0 15px 0;
  color: #666;
}

.browse-all-companies {
  display: inline-block;
  padding: 8px 20px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.browse-all-companies:hover {
  background: #5568d3;
}

/* Search Error */
.search-error {
  padding: 20px;
  text-align: center;
  color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
  .search-bar-wrapper {
    max-width: 100%;
  }

  .search-results {
    max-height: 400px;
  }
}

/***** End search bar template-part *****/

/***** End hero Section *****/

/***** steps Section *****/

/* How It Works Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.step-card {
  background: var(--bg-white);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-icon {
  width: 80px;
  height: 80px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  font-size: 36px;
}

.step-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
}

.step-card h3 {
  font-size: 20px;
  margin-bottom: var(--space-xs);
}

.step-card p {
  color: var(--text-secondary);
  font-size: 14px;
}
/***** End steps Section *****/

/***** r-reviews Section *****/

.r-reviews-sec {
  background-color: var(--bg-white);
}
/***** End r-reviews Section *****/

/***** categories Section *****/
/* .categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.category-card {
  background: var(--bg-white);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background-color: var(--color-primary);
  color: white;
}

.category-icon {
  font-size: 48px;
  margin-bottom: var(--space-sm);
}

.category-card h3 {
  font-size: 18px;
  margin-bottom: var(--space-xs);
}

.category-count {
  font-size: 14px;
  opacity: 0.7;
} */
/***** End categories Section *****/

/* =============================================
    End Home PAGE - STYLES
   ============================================= */

/* =============================================
    About PAGE - STYLES
   ============================================= */

.about-hero {
  background: linear-gradient(to bottom, var(--bg-primary), #eae7da);
  padding: 80px 0;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.about-hero h1 {
  font-size: 36px; /* Specific size from prompt */
  font-weight: bold;
  margin-bottom: var(--space-sm);
}
.about-hero .subheading {
  font-size: 20px;
  color: var(--text-secondary);
}

/* === 2. MISSION SECTION === */
.mission-section {
  background: var(--bg-white);
  padding: 60px 0;
}
.mission-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.decorative-underline {
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 0 auto var(--space-sm) auto;
}
.mission-content p {
  font-size: 18px;
  line-height: 1.8;
}
/* === 3. WHY WE EXIST SECTION === */
.why-section {
  background: var(--bg-primary);
  padding: 60px 0;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md); /* 24px */
}
.why-card {
  background: var(--bg-white);
  padding: var(--space-md);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
}
.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.why-card .icon {
  font-size: 80px;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.why-card h3 {
  font-size: 20px; /* Specific size from prompt */
  font-weight: bold;
  margin-bottom: var(--space-xs);
}
.why-card p {
  color: var(--text-secondary);
}

/* === 4. HOW IT WORKS SECTION === */
.how-section {
  background: var(--bg-white);
  padding: 60px 0;
}
.timeline {
  max-width: 700px;
  margin: 0 auto;
}
.timeline-step {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg); /* 32px */
}
.timeline-number {
  font-size: 48px;
  font-weight: bold;
  color: var(--color-primary);
  line-height: 1;
  flex-shrink: 0;
}
.timeline-content h3 {
  font-size: 24px; /* Matches H3 spec */
  font-weight: bold;
  margin-bottom: var(--space-xs);
}
.timeline-content p {
  color: var(--text-secondary);
}

/* === 5. OUR VALUES SECTION === */
.values-section {
  background: var(--bg-primary);
  padding: 60px 0;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
.value-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}
.value-icon {
  font-size: 24px;
  color: var(--color-primary);
  font-weight: bold;
  line-height: 1.3;
}
.value-content h3 {
  font-size: 20px; /* Specific size from prompt */
  font-weight: bold;
  margin-bottom: var(--space-xs);
}
.value-content p {
  color: var(--text-secondary);
}

/* === 7. TEAM SECTION === */
.team-section {
  background: var(--bg-primary);
  padding: 60px 0;
}
.team-summary {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  /* Reduce padding on mobile */
  .about-hero,
  .mission-section,
  .why-section,
  .how-section,
  .values-section,
  .stats-section,
  .team-section {
    padding: 40px 0;
  }
  .cta-section {
    padding: 60px var(--space-md);
    margin: 40px var(--space-sm); /* Use sm for side margin */
  }

  /* Clamp headings */
  .about-hero h1 {
    font-size: 32px;
  }
  .section-title {
    font-size: 28px;
  }
  .cta-section h2 {
    font-size: 30px;
  }

  /* Stack grids */
  .why-grid,
  .values-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    gap: var(--space-lg); /* More space when stacked */
  }

  /* Adjust timeline */
  .timeline-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .timeline-number {
    margin-bottom: var(--space-xs);
  }
  .value-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Stack CTA buttons */
  .cta-buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    max-width: 350px; /* Optional: prevent full-width on tablet */
    margin: 0 auto;
  }
}

/* =============================================
    End About PAGE - STYLES
   ============================================= */

/* =============================================
    Contact PAGE - STYLES
   ============================================= */
.btn:disabled,
.btn-loading {
  background: var(--text-secondary);
  color: var(--bg-white);
  cursor: not-allowed;
  opacity: 0.7;
}
.btn-loading {
  display: flex;
  gap: var(--space-sm);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-sm) 0 var(--space-sm) 0;
}

.required {
  color: var(--error);
  font-weight: bold;
}

/* ==== CONTACT PAGE: HERO ==== */
.hero-contact {
  background-color: var(--bg-primary);
  padding: var(--space-xl) 0;
}
.hero-contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
/* Override global H1 size for this specific hero */
.hero-contact h1 {
  font-size: 36px;
}
.hero-contact p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.main-content {
  padding: var(--space-2xl) 0;
}
.page-layout {
  display: grid;
  grid-template-columns: 60% 1fr;
  gap: var(--space-lg);
}

@media (max-width: 992px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .contact-sidebar {
    grid-row: 2; /* Ensure sidebar is below form */
  }
  .header-container {
    padding: 0 var(--space-sm);
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-sm);
  }
  .main-content,
  .faq-section {
    padding: var(--space-lg) 0;
  }
  .form-card {
    padding: var(--space-md);
  }
}

/* === Sidebar Styles === */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.contact-sidebar-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.contact-sidebar-card h4 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: var(--space-sm);
}
.contact-sidebar-card ul {
  list-style: none;
  padding-left: 0;
}

/* Card 1 & 4 List Style */
.contact-details-list li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  margin-bottom: var(--space-md);
}
.contact-details-list li:last-child {
  margin-bottom: 0;
}
.contact-details-list .icon {
  font-size: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 4px;
}
.contact-details-list .small-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}
.forum-link {
  font-weight: bold;
}

/* Card 2 List Style */
.quick-links-list li {
  margin-bottom: var(--space-xs);
}
.quick-links-list a {
  font-weight: 500;
  text-decoration: none;
  color: var(--color-primary);
  transition: var(--transition);
}

/* Card 3 Social Icons */
.social-icons {
  display: flex;
  gap: var(--space-sm);
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: var(--transition);
}
.social-icon:hover {
  background: var(--color-primary);
  color: var(--bg-white);
}

/* =============================================
    End Contact PAGE - STYLES
   ============================================= */

/* =============================================
    Company PAGE - STYLES
   ============================================= */

/* === PAGE HEADER === */
.page-header {
  background-color: var(--bg-white);
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: bold;
  margin-bottom: var(--space-sm);
}

.page-header .subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.result-count {
  font-size: 14px;
  color: var(--text-secondary);
}

/* === SEARCH & FILTER BAR === */
.search-filter-bar {
  background-color: var(--bg-white);
  position: sticky;
  top: var(--header-height);
  z-index: 800;
  padding: var(--space-md) 0;
  transition: transform var(--transition);
}

.search-filter-content {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  justify-content: space-between;
}
.filter-btn-container {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  width: fit-content;
}

.search-box {
  flex: 1;
  max-width: 40%;
  position: relative;
}

.search-icon {
  position: absolute;
  left: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.search-box input {
  width: 100%;
  padding: 12px var(--space-xl) 12px var(--space-xl);
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: border-color var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.clear-search {
  position: absolute;
  right: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--text-secondary);
  padding: var(--space-xs);
  display: none;
  transition: color var(--transition);
}

.clear-search:hover {
  color: var(--text-primary);
}

.filter-btn {
  display: none;
  align-items: center;
  gap: var(--space-xs);
  padding: 12px var(--space-md);
  background-color: var(--color-secondary);
  color: var(--bg-white);
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 500;
  transition: background-color var(--transition);
  position: relative;
}

.filter-btn:hover {
  background-color: var(--color-primary);
}

.filter-badge {
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: var(--color-primary);
  color: var(--bg-white);
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
}

.sort-dropdown {
  flex: 1;
  max-width: fit-content;
}

.sort-dropdown select {
  width: 100%;
  padding: 12px var(--space-sm);
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  font-size: 16px;
  background-color: var(--bg-white);
  cursor: pointer;
  transition: border-color var(--transition);
}

.sort-dropdown select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* === MAIN CONTENT === */
main.cp-main-content {
  padding: 0 0px 100px 0;
  background: var(--bg-white);
}

.content-layout {
  display: flex;
  gap: var(--space-sm);
  position: relative;
}

/* === SIDEBAR === */
.sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-height) + 90px);
  max-height: calc(100vh - var(--header-height) - 120px);
  overflow-y: auto;
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-md);
}

.sidebar::-webkit-scrollbar {
  width: 2px;
}

.sidebar::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #a2a1a1;
  border-radius: 2px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border);
}

.sidebar-header h3 {
  font-size: 20px;
  font-weight: bold;
}

.close-sidebar {
  display: none;
  font-size: 32px;
  color: var(--text-secondary);
  padding: 0;
  line-height: 1;
}

.filter-section {
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-md);
}

.filter-section:last-of-type {
  border-bottom: none;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-sm) 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition);
}

.filter-header:hover {
  color: var(--color-primary);
}

.filter-header .chevron {
  transition: transform var(--transition);
}

.filter-header.collapsed .chevron {
  transform: rotate(-90deg);
}

.filter-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.filter-content.active {
  max-height: 500px;
  padding-top: var(--space-sm);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  cursor: pointer;
  transition: color var(--transition);
}

.checkbox-label:hover {
  color: var(--color-primary);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.show-more-btn {
  color: var(--color-primary);
  font-size: 14px;
  padding: var(--space-xs) 0;
  margin-top: var(--space-xs);
  transition: color var(--transition);
}

.show-more-btn:hover {
  text-decoration: underline;
}

.clear-filters-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--color-secondary);
  color: var(--bg-white);
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 500;
  transition: background-color var(--transition);
  margin-top: var(--space-sm);
}

.clear-filters-btn:hover {
  background-color: var(--color-primary);
}

.apply-filters-btn {
  display: none;
  width: 100%;
  padding: 12px;
  background-color: var(--color-primary);
  color: var(--bg-white);
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 500;
  margin-top: var(--space-sm);
}

/* === CONTENT AREA === */
.content-area {
  flex: 1;
  min-width: 0;
  background: var(--bg-primary);
  padding: 20px;
  border-radius: 20px;
}

/* === ACTIVE FILTERS === */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--color-secondary);
  color: var(--bg-white);
  border-radius: 20px;
  font-size: 14px;
}

.filter-pill button {
  font-size: 18px;
  color: var(--bg-white);
  padding: 0 var(--space-xs);
  transition: transform var(--transition);
}

.filter-pill button:hover {
  transform: scale(1.2);
}

/* === VIEW TOGGLE === */
.view-toggle {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  margin-bottom: var(--space-md);
}

.view-btn {
  padding: var(--space-sm);
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  transition: all var(--transition);
}

.view-btn:hover {
  border-color: var(--color-primary);
}

.view-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--bg-white);
}

.view-btn svg {
  display: block;
}

/* === COMPANIES GRID === */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.companies-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

/* === COMPANY CARD === */
.company-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.company-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(74, 112, 169, 0.15);
}

.company-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius);
}

.company-name {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin-bottom: var(--space-sm);
}

.company-name a {
  color: var(--text-primary);
  transition: color var(--transition);
}

.company-name a:hover {
  color: var(--color-primary);
}
.rating-number {
  font-weight: bold;
  color: var(--text-primary);
}

.review-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.review-snippet {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

.company-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 14px;
}

.info-icon {
  font-size: 16px;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: auto;
}

/* === LIST VIEW CARD === */
.list-card {
  flex-direction: row;
  align-items: flex-start;
}

.list-card-left {
  flex-shrink: 0;
  margin-right: var(--space-md);
}

.list-card .company-logo {
  margin: 0;
}

.list-card-middle {
  flex: 1;
  min-width: 0;
}

.list-card .company-name {
  text-align: left;
  margin-bottom: var(--space-xs);
}

.list-card .rating {
  justify-content: flex-start;
  margin-bottom: var(--space-sm);
}

.list-card .company-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  border: none;
  padding: 0;
  margin-bottom: var(--space-sm);
}

.list-card .review-snippet {
  text-align: left;
  -webkit-line-clamp: 3;
}

.list-card-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-left: var(--space-md);
}

/* === EMPTY STATE === */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: var(--space-md);
}

.empty-state h3 {
  font-size: 24px;
  margin-bottom: var(--space-sm);
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* =============================================
   VIEW TOGGLE
   ============================================= */
.view-toggle {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.view-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  height: fit-content;
  padding: var(--space-sm);
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  transition: all var(--transition);
  background: var(--bg-white);
}

.view-btn:hover {
  border-color: var(--color-primary);
}

.view-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--bg-white);
}

.view-btn svg {
  display: block;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  /* flex-direction: column; */
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.pagination-info {
  font-size: 14px;
  color: var(--text-secondary);
}

.pagination-buttons {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: var(--space-xs) var(--space-sm);
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  background-color: var(--bg-white);
  color: var(--text-primary);
  font-weight: 500;
  transition: all var(--transition);
}

.page-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.page-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--bg-white);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-ellipsis {
  padding: 0 var(--space-xs);
  color: var(--text-secondary);
}

.load-more-container {
  text-align: center;
  margin-top: var(--space-lg);
}

.btn-load-more {
  padding: 12px 32px;
  background-color: var(--color-secondary);
  color: var(--bg-white);
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: background-color var(--transition);
}

.btn-load-more:hover {
  background-color: var(--color-primary);
}

/* === SIDEBAR OVERLAY === */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition);
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    max-height: 100vh;
    z-index: 999;
    transition: left var(--transition);
  }

  .sidebar.active {
    left: 0;
  }

  .close-sidebar {
    display: block;
  }

  .apply-filters-btn {
    display: block;
  }

  .companies-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  .filter-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-white);
    flex-direction: column;
    padding: var(--space-md);
    gap: 0;
    transition: left var(--transition);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  }

  .nav.active {
    left: 0;
  }

  .nav a {
    width: 100%;
    padding: var(--space-sm);
    border-bottom: 1px solid var(--border);
  }

  .search-filter-content {
    flex-wrap: wrap;
  }

  .search-box {
    max-width: 100%;
    order: 1;
    flex: 1 1 100%;
  }

  .filter-btn {
    order: 2;
    flex: 1;
  }

  .sort-dropdown {
    order: 3;
    flex: 1;
    max-width: none;
  }

  .companies-grid {
    grid-template-columns: 1fr;
  }

  .list-card {
    flex-direction: column;
  }

  .list-card .company-logo {
    margin: 0 auto var(--space-sm);
  }

  .list-card .company-name {
    text-align: center;
  }

  .list-card .rating {
    justify-content: center;
  }

  .list-card .review-snippet {
    text-align: center;
  }

  .list-card-right {
    width: 100%;
    margin-left: 0;
    margin-top: var(--space-md);
  }

  .pagination {
    flex-direction: column;
  }

  .pagination-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
  .pgntn-top {
    display: none;
  }
  .view-toggle {
    display: none;
  }

  .filter-btn-container {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 28px;
  }

  .page-header .subtitle {
    font-size: 16px;
  }

  .company-info {
    grid-template-columns: 1fr;
  }

  .view-toggle {
    justify-content: center;
  }
}

/* === ACCESSIBILITY === */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/*=============================================
   End Company PAGE - STYLES
  ============================================= */

/*=============================================
   Single Company PAGE - STYLES
  ============================================= */

/* === COMPANY HEADER === */
.single-company-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: var(--space-xl) 0 var(--space-lg);
}

.single-company-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.single-company-header-left {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.company-logo-large {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.company-logo-large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius);
}

.company-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.category-badge {
  display: inline-block;
  background-color: var(--color-secondary);
  color: var(--bg-white);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: var(--space-sm);
}

.company-meta {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

.website-link {
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}

.website-link:hover {
  text-decoration: underline;
}

.verified-badge {
  color: #059669;
  font-size: 14px;
  font-weight: 500;
}

.single-company-header-right {
  text-align: center;
  flex-shrink: 0;
}

.overall-rating-display {
  margin-bottom: var(--space-md);
}

.rating-stars-large {
  font-size: 32px;
  color: var(--color-primary);
  letter-spacing: 4px;
  margin-bottom: var(--space-xs);
}

.rating-number-large {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 4px;
}

.rating-based {
  font-size: 14px;
  color: var(--text-secondary);
}

/* === QUICK STATS === */
.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-size: 14px;
  color: var(--text-secondary);
}

.stat-icon {
  font-size: 20px;
  color: var(--color-primary); /* Use primary color for icons */
}
/* === TAB NAVIGATION === */
.tab-navigation {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-height);
  z-index: 999;
}

.tab-links {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-links::-webkit-scrollbar {
  display: none;
}

.tab-link {
  padding: var(--space-md) var(--space-sm);
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.tab-link:hover {
  color: var(--color-primary);
}

.tab-link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: bold; /* Bold text for active tab */
}

/* === MAIN LAYOUT === */
.detail-main {
  padding: var(--space-xl) 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 350px; /* Approx 70% / 30% for 1200px max-width */
  gap: var(--space-lg);
}

.detail-content {
  min-width: 0;
}

.detail-sidebar {
  position: sticky;
  top: calc(
    var(--header-height) + 80px
  ); /* Adjust for sticky header + some space */
  align-self: flex-start;
  max-height: calc(100vh - var(--header-height) - 100px);
  overflow-y: auto;
  padding-right: 5px; /* Space for scrollbar */
}

/* Hide scrollbar for cleaner look */
.detail-sidebar::-webkit-scrollbar {
  width: 5px;
}
.detail-sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

/* === CONTENT SECTIONS === */
.content-section {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  scroll-margin-top: calc(
    var(--header-height) + 80px
  ); /* Account for sticky header and tabs */
}

.section-title {
  font-size: 36px; /* H2 size */
  font-weight: bold;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.subsection-title {
  font-size: 24px; /* H3 size */
  font-weight: bold;
  margin: var(--space-lg) 0 var(--space-md);
}

/* === RATING BREAKDOWN === */
.rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.rating-bar-item {
  display: grid;
  grid-template-columns: 50px 1fr 180px; /* Star rating, bar, count/percent */
  align-items: center;
  gap: var(--space-md);
}

.rating-label {
  font-weight: 500;
  color: var(--text-primary);
}

.rating-bar-container {
  height: 12px;
  background-color: rgba(143, 171, 212, 0.3); /* Light secondary color */
  border-radius: 6px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background-color: var(--color-primary);
  transition: width var(--transition);
}

.rating-count {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: right;
}

/* === CATEGORY RATINGS === */
.category-ratings-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.category-rating-row {
  display: grid;
  grid-template-columns: 200px 1fr auto; /* Category Name, Stars/Bar, Score */
  align-items: center;
  gap: var(--space-md);
}

.category-name {
  font-weight: 500;
}

.category-stars {
  color: var(--color-primary);
  font-size: 18px;
  letter-spacing: 2px;
}

.category-score {
  font-weight: bold;
  font-size: 18px;
  color: var(--text-primary);
}

/* === PROS & CONS === */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.pros-box,
.cons-box {
  background-color: rgba(239, 236, 227, 0.5); /* Light primary background */
  padding: var(--space-md);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
}

.pros-title,
.cons-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.pros-list,
.cons-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-left: var(--space-xs); /* Visual indentation */
}

.pros-list li {
  color: #059669; /* Green for pros */
  position: relative;
}

.pros-list li::before {
  content: "✓";
  margin-right: var(--space-xs);
  font-weight: bold;
}

.cons-list li {
  color: #dc2626; /* Red for cons */
  position: relative;
}

.cons-list li::before {
  content: "✗";
  margin-right: var(--space-xs);
  font-weight: bold;
}

/* === REVIEW CONTROLS === */
.review-controls {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.review-sort,
.review-filter {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 16px;
  font-weight: 500;
}

.review-select {
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  font-size: 14px;
  background-color: var(--bg-white);
  cursor: pointer;
  transition: border-color var(--transition);
  appearance: none; /* Remove default select styling */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23666666" viewBox="0 0 16 16"><path d="M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48A1 1 0 0 1 7.247 11.14z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.review-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* === REVIEWS LIST === */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.review-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  transition: box-shadow var(--transition);
}

.review-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.review-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.reviewer-info {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-weight: bold;
  flex-shrink: 0;
  font-size: 16px;
}

.reviewer-details h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 2px;
}

.reviewer-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--text-secondary);
}

.verified-learner {
  color: #059669;
  font-weight: 500;
}

.course-taken {
  color: var(--text-secondary);
}

.review-date-rating {
  text-align: right;
  flex-shrink: 0;
}

.review-stars {
  color: var(--color-primary);
  font-size: 18px;
  letter-spacing: 1px;
  display: block;
}

.review-score {
  font-weight: bold;
  margin-left: 4px;
  font-size: 18px;
  display: inline-block;
}

.review-date {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
  display: block;
}

.review-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: var(--space-sm);
  color: var(--color-primary); /* Making title prominent */
  cursor: pointer;
}

.review-body {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.review-body.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-btn {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition);
  display: inline-block;
}

.read-more-btn:hover {
  text-decoration: underline;
}

.review-category-ratings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-md) 0;
  padding: var(--space-sm);
  background-color: rgba(239, 236, 227, 0.3);
  border-radius: 4px;
}

.review-category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.review-category-item .category-stars {
  font-size: 14px;
  letter-spacing: 1px;
}

.review-actions {
  display: flex;
  gap: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

.review-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition), background-color var(--transition);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.review-action-btn:hover {
  color: var(--color-primary);
  background-color: rgba(74, 112, 169, 0.1);
}

.review-action-btn.active {
  color: var(--color-primary);
  font-weight: 600;
}

.company-response {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background-color: var(--bg-primary);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--color-primary);
}

.response-header {
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

.response-body {
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.response-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
}

/* === LOAD MORE & EMPTY STATES === */
.load-more-container {
  text-align: center;
  margin-top: var(--space-lg);
}

.btn-load-more {
  padding: 12px 32px;
  background-color: var(--color-secondary);
  color: var(--bg-white);
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: background-color var(--transition);
}

.btn-load-more:hover {
  background-color: var(--color-primary);
}

.empty-reviews {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-lg);
}

.empty-reviews .icon {
  font-size: 48px;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.empty-reviews h3 {
  font-size: 24px;
  margin-bottom: var(--space-xs);
}

.empty-reviews p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* === ABOUT SECTION === */
.about-content {
  margin-bottom: var(--space-lg);
}

.about-content p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
  color: var(--text-secondary);
}

.company-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background-color: rgba(239, 236, 227, 0.3);
  border-radius: var(--border-radius);
}

.detail-row {
  display: flex;
  gap: var(--space-md);
}

.detail-label {
  font-weight: 600;
  min-width: 120px;
  color: var(--text-primary);
}

.detail-value {
  color: var(--text-secondary);
}

.detail-value.link {
  color: var(--color-primary);
}

.detail-value.link:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-icon {
  font-size: 24px;
  color: var(--color-primary);
  transition: transform var(--transition), opacity var(--transition);
}

.social-icon:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-sm);
}

.features-list li {
  padding: var(--space-sm);
  background-color: rgba(239, 236, 227, 0.3);
  border-radius: 4px;
  color: var(--text-secondary);
}

.features-list li:before {
  content: "✓ ";
  color: #059669;
  font-weight: bold;
  margin-right: var(--space-xs);
}

/* === COURSES SECTION === */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.course-card {
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: var(--bg-white);
  transition: transform var(--transition), box-shadow var(--transition);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.course-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card h4 {
  padding: var(--space-sm) var(--space-sm) var(--space-xs);
  font-size: 16px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px; /* Ensure consistent height for 2 lines */
}

.course-rating {
  padding: 0 var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 14px;
  color: var(--text-secondary);
}

.course-rating .stars {
  color: var(--color-primary);
}

.course-meta {
  padding: var(--space-xs) var(--space-sm);
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
}

.course-price {
  font-weight: bold;
  color: var(--text-primary);
}

.course-link {
  display: block;
  padding: var(--space-sm);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  border-top: 1px solid var(--border);
  transition: background-color var(--transition);
}

.course-link:hover {
  background-color: rgba(74, 112, 169, 0.1);
}

/* === SIDEBAR === */
.sidebar-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.sidebar-card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.info-item-sidebar {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.info-item-sidebar .info-icon {
  font-size: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.info-content {
  flex: 1;
}

.info-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.info-value {
  font-weight: 500;
  color: var(--text-primary);
}

/* --- CTA CARD --- */
.cta-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, #3d5c8a 100%);
  color: var(--bg-white);
}

.cta-card .sidebar-card-title {
  color: var(--bg-white);
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.cta-text {
  margin-bottom: var(--space-md);
  opacity: 0.95;
  font-size: 16px;
  line-height: 1.6;
}

.btn-sidebar-cta {
  display: block;
  text-align: center;
  padding: 12px;
  background-color: var(--bg-white);
  color: var(--color-primary);
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all var(--transition);
  line-height: 1;
  min-height: 48px;
  box-sizing: border-box;
}

.btn-sidebar-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- SIMILAR PLATFORMS --- */
.similar-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.similar-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: 4px;
  transition: background-color var(--transition);
}

.similar-item:hover {
  background-color: rgba(239, 236, 227, 0.5);
}

.similar-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.similar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.similar-info {
  flex: 1;
}

.similar-name {
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.similar-rating {
  color: var(--color-primary);
  font-size: 13px;
  margin-bottom: 2px;
}

.similar-reviews {
  font-size: 12px;
  color: var(--text-secondary);
}

.view-all-link {
  display: block;
  text-align: center;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
  padding: var(--space-xs);
  transition: color var(--transition);
}

.view-all-link:hover {
  text-decoration: underline;
}

/* --- RECENT ACTIVITY --- */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.activity-item {
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-stars {
  color: var(--color-primary);
  font-size: 14px;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.activity-snippet {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 4px;
}

.activity-time {
  font-size: 12px;
  color: var(--text-secondary);
}

/* === FLOATING BUTTON (Mobile Only) === */
.floating-review-btn {
  display: none;
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  background-color: var(--color-primary);
  color: var(--bg-white);
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(74, 112, 169, 0.4);
  z-index: 998;
  transition: all var(--transition);
}

.floating-review-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 112, 169, 0.5);
}

/* === MEDIA QUERIES (Mobile Responsiveness) === */
@media (max-width: 1024px) {
  /* Main Layout: Stack columns */
  .detail-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Sidebar: Remove sticky, appear after main content */
  .detail-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
    margin-top: var(--space-lg);
  }

  /* Company Header */
  .single-company-header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .single-company-header-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-xs);
  }

  .company-meta {
    justify-content: center;
  }

  .single-company-header-right {
    margin-top: var(--space-md);
  }

  /* Quick Stats: More dense on mobile */
  .quick-stats {
    justify-content: space-around;
  }

  /* Rating Breakdown */
  .rating-bar-item {
    grid-template-columns: 40px 1fr 100px; /* Adjust for smaller screen */
    gap: var(--space-sm);
  }

  /* Pros & Cons: Stack vertically */
  .pros-cons {
    grid-template-columns: 1fr;
  }

  /* Review Card: Simplify header */
  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .review-date-rating {
    text-align: left;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }

  .review-date {
    margin-top: 0;
  }

  /* Review Category Ratings: Stack rows more densely */
  .review-category-ratings {
    grid-template-columns: 1fr;
  }

  /* Floating Button: Display on mobile */
  .floating-review-btn {
    display: inline-block;
  }

  /* Hide desktop Write a Review button */
  .single-company-header-right .btn-write-review {
    display: none;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* Spacing adjustments */
  :root {
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
  }

  /* Tab navigation: Less padding */
  .tab-link {
    padding: var(--space-sm) var(--space-xs);
    font-size: 14px;
  }

  /* Typography adjustments */
  .section-title {
    font-size: 28px;
  }

  .company-title {
    font-size: 24px;
  }

  .review-title {
    font-size: 16px;
  }
}
/*=============================================
   End Single Company PAGE - STYLES
  ============================================= */

/*=============================================
   Review Company PAGE - STYLES
  ============================================= */

/* Page Header */
.review-page-header {
  background: var(--bg-white);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

.review-page-header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.review-company-logo {
  width: 100px;
  height: 100px;
  border-radius: var(--border-radius);
  object-fit: cover;
  border: 1px solid var(--border);
}

.review-page-header-text {
  text-align: center;
}
.review-page-header-text h1 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: var(--space-xs);
}

.review-company-meta {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.encouragement {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Progress Indicator */
.progress-section {
  background: var(--bg-white);
  padding: var(--space-lg) 0;
  position: sticky;
  top: 70px;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.progress-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: all var(--transition);
  z-index: 2;
  background: var(--bg-white);
}

.step-circle.completed {
  background: var(--color-primary);
  color: var(--bg-white);
}

.step-circle.current {
  background: var(--color-primary);
  color: var(--bg-white);
  transform: scale(1.15);
  animation: pulse 2s infinite;
}

.step-circle.upcoming {
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 112, 169, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(74, 112, 169, 0);
  }
}

.step-label {
  margin-top: var(--space-xs);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.step-label.completed,
.step-label.current {
  color: var(--color-primary);
}

.step-label.upcoming {
  color: var(--text-secondary);
}

.progress-line {
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.progress-line-fill {
  height: 100%;
  background: var(--color-primary);
  transition: width 0.5s ease;
}

/* Form Container */
.review-form-section {
  padding: var(--space-2xl) 0;
}

.review-form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.review-form-step {
  display: none;
}

.review-form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-step-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

/* Star Rating */
.rating-group {
  margin-bottom: var(--space-lg);
}

.rating-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.required {
  color: #dc2626;
}

.tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--color-secondary);
  color: var(--bg-white);
  border-radius: 50%;
  font-size: 12px;
  cursor: help;
  position: relative;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
  white-space: nowrap;
  font-size: 12px;
  z-index: 10;
}

.stars {
  display: flex;
  gap: 8px;
}

.stars.large {
  gap: 12px;
}

.star {
  cursor: pointer;
  transition: all 0.2s ease;
}

.stars.large .star {
  font-size: 60px;
}

.stars .star {
  font-size: 40px;
}

.star.empty {
  color: #e0e0e0;
}

.star.filled {
  color: var(--color-primary);
}

.star:hover {
  transform: scale(1.1);
}

.rating-text {
  margin-top: var(--space-sm);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-primary);
  min-height: 27px;
}

.category-ratings {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.category-rating {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.category-rating .rating-label {
  min-width: 180px;
  margin-bottom: 0;
}

/* Form Fields */
/*  */
.char-counter {
  text-align: right;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.char-counter.success {
  color: #059669;
}

/***** error message *****/
/* Add to your theme's style.css */
.error-message,
.success-message,
.alert-dismissible,
.rv-error-message,
.rv-success-message {
  display: flex;
  justify-content: space-between;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  padding: 15px 20px !important;
  margin: 10px 0 !important;
  border-radius: 4px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  position: relative !important;
}

.error-message,
.rv-error-message {
  background: #f8d7da !important;
  border: 1px solid #f5c6cb !important;
  color: #721c24 !important;
}

.success-message,
.rv-success-message {
  background: #d4edda !important;
  border: 1px solid #c3e6cb !important;
  color: #155724 !important;
}

.close-alert {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  border: none !important;
  font-size: 24px !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
}
/***** End error message *****/

/* Guidelines Box */
.guidelines-box {
  background: var(--bg-primary);
  padding: var(--space-md);
  border-radius: var(--border-radius);
  margin-top: var(--space-md);
}

.guidelines-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.guidelines-box li {
  display: flex;
  align-items: start;
  gap: var(--space-xs);
}

.guidelines-box .check {
  color: #059669;
}

.guidelines-box .cross {
  color: #dc2626;
}

/* Radio Buttons */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.radio-option {
  display: flex;
  align-items: center;
  padding: var(--space-sm);
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition);
}

.radio-option:hover {
  border-color: var(--color-secondary);
  background: #f9fafb;
}

.radio-option input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: var(--space-sm);
  cursor: pointer;
}

.radio-option.selected {
  border-color: var(--color-primary);
  background: #eff6ff;
}

/* Navigation Buttons */
.review-form-navigation {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}
/* Success Screen */
.review-success-screen {
  display: none;
  text-align: center;
  padding: var(--space-2xl);
}

.review-success-screen.show {
  display: block;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 48px;
  color: var(--bg-white);
}

.review-success-screen h2 {
  font-size: 32px;
  margin-bottom: var(--space-md);
}

.review-success-screen p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.success-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* Draft Saved Indicator */
.draft-indicator {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  background: var(--text-primary);
  color: var(--bg-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  font-size: 13px;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1000;
}

.draft-indicator.show {
  opacity: 1;
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--bg-white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .review-page-header-content {
    flex-direction: column;
    text-align: center;
  }

  .review-page-header-text h1 {
    font-size: 28px;
  }

  .review-form-container {
    padding: var(--space-md);
  }

  .review-step-title {
    font-size: 24px;
  }

  .category-rating {
    flex-direction: column;
    align-items: start;
  }

  .progress-indicator {
    max-width: 100%;
  }

  .step-label {
    font-size: 11px;
  }

  .step-circle {
    width: 40px;
    height: 40px;
  }

  .review-form-navigation {
    flex-direction: column-reverse;
  }

  .btn {
    width: 100%;
  }
}
/*=============================================
   End Review Company PAGE - STYLES
  ============================================= */
