/* ==========================================================================
   About page - "About Us" (custom section)
   Left: tall photo with an offset navy frame + amber corner accent.
   Right: shared hp-section heading, lead paragraph, divider, story paragraph.
   Faint "ABOUT" watermark behind. Tint band background.
   ========================================================================== */

.fg-about {
    position: relative;
    overflow: hidden;
    padding: 130px 0;
    /* background-color: var(--fg-tint); */
}

@media only screen and (max-width: 1199px) {
    .fg-about {
        padding: 100px 0;
    }
}

@media only screen and (max-width: 991px) {
    .fg-about {
        padding: 80px 0;
    }
}

@media only screen and (max-width: 767px) {
    .fg-about {
        padding: 60px 0;
    }
}

/* oversized outline word behind the text */
.fg-about-watermark {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 240px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px rgba(34, 46, 71, 0.06);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

@media only screen and (max-width: 1199px) {
    .fg-about-watermark {
        font-size: 170px;
    }
}

@media only screen and (max-width: 991px) {
    .fg-about-watermark {
        top: auto;
        bottom: 30px;
        transform: none;
        font-size: 120px;
    }
}

@media only screen and (max-width: 575px) {
    .fg-about-watermark {
        display: none;
    }
}

.fg-about .container {
    position: relative;
    z-index: 1;
}

/* ---------- grid ---------- */
.fg-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 110px;
    align-items: center;
}

@media only screen and (max-width: 1399px) {
    .fg-about-grid {
        gap: 80px;
    }
}

@media only screen and (max-width: 991px) {
    .fg-about-grid {
        grid-template-columns: 1fr;
        gap: 70px;
    }
}

@media only screen and (max-width: 767px) {
    .fg-about-grid {
        gap: 50px;
    }
}

/* ---------- photo with offset frame ---------- */
.fg-about-media {
    position: relative;
    /* room for the frame peeking out bottom-right */
    padding: 0 28px 28px 0;
}

@media only screen and (max-width: 991px) {
    .fg-about-media {
        max-width: 520px;
    }
}

@media only screen and (max-width: 575px) {
    .fg-about-media {
        padding: 0 16px 16px 0;
    }
}

.fg-about-frame {
    position: absolute;
    top: 28px;
    left: 28px;
    right: 0;
    bottom: 0;
    border-radius: 28px;
    background-color: var(--fg-navy);
}

/* amber corner accent on the frame */
.fg-about-frame::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 90px;
    height: 90px;
    border-radius: 0 0 28px 0;
    background: linear-gradient(135deg, transparent 50%, var(--fg-amber) 50%);
}

@media only screen and (max-width: 575px) {
    .fg-about-frame {
        top: 16px;
        left: 16px;
        border-radius: 20px;
    }

    .fg-about-frame::after {
        width: 60px;
        height: 60px;
        border-radius: 0 0 20px 0;
    }
}

.fg-about-photo {
    position: relative;
    z-index: 1;
    aspect-ratio: 5 / 6;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(34, 46, 71, 0.2);
}

@media only screen and (max-width: 575px) {
    .fg-about-photo {
        border-radius: 20px;
    }
}

.fg-about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- text ---------- */
/* heading: shared .hp-section style (same as the head-protection feature section) -
   only the gap under it is tightened, since the lead paragraph follows directly */
.fg-about.hp-section .section-heading {
    margin-bottom: 28px;
}

.fg-about-lead {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--fg-navy);
}

.fg-about-divider {
    display: block;
    width: 100%;
    height: 1px;
    margin: 30px 0;
    background: linear-gradient(90deg, var(--fg-amber) 0, var(--fg-amber) 70px, rgba(34, 46, 71, 0.12) 70px);
}

.fg-about-text {
    font-size: 17px;
    line-height: 1.8;
    color: #5b6478;
}

@media only screen and (max-width: 767px) {
    .fg-about-lead {
        font-size: 17px;
    }

    .fg-about-divider {
        margin: 24px 0;
    }

    .fg-about-text {
        font-size: 16px;
    }
}

/* ==========================================================================
   About page - Mission / Vision / Core Values (theme feature-area style-8)
   Heading uses the shared .hp-section style; these rules fix the icons
   (the theme's dark images vanished on the navy cards) and the columns
   (the theme kept 3 columns even on phones).
   ========================================================================== */

/* heading sits in the theme's two-column top row, so no extra gap under it */
.fg-purpose.hp-section .feature-section-top .section-heading {
    margin-bottom: 0;
}

.fg-purpose .feature-section-top {
    align-items: end;
}

.fg-purpose .title-top-text .text {
    font-size: 18px;
    line-height: 1.7;
    color: #5b6478;
}

@media only screen and (max-width: 767px) {
    .fg-purpose .title-top-text .text {
        font-size: 16px;
    }
}

.fg-purpose-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--fg-navy);
    background-color: var(--fg-amber);
}

.fg-purpose-img {
    display: block;
    width: 100%;
    aspect-ratio: 1327 / 1185;
    object-fit: cover;
    border-radius: 18px;
    background-color: #fff;
}

.fg-purpose .wcf_iconbox.style-8 {
    height: 100%;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.fg-purpose .wcf_iconbox.style-8:hover {
    transform: translateY(-6px);
    border-color: var(--fg-amber);
}

/* 3 cards on desktop / tablet, one per row on phones */
@media only screen and (max-width: 767px) {
    /* needs the theme selector's specificity (.feature-area.style-8 .feature-wrapper) to win */
    .feature-area.style-8.fg-purpose .feature-wrapper {
        grid-template-columns: 1fr;
    }

    .fg-purpose-icon {
        width: 54px;
        height: 54px;
        font-size: 22px;
        border-radius: 14px;
    }
}

/* Make In India (theme think-area) now uses the shared .hp-section heading -
   give the paragraphs some room under the title */
.think-area.hp-section .title-wrapper {
    margin-bottom: 24px;
}

/* ==========================================================================
   Management Message
   ========================================================================== */
.fg-message {
    background-color: #f4f5f8;
}

.fg-message-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: start;
}

.fg-message-aside {
    position: sticky;
    top: 120px;
}

.fg-message.hp-section .section-heading {
    margin-bottom: 40px;
}

.fg-message-card {
    position: relative;
    overflow: hidden;
    padding: 50px 40px 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--fg-navy, #222e47), #141b2b);
}

.fg-message-card::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 28px solid rgba(251, 174, 48, 0.12);
}

.fg-message-quote {
    display: block;
    margin-bottom: 24px;
    font-size: 44px;
    color: var(--fg-amber, #fbae30);
}

.fg-message .fg-message-card .fg-message-closing {
    position: relative;
    margin-bottom: 24px;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.fg-message-sign {
    position: relative;
    display: inline-block;
    padding-top: 14px;
    border-top: 2px solid var(--fg-amber, #fbae30);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c9cdd3;
}

.fg-message-body {
    padding-left: 40px;
    border-left: 3px solid var(--fg-amber, #fbae30);
}

.fg-message .fg-message-body .fg-message-lead {
    margin-bottom: 24px;
    font-size: 24px;
    line-height: 1.5;
    color: var(--fg-navy, #222e47);
}

.fg-message .fg-message-body .text {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.75;
    color: #5b6478;
}

.fg-message .fg-message-body .text:last-child {
    margin-bottom: 0;
}

@media only screen and (max-width: 1199px) {
    .fg-message-grid {
        gap: 50px;
    }

    .fg-message .fg-message-card .fg-message-closing {
        font-size: 26px;
    }
}

@media only screen and (max-width: 991px) {
    .fg-message-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fg-message-aside {
        position: static;
    }

    .fg-message-body {
        padding-left: 24px;
    }
}

@media only screen and (max-width: 575px) {
    .fg-message-card {
        padding: 36px 26px 30px;
    }

    .fg-message .fg-message-card .fg-message-closing {
        font-size: 22px;
    }

    .fg-message .fg-message-body .fg-message-lead {
        font-size: 19px;
    }

    .fg-message .fg-message-body .text {
        font-size: 16px;
    }
}
