/**
 * Premium Component Styles
 * Ophiram-inspired UI components for QVG Capital theme
 */

/* ============================================
   Buttons - Premium Style
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  padding: 1rem 2rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  transition:
    color 0.4s var(--ease-out-expo),
    background-color 0.4s var(--ease-out-expo),
    border-color 0.4s var(--ease-out-expo),
    transform 0.3s var(--ease-out-expo),
    box-shadow 0.3s var(--ease-out-expo);
}

.btn:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
}

/* Primary Button - Solid Navy */
.btn-primary {
  color: var(--color-text-light);
  background-color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out-expo);
  z-index: -1;
}

.btn-primary:hover {
  color: var(--color-navy);
  border-color: var(--color-teal);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(107, 187, 174, 0.25);
}

.btn-primary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Accent Button - Solid Teal */
.btn-accent {
  color: var(--color-text-light);
  background-color: var(--color-teal);
  border-color: var(--color-teal);
  transition: transform 0.3s var(--ease-out-expo), 
              box-shadow 0.3s var(--ease-out-expo),
              background-color 0.3s ease;
}

.btn-accent:hover {
  color: var(--color-text-light);
  transform: translateY(-3px);
  background-color: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
  box-shadow: 0 12px 35px rgba(107, 187, 174, 0.35);
}

.btn-accent:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(107, 187, 174, 0.25);
}

/* Outline Button - Navy */
.btn-outline {
  color: var(--color-navy);
  background-color: transparent;
  border-color: var(--color-navy);
  z-index: 1;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-navy);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out-expo);
  z-index: -1;
}

.btn-outline:hover {
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(26, 35, 50, 0.2);
}

.btn-outline:hover::before {
  transform: translateY(0);
}

/* Outline Light - For dark backgrounds */
.btn-outline-light {
  color: var(--color-text-light);
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  z-index: 1;
}

.btn-outline-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-text-light);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out-expo);
  z-index: -1;
}

.btn-outline-light:hover {
  color: var(--color-navy);
  border-color: var(--color-text-light);
  transform: translateY(-2px);
}

.btn-outline-light:hover::before {
  transform: translateY(0);
}

/* Outline Accent Button */
.btn-outline-accent {
  color: var(--color-teal);
  background-color: transparent;
  border-color: var(--color-teal);
  z-index: 1;
}

.btn-outline-accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-teal);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out-expo);
  z-index: -1;
}

.btn-outline-accent:hover {
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(107, 187, 174, 0.2);
}

.btn-outline-accent:hover::before {
  transform: translateY(0);
}

/* Button Sizes */
.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: var(--font-size-base);
}

/* Button with icon */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon svg {
  width: 1em;
  height: 1em;
  transition: transform 0.3s var(--ease-out-expo);
}

.btn-icon:hover svg {
  transform: translateX(4px);
}

/* ============================================
   Cards - Premium Style
   ============================================ */

.card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out-expo);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(107, 187, 174, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out-expo);
  pointer-events: none;
}

/* Only apply transitions after AOS animation completes */
.card.aos-animate {
  transition: transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo),
              border-color 0.3s var(--ease-out-expo);
}

.card.aos-animate:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(107, 187, 174, 0.2);
}

.card.aos-animate:hover::before {
  opacity: 1;
}

/* Fallback hover styles for non-AOS scenarios */
.card:not([data-aos]):hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(107, 187, 174, 0.2);
  transition: transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo),
              border-color 0.3s var(--ease-out-expo);
}

.card:not([data-aos]):hover::before {
  opacity: 1;
}

/* Card on dark background */
.card-dark {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--color-border-dark);
  color: var(--color-text-light);
}

.card-dark:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(107, 187, 174, 0.3);
}

/* Card image */
.card-image {
  width: calc(100% + var(--spacing-lg) * 2);
  margin: calc(var(--spacing-lg) * -1) calc(var(--spacing-lg) * -1) var(--spacing-md);
  height: auto;
  object-fit: cover;
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-dark);
}

.card-text {
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-md);
}

.card-footer {
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

/* ============================================
   Feature Cards (Homepage)
   ============================================ */

.feature-card {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out-expo);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-teal);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out-expo), width 0.3s var(--ease-out-expo);
}

/* Only apply transitions after AOS animation completes */
.feature-card.aos-animate {
  transition: transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo),
              border-color 0.3s var(--ease-out-expo);
}

.feature-card.aos-animate:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  border-color: rgba(107, 187, 174, 0.2);
}

.feature-card.aos-animate:hover::before {
  opacity: 1;
  width: 100px;
}

/* Fallback hover styles for non-AOS scenarios */
.feature-card:not([data-aos]):hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  border-color: rgba(107, 187, 174, 0.2);
  transition: transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo),
              border-color 0.3s var(--ease-out-expo);
}

.feature-card:not([data-aos]):hover::before {
  opacity: 1;
  width: 100px;
}

.feature-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  color: var(--color-teal);
  margin-bottom: var(--spacing-md);
  transition: transform 0.3s var(--ease-out-expo),
              background 0.3s var(--ease-out-expo);
}

.feature-card-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card:hover .feature-card-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--color-teal-light) 0%, var(--color-teal) 100%);
  color: var(--color-text-light);
}

.feature-card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-dark);
}

.feature-card-text {
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-md);
}

/* ============================================
   Team Member Cards
   ============================================ */

.team-card {
  text-align: center;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Only apply transitions after AOS animation completes */
.team-card.aos-animate {
  transition: transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo);
}

.team-card.aos-animate:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

/* Fallback hover styles for non-AOS scenarios */
.team-card:not([data-aos]):hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo);
}

.team-card-image-wrapper {
  position: relative;
  overflow: hidden;
}

.team-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out-expo);
}

.team-card:hover .team-card-image {
  transform: scale(1.05);
}

.team-card-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 35, 50, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out-expo);
}

.team-card:hover .team-card-image-wrapper::after {
  opacity: 1;
}

.team-card-body {
  padding: var(--spacing-md) var(--spacing-lg);
}

.team-card-name {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-dark);
}

.team-card-role {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--spacing-sm);
}

.team-card-bio {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

/* ============================================
   Forms - Premium Style
   ============================================ */

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-dark);
}

.form-control {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: var(--font-size-base);
  font-family: var(--font-body);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color 0.3s var(--ease-out-expo),
    box-shadow 0.3s var(--ease-out-expo),
    background-color 0.3s var(--ease-out-expo);
}

.form-control:focus {
  outline: 0;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 4px rgba(107, 187, 174, 0.1);
  background-color: rgba(107, 187, 174, 0.02);
}

.form-control::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a2332' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Form validation states */
.form-control.is-valid {
  border-color: var(--color-success);
}

.form-control.is-invalid {
  border-color: var(--color-error);
}

.invalid-feedback,
.valid-feedback {
  display: block;
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-sm);
}

.invalid-feedback {
  color: var(--color-error);
}

.valid-feedback {
  color: var(--color-success);
}

/* ============================================
   Tables - Premium Style
   ============================================ */

.table {
  width: 100%;
  margin-bottom: var(--spacing-md);
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.table th,
.table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}

.table thead th {
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-dark);
  background-color: #f9fafb;
  border-bottom: 2px solid var(--color-border);
}

/* Zebra striping */
.table-striped tbody tr:nth-child(odd) {
  background-color: rgba(178, 180, 178, 0.08);
}

/* Bordered table */
.table-bordered {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid var(--color-border);
}

/* Hover effect */
.table-hover tbody tr {
  transition: background-color 0.2s ease;
}

.table-hover tbody tr:hover {
  background-color: #f9fafb;
}

/* Responsive table wrapper */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
}

/* ============================================
   Fund Pricing Ticker
   ============================================ */

.fund-ticker {
  background: var(--color-navy-deep);
  color: var(--color-text-cream);
  padding: 0.75rem 0;
  font-size: var(--font-size-sm);
  font-family: var(--font-body);
  letter-spacing: var(--tracking-normal);
  text-align: center;
  white-space: normal;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fund-ticker .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.fund-ticker-date {
  font-weight: var(--font-weight-medium);
  flex-basis: 100%;
  margin-bottom: 0.25rem;
}

.fund-ticker-divider {
  color: rgba(255, 255, 255, 0.3);
}

.fund-ticker-fund {
  white-space: nowrap;
}

.fund-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.fund-ticker-label {
  font-weight: var(--font-weight-medium);
  color: var(--color-teal-light);
}

.fund-ticker-value {
  font-family: var(--font-body);
}

.fund-ticker-divider {
  width: 1px;
  height: 1rem;
  background: rgba(255, 255, 255, 0.2);
}

/* Alternative class names used in HTML */
.ticker-date {
  font-weight: var(--font-weight-medium);
}

.ticker-divider {
  color: rgba(255, 255, 255, 0.3);
}

.ticker-fund {
  white-space: nowrap;
}

/* ============================================
   Badges & Pills
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  background-color: var(--color-navy);
  color: var(--color-text-light);
}

.badge-accent {
  background-color: var(--color-teal);
}

.badge-outline {
  background-color: transparent;
  border: 1px solid currentColor;
  color: var(--color-navy);
}

.pill {
  border-radius: var(--radius-full);
}

/* ============================================
   Alerts
   ============================================ */

.alert {
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.alert-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-info {
  color: #004085;
  background-color: #cce5ff;
  border-color: #b8daff;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}

/* ============================================
   Contact Icons
   ============================================ */

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  color: var(--color-teal);
  margin-bottom: var(--spacing-md);
  transition: transform 0.3s var(--ease-out-expo),
              background 0.3s var(--ease-out-expo);
}

.card:hover .contact-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--color-teal-light) 0%, var(--color-teal) 100%);
  color: var(--color-text-light);
}

/* ============================================
   Social Icons
   ============================================ */

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--color-border-dark);
  color: var(--color-text-cream);
  transition:
    background 0.3s var(--ease-out-expo),
    border-color 0.3s var(--ease-out-expo),
    color 0.3s var(--ease-out-expo),
    transform 0.3s var(--ease-out-expo);
}

.social-icon:hover {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-text-light);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   Scroll to Top Button
   ============================================ */

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-text-light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.3s var(--ease-out-expo),
    visibility 0.3s var(--ease-out-expo),
    transform 0.3s var(--ease-out-expo),
    background 0.3s var(--ease-out-expo);
  z-index: var(--z-sticky);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--color-teal);
  transform: translateY(-3px);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   Insights Page Styles - Editorial Design
   ============================================ */

/* Main Insights Section */
.insights-main-section {
  padding: var(--spacing-4xl) 0 var(--spacing-4xl);
  background: var(--color-bg-white);
  position: relative;
}

/* Modern Grid Layout */
.insights-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem);
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out-expo) 0.3s forwards;
}

/* Featured Article (First Card) - Only when it has an image */
.insight-card-featured .insight-card-image {
  aspect-ratio: 16 / 10;
}

/* If featured card has image, use 2-column layout */
.insight-card-featured:has(.insight-card-image) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.insight-card-featured:has(.insight-card-image) .insight-card-image {
  order: 1;
}

.insight-card-featured:has(.insight-card-image) .insight-card-body {
  order: 2;
  padding: var(--spacing-xl);
}

/* Featured styling for title regardless of image */
.insight-card-featured .insight-card-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
}

.insight-card-featured .insight-card-excerpt {
  font-size: var(--font-size-base);
  line-height: 1.7;
}

/* Modern Insight Card */
.insight-card-modern {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(31, 42, 68, 0.15);
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
}

.insight-card-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(107, 187, 174, 0.02) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
  pointer-events: none;
  z-index: 1;
}

.insight-card-modern:hover {
  transform: translateY(-8px);
  border-color: rgba(107, 187, 174, 0.25);
  box-shadow:
    0 0 0 1px rgba(107, 187, 174, 0.1),
    0 20px 50px rgba(31, 42, 68, 0.12),
    0 8px 25px rgba(31, 42, 68, 0.08);
}

.insight-card-modern:hover::before {
  opacity: 1;
}

/* Card Image */
.insight-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.insight-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
  display: block;
}

.insight-card-modern:hover .insight-card-image img {
  transform: scale(1.05);
}

.insight-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(31, 42, 68, 0.03) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.insight-card-modern:hover .insight-card-image-overlay {
  opacity: 1;
}

/* Card Body */
.insight-card-body {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  position: relative;
  z-index: 2;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

/* Card Meta */
.insight-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.insight-category {
  font-family: var(--font-body);
  font-size: 0.688rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  background: rgba(42, 54, 71, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
}

.insight-card-modern:hover .insight-category {
  background: rgba(42, 54, 71, 0.15);
  color: var(--color-navy);
}

.insight-date-text,
.insight-read-time {
  font-family: var(--font-body);
  font-size: 0.813rem;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
}

.insight-meta-divider {
  color: rgba(107, 187, 174, 0.3);
  font-weight: 300;
}

/* Card Title */
.insight-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  line-height: 1.35;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.01em;
  flex-grow: 1;
  text-transform: none;
}

.insight-card-title a {
  color: inherit;
  text-decoration: none;
  display: inline;
  transition: color 0.3s var(--ease-out-expo);
}

.insight-card-modern:hover .insight-card-title a {
  color: var(--color-navy-light);
}

/* Stretched link - makes entire card clickable */
.insight-card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
}

.insight-card-modern {
  cursor: pointer;
}

/* Card Excerpt */
.insight-card-excerpt {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
  max-width: 42ch;
  opacity: 0.9;
}

/* Card Footer */
.insight-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(31, 42, 68, 0.08);
  margin-top: auto;
}

.insight-author {
  font-family: var(--font-body);
  font-size: 0.813rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-dark);
}

.insight-source-badge {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: rgba(31, 42, 68, 0.04);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-medium);
}

/* Empty State */
.no-insights-modern {
  text-align: center;
  padding: var(--spacing-4xl) var(--spacing-lg);
  max-width: 500px;
  margin: 0 auto;
}

.no-insights-icon {
  width: 64px;
  height: 64px;
  color: var(--color-text-muted);
  opacity: 0.3;
  margin: 0 auto var(--spacing-lg);
}

.no-insights-modern h3 {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-dark);
  margin-bottom: var(--spacing-sm);
}

.no-insights-modern p {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Simple Insight Card */
.insight-card-simple {
  background: var(--color-bg-white);
  border: 1px solid rgba(31, 42, 68, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all 0.4s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.insight-card-simple:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 42, 68, 0.3);
  box-shadow: 0 12px 40px rgba(31, 42, 68, 0.1);
}

.insight-card-simple-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.insight-card-simple-date {
  font-family: var(--font-body);
  font-size: 0.813rem;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-md);
}

.insight-card-simple-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  line-height: 1.45;
  margin-bottom: var(--spacing-md);
  text-transform: none;
  letter-spacing: 0.01em;
}

.insight-card-simple-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.35s var(--ease-out-expo);
}

.insight-card-simple:hover .insight-card-simple-title a {
  color: var(--color-navy-light);
}

.insight-card-simple:active .insight-card-simple-title a {
  color: inherit;
}

.insight-card-simple-excerpt {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
  flex-grow: 1;
}

.insight-card-simple-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  background: rgba(31, 42, 68, 0.1);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  align-self: flex-start;
}

.insight-card-simple-btn svg {
  transition: transform 0.3s ease;
}

.insight-card-simple-btn:hover {
  background: rgba(31, 42, 68, 0.2);
  color: var(--color-navy-light);
}

.insight-card-simple-btn:hover svg {
  transform: translateX(4px);
}

/* Base Pagination Styles */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-2xl);
  flex-wrap: wrap;
}

.pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--spacing-sm);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid rgba(31, 42, 68, 0.15);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.pagination-wrapper .page-numbers:hover {
  color: var(--color-teal-dark);
  background: rgba(107, 187, 174, 0.1);
  border-color: rgba(107, 187, 174, 0.3);
}

.pagination-wrapper .page-numbers.current {
  background: rgba(107, 187, 174, 0.15);
  border-color: rgba(107, 187, 174, 0.3);
  color: var(--color-teal-dark);
}

.pagination-wrapper .page-numbers.dots {
  border: none;
  background: transparent;
}

.pagination-wrapper .page-numbers.prev,
.pagination-wrapper .page-numbers.next {
  padding: 0 var(--spacing-md);
}

/* Insights Page Wrapper - White Background */
.insights-page-wrapper {
  background: var(--color-bg-white);
  min-height: 100vh;
  position: relative;
}

.insights-page-hero {
  position: relative;
  min-height: 50vh;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-navy-deep);
}

.insights-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.insights-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.insights-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 35, 50, 0.75) 0%,
    rgba(26, 35, 50, 0.6) 100%
  );
}

.insights-page-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
}

.insights-hero-content,
.insights-page-hero .page-hero-content {
  text-align: center;
  max-width: 800px;
  padding: var(--spacing-4xl) 0 var(--spacing-xl);
}

.insights-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--spacing-md);
}

.insights-hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.65);
  max-width: 500px;
  margin: 0 auto;
}

.insights-hero-logo {
  display: block;
  max-width: 220px;
  height: auto;
  margin: var(--spacing-xl) auto 0;
}

/* Logo added via CSS as workaround for PHP cache */
.insights-page-hero .page-subtitle::after,
.insights-hero-subtitle::after {
  content: '';
  display: block;
  width: 220px;
  height: 50px;
  margin: var(--spacing-xl) auto 0;
  background-image: url('../images/qvg-logo-white.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.insights-count {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xl);
  font-weight: var(--font-weight-medium);
}

.insights-cards-section {
  padding: var(--spacing-lg) 0 var(--spacing-3xl);
  position: relative;
  background: var(--color-bg-white);
}

/* Light background card styles */
.insights-page-wrapper .insight-card-simple {
  background: var(--color-bg-white);
  border: 1px solid rgba(31, 42, 68, 0.1);
  box-shadow: 0 2px 8px rgba(31, 42, 68, 0.06);
}

.insights-page-wrapper .insight-card-simple:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 42, 68, 0.3);
  box-shadow:
    0 0 0 1px rgba(31, 42, 68, 0.1),
    0 12px 40px rgba(31, 42, 68, 0.12),
    0 4px 16px rgba(107, 187, 174, 0.08);
}

.insights-page-wrapper .insight-card-simple-date {
  color: var(--color-text-muted);
}

.insights-page-wrapper .insight-card-simple-title {
  color: var(--color-navy);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  margin-bottom: var(--spacing-md);
  position: relative;
}

.insights-page-wrapper .insight-card-simple-title a {
  color: var(--color-navy);
  display: inline;
  position: relative;
  transition: color 0.4s var(--ease-out-expo);
}

/* Subtle left border accent on hover */
.insights-page-wrapper .insight-card-simple-title::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--spacing-lg));
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-navy);
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out-expo);
}

.insights-page-wrapper .insight-card-simple:hover .insight-card-simple-title::before {
  transform: scaleY(1);
}

.insights-page-wrapper .insight-card-simple:hover .insight-card-simple-title a {
  color: var(--color-navy-light);
}

.insights-page-wrapper .insight-card-simple:active .insight-card-simple-title a {
  color: var(--color-navy);
}

.insights-page-wrapper .insight-card-simple-excerpt {
  color: var(--color-text);
}

.insights-page-wrapper .insight-card-simple-btn {
  background: rgba(31, 42, 68, 0.12);
  color: var(--color-navy);
  border: 1px solid rgba(31, 42, 68, 0.2);
}

.insights-page-wrapper .insight-card-simple-btn:hover {
  background: var(--color-navy);
  color: var(--color-text-light);
  border-color: var(--color-navy);
}

/* Modern card styles for light wrapper */
.insights-page-wrapper .insight-card-modern {
  background: var(--color-bg-white);
  border: 1px solid rgba(31, 42, 68, 0.1);
  box-shadow: 0 2px 8px rgba(31, 42, 68, 0.06);
}

.insights-page-wrapper .insight-card-modern:hover {
  border-color: rgba(107, 187, 174, 0.3);
  box-shadow:
    0 0 0 1px rgba(107, 187, 174, 0.1),
    0 20px 50px rgba(31, 42, 68, 0.12),
    0 8px 25px rgba(107, 187, 174, 0.06);
}

.insights-page-wrapper .insight-card-title {
  color: var(--color-navy);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.45;
  letter-spacing: 0.015em;
  text-transform: capitalize;
  position: relative;
}

.insights-page-wrapper .insight-card-title a {
  color: var(--color-navy);
  display: inline;
  transition: color 0.4s var(--ease-out-expo);
}

/* Subtle left border accent on hover for modern cards */
.insights-page-wrapper .insight-card-title::before {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(1.75rem, 4vw, 2.5rem));
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-navy);
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out-expo);
}

.insights-page-wrapper .insight-card-modern:hover .insight-card-title::before {
  transform: scaleY(1);
}

.insights-page-wrapper .insight-card-modern:hover .insight-card-title a {
  color: var(--color-navy-light);
}

.insights-page-wrapper .insight-card-excerpt {
  color: var(--color-text);
}

.insights-page-wrapper .insight-card-footer {
  border-top-color: rgba(31, 42, 68, 0.08);
}

.insights-page-wrapper .insight-author {
  color: var(--color-text-dark);
}

.insights-page-wrapper .insight-source-badge {
  background: rgba(31, 42, 68, 0.06);
  color: var(--color-text-muted);
}

.insights-page-wrapper .insight-date-text,
.insights-page-wrapper .insight-read-time {
  color: var(--color-text-muted);
}

.insights-page-wrapper .insight-category {
  background: rgba(42, 54, 71, 0.1);
  color: var(--color-navy);
}

.insights-page-wrapper .insight-card-modern:hover .insight-category {
  background: rgba(42, 54, 71, 0.15);
}

.insights-page-wrapper .no-insights-modern {
  background: #f9fafb;
  border-radius: var(--radius-lg);
  padding: var(--spacing-3xl);
}

.insights-page-wrapper .no-insights-modern h3 {
  color: var(--color-text-dark);
}

.insights-page-wrapper .no-insights-modern p {
  color: var(--color-text-muted);
}

.insights-page-wrapper .no-insights-icon {
  color: var(--color-text-muted);
  opacity: 0.4;
}

/* Insights Hero Responsive */
@media (max-width: 640px) {
  .insights-page-hero {
    min-height: 40vh;
  }

  .insights-hero-title {
    font-size: 2rem;
  }

  .insights-hero-subtitle {
    font-size: var(--font-size-base);
  }
}

/* CTA Section within wrapper */
.insights-page-wrapper .cta-section {
  background: var(--color-navy-deep);
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
  position: relative;
  margin-top: var(--spacing-2xl);
}

.insights-page-wrapper .cta-title {
  color: var(--color-text-light);
}

.insights-page-wrapper .cta-section .lead {
  color: rgba(255, 255, 255, 0.7);
}

/* Pagination in light section */
.insights-page-wrapper .pagination-wrapper .page-numbers {
  color: var(--color-text);
  background: var(--color-bg-white);
  border-color: rgba(31, 42, 68, 0.15);
}

.insights-page-wrapper .pagination-wrapper .page-numbers:hover {
  background: rgba(107, 187, 174, 0.1);
  border-color: rgba(107, 187, 174, 0.3);
  color: var(--color-teal-dark);
}

.insights-page-wrapper .pagination-wrapper .page-numbers.current {
  background: rgba(107, 187, 174, 0.15);
  border-color: rgba(107, 187, 174, 0.3);
  color: var(--color-teal-dark);
}

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Loading skeleton for cards */
.insight-card-modern.loading {
  pointer-events: none;
}

.insight-card-modern.loading .insight-card-image,
.insight-card-modern.loading .insight-card-title,
.insight-card-modern.loading .insight-card-excerpt {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 2000px 100%;
  animation: shimmer 2s infinite;
  border-radius: var(--radius-sm);
}

.insight-card-modern.loading .insight-card-title,
.insight-card-modern.loading .insight-card-excerpt {
  height: 1.2em;
  margin-bottom: 0.5em;
}

/* Smooth grid appearance */
.insights-grid-modern {
  will-change: opacity;
}

.insights-grid-modern.loaded {
  opacity: 1;
}

/* Reading progress bar for insights page */
.insights-progress-bar {
  position: fixed;
  top: calc(var(--header-height) + var(--ticker-height));
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-teal) 0%,
    var(--color-teal-light) 100%
  );
  z-index: calc(var(--z-header) + 1);
  transition: width 0.2s ease-out;
  box-shadow: 0 0 10px rgba(107, 187, 174, 0.3);
}

/* Category filter badges (for future implementation) */
.insights-filters {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.insights-filter-btn {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  padding: 0.625rem 1.25rem;
  border: 1px solid rgba(31, 42, 68, 0.15);
  background: transparent;
  color: var(--color-text);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-quart);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.insights-filter-btn:hover {
  border-color: var(--color-teal);
  color: var(--color-teal-dark);
  background: rgba(107, 187, 174, 0.05);
}

.insights-filter-btn.active {
  background: var(--color-teal);
  color: var(--color-text-light);
  border-color: var(--color-teal);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .insights-grid-modern {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
  }

  .insight-card-featured:has(.insight-card-image) {
    grid-template-columns: 1fr;
  }

  .insight-card-featured:has(.insight-card-image) .insight-card-image,
  .insight-card-featured:has(.insight-card-image) .insight-card-body {
    order: initial;
  }
}

@media (max-width: 768px) {
  .insights-main-section {
    padding: var(--spacing-2xl) 0;
  }

  .insights-grid-modern {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .insight-card-body {
    padding: var(--spacing-lg);
  }

  .insight-card-meta {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .insights-grid-modern {
    gap: var(--spacing-lg);
  }

  .insight-card-body {
    padding: var(--spacing-md);
  }

  .insight-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   Page Hero (for Insights page)
   ============================================ */

.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: calc(var(--spacing-xl) * 2) 0;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.9) 0%, rgba(26, 35, 50, 0.7) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--spacing-lg);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.page-subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Single Insight Page - Premium Design
   ============================================ */

.single-insight-page {
  padding: 0;
}

/* Insight Hero Section */
.insight-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: calc(var(--header-height) + var(--ticker-height));
}

.insight-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.insight-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.insight-hero-fallback {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
}

.insight-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 32, 51, 0.85) 0%,
    rgba(23, 32, 51, 0.75) 40%,
    rgba(23, 32, 51, 0.9) 100%
  );
}

.insight-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-3xl) var(--spacing-lg);
}

/* Meta badges */
.insight-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.insight-category-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-teal);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
}

.insight-date {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: var(--color-text-cream);
  letter-spacing: 0.02em;
  opacity: 0.9;
}

/* Hero Title */
.insight-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-normal);
  color: var(--color-text-light);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: var(--spacing-md);
}

/* Source attribution */
.insight-source {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-cream);
  margin-bottom: var(--spacing-lg);
  opacity: 0.85;
}

.insight-source strong {
  color: var(--color-teal-light);
  font-weight: var(--font-weight-semibold);
}

/* Hero CTA Button */
.insight-hero-cta {
  margin-top: var(--spacing-xl);
}

.btn-insight-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--color-teal);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-teal);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(107, 187, 174, 0.3);
}

.btn-insight-primary:hover {
  background: transparent;
  color: var(--color-teal-light);
  border-color: var(--color-teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107, 187, 174, 0.4);
}

.btn-insight-primary svg {
  transition: transform 0.3s ease;
}

.btn-insight-primary:hover svg {
  transform: translateX(3px);
}

/* Article Content Section */
.insight-article {
  padding: var(--spacing-3xl) 0;
  background: var(--color-bg-white);
}

.insight-content {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  line-height: 1.85;
  color: var(--color-text);
}

.insight-content p {
  margin-bottom: var(--spacing-lg);
}

.insight-content h2,
.insight-content h3,
.insight-content h4 {
  font-family: var(--font-display);
  color: var(--color-navy);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.insight-content blockquote {
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg);
  padding-left: var(--spacing-xl);
  border-left: 4px solid var(--color-teal);
  background: rgba(107, 187, 174, 0.05);
  font-style: italic;
  color: var(--color-navy);
}

/* Article Footer */
.insight-footer {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(31, 42, 68, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
}

.insight-categories,
.insight-tags {
  flex: 1;
  min-width: 200px;
}

.footer-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--spacing-sm);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.footer-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(107, 187, 174, 0.1);
  color: var(--color-teal-dark);
  font-family: var(--font-body);
  font-size: 0.813rem;
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.footer-tag:hover {
  background: rgba(107, 187, 174, 0.2);
}

/* Post Navigation */
.insight-navigation {
  padding: var(--spacing-2xl) 0 var(--spacing-3xl);
  background: #f8f9fa;
  border-top: 1px solid rgba(31, 42, 68, 0.06);
}

.insight-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.insight-nav-card {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-lg) var(--spacing-xl);
  background: var(--color-bg-white);
  border: 1px solid rgba(31, 42, 68, 0.08);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.insight-nav-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 42, 68, 0.3);
  box-shadow: 0 12px 40px rgba(31, 42, 68, 0.12);
}

.insight-nav-next {
  align-items: flex-start;
}

.insight-nav-prev {
  align-items: flex-end;
  text-align: right;
}

.insight-nav-disabled {
  opacity: 0.4;
  pointer-events: none;
  background: rgba(31, 42, 68, 0.02);
}

.insight-nav-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--spacing-sm);
}

.insight-nav-label svg {
  opacity: 0.7;
}

.insight-nav-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: var(--font-weight-medium);
  color: var(--color-navy);
  line-height: 1.35;
}

/* Back to All Insights */
.insight-nav-back {
  display: flex;
  justify-content: center;
}

.btn-insight-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem 2.5rem;
  background: var(--color-navy);
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid var(--color-navy);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(31, 42, 68, 0.2);
}

.btn-insight-outline:hover {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 42, 68, 0.25);
}

.btn-insight-outline svg {
  opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .insight-hero {
    min-height: 50vh;
  }

  .insight-hero-content {
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .insight-hero-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .insight-hero-meta {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .insight-nav-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .insight-nav-prev {
    align-items: flex-start;
    text-align: left;
  }

  .insight-nav-prev .insight-nav-label {
    flex-direction: row-reverse;
  }

  .insight-article {
    padding: var(--spacing-2xl) 0;
  }

  .insight-footer {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .insight-hero {
    min-height: 45vh;
  }

  .btn-insight-primary {
    width: 100%;
    justify-content: center;
  }

  .insight-nav-card {
    padding: var(--spacing-md);
  }
}

/* ============================================
   Contact Page Styles
   ============================================ */

/* Contact Page Wrapper */
.contact-page {
  padding: 0;
}

/* Contact Hero Section */
.contact-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 35, 50, 0.75) 0%,
    rgba(26, 35, 50, 0.6) 50%,
    rgba(26, 35, 50, 0.7) 100%
  );
}

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

.contact-hero-content {
  max-width: 600px;
  padding: var(--spacing-xl) 0;
}

.contact-hero-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-teal-light);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.contact-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-light);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin: 0;
}

/* Contact Main Section */
.contact-main {
  background: var(--color-bg-white);
  padding: var(--spacing-3xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: start;
}

/* Contact Form Column */
.contact-form-column {
  max-width: 550px;
}

.contact-section-title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-dark);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--spacing-md);
}

.contact-intro {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-xl);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-form-group {
  width: 100%;
}

.contact-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-bg-white);
  border: 1px solid rgba(31, 42, 68, 0.15);
  border-radius: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.contact-input:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(107, 187, 174, 0.1);
}

.contact-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

.contact-textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* reCAPTCHA Checkbox */
.recaptcha-wrapper {
  padding: 0.75rem 0;
}

.recaptcha-checkbox {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  user-select: none;
}

.recaptcha-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.recaptcha-checkmark {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(31, 42, 68, 0.3);
  border-radius: 3px;
  background: var(--color-bg-white);
  transition: all 0.2s ease;
  position: relative;
}

.recaptcha-checkbox input:checked + .recaptcha-checkmark {
  background: var(--color-teal);
  border-color: var(--color-teal);
}

.recaptcha-checkbox input:checked + .recaptcha-checkmark::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.recaptcha-text {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

/* Animated Submit Button - Matches hero "Get In Touch" style */
.btn-submit-animated {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.125rem 3.5rem;
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  background-color: transparent;
  border: 2px solid var(--color-navy);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s var(--ease-out-expo),
              border-color 0.4s var(--ease-out-expo),
              transform 0.3s ease;
}

.btn-submit-animated::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-navy);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out-expo);
  z-index: -1;
}

.btn-submit-animated:hover {
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(26, 35, 50, 0.2);
}

.btn-submit-animated:hover::before {
  transform: translateY(0);
}

/* Contact Info Column */
.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

/* Contact Map */
.contact-map-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-map-wrapper iframe {
  display: block;
}

/* Contact Details Blocks */
.contact-details-block {
  padding-top: var(--spacing-md);
}

.contact-details-title {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-dark);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--spacing-sm);
}

.contact-details-text {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

.contact-details-text a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details-text a:hover {
  color: var(--color-teal);
}

/* Contact Newsletter Section */
.contact-newsletter {
  position: relative;
  padding: var(--spacing-3xl) 0;
  overflow: hidden;
}

.contact-newsletter-bg {
  position: absolute;
  inset: 0;
  background: var(--color-navy-deep);
  z-index: 0;
}

.contact-newsletter-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400'%3E%3Crect fill='%231F2A44' width='1200' height='400'/%3E%3Cg opacity='0.15'%3E%3Crect x='50' y='200' width='2' height='200' fill='%23ffffff'/%3E%3Crect x='100' y='150' width='2' height='250' fill='%23ffffff'/%3E%3Crect x='150' y='180' width='2' height='220' fill='%23ffffff'/%3E%3Crect x='200' y='100' width='3' height='300' fill='%23ffffff'/%3E%3Crect x='250' y='130' width='2' height='270' fill='%23ffffff'/%3E%3Crect x='300' y='160' width='2' height='240' fill='%23ffffff'/%3E%3Crect x='350' y='80' width='4' height='320' fill='%23ffffff'/%3E%3Crect x='400' y='120' width='2' height='280' fill='%23ffffff'/%3E%3Crect x='450' y='140' width='2' height='260' fill='%23ffffff'/%3E%3Crect x='500' y='60' width='5' height='340' fill='%23ffffff'/%3E%3Crect x='550' y='100' width='3' height='300' fill='%23ffffff'/%3E%3Crect x='600' y='120' width='2' height='280' fill='%23ffffff'/%3E%3Crect x='650' y='50' width='6' height='350' fill='%23ffffff'/%3E%3Crect x='700' y='90' width='3' height='310' fill='%23ffffff'/%3E%3Crect x='750' y='110' width='2' height='290' fill='%23ffffff'/%3E%3Crect x='800' y='70' width='4' height='330' fill='%23ffffff'/%3E%3Crect x='850' y='100' width='3' height='300' fill='%23ffffff'/%3E%3Crect x='900' y='130' width='2' height='270' fill='%23ffffff'/%3E%3Crect x='950' y='90' width='4' height='310' fill='%23ffffff'/%3E%3Crect x='1000' y='120' width='2' height='280' fill='%23ffffff'/%3E%3Crect x='1050' y='150' width='2' height='250' fill='%23ffffff'/%3E%3Crect x='1100' y='110' width='3' height='290' fill='%23ffffff'/%3E%3Crect x='1150' y='140' width='2' height='260' fill='%23ffffff'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center bottom;
  opacity: 0.5;
}

.contact-newsletter-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 32, 51, 0.9) 0%,
    rgba(23, 32, 51, 0.85) 100%
  );
}

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

.contact-newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

/* Newsletter Content */
.contact-newsletter-content {
  max-width: 500px;
}

.contact-newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-weight-normal);
  color: var(--color-text-light);
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

.contact-newsletter-text {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--line-height-relaxed);
}

/* Newsletter Form */
.contact-newsletter-form-wrapper {
  max-width: 450px;
  margin-left: auto;
}

.contact-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.newsletter-form-group {
  width: 100%;
}

.newsletter-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: var(--color-text-dark);
  background: var(--color-bg-white);
  border: none;
  border-radius: 0;
  transition: box-shadow 0.3s ease;
  outline: none;
}

.newsletter-input:focus {
  box-shadow: 0 0 0 3px rgba(107, 187, 174, 0.3);
}

.newsletter-input::placeholder {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wide);
}

.newsletter-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem 0;
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-light);
  background: transparent;
  border: none;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  cursor: pointer;
  transition: color 0.3s ease;
  margin-top: var(--spacing-sm);
}

.newsletter-submit-btn:hover {
  color: var(--color-teal-light);
}

/* Contact Form Validation */
.contact-input.has-error {
  border-color: #dc3545;
  background-color: rgba(220, 53, 69, 0.02);
}

.contact-input.has-error:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.field-error {
  display: block;
  font-family: var(--font-body);
  font-size: 0.813rem;
  color: #dc3545;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  height: 0;
  overflow: hidden;
}

.field-error.visible {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  padding-bottom: 0.25rem;
}

.recaptcha-wrapper .field-error {
  margin-top: 0.75rem;
}

/* Checkbox error state */
.recaptcha-checkbox input[type="checkbox"].has-error + .recaptcha-checkmark {
  border-color: #dc3545;
}

/* Contact Form Response Messages */
.contact-message-response,
.newsletter-message {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-md);
}

.contact-message-response.success,
.newsletter-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.contact-message-response.error,
.newsletter-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Contact Page Responsive */
@media (max-width: 1024px) {
  .contact-grid {
    gap: var(--spacing-2xl);
  }

  .contact-newsletter-grid {
    gap: var(--spacing-2xl);
  }
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .contact-form-column {
    max-width: 100%;
  }

  .contact-info-column {
    order: -1;
  }

  .contact-newsletter-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
  }

  .contact-newsletter-content {
    max-width: 100%;
  }

  .contact-newsletter-form-wrapper {
    max-width: 100%;
    margin-left: 0;
  }

  .newsletter-submit-btn {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .contact-hero {
    min-height: 40vh;
  }

  .contact-hero-title {
    font-size: 2rem;
  }

  .contact-main {
    padding: var(--spacing-2xl) 0;
  }

  .contact-newsletter {
    padding: var(--spacing-2xl) 0;
  }

  .btn-submit-animated {
    width: 100%;
  }
}
