/* css/investor-charter.css — Investor Charter page styles */

/* =========================================================
   SCOPED RESET
  
========================================================= */
:where(.InvestorCharterHero, .InvestorCharterTabsSection, .InvestorCharterPart) {
    font-family: "Poppins", sans-serif;
    color: #2b2b2b;
}

:where(.InvestorCharterHero, .InvestorCharterTabsSection, .InvestorCharterPart) * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================================
   INVESTOR CHARTER HERO
========================================================= */
.InvestorCharterHero {
    position: relative;
    width: 100%;
    overflow: visible;
    text-align: center;
    padding-top: clamp(90px, 9vw, 130px);
    background: linear-gradient(110deg, #061a59 0%, #082b82 28%, #124bc8 58%, #2868ed 100%);
}

.InvestorCharterHero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: clamp(55px, 6.5vw, 95px) clamp(55px, 6.5vw, 95px);
}

.InvestorCharterHero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(45px, 4vw, 55px);
    background: #ffffff;
    z-index: 1;
    pointer-events: none;
}

.InvestorCharterHeroContent {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    margin-bottom: clamp(40px, 4.8vw, 68px);
}

.InvestorCharterHeroTitle {
    color: #ffffff;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 1.2;
    text-align: center;
    text-transform: capitalize;
}

.InvestorCharterHeroPlate {
    position: relative;
    z-index: 4;
    width: min(78%, 1120px);
    margin: 0 auto;
    /* padding: clamp(8px, 1vw, 14px); */
    border-radius: clamp(18px, 1.8vw, 26px);
    background: linear-gradient(145deg, #ffffff 0%, #e8efff 45%, #ffffff 100%);
    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.28),
        0 4px 14px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.InvestorCharterHeroImageWrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: clamp(12px, 1.3vw, 18px);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.InvestorCharterHeroImage {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.1 / 1;
    object-fit: cover;
    object-position: center;
}

/* =========================================================
   INVESTOR CHARTER (tabs + content)
========================================================= */
.InvestorCharterTabsSection {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: #ffffff;
    padding: clamp(40px, 5vw, 70px) 0px 0;
}

/* Every block of content is its own small component (section).
   They stack under the tabs and are shown/hidden together per tab. */
.InvestorCharterPart {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: #ffffff;
    padding: 0 0px;
    overflow-wrap: anywhere;
}

.InvestorCharterPart > * {
    min-width: 0;
    max-width: 100%;
}

.InvestorCharterPart--continued {
    padding-top: clamp(28px, 3.5vw, 44px);
}

.InvestorCharterPart--last {
    padding-bottom: clamp(20px, 2.5vw, 30px);
}

.InvestorCharterContainer {
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    margin: 0 auto;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 40px);
}

/* ---------- Tabs ---------- */
.InvestorCharterTabs {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    margin-bottom: clamp(30px, 4vw, 50px);

    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.InvestorCharterTab {
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    padding: 12px 24px;
    border-radius: 6px;
    background: transparent;
    color: #8a94a6;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;

    flex: 1 1 160px;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.InvestorCharterTab:hover {
    color: #124bc8;
    background: #f0f4ff;
}

.InvestorCharterTab.is-active {
    background: #124bc8;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(18, 75, 200, 0.25);
}

.InvestorCharterTab:focus-visible {
    outline: 2px solid #124bc8;
    outline-offset: 2px;
}

.InvestorCharterPart[hidden] {
    display: none !important;
}

.InvestorCharterPart:not([hidden]) {
    display: block !important;
}

/* ---------- Headings (shared) ---------- */
.InvestorCharterHeading {
    font-family: "Sora", sans-serif;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    color: #1c2540;
    margin-bottom: 14px;
}

.InvestorCharterHeading:not(:first-child) {
    margin-top: clamp(28px, 3.5vw, 44px);
}

.InvestorCharterSubHeading {
    font-family: "Sora", sans-serif;
    font-size: clamp(16px, 1.6vw, 19px);
    font-weight: 700;
    color: #1c2540;
    margin-bottom: 14px;
    margin-top: clamp(18px, 2vw, 24px);
}

.InvestorCharterText {
    font-size: 15px;
    line-height: 1.75;
    color: #4a5468;
    margin-bottom: 6px;
}

/* ---------- Two column list grid ---------- */
.InvestorCharterList {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 40px;
    margin-top: 18px;
    min-width: 0;
}

.InvestorCharterItem {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14.5px;
    line-height: 1.65;
    color: #4a5468;
}

.InvestorCharterItem::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 6L15 12L9 18' stroke='%23124bc8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 6L21 12L15 18' stroke='%2394aee6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Table ---------- */
.InvestorCharterTableWrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    margin-top: 18px;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    -webkit-overflow-scrolling: touch;
}

.InvestorCharterTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    min-width: 680px;
    background: #ffffff;
}

.InvestorCharterTable thead th {
    background: #1058a5;
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 14px 18px;
    font-size: 14.5px;
    line-height: 1.4;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.InvestorCharterTable thead th:last-child {
    border-right: 0;
}

.InvestorCharterTable tbody td {
    padding: 14px 18px;
    color: #4a5468;
    line-height: 1.6;
    vertical-align: top;
    border-bottom: 1px solid #e8edf5;
    transition: background 0.2s ease;
    text-align: start;
}

.InvestorCharterTable tbody tr:nth-child(odd) {
    background: #ffffff;
}

.InvestorCharterTable tbody tr:nth-child(even) {
    background: #f4f7fc;
}

.InvestorCharterTable tbody tr:hover {
    background: #e8f1ff;
}

.InvestorCharterTable tbody tr:hover td {
    background: #e8f1ff;
}

.InvestorCharterTable tbody tr:last-child td {
    border-bottom: 0;
}

.InvestorCharterTableSr {
    width: 80px;
    text-align: center;
    font-weight: 500;
    color: #4a5468;
}

.InvestorCharterTableLabel {
    width: 220px;
    font-weight: 600;
    color: #1c2540;
}

.InvestorCharterTableBlock {
    margin-bottom: 14px;
}

.InvestorCharterTableBlock:last-child {
    margin-bottom: 0;
}

.InvestorCharterTableSubhead {
    display: block;
    font-weight: 600;
    color: #1c2540;
    text-decoration: underline;
    margin-bottom: 6px;
}

.InvestorCharterTableNote {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7a99;
    font-style: italic;
}

.InvestorCharterTable a {
    color: #124bc8;
    text-decoration: underline;
    word-break: break-word;
}

.InvestorCharterTable a:hover {
    color: #0b358f;
}

.InvestorCharterOrderedList {
    padding-left: 20px;
    margin: 0;
}

.InvestorCharterOrderedList li {
    margin-bottom: 6px;
    line-height: 1.65;
    color: #4a5468;
}

.InvestorCharterOrderedList li:last-child {
    margin-bottom: 0;
}

/* Grievance table specific: header without labels */
.InvestorCharterTableGrievanceHeader th {
    background: #0d4e94;
}

/* =========================================================
   FLOWCHART IMAGE (Multi-level complaint resolution)
========================================================= */
.InvestorCharterFlowchartBox {
    width: 100%;
    margin-top: 18px;
    padding: clamp(16px, 2.5vw, 24px);
    background: #ffffff;
    border: 1px solid #e4e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

.InvestorCharterFlowchartImage {
    display: block;
    width: 70%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
}

/* =========================================================
   DISCLOSURE OF COMPLAINTS (now inside panels)
========================================================= */
.InvestorCharterDisclosure {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: #ffffff;
    padding: clamp(30px, 4vw, 50px) 0 clamp(10px, 1.5vw, 20px);
    border-top: 1px solid #e8edf5;
    margin-top: clamp(30px, 4vw, 50px);
    overflow-wrap: anywhere;
}

.InvestorCharterDisclosure > * {
    min-width: 0;
    max-width: 100%;
}

.InvestorCharterDisclosureTitle {
    font-family: "Sora", sans-serif;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    color: #1c2540;
    margin-bottom: clamp(16px, 2vw, 24px);
}

.InvestorCharterDisclosureGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.6vw, 20px);
    min-width: 0;
}

.InvestorCharterDisclosureGrid--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
}

.InvestorCharterDisclosureCard {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e4e8f0;
    border-radius: 10px;
    padding: clamp(16px, 1.8vw, 22px) clamp(18px, 2vw, 24px);
    text-decoration: none;
    color: #2b2b2b;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.InvestorCharterDisclosureCard:hover {
    box-shadow: 0 10px 28px rgba(18, 75, 200, 0.12);
    border-color: #cfd9ef;
    transform: translateY(-2px);
}

.InvestorCharterDisclosureCard:focus-visible {
    outline: 2px solid #124bc8;
    outline-offset: 2px;
}

.InvestorCharterDisclosureCard::before {
    content: "";
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e8effc;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 26px 26px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2h8l5 5v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1z' fill='%23f4f4f4' stroke='%23d6d6d6' stroke-width='0.8'/%3E%3Cpath d='M14 2v5h5' fill='%23e3e3e3'/%3E%3Crect x='7.5' y='11' width='9' height='6' rx='1' fill='%232e7d32'/%3E%3Ctext x='12' y='15.6' font-size='4.2' text-anchor='middle' fill='%23fff' font-weight='700' font-family='Arial,sans-serif'%3EXLS%3C/text%3E%3C/svg%3E");
}

.InvestorCharterDisclosureName {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: #2b2b2b;
    word-break: break-word;
}

/* Sub-item (indented detail) inside list items */
.InvestorCharterItemDetail {
    display: block;
    margin-top: 4px;
    padding-left: 12px;
    color: #4a5468;
}

.InvestorCharterItemStrong {
    font-weight: 700;
    color: #1c2540;
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* DESKTOP */
@media (min-width: 1200px) {
    .InvestorCharterHero {
        padding-top: 130px;
    }

    .InvestorCharterHeroContent {
        margin-bottom: 68px;
    }

    .InvestorCharterHeroPlate {
        width: min(78.5%, 1120px);
    }
}

/* LAPTOP */
@media (max-width: 1199px) and (min-width: 769px) {
    .InvestorCharterHero {
        padding-top: clamp(100px, 9vw, 120px);
    }

    .InvestorCharterHeroTitle {
        font-size: clamp(52px, 5.3vw, 64px);
    }

    .InvestorCharterHeroContent {
        margin-bottom: clamp(42px, 5vw, 60px);
    }

    .InvestorCharterHeroPlate {
        width: calc(100% - 90px);
        max-width: 1120px;
    }

    .InvestorCharterHeroImage {
        aspect-ratio: 2.05 / 1;
    }
}

/* SMALL LAPTOP / TABLET LANDSCAPE */
@media (max-width: 1024px) {
    .InvestorCharterList {
        gap: 14px 28px;
    }

    .InvestorCharterDisclosureGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* TABLET */
@media (max-width: 900px) {
    .InvestorCharterList {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .InvestorCharterHero {
        padding-top: 90px;
    }

    .InvestorCharterHero::before {
        background-size: 55px 55px;
    }

    .InvestorCharterHeroContent {
        padding: 0 16px;
        margin-bottom: 38px;
    }

    .InvestorCharterHeroTitle {
        font-size: clamp(44px, 8vw, 58px);
    }

    .InvestorCharterHeroPlate {
        width: calc(100% - 36px);
        /* padding: 10px; */
        border-radius: 18px;
    }

    .InvestorCharterHeroImageWrapper {
        border-radius: 12px;
    }

    .InvestorCharterHeroImage {
        aspect-ratio: 16 / 9;
    }

    .InvestorCharterHero::after {
        height: 45px;
    }

    .InvestorCharterTabsSection {
        padding: 30px 16px 0;
    }

    .InvestorCharterPart {
        padding-left: 16px;
        padding-right: 16px;
    }

    .InvestorCharterPart--last {
        padding-bottom: 20px;
    }

    .InvestorCharterList {
        grid-template-columns: minmax(0, 1fr);
    }

    .InvestorCharterDisclosureGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .InvestorCharterTab {
        flex: 1 1 140px;
    }

    .InvestorCharterTable thead th,
    .InvestorCharterTable tbody td {
        padding: 12px 14px;
        font-size: 13.5px;
    }

    .InvestorCharterTableLabel {
        width: 180px;
    }

    .InvestorCharterFlowchartBox {
        padding: 16px 14px;
    }
}

/* MOBILE */
@media (max-width: 480px) {
    .InvestorCharterHero {
        padding-top: 85px;
    }

    .InvestorCharterHeroContent {
        padding: 30px 14px;
        margin-bottom: 30px;
    }

    .InvestorCharterHeroTitle {
        font-size: clamp(40px, 11vw, 48px);
    }

    .InvestorCharterHeroPlate {
        width: calc(100% - 28px);
        /* padding: 8px; */
        border-radius: 16px;
    }

    .InvestorCharterHeroImageWrapper {
        border-radius: 10px;
    }

    .InvestorCharterHeroImage {
        aspect-ratio: 16 / 10;
    }

    .InvestorCharterHero::after {
        height: 40px;
    }

    .InvestorCharterTabsSection {
        padding: 24px 14px 0;
    }

    .InvestorCharterPart {
        padding-left: 14px;
        padding-right: 14px;
    }

    .InvestorCharterPart--last {
        padding-bottom: 16px;
    }

    .InvestorCharterDisclosureGrid {
        grid-template-columns: minmax(0, 1fr);
    }

    .InvestorCharterTab {
        flex: 1 1 100%;
    }

    .InvestorCharterTable {
        min-width: 580px;
    }

    .InvestorCharterDisclosureCard {
        padding: 14px 16px;
        gap: 12px;
    }

    .InvestorCharterDisclosureCard::before {
        width: 42px;
        height: 42px;
        background-size: 22px 22px;
    }

    .InvestorCharterDisclosureName {
        font-size: 13.5px;
    }

    .InvestorCharterTabs {
        gap: 6px;
        margin-bottom: 26px;
    }

    .InvestorCharterTab {
        font-size: 13.5px;
        padding: 10px 16px;
        flex: 1 1 auto;
        text-align: center;
    }

    .InvestorCharterItem {
        font-size: 13.5px;
        gap: 10px;
    }

    .InvestorCharterText {
        font-size: 14px;
    }

    .InvestorCharterTable {
        font-size: 13px;
        min-width: 600px;
    }

    .InvestorCharterTable thead th,
    .InvestorCharterTable tbody td {
        padding: 10px 12px;
        font-size: 12.5px;
    }

    .InvestorCharterTableNote {
        font-size: 12.5px;
    }

    .InvestorCharterDisclosure {
        padding: 24px 0 10px;
    }
}

/* VERY SMALL PHONES */
@media (max-width: 360px) {
    .InvestorCharterHero {
        padding-top: 80px;
    }

    .InvestorCharterHeroContent {
        margin-bottom: 26px;
    }

    .InvestorCharterHeroTitle {
        font-size: 40px;
    }

    .InvestorCharterHeroPlate {
        width: calc(100% - 22px);
        /* padding: 6px; */
        border-radius: 14px;
    }

    .InvestorCharterHeroImageWrapper {
        border-radius: 8px;
    }
}