/* LegalAlphabet.com Styles - Mobile-First Enhanced */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #111;
  --primary-dark: #000;
  --primary-light: #333;
  --secondary-color: #6366f1;
  --accent-color: #ec4899;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --background-light: #f9fafb;
  --background-white: #ffffff;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Mobile-first spacing variables */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Mobile-first typography */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Additional spacing for desktop */
  --space-3xl: 4rem;
  --space-4xl: 5rem;

  /* Mobile touch targets */
  --touch-target: 44px;
  --touch-target-sm: 36px;
}

/* Body styles removed - handled by includes/header.php to prevent conflicts */

/* Mobile-first Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: var(--text-3xl);
  line-height: 1.1;
}
h2 {
  font-size: var(--text-2xl);
}
h3 {
  font-size: var(--text-xl);
}
h4 {
  font-size: var(--text-lg);
}
h5 {
  font-size: var(--text-base);
}
h6 {
  font-size: var(--text-sm);
}

p {
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

/* Navbar styles removed - handled by includes/header.php */

/* Navbar component styles removed - handled by includes/header.php */

/* Navigation styles removed - handled by includes/header.php */

/* All navigation-related styles removed - handled by includes/header.php */

/* Mobile-first Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  /* Mobile touch optimization */
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.15);
  border-radius: 4px;
}

.btn-primary:hover,
.btn-primary:active {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 17, 17, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #333;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover,
.btn-secondary:active {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 4px;
}

.btn-outline:hover,
.btn-outline:active {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

.btn-google {
  background: white;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.btn-google:hover,
.btn-google:active {
  box-shadow: var(--shadow-md);
}

/* Mobile-optimized Hero Section */
.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 100px var(--space-md) var(--space-2xl) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(17, 17, 17, 0.03),
    transparent
  );
  transform: rotate(45deg);
  pointer-events: none;
}

/* Extraordinary Legal Animation Universe */
.hero-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Animated Justice Scales with Physics */
.justice-scales {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 120px;
  height: 100px;
  animation: scalesBalance 8s ease-in-out infinite;
}

.scales-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 60px;
  background: linear-gradient(135deg, #275df5, #1e4dd8);
  border-radius: 4px;
}

.scales-beam {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(135deg, #275df5, #1e4dd8);
  border-radius: 2px;
  animation: beamTilt 8s ease-in-out infinite;
  transform-origin: center;
}

.scales-left-pan,
.scales-right-pan {
  position: absolute;
  top: 8px;
  width: 25px;
  height: 12px;
  background: rgba(39, 93, 245, 0.8);
  border-radius: 0 0 12px 12px;
  border: 2px solid #275df5;
  border-top: none;
}

.scales-left-pan {
  left: 10px;
  animation: leftPanFloat 8s ease-in-out infinite;
}

.scales-right-pan {
  right: 10px;
  animation: rightPanFloat 8s ease-in-out infinite;
}

/* Floating Legal Documents */
.legal-documents {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.document {
  position: absolute;
  width: 60px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: documentFloat 12s ease-in-out infinite;
}

.doc-1 {
  top: 30%;
  left: 15%;
  animation-delay: 0s;
  transform: rotate(-10deg);
}

.doc-2 {
  top: 60%;
  left: 5%;
  animation-delay: 4s;
  transform: rotate(15deg);
}

.doc-3 {
  top: 15%;
  left: 75%;
  animation-delay: 8s;
  transform: rotate(-5deg);
}

.doc-header {
  width: 80%;
  height: 4px;
  background: linear-gradient(135deg, #275df5, #1e4dd8);
  margin: 8px auto 4px;
  border-radius: 2px;
}

.doc-lines {
  width: 90%;
  height: 2px;
  background: rgba(39, 93, 245, 0.3);
  margin: 2px auto;
  border-radius: 1px;
  box-shadow: 0 6px 0 rgba(39, 93, 245, 0.2), 0 12px 0 rgba(39, 93, 245, 0.2),
    0 18px 0 rgba(39, 93, 245, 0.2), 0 24px 0 rgba(39, 93, 245, 0.2);
}

.doc-signature {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 20px;
  height: 8px;
  background: linear-gradient(45deg, #275df5, transparent);
  border-radius: 2px;
  opacity: 0.6;
  animation: signatureWrite 3s ease-in-out infinite;
}

/* Legal Network Constellation */
.legal-network {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
}

.network-node {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(39, 93, 245, 0.2);
  border: 2px solid rgba(39, 93, 245, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #275df5;
  animation: nodeFloat 6s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.node-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.node-2 {
  top: 20%;
  right: 0;
  animation-delay: 1.2s;
}

.node-3 {
  bottom: 20%;
  right: 0;
  animation-delay: 2.4s;
}

.node-4 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 3.6s;
}

.node-5 {
  top: 20%;
  left: 0;
  animation-delay: 4.8s;
}

.network-connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(39, 93, 245, 0.4),
    transparent
  );
  animation: connectionPulse 4s ease-in-out infinite;
  transform-origin: left center;
}

.conn-1-2 {
  top: 15%;
  left: 60%;
  width: 80px;
  transform: rotate(45deg);
  animation-delay: 0s;
}

.conn-2-3 {
  top: 40%;
  right: 10%;
  width: 60px;
  transform: rotate(90deg);
  animation-delay: 0.8s;
}

.conn-3-4 {
  bottom: 15%;
  left: 60%;
  width: 80px;
  transform: rotate(-45deg);
  animation-delay: 1.6s;
}

.conn-4-5 {
  bottom: 15%;
  left: 20%;
  width: 80px;
  transform: rotate(45deg);
  animation-delay: 2.4s;
}

.conn-5-1 {
  top: 15%;
  left: 20%;
  width: 80px;
  transform: rotate(-45deg);
  animation-delay: 3.2s;
}

.conn-1-3 {
  top: 25%;
  left: 50%;
  width: 120px;
  transform: rotate(70deg);
  animation-delay: 4s;
}

.conn-2-4 {
  top: 25%;
  left: 35%;
  width: 140px;
  transform: rotate(110deg);
  animation-delay: 4.8s;
}

/* Animated Signature */
.signature-container {
  position: absolute;
  bottom: 15%;
  right: 20%;
  width: 150px;
  height: 40px;
  opacity: 0.4;
}

.signature-svg {
  width: 100%;
  height: 100%;
}

.signature-path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: signatureDraw 8s ease-in-out infinite;
}

/* Gavel Strike with Ripple Effects */
.gavel-strike {
  position: absolute;
  bottom: 20%;
  left: 20%;
  width: 80px;
  height: 60px;
}

.gavel-hammer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 12px;
  background: linear-gradient(135deg, #275df5, #1e4dd8);
  border-radius: 6px;
  animation: gavelStrike 6s ease-in-out infinite;
  transform-origin: bottom center;
}

.gavel-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 8px;
  background: rgba(39, 93, 245, 0.6);
  border-radius: 4px;
}

.ripple {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid rgba(39, 93, 245, 0.4);
  border-radius: 50%;
  opacity: 0;
  animation: rippleExpand 6s ease-in-out infinite;
}

.ripple-1 {
  animation-delay: 0s;
}

.ripple-2 {
  animation-delay: 0.5s;
}

.ripple-3 {
  animation-delay: 1s;
}

/* Legal Code Rain */
.legal-code-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.code-column {
  position: absolute;
  top: -50px;
  left: var(--left);
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: rgba(39, 93, 245, 0.3);
  animation: codeRain 15s linear infinite;
  animation-delay: var(--delay);
  white-space: nowrap;
  letter-spacing: 2px;
}

/* Courthouse Silhouette */
.courthouse-silhouette {
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 100px;
  height: 80px;
  opacity: 0.15;
}

.courthouse-main {
  position: relative;
  width: 100%;
  height: 60px;
  background: linear-gradient(135deg, #275df5, #1e4dd8);
  border-radius: 4px 4px 0 0;
}

.courthouse-window {
  position: absolute;
  width: 8px;
  height: 12px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  animation: windowLight 4s ease-in-out infinite;
}

.window-1 {
  top: 10px;
  left: 15px;
  animation-delay: 0s;
}
.window-2 {
  top: 10px;
  left: 30px;
  animation-delay: 1s;
}
.window-3 {
  top: 10px;
  right: 30px;
  animation-delay: 2s;
}
.window-4 {
  top: 10px;
  right: 15px;
  animation-delay: 3s;
}
.window-5 {
  top: 30px;
  left: 22px;
  animation-delay: 1.5s;
}
.window-6 {
  top: 30px;
  right: 22px;
  animation-delay: 2.5s;
}

.courthouse-pillars {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 15px;
  background: rgba(39, 93, 245, 0.8);
}

.pillar {
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 20px;
  background: rgba(39, 93, 245, 0.9);
  animation: pillarGlow 3s ease-in-out infinite;
}

.pillar-1 {
  left: 20%;
  animation-delay: 0s;
}
.pillar-2 {
  left: 35%;
  animation-delay: 0.75s;
}
.pillar-3 {
  right: 35%;
  animation-delay: 1.5s;
}
.pillar-4 {
  right: 20%;
  animation-delay: 2.25s;
}

.courthouse-dome {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 15px;
  background: linear-gradient(135deg, #275df5, #1e4dd8);
  border-radius: 15px 15px 0 0;
  animation: domeGlow 6s ease-in-out infinite;
}

/* Floating Legal Terms */
.floating-terms {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.legal-term {
  position: absolute;
  font-family: "Georgia", serif;
  font-size: 18px;
  font-weight: 300;
  color: rgba(39, 93, 245, 0.4);
  animation: termFloat 10s ease-in-out infinite;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.term-1 {
  top: 25%;
  left: 5%;
  animation-delay: 0s;
}

.term-2 {
  top: 45%;
  right: 8%;
  animation-delay: 2s;
}

.term-3 {
  bottom: 35%;
  left: 8%;
  animation-delay: 4s;
}

.term-4 {
  top: 15%;
  right: 35%;
  animation-delay: 6s;
}

.term-5 {
  bottom: 25%;
  right: 15%;
  animation-delay: 8s;
}

/* Extraordinary Keyframe Animations */
@keyframes scalesBalance {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-8deg);
  }
  75% {
    transform: rotate(8deg);
  }
}

@keyframes beamTilt {
  0%,
  100% {
    transform: translateX(-50%) rotate(0deg);
  }
  25% {
    transform: translateX(-50%) rotate(-5deg);
  }
  75% {
    transform: translateX(-50%) rotate(5deg);
  }
}

@keyframes leftPanFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(8px);
  }
  75% {
    transform: translateY(-5px);
  }
}

@keyframes rightPanFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(-5px);
  }
  75% {
    transform: translateY(8px);
  }
}

@keyframes documentFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(var(--rotation, 0deg)) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-30px) rotate(calc(var(--rotation, 0deg) + 10deg))
      scale(1.05);
    opacity: 1;
  }
}

@keyframes signatureWrite {
  0%,
  70% {
    opacity: 0.6;
  }
  85% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
}

@keyframes nodeFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.1);
  }
}

@keyframes connectionPulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes signatureDraw {
  0% {
    stroke-dashoffset: 300;
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.4;
  }
}

@keyframes gavelStrike {
  0%,
  85% {
    transform: translateX(-50%) rotate(0deg);
  }
  5% {
    transform: translateX(-50%) rotate(-45deg);
  }
  10% {
    transform: translateX(-50%) rotate(0deg);
  }
}

@keyframes rippleExpand {
  0% {
    width: 0;
    height: 0;
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  20% {
    width: 60px;
    height: 60px;
    opacity: 0.4;
  }
  40% {
    width: 120px;
    height: 120px;
    opacity: 0.2;
  }
  60% {
    width: 180px;
    height: 180px;
    opacity: 0;
  }
  100% {
    width: 180px;
    height: 180px;
    opacity: 0;
  }
}

@keyframes codeRain {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(calc(100vh + 50px));
    opacity: 0;
  }
}

@keyframes windowLight {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  }
}

@keyframes pillarGlow {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(39, 93, 245, 0.6);
  }
}

@keyframes domeGlow {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 15px rgba(39, 93, 245, 0.8);
  }
}

@keyframes termFloat {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.4;
  }
  25% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-40px) translateX(-5px);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-20px) translateX(-10px);
    opacity: 0.6;
  }
}

/* Mobile Responsive Animations */
@media (max-width: 768px) {
  /* Hide all floating animation elements on mobile */
  .hero-animation {
    display: none;
  }

  .justice-scales,
  .legal-network,
  .legal-documents,
  .floating-terms,
  .courthouse-silhouette,
  .legal-code-rain,
  .signature-container {
    display: none;
  }
}

.hero-content {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color),
    var(--accent-color)
  );
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 15px rgba(39, 93, 245, 0.3);
}

.hero h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-dark);
  line-height: 1.1;
}

.hero p {
  font-size: var(--text-base);
  color: var(--text-light);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: nowrap; /* Changed to prevent button stacking */
}

/* Mobile-first Search Section */
.search-section {
  background: var(--background-white);
  padding: var(--space-xl) var(--space-md);
  border-radius: 16px;
  margin: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 10;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.search-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-weight: 500;
  color: var(--text-dark);
  font-size: var(--text-sm);
}

.form-input,
.form-select {
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: var(--text-base);
  background: var(--background-white);
  transition: all 0.3s ease;
  /* Mobile optimization */
  min-height: var(--touch-target);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

/* Mobile-first Jobs Section */
.jobs-section {
  padding: var(--space-2xl) var(--space-md);
  background: var(--background-light);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--text-light);
  font-size: var(--text-base);
}

/* Mobile-optimized Job Cards */
.jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.job-card {
  background: var(--background-white);
  border: 1px solid var(--primary-color);
  border-radius: 12px;
  padding: var(--space-lg);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  /* Mobile touch optimization */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.job-card:hover,
.job-card:active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.job-card.featured {
  background: linear-gradient(
    135deg,
    rgba(39, 93, 245, 0.05),
    rgba(99, 102, 241, 0.05)
  );
  border-color: var(--primary-color);
  position: relative;
}

.job-card.featured::before {
  content: "Featured";
  position: absolute;
  top: -1px;
  right: var(--space-lg);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 0 0 8px 8px;
  font-size: var(--text-xs);
  font-weight: 600;
}

.job-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.company-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-weight: 600;
  flex-shrink: 0;
  font-size: var(--text-sm);
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.job-info {
  flex: 1;
  min-width: 0;
}

.job-info h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text-dark);
  line-height: 1.3;
  position: relative;
  padding-bottom: 8px;
  display: inline-block;
}

.job-info h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

.company-name {
  color: var(--text-light);
  font-size: var(--text-sm);
  font-weight: 500;
}

.job-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.job-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: #1f2937;
  font-size: var(--text-xs);
  font-weight: 600;
}

.job-meta-item i {
  color: #000000;
  width: 14px;
  flex-shrink: 0;
}

/* New field styles */
.job-meta-item.remote-eligible {
  color: #1f2937;
}

.job-meta-item.remote-eligible i {
  color: var(--primary-color);
}

.bar-states {
  margin-top: var(--space-xs);
  font-style: italic;
}

.bar-states small {
  color: var(--text-muted);
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.job-tag {
  background: var(--background-light);
  color: var(--text-light);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 16px;
  font-size: var(--text-xs);
  font-weight: 500;
}

.job-tag.practice-area {
  background: rgba(39, 93, 245, 0.1);
  color: var(--primary-color);
}

.job-tag.education {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.job-tag.experience {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.job-tag.immediate {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  animation: pulse 2s infinite;
}

.job-tag.bar-required {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.job-additional-info {
  margin-top: 10px;
  font-size: 0.875rem;
  color: #666;
  border-top: 1px solid #e5e7eb;
  padding-top: 8px;
}

.job-additional-info div {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.job-additional-info div:last-child {
  margin-bottom: 0;
}

.job-additional-info i {
  width: 14px;
  color: var(--text-muted);
}

.job-description {
  color: var(--text-light);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.job-salary {
  font-weight: 600;
  color: #1f2937;
  font-size: var(--text-sm);
}

.job-actions {
  display: flex;
  gap: var(--space-sm);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-target-sm);
  height: var(--touch-target-sm);
  border: 1px solid var(--border-color);
  background: var(--background-white);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: var(--text-sm);
  /* Mobile touch optimization */
  -webkit-tap-highlight-color: transparent;
}

.btn-icon:hover,
.btn-icon:active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(39, 93, 245, 0.05);
}

.btn-icon.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Mobile-optimized Tabs */
.job-tabs {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.tab-buttons {
  display: inline-flex;
  background: var(--background-light);
  border-radius: 12px;
  padding: var(--space-xs);
  gap: var(--space-xs);
  /* Mobile touch optimization */
  width: 100%;
  max-width: 300px;
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: none;
  background: transparent;
  color: var(--text-light);
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: var(--text-sm);
  flex: 1;
  /* Mobile touch optimization */
  min-height: var(--touch-target);
  -webkit-tap-highlight-color: transparent;
}

.tab-btn:hover,
.tab-btn:active {
  color: var(--primary-color);
}

.tab-btn.active {
  background: white;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  pointer-events: none;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.cta-content p {
  font-size: var(--text-base);
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

/* Enhanced Mobile Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: var(--space-2xl) var(--space-md) var(--space-md);
  /* Better mobile overflow handling */
  overflow-x: hidden;
}

.footer-content {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  text-align: center;
}

/* Mobile-first footer logo */
.footer .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  color: white !important;
  font-weight: 700;
  font-size: var(--text-lg);
}

.footer .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: var(--text-sm);
}

.footer-section h4 {
  margin-bottom: var(--space-md);
  color: white;
  font-size: var(--text-base);
  font-weight: 600;
  /* Mobile touch target */
  padding: var(--space-xs) 0;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: var(--space-sm);
  border-radius: 6px;
  font-size: var(--text-sm);
  /* Mobile touch target */
  min-height: var(--touch-target-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Better mobile tap area */
  min-width: 120px;
}

.footer-links a:hover,
.footer-links a:active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
}

.footer-bottom p {
  margin-bottom: var(--space-sm);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0 var(--space-md) 0;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-target);
  height: var(--touch-target);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: var(--text-lg);
  /* Better mobile interaction */
  -webkit-tap-highlight-color: transparent;
  /* Ensure minimum touch target */
  min-width: var(--touch-target);
  min-height: var(--touch-target);
}

.social-link:hover,
.social-link:active {
  background: var(--primary-color);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(39, 93, 245, 0.3);
}

/* Individual social platform colors on hover */
.social-link:hover {
  background: var(--primary-color);
}

.social-link[href*="facebook"]:hover {
  background: #1877f2;
}

.social-link[href*="twitter"]:hover {
  background: #1da1f2;
}

.social-link[href*="linkedin"]:hover {
  background: #0077b5;
}

.social-link[href*="instagram"]:hover {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

/* Responsive Design - Tablet and up */
@media (min-width: 768px) {
  :root {
    /* Native app typography */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 0.95rem;
    --text-lg: 1.1rem;
    --text-xl: 1.3rem;
    --text-2xl: 1.6rem;
    --text-3xl: 2.2rem;
    --text-4xl: 2.8rem;

    /* Native app spacing */
    --app-padding: 24px;
    --app-margin: 20px;
    --app-border-radius: 8px;
    --app-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --app-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);

    /* Content max-width for readable line lengths */
    --content-max-width: 1400px;
  }

  /* Desktop body styles removed - handled by includes/header.php */

  /* Native app container */
  .container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--app-padding);
  }

  /* Header, navbar, and navigation styles removed - handled by includes/header.php */

  .btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(17, 17, 17, 0.15);
    border-radius: 4px;
  }

  .btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 17, 17, 0.25);
  }

  .btn-secondary {
    background: white;
    color: #475569;
    border: 1px solid #e2e8f0;
    box-shadow: var(--app-shadow);
  }

  .btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
  }

  .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
  }

  .btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }

  /* User menu and menu toggle styles removed - handled by includes/header.php */

  /* Native app hero section */
  .hero {
    padding: 80px var(--app-padding) 60px var(--app-padding);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin: 0;
  }

  .hero-content {
    max-width: 800px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .hero p {
    font-size: var(--text-lg);
    color: #64748b;
    max-width: 600px;
    margin: 0 auto var(--app-margin) auto;
  }

  .hero-badge {
    font-size: var(--text-sm);
    padding: 8px 16px;
    background: linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color),
      var(--accent-color)
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--app-margin);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(39, 93, 245, 0.3);
  }

  /* Native app search section */
  .search-section {
    padding: var(--app-padding);
    margin: var(--app-padding);
    background: white;
    border-radius: var(--app-border-radius);
    box-shadow: var(--app-shadow);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .search-form {
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
  }

  .search-filters {
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
    gap: 16px;
    flex: 1;
  }

  .form-input,
  .form-select {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: var(--text-sm);
    transition: all 0.2s ease;
  }

  .form-input:focus,
  .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
    outline: none;
  }

  /* Native app job cards */
  .jobs-section {
    padding: 40px var(--app-padding);
    background: #fafbfc;
  }

  .jobs-grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    max-width: var(--content-max-width);
    margin: 0 auto;
  }

  .job-card {
    background: white;
    border: 1px solid var(--primary-color);
    border-radius: var(--app-border-radius);
    padding: var(--app-padding);
    box-shadow: var(--app-shadow);
    transition: all 0.2s ease;
  }

  .job-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--app-shadow-hover);
    border-color: #cbd5e1;
  }

  .job-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .job-meta-item {
    font-size: var(--text-sm);
    color: #1f2937;
    font-weight: 600;
  }

  .job-footer {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }

  .section-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: var(--text-lg);
    color: #64748b;
  }

  /* Native app footer */
  .footer {
    background: #1e293b;
    padding: 60px var(--app-padding) 30px var(--app-padding);
    margin-top: 60px;
  }

  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: var(--content-max-width);
    margin: 0 auto;
    text-align: left;
  }

  .footer .logo {
    justify-content: flex-start;
    text-align: left;
    font-size: var(--text-lg);
  }

  .footer-section h4 {
    color: white;
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: 16px;
  }

  .footer-links {
    align-items: flex-start;
  }

  .footer-links a {
    justify-content: flex-start;
    min-width: auto;
    padding: 6px 0;
    color: #94a3b8;
    font-size: var(--text-sm);
    transition: color 0.2s ease;
  }

  .footer-links a:hover {
    color: white;
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    flex-wrap: wrap;
    gap: var(--app-margin);
    max-width: var(--content-max-width);
    margin: 30px auto 0 auto;
    padding-top: 30px;
    border-top: 1px solid #334155;
  }

  .footer-bottom p {
    color: #94a3b8;
    font-size: var(--text-sm);
  }

  .social-links {
    margin: 0;
    gap: 12px;
  }

  .social-link {
    width: 36px;
    height: 36px;
    background: #334155;
    border-radius: 6px;
    transition: all 0.2s ease;
  }

  .social-link:hover {
    background: #275df5;
    transform: translateY(-1px);
  }
}

/* Large screens */
/* Native app tabs */
.job-tabs {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.tab-buttons {
  background: white;
  border-radius: 8px;
  padding: 4px;
  box-shadow: var(--app-shadow);
  border: 1px solid #e2e8f0;
}

.tab-btn {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: #64748b;
  background: transparent;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tab-btn.active {
  background: #275df5;
  color: white;
  box-shadow: 0 2px 4px rgba(39, 93, 245, 0.2);
}

.tab-btn:hover:not(.active) {
  background: #f1f5f9;
  color: #475569;
}

/* Native app page header */
.page-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 80px var(--app-padding) 60px var(--app-padding);
}

.page-header-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.page-badge {
  background: rgba(39, 93, 245, 0.1);
  color: #275df5;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-lg);
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.2rem;
  }

  .search-filters {
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
  }

  .jobs-grid {
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 24px;
  }

  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .footer-bottom {
    flex-wrap: nowrap;
  }

  /* Large desktop optimizations */
  .container {
    padding: 0 32px;
  }
}

/* Notification Styles - Mobile Optimized */
.notification {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  left: var(--space-md);
  z-index: 1000;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--primary-color);
  transform: translateY(-100px);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateY(0);
}

.notification-success {
  border-left-color: var(--success-color);
}

.notification-error {
  border-left-color: var(--error-color);
}

.notification-warning {
  border-left-color: var(--warning-color);
}

.notification-content {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.notification-content i {
  font-size: var(--text-lg);
}

.notification-success i {
  color: var(--success-color);
}

.notification-error i {
  color: var(--error-color);
}

.notification-warning i {
  color: var(--warning-color);
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-sm);
  margin-left: auto;
  min-width: var(--touch-target-sm);
  min-height: var(--touch-target-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.notification-close:hover {
  color: var(--text-dark);
  background: var(--background-light);
}

@media (min-width: 768px) {
  .notification {
    right: var(--space-xl);
    left: auto;
    max-width: 400px;
  }
}

/* Form Error Styles */
.form-input.error,
.form-select.error {
  border-color: var(--error-color);
  background-color: rgba(239, 68, 68, 0.05);
}

.field-error {
  color: var(--error-color);
  font-size: var(--text-xs);
  margin-top: var(--space-xs);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  background: white;
  padding: var(--space-xl);
  border-radius: 12px;
  text-align: center;
  min-width: 200px;
}

.loading-spinner i {
  font-size: var(--text-2xl);
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

/* Fix for uploaded company logos - ensure white background for all images */
.company-logo img,
.company-logo-large img,
img[src*="uploads/profile-pictures/"] {
  background: white !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -webkit-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: optimizeQuality;
  -ms-interpolation-mode: bicubic;
}

/* Utility Classes - optimized for desktop */

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: var(--space-xs);
}
.mt-2 {
  margin-top: var(--space-sm);
}
.mt-3 {
  margin-top: var(--space-md);
}
.mt-4 {
  margin-top: var(--space-lg);
}
.mt-5 {
  margin-top: var(--space-2xl);
}

.mb-1 {
  margin-bottom: var(--space-xs);
}
.mb-2 {
  margin-bottom: var(--space-sm);
}
.mb-3 {
  margin-bottom: var(--space-md);
}
.mb-4 {
  margin-bottom: var(--space-lg);
}
.mb-5 {
  margin-bottom: var(--space-2xl);
}

.hidden {
  display: none;
}
.flex {
  display: flex;
}
.grid {
  display: grid;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}

.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: var(--space-xs);
}
.gap-2 {
  gap: var(--space-sm);
}
.gap-3 {
  gap: var(--space-md);
}
.gap-4 {
  gap: var(--space-lg);
}

.rounded {
  border-radius: 6px;
}
.rounded-lg {
  border-radius: 8px;
}
.rounded-xl {
  border-radius: 12px;
}
.rounded-full {
  border-radius: 50%;
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}
.shadow-md {
  box-shadow: var(--shadow-md);
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}
.shadow-xl {
  box-shadow: var(--shadow-xl);
}

/* Page Header - Mobile Optimized */
.page-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 100px var(--space-md) var(--space-2xl) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(39, 93, 245, 0.05),
    transparent
  );
  transform: rotate(45deg);
  pointer-events: none;
}

.page-header-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(39, 93, 245, 0.1);
  color: var(--primary-color);
  padding: var(--space-sm) var(--space-md);
  border-radius: 25px;
  font-size: var(--text-xs);
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

.page-header h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

.page-header p {
  font-size: var(--text-base);
  color: var(--text-light);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .page-header {
    padding: 60px var(--space-2xl) var(--space-2xl) var(--space-2xl);
  }

  .page-header h1 {
    font-size: var(--text-4xl);
  }

  .page-header p {
    font-size: var(--text-lg);
  }
}

/* Companies Grid - Enhanced LinkedIn Style */
.companies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .companies-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .companies-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
  }
}

.company-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.company-card:hover {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(39, 93, 245, 0.08);
  border-color: rgba(39, 93, 245, 0.2);
  transform: translateY(-1px);
}

.company-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 24px 0 24px;
  position: relative;
}

.company-logo {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-weight: 600;
  flex-shrink: 0;
  font-size: 18px;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.company-info {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
}

.company-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--primary-color);
  line-height: 1.25;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  word-wrap: break-word;
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
}

.company-info h3:hover {
  text-decoration: underline;
  cursor: pointer;
}

.company-type {
  color: rgba(0, 0, 0, 0.6);
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  line-height: 1.25;
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
}

.company-content {
  padding: 16px 24px 24px 24px;
}

.company-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.company-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 12px;
  font-weight: 400;
}

.company-meta-item i {
  color: rgba(0, 0, 0, 0.4);
  width: 12px;
  flex-shrink: 0;
}

.company-meta-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 400;
}

.company-meta-item a:hover {
  text-decoration: underline;
}

.company-description {
  color: rgba(0, 0, 0, 0.9);
  font-size: 14px;
  line-height: 1.33;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.company-stats {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  padding: 0;
  background: transparent;
}

.stat {
  text-align: left;
  flex: none;
}

.stat-number {
  display: inline;
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
  margin-right: 4px;
}

.stat-label {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.company-footer {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.company-footer .btn {
  flex: 1;
  justify-content: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.company-footer .btn-outline {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.company-footer .btn-outline:hover {
  background: rgba(39, 93, 245, 0.08);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.company-footer .btn-primary {
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: white;
}

.company-footer .btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* No Results */
.no-results {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  background: var(--background-white);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.no-results-icon {
  font-size: var(--text-4xl);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.no-results h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

.no-results p {
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

/* Pagination - Mobile Optimized */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

.pagination .btn {
  min-width: var(--touch-target);
}

/* Touch and mobile-specific improvements */
@media (hover: none) and (pointer: coarse) {
  .job-card:hover {
    transform: none;
  }

  .job-card:active {
    transform: scale(0.98);
  }

  .btn:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(0.95);
  }

  /* Mobile navbar interactions removed - handled by includes/header.php */

  /* Better mobile footer interactions */
  .footer-links a:hover {
    background: transparent;
    transform: none;
  }

  .footer-links a:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
  }

  /* Social links mobile touch */
  .social-link:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.1);
  }

  .social-link:active {
    transform: scale(0.9);
  }
}

/* ========================================
   JOB & INTERNSHIP DETAIL PAGES
   Professional Native Desktop Experience
   ======================================== */

/* Job Detail Container */
.job-detail-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

/* Main Job Content */
.job-main {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.job-main:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Job Header */
.job-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.job-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.job-detail-container .company-info {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--background-light);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.job-detail-container .company-info:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(39, 93, 245, 0.08);
}

.company-logo-large {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.company-logo-large:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.company-logo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  background: white;
}

.company-details {
  flex: 1;
}

.company-details h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.company-details p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.company-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.company-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-light);
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  background: white;
  border-radius: 5px;
  border: 1px solid var(--border-light);
}

.company-meta i {
  color: #000000;
  font-size: 0.75rem;
}

/* Job Meta Grid */
.job-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem;
  background: var(--background-light);
  border-radius: 6px;
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 600;
  transition: all 0.3s ease;
}

.meta-item:hover {
  background: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.meta-item i {
  color: #000000;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Job Content Sections */
.job-content {
  line-height: 1.7;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.job-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text-dark);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.job-content ul {
  margin: 1.25rem 0;
  padding-left: 1.25rem;
}

.job-content li {
  margin-bottom: 0.6rem;
  position: relative;
}

.job-content li::marker {
  color: var(--primary-color);
}

/* Sidebar Styling */
.sidebar-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.sidebar-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.apply-card {
  position: sticky;
  top: 90px;
}

.apply-card h3 {
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  font-size: 1.2rem;
  font-weight: 600;
}

/* Job Stats */
.job-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--background-light);
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.job-stat {
  text-align: center;
}

.job-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  display: block;
}

.job-stat-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Salary Display */
.salary-display {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.25rem;
  text-align: center;
  padding: 1rem;
  background: #faf7ff;
  border-radius: 10px;
  border: 1px solid #d8b4fe;
}

/* Apply Button */
.btn-apply {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
}

.btn-apply::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-apply:hover::before {
  left: 100%;
}

.btn-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(39, 93, 245, 0.3);
}

.btn-apply:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Job Actions */
.job-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Team Section */
.company-team {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.company-team h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.team-members {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.team-member:hover {
  background: var(--background-light);
  border-color: var(--border-color);
  transform: translateY(-1px);
}

.team-member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.team-member-info {
  flex: 1;
  min-width: 0;
}

.team-member-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.team-member-role {
  font-size: 0.7rem;
  color: var(--text-light);
}

/* Similar Jobs Section */
.similar-jobs h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.similar-job {
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  background: white;
}

.similar-job:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(39, 93, 245, 0.08);
  transform: translateY(-1px);
}

.similar-job h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.similar-job p {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.similar-job .salary {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Professional page headers */
.page-header {
  padding: 130px 0 60px;
}

/* Responsive Design for Detail Pages */
@media (max-width: 1024px) {
  .job-detail-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 120px 1.5rem 2rem;
  }

  .apply-card {
    position: static;
  }

  .job-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .job-detail-container {
    padding: 100px 1rem 2rem;
  }

  .job-main,
  .sidebar-card {
    padding: 1.5rem;
  }

  .job-detail-container .company-info {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .job-meta-grid {
    grid-template-columns: 1fr;
  }

  .job-stats {
    grid-template-columns: 1fr;
  }

  .team-members {
    grid-template-columns: 1fr;
  }

  .job-title {
    font-size: 1.4rem;
  }

  .page-header {
    padding: 110px 0 40px;
  }
}

/* ============================================
   TALENT DISCOVERY SECTION STYLES
   ============================================ */

/* Talent Discovery Section Styles */
.talent-discovery-section {
  padding: var(--space-2xl) var(--space-md);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.talent-discovery-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 25% 25%,
      rgba(39, 93, 245, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(99, 102, 241, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.talent-discovery-features {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-2xl);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.feature-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(39, 93, 245, 0.03) 0%,
    rgba(99, 102, 241, 0.03) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(39, 93, 245, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  transition: all 0.3s ease;
}

.feature-icon i {
  font-size: 1.5rem;
  color: white;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(39, 93, 245, 0.3);
}

.feature-card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.feature-link:hover {
  color: var(--primary-dark);
  transform: translateX(4px);
}

.feature-link i {
  transition: transform 0.3s ease;
}

.feature-link:hover i {
  transform: translateX(4px);
}

.talent-discovery-cta {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  z-index: 1;
}

.talent-discovery-cta .cta-content h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.talent-discovery-cta .cta-content p {
  color: var(--text-light);
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

/* Tablet styles */
@media (min-width: 768px) {
  .talent-discovery-section {
    padding: var(--space-3xl) var(--space-xl);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .feature-card {
    padding: var(--space-2xl);
  }

  .cta-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Desktop styles */
@media (min-width: 1024px) {
  .talent-discovery-section {
    padding: var(--space-4xl) var(--space-2xl);
  }

  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .feature-card {
    padding: var(--space-2xl) var(--space-xl);
  }

  .talent-discovery-cta {
    padding: var(--space-3xl);
  }
}

/* ============================================
   END OF MAIN STYLES
   Blog styles moved to assets/css/blog.css
   ============================================ */

/* Blog Page Styles - Modern Design */

/* Hero Section Search Form */
.search-form-hero {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}

.search-form-hero .search-input {
  flex: 1;
  min-width: 250px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 1rem;
  outline: none;
}

.search-form-hero .btn {
  border-radius: 25px;
  padding: 12px 24px;
  white-space: nowrap;
}

/* Blog Content Section */
.blog-content-section {
  padding: 3rem 0;
  background: #f8fafc;
  min-height: 60vh;
}

/* Filter Tabs */
.blog-filters {
  margin-bottom: 3rem;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-tab {
  padding: 0.75rem 1.5rem;
  background: white;
  color: #6b7280;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

.filter-tab:hover,
.filter-tab.active {
  background: #275df5;
  color: white;
  border-color: #275df5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 93, 245, 0.3);
}

/* Blog Layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

/* Section Titles */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #275df5, #1e40af);
  border-radius: 2px;
}

/* Featured Posts */
.featured-posts-section {
  margin-bottom: 4rem;
}

.featured-posts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.featured-post-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.featured-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.featured-main {
  grid-row: span 2;
}

.featured-post-card .post-image {
  height: 200px;
  overflow: hidden;
}

.featured-main .post-image {
  height: 300px;
}

/* Regular Blog Posts */
.blog-posts-section {
  margin-bottom: 3rem;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-post-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-post-card .post-image {
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 1.5rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

.post-category {
  background: linear-gradient(135deg, #275df5, #1e40af);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.75rem;
}

.post-meta time,
.read-time {
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-content h3 {
  margin-bottom: 1rem;
}

.post-content h3 a {
  color: #1f2937;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  display: block;
  transition: color 0.3s ease;
}

.post-content h3 a:hover {
  color: #275df5;
}

.featured-main .post-content h3 a {
  font-size: 1.5rem;
}

.post-content p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.post-author {
  color: #6b7280;
  font-weight: 500;
}

.post-stats {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.post-stats span {
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.trending {
  background: linear-gradient(45deg, #ff6b6b, #ee5a52);
  color: white !important;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.read-more-btn {
  color: #275df5;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  color: #1e40af;
  transform: translateX(4px);
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.sidebar-widget {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1.5rem;
  text-align: center;
}

.popular-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popular-post {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.popular-post:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}

.popular-post-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.popular-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-post-content {
  flex: 1;
}

.popular-post-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.3;
}

.popular-post-content h4 a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
}

.popular-post-content h4 a:hover {
  color: #275df5;
}

.popular-post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.newsletter-widget {
  background: linear-gradient(135deg, #275df5, #1e40af);
  color: white;
  text-align: center;
}

.newsletter-widget .widget-title {
  color: white;
}

.newsletter-widget p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.newsletter-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  outline: none;
}

.newsletter-form button {
  width: 100%;
  padding: 0.75rem;
  background: white;
  color: #275df5;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-item {
  color: #6b7280;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.category-item:hover,
.category-item.active {
  background: #275df5;
  color: white;
  transform: translateX(4px);
}

/* Pagination */
.pagination-section {
  margin-top: 4rem;
  text-align: center;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  color: #6b7280;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  font-weight: 500;
}

.pagination-btn:hover {
  background: #275df5;
  color: white;
  border-color: #275df5;
  transform: translateY(-2px);
}

.pagination-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  transition: all 0.3s ease;
  background: white;
  font-weight: 500;
}

.pagination-number:hover,
.pagination-number.active {
  background: #275df5;
  color: white;
  border-color: #275df5;
  transform: translateY(-2px);
}

/* No Posts Section */
.no-posts-section {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-posts-content h3 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.no-posts-content p {
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-sidebar {
    position: static;
    order: 2;
  }

  .featured-posts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .featured-main {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .blog-content-section {
    padding: 2rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .search-form-hero {
    flex-direction: column;
    width: 100%;
  }

  .search-form-hero .search-input {
    min-width: auto;
    width: 100%;
  }

  .filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .filter-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .featured-posts-grid {
    grid-template-columns: 1fr;
  }

  .featured-main {
    grid-column: span 1;
    grid-row: span 1;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sidebar-widget {
    padding: 1.5rem;
  }

  .popular-post {
    flex-direction: column;
    text-align: center;
  }

  .popular-post-image {
    width: 100%;
    height: 120px;
    align-self: center;
  }

  .pagination {
    flex-direction: column;
    gap: 1rem;
  }

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

@media (max-width: 480px) {
  .blog-content-section {
    padding: 1.5rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .post-content {
    padding: 1.25rem;
  }

  .post-content h3 a {
    font-size: 1.125rem;
  }

  .post-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .sidebar-widget {
    padding: 1.25rem;
  }
}

/* Blog Post Article Styles */

/* Breadcrumb */
.breadcrumb-section {
  background: #f8fafc;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
  color: #8b5cf6;
}

.breadcrumb-separator {
  color: #d1d5db;
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: #1f2937;
  font-weight: 500;
}

/* Article Layout */
.blog-post-article {
  padding: 3rem 0;
  background: #f8fafc;
  min-height: 70vh;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.article-main {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

/* Article Header */
.article-header {
  padding: 3rem 3rem 2rem;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-bottom: 1px solid #e5e7eb;
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.article-category {
  background: linear-gradient(135deg, #275df5, #1e40af);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.8rem;
}

.article-date,
.article-reading-time {
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.article-excerpt {
  font-size: 1.25rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #275df5, #1e40af);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.25rem;
}

.author-details h3 {
  color: #1f2937;
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.author-details p {
  color: #6b7280;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Featured Image */
.article-featured-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article Content */
.article-content {
  padding: 3rem;
  color: #1f2937;
  line-height: 1.8;
  font-size: 1.1rem;
}

.article-content h2 {
  color: #1f2937;
  margin: 2.5rem 0 1.5rem 0;
  font-size: 1.875rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #275df5;
}

.article-content h3 {
  color: #1f2937;
  margin: 2rem 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.article-content h4 {
  color: #1f2937;
  margin: 1.5rem 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.article-content p {
  margin-bottom: 1.5rem;
  color: #374151;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: #374151;
}

.article-content a {
  color: #275df5;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.article-content a:hover {
  color: #1e40af;
  text-decoration: none;
}

.article-content blockquote {
  border-left: 4px solid #275df5;
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: #f8fafc;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #6b7280;
}

.article-content strong {
  font-weight: 600;
  color: #1f2937;
}

/* Article Tags */
.article-tags {
  padding: 2rem 3rem;
  border-top: 1px solid #f3f4f6;
}

.article-tags h4 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  background: #f8fafc;
  color: #6b7280;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  font-weight: 500;
}

.tag:hover {
  background: #275df5;
  color: white;
  border-color: #275df5;
  transform: translateY(-2px);
}

/* Share Section */
.article-share {
  padding: 2rem 3rem;
  border-top: 1px solid #f3f4f6;
}

.article-share h4 {
  color: #1f2937;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.share-btn.twitter {
  background: #1da1f2;
  color: white;
}

.share-btn.linkedin {
  background: #0077b5;
  color: white;
}

.share-btn.facebook {
  background: #1877f2;
  color: white;
}

.share-btn.copy {
  background: #6b7280;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Related Posts */
.related-posts {
  padding: 3rem;
  border-top: 1px solid #f3f4f6;
}

.related-posts h2 {
  color: #1f2937;
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 600;
  text-align: center;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.related-post-card {
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.related-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-post-image {
  height: 180px;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-content {
  padding: 1.5rem;
}

.related-post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.related-post-meta .category {
  background: #275df5;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
}

.related-post-meta time {
  color: #6b7280;
}

.related-post-content h3 {
  margin-bottom: 0.75rem;
}

.related-post-content h3 a {
  color: #1f2937;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.related-post-content h3 a:hover {
  color: #275df5;
}

.related-post-content p {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Article Sidebar */
.article-sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.toc-widget {
  margin-bottom: 2rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 0.5rem;
}

.toc-link {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  display: block;
  border-radius: 6px;
  transition: all 0.3s ease;
  line-height: 1.4;
}

.toc-link:hover {
  color: #275df5;
  background: rgba(39, 93, 245, 0.1);
}

.toc-h3 {
  padding-left: 1.5rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.toc-h4 {
  padding-left: 2rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-post {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.recent-post:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}

.recent-post-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.recent-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-content {
  flex: 1;
}

.recent-post-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.3;
}

.recent-post-content h4 a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
}

.recent-post-content h4 a:hover {
  color: #275df5;
}

.recent-post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.back-to-blog-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #275df5;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  justify-content: center;
}

.back-to-blog-btn:hover {
  background: #1e40af;
  transform: translateY(-2px);
}

/* Mobile Responsiveness for Article */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-sidebar {
    position: static;
    order: 2;
  }
}

@media (max-width: 768px) {
  .blog-post-article {
    padding: 2rem 0;
  }

  .article-header {
    padding: 2rem 2rem 1.5rem;
  }

  .article-title {
    font-size: 2rem;
  }

  .article-excerpt {
    font-size: 1.1rem;
  }

  .article-content {
    padding: 2rem;
    font-size: 1rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
  }

  .article-tags,
  .article-share,
  .related-posts {
    padding: 2rem;
  }

  .share-buttons {
    flex-direction: column;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .breadcrumb-current {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .article-header {
    padding: 1.5rem;
  }

  .article-title {
    font-size: 1.75rem;
  }

  .article-content {
    padding: 1.5rem;
  }

  .article-tags,
  .article-share,
  .related-posts {
    padding: 1.5rem;
  }

  .article-featured-image {
    height: 250px;
  }

  .recent-post {
    flex-direction: column;
    text-align: center;
  }

  .recent-post-image {
    width: 100%;
    height: 120px;
    align-self: center;
  }
}
