
:root {
    /* Primary Brand Colors */
    --cardinal-red: #8C1515; /* Stanford Red */
    --linkedin-blue: #0a66c2; /* LinkedIn Blue */
    --black: #2E2D29; /* Text color */
    
    /* Supporting Colors */
    --white: #ffffff; /* Background */
    --light-gray: #F7F7F7; /* Secondary background */
    --medium-gray: #6B7280; /* Secondary text */

    /* Functional Colors */
    --success-green: #2E8540; /* Success states */
    --error-red: #D50000; /* Error states */
    --warning-gold: #F4C430; /* Warnings/highlights */
    
    /* Interactive States */
    --cardinal-red-hover: #740000; /* Hover state for Stanford Red */
    --linkedin-blue-hover: #085294; /* Hover state for LinkedIn Blue */
    --focus-outline: #1A73E8; /* Focus state outline */
}


/* Features Section Styles */
.features-section {
    padding: 2rem 0;
    background: linear-gradient(
        135deg,
        rgba(230, 240, 250, 0.5) 0%,   /* 30% visibility of #E6F0FA */
        #ffffff 100%
    );
    background-color: #E6F0FA;  
    position: relative;
}
.features-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e6ed, transparent);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
}

.section-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--linkedin-blue);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.feature-content h2 {
    font-size:1.7rem;
    font-weight: 600;
    color: var(--linkedin-blue);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.feature-content a {
    font-size: 1.5rem;
    font-weight: 600;
}


.section-subtitle {
    line-height: 1.6;
    margin: 0;
}

/* Features Grid - Clean layout, responsive */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.features-grid-two-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

/* Feature Cards - Unified layout with consistent vertical spacing */
.feature-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.25),
    0 2px 4px -1px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8C1515, #d54e4e);
  transform: scaleX(0);
  transition: transform 0.7s ease;
}

.feature-card:hover::before {
  transform: scaleX(.2);
}

.feature-card:hover {
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Container already defined by you */
.container {
  position: relative;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}


/* Article cards */
.feature-card-article {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect for interactivity */
.feature-card-article:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Inner icon block */
.feature-card-article .feature-icon {
  margin-bottom: 1rem;
}

/* Headings inside cards */
.feature-card-article h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #1e293b; /* Slate gray */
}

/* Paragraph text */
.feature-card-article p {
  font-size: 1rem;
  line-height: 1.6;
  color: #475569; /* Slightly softer text */
}



/* Feature Icon - properly spaced and centered */
.feature-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #7a0023, #ff4552);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .5rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  stroke: #ffffff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.8s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, #0a66c2, #98abff);
}

.feature-card:hover .feature-icon svg {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.4));
}

/* Feature Content - clean spacing and structure */
.feature-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.feature-content h2,
.feature-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
  line-height: 1.4;
  text-align: center;
}

.feature-content p {
  font-size: 1.3rem;
  line-height: 1.6;
  margin: 0;
  color: #4a5568;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Service Detail Container */
.service-detail {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-section {
        padding: 4rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .features-section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header h1 {
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-content h2 {
        font-size: 1.75rem;
    }
    
    .feature-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .features-section {
        padding: 2.5rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .feature-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .feature-content h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Performance Optimizations */
.feature-card {
    contain: layout style;
    will-change: transform;
}

.feature-icon {
    contain: layout;
}

/* Accessibility Improvements */
.feature-card:focus-within {
    outline: 2px solid #085294;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .feature-icon,
    .feature-card::before {
        transition: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .feature-card:hover .feature-icon {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .features-section {
        background: none;
        padding: 2rem 0;
    }
    
    .feature-card {
        box-shadow: none;
        border: 1px solid #e2e8f0;
        break-inside: avoid;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
    
    .feature-icon {
        background: #f7fafc;
    }
    
    .feature-icon svg {
        stroke: #4a5568;
    }
}

