/* ==========================================================================
   Dedicated About Us Page Styles
   ========================================================================== */

.about-page {
    background-color: #fcfcfc;
    color: #1a1a1a;
}

.about-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   1. Hero Header
   -------------------------------------------------------------------------- */
.about-hero {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    padding: 140px 20px 80px;
    text-align: center;
    color: #fff;
}

.about-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #facc15; /* Gold / Yellow accent */
    margin-bottom: 12px;
}

.about-hero-desc {
    max-width: 650px;
    margin: 0 auto;
    font-size: 0.95rem;
    color: #e2e8f0;
}

/* ==========================================================================
   Updated About Intro Section (Stacked Image Layout)
   ========================================================================== */

.about-intro-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 50px;
}

/* Left Content Column */
.about-intro-content {
    display: flex;
    flex-direction: column;
}

.about-main-heading {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2b4c80; /* Soft dark blue matching image heading */
    margin-bottom: 32px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.about-intro-block {
    margin-bottom: 28px;
}

.about-intro-block:last-child {
    margin-bottom: 0;
}

.about-subheading {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2b4c80; /* Light sky blue accent */
    line-height: 1.5;
    margin-bottom: 12px;
}

.about-description {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #64748b; /* Soft muted gray */
    margin: 0;
}

/* Right Column: Overlapping Stacked Images */
.about-intro-images {
    position: relative;
    width: 100%;
    min-height: 480px;
}

/* Top Right Image */
.about-img-stack-top {
    position: absolute;
    top: 0;
    right: 0;
    width: 82%;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

/* Bottom Left Overlapping Image */
.about-img-stack-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 82%;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.about-img-stack-top img,
.about-img-stack-bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-img-stack-top:hover img,
.about-img-stack-bottom:hover img {
    transform: scale(1.04);
}

/* Centered Button Styling */
.about-cta-wrapper {
    text-align: center;
}

.btn-outline-dark {
    display: inline-block;
    border: 2px solid #2b4c80;
    color: #2b4c80;
    padding: 12px 42px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: #2b4c80;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(43, 76, 128, 0.25);
}

/* --------------------------------------------------------------------------
   Responsive Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-intro-images {
        min-height: 420px;
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .about-intro-section {
        padding: 50px 0;
    }

    .about-main-heading {
        font-size: 1.75rem;
    }

    .about-intro-images {
        min-height: 320px;
    }

    .about-img-stack-top,
    .about-img-stack-bottom {
        height: 200px;
        border-radius: 14px;
    }
}
/* --------------------------------------------------------------------------
   3. 2x2 Grid / Mobile Touch Carousel
   -------------------------------------------------------------------------- */
.about-grid-section {
    padding: 80px 0;

    background:
        linear-gradient(
            rgba(15, 23, 42, 0.88),
            rgba(15, 23, 42, 0.94)
        ),
        var(--about-grid-bg);

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.cards-2x2-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-card {
    padding: 36px;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.grid-card.card-dark {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    color: #ffffff;
}

.grid-card.card-light {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #0f172a;
}

.grid-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.grid-card.card-dark h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff; /* Yellow accent for dark cards */
}

.grid-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.grid-card .btn-link {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}


/* --------------------------------------------------------------------------
   5. Team Section (Modernized)
   -------------------------------------------------------------------------- */
.about-team-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.text-center { 
    text-align: center; 
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 50px;
    position: relative;
}

/* Optional subtle accent underline under section title */
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #38bdf8;
    margin: 12px auto 0;
    border-radius: 2px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.team-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.12);
}

.team-img-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.team-img-wrap img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-img-wrap img {
    transform: scale(1.05);
}

/* Subtle gradient overlay at the bottom of the image */
.team-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.team-card:hover .team-img-wrap::after {
    opacity: 1;
}

.team-info {
    padding: 24px 20px 28px;
}

.team-info h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.team-card:hover .team-info h5 {
    color: #0284c7;
}

.team-role {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0284c7;
    background: rgba(2, 132, 199, 0.08);
    border-radius: 20px;
    padding: 4px 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-block;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Responsive Layouts
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .about-team-section {
        padding: 70px 0;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .highlight-box {
        grid-template-columns: 1fr;
    }

    .highlight-img-col {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .team-img-wrap img {
        height: 320px;
    }
}
/* --------------------------------------------------------------------------
   Responsive Layouts
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .highlight-box {
        grid-template-columns: 1fr;
    }

    .highlight-img-col {
        height: 220px;
    }
}

@media (max-width: 768px) {
    /* Zig-zag Row Mobile Layout */
    .about-row,
    .about-row.reverse {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-row.reverse .about-col.image-col {
        order: -1; /* Keeps image above text on mobile for Row 2 */
    }

    .about-col.image-col .img-frame {
        height: 240px;
    }

    /* Mobile Horizontal Carousel for 2x2 Grid */
    .cards-2x2-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .cards-2x2-grid::-webkit-scrollbar {
        display: none;
    }

    .grid-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Fallback: Ensure images remain visible if JS fails to execute */
.no-js .about-rounded-img {
    opacity: 1;
    transform: none;
}

/* Section Wrapper */
.guarantee-section {
    background-color: #ffffff;
    color: #000000;
    padding: 80px 20px;
}

.guarantee-container {
    max-width: 1140px;
    margin: 0 auto;
}

/* Header Formatting */
.guarantee-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 50px auto;
}

.guarantee-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #09425b;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.guarantee-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 24px 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.guarantee-intro {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #94a3b8;
    margin: 0;
}

/* Guarantees Cards Grid */
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.guarantee-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.guarantee-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.4);
}

.guarantee-icon-wrap {
    background: rgba(56, 189, 248, 0.12);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guarantee-icon {
    width: 24px;
    height: 24px;
    color: #38bdf8;
}

.guarantee-card-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
    margin: 0 0 8px 0;
}

.guarantee-card-content p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin: 0;
}

/* Reassurance & CTA Box */
.guarantee-cta-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.guarantee-reassurance-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: #e2e8f0;
    margin: 0;
    line-height: 1.5;
    max-width: 680px;
}

.btn-guarantee-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #38bdf8;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.btn-guarantee-cta:hover {
    background-color: #0284c7;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
}

.btn-guarantee-cta .btn-arrow {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.btn-guarantee-cta:hover .btn-arrow {
    transform: translateX(4px);
}

/* Main Section Container */
.guarantee-layout-section {
    position: relative;
    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #000000;
    padding: 90px 24px;
}

.guarantee-layout-container {
    max-width: 1140px;
    margin: 0 auto;
}

/* Top Split Grid (Updated for Image Left: 380px Image, 1fr Text) */
.guarantee-layout-top {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 70px;
}

.guarantee-body-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.85);
}

.guarantee-body-content p {
    margin-bottom: 16px;
}

/* Bullet list styling inside content */
.guarantee-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.guarantee-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}

.guarantee-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0284c7;
    font-weight: bold;
}

.guarantee-list strong {
    color: #000000;
}

/* Image Column Styling (Fixed margin-top issue) */
.guarantee-layout-image-wrap {
    position: relative;
    width: 100%;
}

.guarantee-featured-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: block;
}

/* Bottom Quote Block */
.guarantee-layout-bottom {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.guarantee-quote {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #334155;
    font-style: italic;
    margin: 0 0 28px 0;
    padding: 0;
}

/* CTA Button */
.btn-guarantee-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #38bdf8;
    color: #090d16;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-guarantee-action:hover {
    background-color: #0284c7;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .guarantee-layout-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .guarantee-featured-img {
        max-width: 100%;
        margin: 0 auto;
        height: 340px;
    }

    .guarantee-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

    .btn-guarantee-cta {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .guarantee-section,
    .guarantee-layout-section {
        padding: 50px 16px;
    }

    .guarantee-title {
        font-size: 1.75rem;
    }

    .guarantee-grid {
        grid-template-columns: 1fr;
    }

    .guarantee-quote {
        font-size: 0.98rem;
    }
}