/* -------------------------
   Global Imports
------------------------- */
@import url("styles.css");

/* -------------------------
   Hero Section
------------------------- */
.hero-section {
    background: url("../images/ipo/ipo-header-desktop.png") center/cover no-repeat;
    min-height: 50vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.hero-section h1 {
    color: #e4e9e9;
    font-family: Manrope, sans-serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: 0.24px;
}

.hero-section h1 .font-style-2 {
    color: #c7ee4e;
    font-family: "DM Serif Text", serif;
    font-size: 58px;
    font-style: italic;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: 0.28px;
}

.hero-section p {
    color: #bcc;
    font-family: Manrope, sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 160%;
    letter-spacing: 0.16px;
}

@media (max-width: 768px) {
    .hero-section {
        background: url("../images/ipo/ipo-header-mobile.png") center/cover no-repeat;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .hero-section h1 .font-style-2 {
        font-size: 36px;
    }
}

/* -------------------------
   IPO Section
------------------------- */
.ipo-container {
    display: flex;
    flex-direction: column;
    gap: 120px;
    width: 100%;
}

.ipo h1 {
    color: #003134;
    font-size: 36px;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: 0.18px;
    text-align: center;
    padding: 60px 0 40px;
}

@media (max-width: 768px) {
    .ipo h1 {
        width: 343px;
        font-size: 32px;
        letter-spacing: 0.16px;
        text-align: left;
    }
}

.ipo .card {
    padding: 15px;
    width: 100%;
}

.ipo h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-100);
}

.ipo p,
.ipo .text-small {
    font-size: 0.9rem;
    color: var(--dark-grey);
}

.ipo .text-small {
    font-size: 0.8rem;
}

.explore-link {
    color: #74950e;
    font-family: Manrope, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.08px;
    text-decoration: underline;
    text-transform: capitalize;
}

.ipo .btn {
    width: 100%;
    font-weight: 600;
    color: var(--primary-100);
    border: 1px solid var(--primary-100);
    padding: 0.75rem 1rem;
    margin-right: 10px;
    background: transparent;
    transition: background 0.2s, color 0.2s;
}

.ipo .btn:hover {
    color: #fff;
    background: var(--primary-100);
}

.ipo .img-container {
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ipo img {
    object-fit: cover;
    transition: transform 0.25s ease-in-out;
}

.ipo img:hover {
    transform: scale(1.05);
}

/* -------------------------
   Table Styles
------------------------- */
.table-container {
    width: 80%;
    margin: 0 auto;
    font-family: Manrope, sans-serif;
}

.table-container h2 {
    color: #003134;
    font-family: Manrope;
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: 0.18px;
    margin-bottom: 40px;
}

.ipo-table {
    display: table;
    width: 100%;
    border: 0.5px solid #b3c1c2;
    border-radius: 16px;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}

.ipo-table thead,
.ipo-table tbody,
.ipo-table tr {
    display: block;
}

.ipo-table thead {
    background: #f4fcdc;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;

}

.ipo-table tbody {
    width: 100%;
}

.ipo-table thead tr {
    display: flex;
    padding: 12px 40px;
    gap: 40px;
    border-bottom: 0.5px solid #b3c1c2;
    align-items: center;
}

.ipo-table thead tr th {
    color: #003134;
    font-family: Manrope;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    /* 125% */
    letter-spacing: 0.08px;
    text-transform: capitalize;
}



.ipo-table tbody tr {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 0.5px solid #b3c1c2;
    width: 100%;
    color: #003134;
    font-family: Manrope;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    /* 125% */
    letter-spacing: 0.08px;
    text-transform: capitalize;
}

tbody tr:last-child {
    border-bottom: 0;
}



th.stock-cell,
td.stock-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    /* width: 200px; */
    flex: 1.7 1 0;
    min-width: 0;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.07px;
}

td.stock-cell .stock-name {
    color: #003134;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

td.ticker-cell,
th.ticker-cell,
td.listing-cell,
th.listing-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    flex: 1 1 0;
    min-width: 0;
}

td.ticker-cell,
th.ticker-cell {
    flex-wrap: wrap;
    /* <-- This is the key */
}

th.range-cell,
td.range-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* width: 170px; */
    flex: 1.5 1 0;
    min-width: 0;
}

/* Action column for explore link */
th:last-child,
td:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    /* width: 100px; */
    flex: 0.9 1 0;
    min-width: 0;
    border-bottom: 0;
}


.ipo-thumbnail {
    max-width: 150px;
    max-height: 110px;
    object-fit: contain;
    /* prevents image from shrinking oddly in flex */
}

.badge {
    display: inline-block;
    padding: 0 8px;
    border-radius: 100px;
    border: 0.5px solid #b3c1c2;
    background: #f6f7f0;
    color: #2b4b4d;
    font-size: 10px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.desktop-only {
    display: block;
    /* or table if you want */
}

.mobile-only {
    display: none;
}

/* ----- Mobile Card Layout ----- */

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .table-container {
        width: 100%;
        margin: 0;
        padding: 0 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ipo-card {
        border: 1px solid #b3c1c2;
        border-radius: 16px;
        font-family: Manrope, sans-serif;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
    }

    .ipo-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: small;
        width: 100%;
        border-bottom: #b3c1c2 solid 0.5px;
    }

    .ipo-card-frame1 {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 200px;
        gap: 8px;
    }

    .ipo-card-frame2 {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .ipo-card-frame3 {
        display: flex;
        flex-direction: column;
    }

    .label {
        color: #2B4B4D;
        font-family: Manrope;
        font-size: 12px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;
        /* 166.667% */
        letter-spacing: 0.06px;
        text-transform: capitalize;
    }

    .value {
        color: #003134;
        font-family: Manrope;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;
        /* 142.857% */
        letter-spacing: 0.07px;
        text-transform: capitalize;
    }

    .ipo-thumbnail {
        /* height: 50px;     */
        max-height: 38px;
        max-width: 100px;
    }


    .ipo-card-frame1 .stock-name {
        color: #003134;
        font-family: Manrope;
        font-size: 12px;
        font-style: normal;
        font-weight: 600;
        line-height: 20px;
        /* 166.667% */
        letter-spacing: 0.06px;
        text-decoration-line: underline;
        text-decoration-style: solid;
        text-decoration-skip-ink: none;
        text-decoration-thickness: auto;
        text-underline-offset: auto;
        text-underline-position: from-font;
        text-transform: capitalize;
    }

    .ipo-card-body {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .ipo-card-body h3 {
        font-size: smaller;
        font-weight: 600;
        margin-bottom: 8px;
        color: #003134;
    }


    .ipo-price {
        color: #003134;
        text-align: right;
        font-family: Manrope;
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: 20px;
        /* 125% */
        letter-spacing: 0.08px;
        text-transform: capitalize;
    }

    .ipo-card-footer {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .explore-link {
        color: #74950E;
        font-family: Manrope;
        font-size: 14px;
        font-style: normal;
        font-weight: 700;
        line-height: 20px;
        /* 142.857% */
        letter-spacing: 0.07px;
        text-decoration-line: underline;
        text-decoration-style: solid;
        text-decoration-skip-ink: none;
        text-decoration-thickness: auto;
        text-underline-offset: auto;
        text-underline-position: from-font;
        text-transform: capitalize;
    }
}

.cta-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 80px;
    width: 80%;
    gap: 40px;
    border-radius: 16px;
    background: var(--primary-100);
    margin-top: 50px;
    align-self: center;
}

.cta-section h2 {
    color: #e4e9e9;
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: 0.18px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cta-section span {
    color: var(--secondary-100);
    font-family: "DM Serif Text";
    font-size: 40px;
    font-style: italic;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: 0.2px;
}

.cta-section p {
    color: #bcc;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    letter-spacing: 0.16px;
}

.primary-btn {
    display: flex;
    padding: 15px 40px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    background: linear-gradient(180deg,
            #f3fbd9 -4.17%,
            #c7ee4e 14.96%,
            #85b000 88.25%,
            #9acc00 108.33%);
    color: #1a2e1a !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 15px;
    letter-spacing: 0.08px;
    text-decoration: none !important;
    min-width: 300px;
    border: none;
    cursor: pointer;
    width: 100%;
}

.cta-section a.secondary-btn {
    display: flex;
    padding: 15px 40px;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 6px;
    border-radius: 8px;
    border: 0.5px solid #e4e9e9;
    background: var(--primary-100);
    color: white;
    min-width: 300px;
    margin-top: 14px;
    text-decoration: none;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.08px;
}

.secondary-btn img {
    width: 19.897px;
    height: 20px;
    aspect-ratio: 19.9/20;
}

@media (max-width: 768px) {
    .cta-section {
        flex-direction: column;
        align-items: stretch;
        padding: 40px 30px;
        gap: 30px;
    }

    .cta-text {
        order: 1;
        width: 100%;
    }

    .cta-section h2 {
        font-size: 30px;
        margin-bottom: 12px;
    }

    .cta-section span {
        font-size: 36px;
    }

    .cta-section p {
        font-size: 15px;
        margin-bottom: 0;
    }

    .cta-buttons {
        order: 2;
        align-items: stretch;
        width: 100%;
    }

    .primary-btn,
    .secondary-btn {
        min-width: 100%;
        width: 100%;
        padding: 18px 30px;
        font-size: 15px;
    }

    .secondary-btn {
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 30px 20px;
        gap: 25px;
        margin-top: 40px;
        width: 90%;
    }

    .cta-section h2 {
        font-size: 30px;
    }

    .cta-section span {
        font-size: 36px;
    }

    .cta-section p {
        font-size: 14px;
    }

    .cta-section a.primary-btn,
    .cta-section a.secondary-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: auto;
    }
}