/* Hirly/styling/pages/page-about.css */
/* Redesigned About Us page: Neat, Elegant, Clean, and Optimized for Compact Sections (Final Pass) */

/* General Page Content Container Adjustment */
.page-content {
    padding-bottom: var(--spacing-xxl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    background-color: var(--background-light);
}

/* Consistent Section Headings - Lean and impactful */
.section-heading {
    font-size: var(--font-size-xxl);
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    text-align: start; /* Universal alignment - respects dir attribute */
    line-height: 1.2;
}

/* Section Subtitle (for general sections) */
.section-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-body);
    max-width: 700px; /* Adjusted width for better text flow and centering */
    margin: 0 auto var(--spacing-xl);
    line-height: 1.7;
    text-align: start; /* Universal alignment - respects dir attribute */
}

/* NEW Hero Section: Text Right, Image Left */
.about-hero-new {
    background: linear-gradient(135deg, var(--primary-extra-light) 0%, var(--white) 100%);
    padding: var(--spacing-xxl) var(--spacing-md); /* Increased padding for hero */
    text-align: center; /* Center for mobile, will be overridden by desktop RTL/LTR */
    margin-bottom: var(--spacing-xxl);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.about-hero-new .hero-content-wrapper {
    display: flex;
    flex-direction: column-reverse; /* Image then text on mobile */
    align-items: center; /* Center items on mobile */
    gap: var(--spacing-xl); /* Space between text and image */
    max-width: 1200px; /* Max width for the content wrapper */
    margin: 0 auto;
    width: 100%;
}

.about-hero-new .hero-text-content {
    flex: 1;
    max-width: 600px; /* Limit text width */
    text-align: center; /* Center text on mobile by default */
}

.about-hero-new .hero-image-content {
    flex: 1;
    display: flex;
    justify-content: center; /* Center image on mobile by default */
    align-items: center;
}

.about-hero-new .hero-image-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl); /* Stronger shadow for the image */
}

.about-hero-new h1 {
    font-size: calc(var(--font-size-xxxl) * 1.2);
    color: var(--primary-dark);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.about-hero-new p {
    font-size: var(--font-size-lg);
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

.about-hero-new .hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center; /* Center buttons on mobile by default */
    margin-top: var(--spacing-lg);
}

.about-hero-new .btn-lg {
    font-size: var(--font-size-base);
    padding: var(--spacing-md) var(--spacing-xl);
    min-width: 200px;
    transition: transform 0.2s ease;
    font-weight: 600;
}

.about-hero-new .btn-lg:hover {
    transform: translateY(-2px);
}

/* Section: About Hirly - Concise Introduction */
.about-hirly-section {
    background-color: var(--white);
    padding: var(--spacing-xxl) 0;
}

/* Ensure About Hirly heading and subtitle are centered */
.about-hirly-section .section-heading,
.about-hirly-section .section-subtitle {
    text-align: center; /* Force center alignment */
}

.about-hirly-section .section-heading {
    margin-bottom: var(--spacing-lg); /* Space below heading */
}

/* Section: Why Choose Hirly? (Benefits for Freelancers & Employers) */
.why-choose-hirly-section {
    background-color: var(--primary-extra-light);
    padding: var(--spacing-xxl) 0;
}

/* Ensure Why Choose Hirly heading and subtitle are centered */
.why-choose-hirly-section .section-heading,
.why-choose-hirly-section .section-subtitle {
    text-align: center; /* Force center alignment */
}

.why-choose-hirly-section .section-heading {
    margin-bottom: var(--spacing-md);
}

.why-choose-hirly-section .section-subtitle {
    margin-bottom: var(--spacing-xxl); /* More space below subtitle */
}

.benefits-tabs-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
}

.benefits-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    gap: var(--spacing-md);
}

.benefit-tab {
    background-color: transparent;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    border-bottom: 2px solid transparent;
}

.benefit-tab:hover:not(.active) {
    color: var(--primary);
}

.benefit-tab.active {
    color: var(--primary-dark);
    border-color: var(--primary);
}

.benefit-tab-content {
    padding-top: var(--spacing-lg);
    display: none;
}

.benefit-tab-content.active {
    display: block;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    padding: var(--spacing-md);
}

.benefit-card {
    background-color: var(--background-light); /* Light background for cards */
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xs);
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid var(--border-color);
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.benefit-card .benefit-icon {
    font-size: var(--font-size-xxl);
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.benefit-card h3 {
    font-size: var(--font-size-lg);
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.benefit-card p {
    font-size: var(--font-size-base);
    color: var(--text-body);
    line-height: 1.6;
}

.benefit-card .styled-list { /* For lists inside benefit cards */
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0 0;
    text-align: start; /* Universal alignment - respects dir attribute */
}

.benefit-card .styled-list li {
    font-size: var(--font-size-sm);
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
    flex-direction: row; /* Default for LTR */
}

.benefit-card .styled-list li i {
    color: var(--accent);
    margin-inline-end: var(--spacing-sm); /* Universal margin, respects dir */
    font-size: var(--font-size-base);
    flex-shrink: 0;
    padding-top: 2px;
}

/* Final Call to Action - Very Concise & Impactful */
.cta-bottom {
    background-color: var(--background-dark);
    color: var(--white);
    padding: var(--spacing-xxl) var(--spacing-md);
    text-align: center;
    border-radius: var(--border-radius-lg);
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxl);
    box-shadow: var(--shadow-md);
}

.cta-bottom .cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-bottom h2 {
    font-size: var(--font-size-xxl);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    color: var(--white);
}

.cta-bottom p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    color: var(--text-on-dark);
}

.cta-bottom .cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.cta-bottom .btn-primary {
    background-color: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}
.cta-bottom .btn-primary:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-light);
}

.cta-bottom .btn-outline-white {
    border-color: var(--white);
    color: var(--white);
    background-color: transparent;
}
.cta-bottom .btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: var(--white);
}


/* Responsive Design */
@media (min-width: 992px) {
    .about-hero-new .hero-content-wrapper {
        flex-direction: row; /* Default for LTR */
        text-align: start; /* Universal alignment */
    }
    html[dir="rtl"] .about-hero-new .hero-content-wrapper {
        flex-direction: row-reverse; /* Flip for RTL */
    }

    .about-hero-new .hero-text-content {
        text-align: start; /* Universal alignment */
    }
    html[dir="rtl"] .about-hero-new .hero-text-content {
        text-align: end; /* Align text to the right in RTL */
    }

    .about-hero-new .hero-image-content {
        order: 2; /* Default for LTR */
    }
    html[dir="rtl"] .about-hero-new .hero-image-content {
        order: 1; /* Move image to the logical start (right) in RTL */
    }

    .about-hero-new .hero-cta {
        justify-content: flex-start; /* Universal alignment */
    }
    html[dir="rtl"] .about-hero-new .hero-cta {
        justify-content: flex-end; /* Align buttons to the right in RTL */
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on desktop */
    }

    html[dir="rtl"] .benefit-card .styled-list li {
        flex-direction: row-reverse; /* Flip icon to the right of text in RTL */
    }
    html[dir="rtl"] .benefit-card .styled-list li i {
        margin-inline-end: 0;
        margin-inline-start: var(--spacing-sm); /* Margin on the left of the icon in RTL */
    }
}

@media (max-width: 991px) { /* Tablet and below */
    .page-content {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
        gap: var(--spacing-xl);
    }

    .about-hero-new {
        padding: var(--spacing-lg) var(--spacing-md);
        margin-bottom: var(--spacing-xl);
    }
    .about-hero-new h1 {
        font-size: var(--font-size-xxl);
    }
    .about-hero-new p {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
    }
    .about-hero-new .hero-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    .about-hero-new .btn-lg {
        width: 100%;
        min-width: unset;
    }

    .section-heading {
        font-size: var(--font-size-xxl);
    }
    .section-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-xl); /* Keep space for mobile */
    }

    .benefits-tabs-container {
        padding: var(--spacing-md);
    }
    .benefits-tabs {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
        border-bottom: none;
    }
    .benefit-tab {
        font-size: var(--font-size-base);
        padding: var(--spacing-sm) var(--spacing-md);
        border-bottom: none;
        border-radius: var(--radius-sm);
        background-color: var(--background-light);
    }
    .benefit-tab.active {
        background-color: var(--primary);
        color: var(--white);
        border-color: var(--primary);
    }
    .benefit-tab:hover:not(.active) {
        background-color: var(--primary-light);
        color: var(--primary-dark);
    }

    .benefits-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        padding: var(--spacing-md);
    }
    .benefit-card {
        padding: var(--spacing-md);
    }
    .benefit-card .benefit-icon {
        font-size: var(--font-size-xxl);
    }
    .benefit-card h3 {
        font-size: var(--font-size-lg);
    }
    .benefit-card p {
        font-size: var(--font-size-base);
    }

    .cta-bottom {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    .cta-bottom h2 {
        font-size: var(--font-size-xxl);
    }
    .cta-bottom p {
        font-size: var(--font-size-base);
    }
    .cta-bottom .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    .cta-bottom .btn {
        width: 100%;
    }
}

@media (max-width: 575px) { /* Smaller mobile devices */
    .about-hero-new .hero-image-content img {
        max-width: 80%; /* Smaller image on very small screens */
    }
    .about-hero-new h1 {
        font-size: var(--font-size-xl); /* Even smaller hero title */
    }
    .about-hero-new p {
        font-size: var(--font-size-sm); /* Even smaller hero subtitle */
    }
    .section-heading {
        font-size: var(--font-size-xl); /* Smaller section headings */
    }
    .section-subtitle {
        font-size: var(--font-size-sm); /* Smaller section subtitles */
    }
    .benefits-tabs-container {
        padding: var(--spacing-sm); /* Reduced padding for modal on very small screens */
    }
    .benefit-card {
        padding: var(--spacing-sm); /* Reduced padding for benefit cards */
    }
    .benefit-card h3 {
        font-size: var(--font-size-base); /* Smaller benefit card titles */
    }
    .benefit-card p {
        font-size: var(--font-size-sm); /* Smaller benefit card text */
    }
    .cta-bottom h2 {
        font-size: var(--font-size-xl);
    }
    .cta-bottom p {
        font-size: var(--font-size-sm);
    }
}
