.hero-companies {
    height: 100vh;
    /* --- FIXED --- */
    max-width: 1350px; /* It can't get bigger than this */
    width: 100%;       /* But it can shrink */
    box-sizing: border-box; /* Ensures padding is included in the width */
    /* --- END FIX --- */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    justify-self: center;
    padding: 0px;
    margin-top: -50px;
}

.highlighted-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.carousel-container {
  width: 750px;
  height: 750px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.carousel-track {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 100%;
  position: relative;
}
.carousel-slide {
  flex-shrink: 0;
  width: 450px;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.image-container {
  width: 750px;
  height: 750px;
  border-radius: 16px;
  overflow: hidden;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  z-index: 1;
  clip-path: inset(75px 150px round 16px);
  transition: clip-path 0.6s ease;
}
.carousel-slide.active .image-container {
  clip-path: inset(0px 0px round 16px);
  z-index: 10;
}
.carousel-slide.shrinking .image-container {
  z-index: 10;
}
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease;
}
.carousel-slide:not(.active) img {
  opacity: 0.6;
}
.carousel-slide:nth-child(3) img {
  object-position: top;
}
.content-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 750px;
  height: 750px;
  border: 2px solid white;
  border-radius: 16px;
  box-sizing: border-box;
  opacity: 0;
  z-index: 5;
  transition: width 0.6s ease, height 0.6s ease, opacity 0.5s ease 0.2s;
}
.carousel-slide.active .content-frame {
  width: 450px;
  height: 600px;
  opacity: 1;
}
.card-overlay, .card-footer {
  position: absolute;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  color: white !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  z-index: 2;
}

.subtext {
  color: #fff;
}

.card-overlay {
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
  border-radius: 16px 16px 0 0;
}
.card-label { font-size: 0.9rem; }
.card-number { font-size: 2.5rem; font-weight: bold; }
.card-footer {
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  border-radius: 0 0 16px 16px;
}
.card-footer h4 { margin: 0 0 5px 0; }
.card-footer p { margin: 0; font-size: 0.9rem; }

.title {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-content: space-between;
    height: 600px;
}

.title h1 {
    font-size: 4.5rem;
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.2;
    margin: 0px;
    color: #124170;
}

.title h1 span {
    color: #26667F;
    font-weight: 400;
    line-height: 1.2;
}

.title p {
    font-size: 1.2rem;
    line-height: 1.5;
}

.testimonial-slider {
    padding: 0px 20px;
    height: 100vh;
}

.testimonial-grid-container {
    display: grid;
    grid-template-areas: "pane";
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
    gap: 20px 40px;
    height: 100%;
    position: relative;
}

.testimonial-content {
    grid-area: pane;
    position: relative;
    min-height: 480px; 
}

.testimonial-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    visibility: hidden;
}

.testimonial-slide.is-active {
    opacity: 1;
    position: relative;
    visibility: visible;
}

/* CHANGED: Updated testimonial quote styling to match reference */
.testimonial-quote {
    background-color: #ffffff;
    padding: 60px 50px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(18, 65, 112, 0.1);
    position: relative;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: space-between;
}

.testimonial-quote blockquote {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.8rem;
    line-height: 1.4;
    color: #124170;
    font-weight: 400;
    position: relative;

    overflow: hidden; /* Hides the text that overflows the container */
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* CHANGED: Add quotation marks styling */
.testimonial-quote blockquote::before {
    font-size: 4rem;
    color: #67C090;
    position: absolute;
    left: -20px;
    top: -80px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-quote figure {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.testimonial-quote img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #67C090;
}

.testimonial-quote figcaption {
    line-height: 1.3;
}

.testimonial-quote cite {
    font-style: normal;
    font-weight: bold;
    display: block;
    color: #124170;
    font-size: 1.1rem;
}

.testimonial-quote span {
    font-size: 1rem;
    color: #26667F;
}

/* CHANGED: Updated image wrapper styling */
.testimonial-image-wrapper {
    aspect-ratio: 1 / 1;
    width: 100%;
    position: relative;
}

.testimonial-image {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 15px 40px rgba(18, 65, 112, 0.2);
}

.logo-overlay p {
    font-size: 2rem;
    font-weight: bold;
    background-color: rgba(18, 65, 112, 0.9);
    padding: 15px 30px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-align: center;
}

.testimonial-nav {
    position: absolute;
    bottom: 200px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.testimonial-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: #124170;
    color: #fff;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 300;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(18, 65, 112, 0.4);
}

.testimonial-nav button:hover {
    background-color: #26667F;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(18, 65, 112, 0.5);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .testimonial-grid-container,
    .testimonial-slide {
        grid-template-columns: 1fr;
    }
    
    .testimonial-content {
        min-height: auto;
    }

    .testimonial-quote {
        padding: 40px 30px;
    }

    .testimonial-quote blockquote {
        font-size: 1.5rem;
    }

    .testimonial-nav {
        position: relative;
        bottom: auto;
        right: auto;
        justify-content: center;
        margin-top: 30px;
    }

    .testimonial-image-wrapper {
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .testimonial-slider {
        height: auto;
        padding: 80px 20px;
        margin-top: 600px;
    }

    .testimonial-quote {
        padding: 10px 15px;
        height: auto;
    }

    .testimonial-quote blockquote {
        font-size: 1.3rem;
    }

    .testimonial-nav button {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 991px) {
    /* 1. Ensure the main container is a simple grid */
    .works-content-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px; /* A simple gap between rows */
    }

    .works-main-content {
        grid-template-columns: 1fr;
    }

    /* 4. Reset heights to prevent large empty spaces */
    .works-content-card,
    .works-description {
        height: auto !important; 
        min-height: 0;
        margin: 0;
        padding: 0;
    }

    .works-content-section {
        height: 150%;
        align-items: center;
        justify-content: center;
    }

    .works-description.active {
        padding: 0px;
        height: auto !important;
        min-height: auto;
        margin-bottom: 200px;
    }

    .works-steps {
        padding: 0px;
    }
}

/* How It Works Section */
.how-it-works {
    background-color: #124170;
    color: #ffffff;
    padding: 120px 0;
    position: relative;
    scroll-margin-top: 80px; /* For anchor links to account for fixed header */
}

.works-main-content {
    display: flex;
    flex-direction: column;
    gap: 100px; /* This creates the vertical space between steps */
}

/* This is the new parent for each Image/Description pair */
.works-step-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start; /* Vertically center the card and description */
    min-height: 400px; /* Give each step a consistent height */
    opacity: 0.3;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

/* The active state is now on the parent */
.works-step-content.active {
    opacity: 1;
    transform: translateY(0);
}

.works-step-content.active .works-description h3,
.works-step-content.active .works-description p {
    color: #FFFFFF; /* A solid, fully opaque white */
}

/* Reset the transitions on the children, as the parent now handles it */
.works-content-card, 
.works-description {
    opacity: 1;
    transform: none;
    transition: none;
    min-height: 0; /* remove old height property */
}

/* Update step navigation to be proper links */
.works-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    gap: -10px;
}

.works-step:hover {
    color: rgba(255, 255, 255, 0.9);
}

.works-steps a {
    border-top: 1px solid #DDF4E7;
    border-bottom: 1px solid #DDF4E7;
    padding: 10px 0;
    margin-top: -10px;
}

.works-description.active {
    opacity: 1;
    transform: translateY(0);
}
.works-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Section */
.works-header {
    text-align: start;
    max-width: 1350px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    display: grid;
    grid-template-columns: 1fr 3fr;
}

.works-header h2 {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0 0 24px 0;
    line-height: 1.2;
    width: 100%;
    max-width: 900px;
}

.works-header h2 span {
    color: #67C090;
    font-weight: 400;
}

.works-header p {
    color: rgb(255, 255, 255);
    margin: 0;
    font-size: 1.5rem;
}

.works-content-container {
    display: grid;
    grid-template-columns: 250px 1fr; /* Changed to 2 columns */
    gap: 4rem;
    align-items: start;
    position: relative;
    justify-content: start;
}

.content-image {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Right Description */
.works-right-pane {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.works-description {
    transform: translateY(30px);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

.works-description.active {
    opacity: 1;
    transform: translateY(0);
}

.works-description h3 {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    font-family: "Georgia", "Times New Roman", serif;
}

.works-description p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgb(255, 255, 255);
    margin: 0;
    max-width: 400px;
}

.works-left-pane {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    height: fit-content;
    margin-top: 150px;
    margin-bottom: -140px;
}

.works-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.works-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
}


.step-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    min-width: 30px;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    order: 1;
}

.works-step.active .step-title {
    font-weight: 600;
    color: #ffffff;
}

.works-step::after {
    content: "";
    width: 8px;
    height: 8px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    margin-left: 20px; /* Gap between text and dot */
    order: 2;
}

.works-step.active::after {
    content: "";
    width: 8px;
    height: 8px;
    background-color: #67C090;
    border-radius: 50%;
    margin-left: 20px; /* Gap between text and dot */
    order: 2;
}

/* Right Content Cards */
.works-right-pane {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.works-content-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    transition: all 0.5s ease;
    height: 400px;
}

.works-content-card.active {
    opacity: 1;
    transform: translateY(0);
}

.content-header h3 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    font-family: "Georgia", "Times New Roman", serif;
}

.content-header p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 40px 0;
    max-width: 500px;
}

/* Form Styles */
.content-form {
    max-width: 500px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h4 {
    font-size: 1.1rem;
    margin: 0 0 16px 0;
    color: rgba(255, 255, 255, 0.9);
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.role-input, .link-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.role-input::placeholder, .link-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-badge {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    min-width: 60px;
    text-align: center;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-note {
    text-align: center;
}

.form-note span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Recruiter Stats */
.recruiter-stats {
    max-width: 500px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stat-label {
    font-size: 1rem;
    color: rgb(255, 255, 255);
}

.stat-badge {
    background: #67C090;
    color: #124170;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.recruiter-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #67C090, #26667F);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.recruiter-info {
    display: flex;
    flex-direction: column;
}

.name {
    font-weight: 600;
    font-size: 1.1rem;
}

.title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.recruiter-metrics {
    display: flex;
    gap: 30px;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: #67C090;
}

.metric-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* Interview Process */
.interview-process {
    max-width: 500px;
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.timeline-item.active {
    opacity: 1;
}

.timeline-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    margin-top: 6px;
    flex-shrink: 0;
}

.timeline-item.active .timeline-marker {
    background: #67C090;
}

.timeline-content h5 {
    font-size: 1.2rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.timeline-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .works-content-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .works-left-pane {
        position: static;
    }
    
    .works-header h2 {
        font-size: 2.5rem;
    }
    
    .works-content-card {
        height: 200px;
    }
    
    .content-header h3 {
        font-size: 1.8rem;
    }
    
    .works-steps {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .works-step {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        text-align: center;
    }
}

/* --- Growth Stages Section --- */
.growth-stages {
    padding: 120px 20px;
    overflow: hidden;
}

.growth-container {
    max-width: 1350px;
    margin: 0 auto;
    color: #124170;
}

.growth-header {
    display: flex;
    flex-direction: column;
    max-width: 750px;
    align-items: start;
}

.growth-header h2 {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0px;
}

.growth-header p {
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.growth-tabs-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #124170;
    margin-bottom: 40px;
}

.tabs {
    display: flex;
}

.tab-link {
    background: transparent;
    border: none;
    font-size: 1rem;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    top: 1px; /* Aligns border with the main bottom border */
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-link:hover {
    color: #26667F;
}

.tab-link.active {
    color: #26667F;
    font-weight: 600;
    border-bottom-color: #67C090; /* Accent color from your existing design */
}


.growth-content-area {
    position: relative;
    color: #ffffff;
    height: 500px;
}

.growth-slide {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    width: 100%;
}

.growth-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    height: 100%;
}

/* The Grid Layout You Requested */
.slide-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Main container: 2 parts for content/image, 1 part for stats */
    gap: 20px;
    align-items: stretch;
    height: 100%;
}

.slide-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Nested container: 1 part for text, 1 part for image */
    background-color: #124170;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
}

.slide-text-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.stage-label {
    font-size: 1rem;
    color: rgb(255, 255, 255);
    margin-bottom: 16px;
}

.slide-text-content h3 {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0 0 24px 0;
    flex-grow: 1;
}

.read-more {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}
.read-more:hover {
    color: #67C090;
}

.stage-description {
    font-size: 1rem;
    color: rgb(255, 255, 255);
    line-height: 1.5;
    margin: 0;
    margin-top: auto; /* Pushes to the bottom */
}

.slide-image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-stats-content {
    background: #0D2C4A; /* A darker shade from your palette */
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.stats-logo {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 24px;
    opacity: 0.8;
}

.slide-stats-content p {
    color: rgb(255, 255, 255);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1; /* Pushes number to the bottom */
}

.stats-number {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 6rem;
    font-weight: 400;
    color: #67C090;
    line-height: 1;
}

.stats-label {
    font-size: 1rem;
    color: rgb(255, 255, 255);
    margin-top: 8px;
}


.slide-image-content {
    transform: scale(1.03);
}
.stage-label,
.slide-text-content h3,
.read-more,
.stage-description,
.stats-logo,
.slide-stats-content p,
.stats-number,
.stats-label {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* 2. When the slide is active, transition the content to the "visible" state */
.growth-slide.active .slide-image-content {
    transform: scale(1);
}
.growth-slide.active .stage-label,
.growth-slide.active .slide-text-content h3,
.growth-slide.active .read-more,
.growth-slide.active .stage-description,
.growth-slide.active .stats-logo,
.growth-slide.active .slide-stats-content p,
.growth-slide.active .stats-number,
.growth-slide.active .stats-label {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Add staggered delays for a sequential, dynamic effect */
.growth-slide.active .stage-label       { transition-delay: 0.2s; }
.growth-slide.active h3                { transition-delay: 0.3s; }
.growth-slide.active .read-more        { transition-delay: 0.4s; }
.growth-slide.active .stage-description{ transition-delay: 0.5s; }

.growth-slide.active .stats-logo       { transition-delay: 0.2s; }
.growth-slide.active .slide-stats-content p { transition-delay: 0.3s; }
.growth-slide.active .stats-number     { transition-delay: 0.4s; }
.growth-slide.active .stats-label      { transition-delay: 0.5s; }
.growth-slide.active .slide-image-content { transition-delay: 0.1s; } 


/* Responsive adjustments for the new section */
@media (max-width: 992px) {
    .growth-content-area {
        height: auto; /* CHANGED: Resets the fixed height for smaller screens */
    }

    .slide-grid, .slide-main-content {
        grid-template-columns: 1fr;
    }
    .slide-image-content {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .growth-header h2 {
        font-size: 2.5rem;
    }
    .tab-link {
        padding: 15px 10px;
        font-size: 0.9rem;
    }
}

/* --- Why ClearHire Section --- */
.why-clearhire {
    padding: 120px 20px;
}

.why-container {
    max-width: 1350px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Left column slightly smaller */
    gap: 5rem;
    align-items: center;
}

.why-left-pane h2 {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #124170;
    margin-bottom: 40px;
    max-width: 100%; /* Changed from 300px */
}

.why-nav-item {
    padding: 24px 0;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
}

.why-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.why-nav-header h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #495057;
    margin: 0;
    transition: color 0.3s ease;
}

.why-nav-header span {
    font-size: 0.9rem;
    color: #adb5bd;
}

.why-nav-item.active .why-nav-header h4 {
    color: #124170; /* Active color from your palette */
}

.why-nav-description {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    margin: 8px 0 0 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out, margin-top 0.4s ease-out;
}

.why-nav-item.active .why-nav-description {
    margin-top: 16px;
    max-height: 150px; /* Adjust if your text is longer */
    opacity: 1;
}

.why-right-pane {
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(18, 65, 112, 0.1);
}

.why-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    transform: scale(1.05); /* Slight zoom for transition */
}

.why-image.active {
    opacity: 1;
    transform: scale(1);
}

.why-nav {
    display: flex;
    flex-direction: column;
    align-items: normal !important;
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .why-container {
        grid-template-columns: 1fr;
    }
}

/* --- Blog Preview Section --- */
.blog-preview {
    padding: 120px 20px;
    /* No background color, uses the page default */
}

.blog-container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.blog-header h2 {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #124170;
    margin: 0;
}

.all-articles-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #124170;
    border-radius: 20px;
    text-decoration: none;
    color: #0D2C4A;
    font-weight: 500;
    transition: all 0.3s ease;
}

.all-articles-btn:hover {
    background-color: #124170;
    border-color: #adb5bd;
    color: #ffffff;
}

.all-articles-btn svg path {
    transform: rotate(315deg); /* Flips the arrow */
    transform-origin: center;
    stroke: #495057; /* Set the default arrow color */
    transition: stroke 0.3s ease;
}

.all-articles-btn:hover svg path {
    stroke: #ffffff; /* Make the arrow white on hover */
}

.blog-grid {
    gap: 24px;
    height: auto;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background-color: #124170;
    border-radius: 16px;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(18, 65, 112, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(18, 65, 112, 0.1);
}

.blog-card-large {
    padding: 32px;
    justify-content: space-between;
}

.blog-card-large .card-content h3 {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 16px 0;
}

.blog-card-large .card-content span {
    font-size: 0.9rem;
    color: #495057;
}

.arrow-icon-companies {
    align-self: flex-start;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #26667F;
    color: #ffffff;
    font-size: 1.5rem;
    margin-top: 24px;
    opacity: 1 !important; /* Add this line to ensure it's always visible */
    transition: transform 0.3s ease;
}

.blog-card-small .card-content {
    padding: 24px;
}

.blog-card-small {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card-small h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.read-more-link {
    font-weight: 600;
    color: #124170;
}

.blog-card-small img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.blog-card-small .card-footer {
    padding: 16px 24px;
    margin-top: auto;
    font-size: 0.9rem;
    color: #495057;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
    .blog-card-large {
        grid-column: 1 / -1; /* Make the large card span full width */
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        height: auto; /* Let height be flexible */
    }
}

/* --- FAQ Section --- */
.faq {
    padding: 120px 20px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-container h2 {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #124170;
    text-align: center;
    margin-bottom: 60px;
}

.accordion-item {
    border-top: 1px solid #dee2e6;
}

.accordion-item:last-child {
    border-bottom: 1px solid #dee2e6;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 24px 0;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.accordion-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #124170;
}

.accordion-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-left: 16px;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: #124170;
    transition: transform 0.3s ease-out;
}

.accordion-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
}

.accordion-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
}

.accordion-item.active .accordion-icon::after {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-content p {
    padding-bottom: 24px;
    color: #495057;
    line-height: 1.6;
    max-width: 80%;
}

@media (max-width: 768px) {
    .hero-companies {
        display: flex;
        flex-direction: column;
        height: auto; /* Let height be flexible */
        padding: 80px 20px 60px 20px; /* Adjust vertical padding */
        text-align: center;
        margin-top: 0;
        gap: 40px;
    }

    .title {
        height: auto; /* Remove fixed desktop height */
    }
    
    .title h1 {
        font-size: 3rem; /* Adjust font size for mobile */
    }

    /* 2. Convert the carousel to a simple, full-width scrollable slider */
    .carousel-container {
        width: 100%;
        max-width: 400px; /* Optional: keeps it from getting too wide on tablets */
        height: auto;
        overflow-x: auto; /* Allow horizontal scrolling */
        overflow-y: hidden;
        scroll-snap-type: x mandatory; /* This enables the snapping behavior */
        -webkit-overflow-scrolling: touch; /* Improves scrolling feel on iOS */
        scrollbar-width: none; /* Hide scrollbar on Firefox */
    }

    .carousel-container::-webkit-scrollbar {
        display: none; /* Hide scrollbar on Chrome/Safari */
    }

    .carousel-track {
        gap: 0; /* No gap between slides */
        /* This is important to override the JavaScript's inline style */
        transform: none !important; 
    }

    .carousel-slide {
        width: 100%; /* Each slide is now the full width of the container */
        height: auto;
        flex-shrink: 0;
        scroll-snap-align: center; /* Snap each slide to the center */
        padding: 0 10px; /* Adds a little space so cards don't touch the edge */
    }

    /* 3. Simplify the card styles for mobile */
    /* This makes every card look like the "active" desktop card, but responsive */
    .carousel-slide .image-container,
    .carousel-slide.active .image-container {
        position: relative;
        transform: none;
        left: auto;
        top: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5; /* Gives a consistent, pleasant shape */
        clip-path: inset(0% round 16px); /* Remove the complex animation path */
    }

    .carousel-slide:not(.active) img {
        opacity: 1; /* Make all images fully visible */
    }

    .carousel-slide .content-frame,
    .carousel-slide.active .content-frame {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        transform: none;
        opacity: 1;
    }

    .why-nav {
        width: 90%;
    }

    .works-header h2 {
        font-family: "Georgia", "Times New Roman", serif;
        font-size: 1.5rem;
        font-weight: 400;
        margin: 0 0 24px 0;
        line-height: 1.2;
        width: 100%;
        max-width: 900px;
    }

    .works-header h2 span {
        color: #67C090;
        font-weight: 400;
    }

    .works-header p {
        color: rgb(255, 255, 255);
        margin: 0;
        font-size: 1rem;
    }

    .content-image {
        height: 200px;
    }

    .works-content-section {
        height: 400px;
    }

    .blog-card {
        height: auto;
    }
    .works-step-content {
        grid-template-columns: 1fr; /* Stack vertically */
    }

    .works-main-content {
        margin-top: 100px;
    }

    .works-description {
        min-height: auto;
        height: auto;
    }
}

@media (max-width: 468px) {
    .testimonial-slider {
        margin-top: 0px;
    }

    .works-header {
        grid-template-columns: 1fr;
    }

    .blog-header h2 {
        font-size: 1.5rem;
    }

    .testimonial-slide {
        height: auto;
        margin-bottom: 0px;
    }

    .testimonial-content {
        height: auto;
    }
}