/* About Us Page Custom Styles */

:root {
    --about-gold: #e8ba00;
    --about-gold-lt: #fff9e6;
    --about-gold-bg: #E8BA001A;
    --about-text-muted: #666;
    --about-bg-gray: #f8f9fa;
}

/* Global Background and Container */
body {
    background-color: #ffffff;
}

@media (min-width: 1200px) {
    .container {
        max-width: 90% !important;
    }
}

.about-us-wrapper {
    overflow-x: hidden;
    background-color: #ffffff;
}

/* Hero Section */
.about-hero {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-family: 'Rubik', sans-serif;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.about-hero-title {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 25px;
    font-family: 'Rubik', sans-serif;
}

.about-hero-subtitle {
    font-size: 32px;
    line-height: 1.4;
    margin-bottom: 40px;
    font-weight: 300;
    font-family: 'Rubik', sans-serif;
}

/* Pricing Style Button for Hero */
.about-cta-btn {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 10px 20px;
    text-decoration: none !important;
    color: #000;
    transition: all 0.3s ease;
    border: 1.5px solid #eee;
    gap: 15px;
}

/* Figma: Icon consistently on the left of text */
html[dir="rtl"] .about-cta-btn {
    flex-direction: row-reverse;
}

.about-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--about-gold);
}

.about-cta-icon-box {
    width: 40px;
    height: 40px;
    background: var(--about-gold-lt);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-cta-icon-box img {
    width: 22px;
    height: 22px;
}

/* Rotate icon for RTL if needed */
html[dir="rtl"] .about-cta-icon-box img {
    transform: scaleX(-1);
}

.about-cta-text {
    font-size: 20px;
    font-weight: 500;
}

/* Who Are We Section */
.who-we-are {
    padding: 100px 0;
    background-color: #ffffff;
}

.who-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Alignment logic */
html[dir="rtl"] .who-title,
html[dir="rtl"] .who-text {
    text-align: right;
}

html[dir="ltr"] .who-title,
html[dir="ltr"] .who-text {
    text-align: left;
}

.who-text {
    color: var(--about-text-muted);
    line-height: 1.8;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.who-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.who-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* 2x1 Grid Logic: Last card takes full width and centered */
.who-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .who-cards-wrapper {
        grid-template-columns: 1fr;
    }

    .who-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
}

.who-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* RTL icon/title positioning */
html[dir="rtl"] .who-card-header {
    flex-direction: row;
}

.who-card-title-wrapper {
    position: relative;
    padding-left: 15px;
}

html[dir="rtl"] .who-card-title-wrapper {
    padding-left: 0;
    padding-right: 15px;
}

/* Vertical segment border next to title */
.who-card-title-wrapper::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background-color: var(--about-gold);
    border-radius: 2px;
}

html[dir="rtl"] .who-card-title-wrapper::before {
    left: auto;
    right: 0;
}

.who-card-title {
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0;
    color: #1a1a2e;
}

.who-card-icon {
    width: 50px;
    height: 50px;
    background-color: #fdf2d4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #b08d00;
}

/* Border only next to word/title wrapper */
html[dir="rtl"] .who-card {
    border: 1px solid #f0f0f0;
    text-align: right;
}

html[dir="ltr"] .who-card {
    border: 1px solid #f0f0f0;
    text-align: left;
}

gap: 15px;
margin-bottom: 15px;
}

/* Icon on the start side */
html[dir="rtl"] .who-card-header {
    flex-direction: row;
    /* Matches Figma icon left of text in RTL card? Actually image shows icon on top-right or top-left. Let's look closer. */
}

.who-card-icon {
    width: 50px;
    height: 50px;
    background: var(--about-gold-lt);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--about-gold);
    position: relative;
    overflow: hidden;
}

/* Ghost icon effect */
.who-card-icon i {
    opacity: 0.15;
    font-size: 1.8rem;
}

.who-card-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0;
}

.who-card-desc {
    font-size: 1rem;
    color: #888;
    line-height: 1.6;
}

/* Mission & Vision */
.mission-vision {
    padding: 80px 0;
    background-color: #ffffff;
}

/* Gradient Border implementation using background-clip */
.mv-card {
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(180deg, rgb(234 193 55 / 22%) 0%, #e8ba00f2 100%) border-box;
    border: 1.5px solid transparent;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.mv-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.mv-icon {
    width: 60px;
    height: 60px;
    background: #fdf2d4;
    color: var(--about-gold);
    border-radius: 20px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 25px;
}

.mv-text {
    color: var(--about-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.values-header {
    display: flex;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.values-cta-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

/* Button on left for RTL, right for LTR */
html[dir="rtl"] .values-cta-wrapper {
    justify-content: flex-end;
}

.values-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.value-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

/* Card Number Border Segment */
.value-card::before {
    content: "";
    position: absolute;
    top: 15px;
    height: 40px;
    width: 4px;
    background-color: var(--about-gold);
    border-radius: 2px;
}

html[dir="rtl"] .value-card::before {
    right: 0;
}

html[dir="ltr"] .value-card::before {
    left: 0;
}

/* Alignment for RTL value cards */
html[dir="rtl"] .value-card {
    text-align: right;
}

html[dir="ltr"] .value-card {
    text-align: left;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
}

.value-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--about-gold);
}

html[dir="ltr"] .value-number {
    right: auto;
    left: 20px;
}

.value-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 15px;
    margin-top: 15px;
}

.value-text {
    color: var(--about-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.btn-contact-simple {
    background: var(--about-gold-lt);
    color: var(--about-gold);
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

html[dir="rtl"] .btn-contact-simple i {
    transform: rotate(0deg);
    /* Chevron-left is fine for RTL if we want "back" icon but usually means "more" in RTL. Figma shows arrow pointing left in RTL. */
}

/* Adjust icon for RTL to match Figma (left arrow) */
html[dir="rtl"] .btn-contact-simple i {
    transform: rotate(0deg);
}

.btn-contact-simple:hover {
    background: var(--about-gold);
    color: #fff;
}

/* Projects CTA */
.projects-cta {
    padding: 100px 0;
    background-color: #ffffff;
}

.projects-cta-box {
    background: var(--about-gold-bg);
    border-radius: 25px;
    padding: 80px 40px;
    text-align: center;
}

.projects-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.projects-text {
    max-width: 900px;
    margin: 0 auto 40px;
    color: var(--about-text-muted);
    font-size: 1.25rem;
    line-height: 1.9;
}

.btn-projects-gold {
    background: linear-gradient(180deg, #FFFFFF -32.14%, #E8BA00 135.71%);
    color: #000;
    border: none;
    padding: 18px 50px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(232, 186, 0, 0.25);
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
}

.btn-projects-gold:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(232, 186, 0, 0.3);
    color: #000 !important;
}

@media (max-width: 991px) {

    .who-title,
    .values-title,
    .projects-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .who-text,
    .projects-text {
        text-align: center;
        margin-bottom: 40px;
    }

    .who-card:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .about-hero {
        height: 450px;
    }

    .about-hero-title {
        font-size: 2.5rem;
    }

    .about-hero-subtitle {
        font-size: 1.4rem;
    }
}