@import url(../../global.css);

.main-hero {
    background: linear-gradient(89.53deg, rgba(0, 0, 0, 0.6) 38.02%, rgba(0, 0, 0, 0.3) 60.4%, rgba(0, 0, 0, 0) 71.79%), url("../../../assets/images/offer-documents/fpo/fpo-page-banner-min.png") center / cover no-repeat;
    height: 100vh;
    padding: 32px 0px;
    display: flex;
    align-items: flex-end;
    position: relative;
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.3);
}

.hero-header {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-header>h1 {
    width: 80%;
    font-family: Urbanist, sans-serif;
    font-size: 3.14rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #ffffff;
}

.hero-header>p {
    width: 50%;
    font-family: Plus Jakarta Sans, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.618;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #ffffff;
}

@media screen and (max-width:768px) {
    .main-hero {
        background: linear-gradient(180deg, rgba(137, 137, 137, 0.2) 0%, #000000 100%), url("../../../assets/images/offer-documents/fpo/fpo-page-banner-min.png");
        padding: 0px;
        align-items: center;
    }

    .hero-header {
        padding: 40px;
    }

    .hero-header>h1,
    .hero-header>p {
        width: 100%;
    }

}

@media screen and (max-width:430px) {
     .main-hero {
        padding: 0px;
    }

    .hero-header {
        padding: 20px;
    }

    .hero-header>h1 {
        font-size: 2.617rem;
    }

}


/* Introductory Section Styles */
.intro-section {
    padding: 80px 0;
}

.intro-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 50px;
}

.vision-section {
    margin-bottom: 80px;
}

.vision-heading {
    width: 60%;
    font-family: Urbanist, sans-serif;
    font-size: 2.617rem;
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
    max-width: 900px;
}

.success-stories-section {
    margin-bottom: 80px;
}

.success-stories-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.team-photo-container {
    width: 100%;
}

.team-photo {
    width: 100%;
    height: auto;
    /* aspect-ratio: 1/1; */
    border-radius: 16px;
    object-fit: cover;
}

.success-stories-text-container {
    display: flex;
    flex-direction: column;
    gap: 64px;
    padding: 12px;
}

.success-stories-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.success-stories-text p {
    font-family: Plus Jakarta Sans, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.618;
    color: #1a1a1a;
}

/* Responsive Styles for Introductory Section */
@media screen and (max-width: 1024px) {
    .vision-heading {
        font-size: 2.8rem;
    }

    .success-stories-content {
        gap: 48px;
    }

}

@media screen and (max-width: 768px) {
    .intro-section {
        padding: 60px 0;
    }

    .intro-container {
        padding: 0 40px;
    }

    .vision-section {
        margin-bottom: 60px;
    }

    .vision-heading {
        width: 100%;
    }

    .success-stories-section {
        margin-bottom: 60px;
    }

    .success-stories-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .team-photo {
        aspect-ratio: 1/1;
    }
}

@media screen and (max-width: 430px) {
    .intro-section {
        padding: 40px 0;
    }

    .intro-container {
        padding: 0 20px;
    }

    .vision-section {
        margin-bottom: 40px;
    }

    .success-stories-section {
        margin-bottom: 40px;
    }

    .success-stories-text-container {
        padding: 0;
    }

    .success-stories-text p {
        font-size: 1rem;
    }
}


/* Company Listing Cards */
.company-listing-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 64px 50px;
}

.company-listing-container-header {
    margin-bottom: 48px;
}

.company-listing-container-header h2{
    font-family: Urbanist, sans-serif;
    font-size: 2.617rem;
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
}

.company-listing-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    align-items: stretch;
}

.company-listing-card {
    flex: 1 1 calc(33.333% - 22px);
    min-width: 300px;
    background-color: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.company-listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.company-card-header {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.company-card-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

.company-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.company-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    font-family: Urbanist, sans-serif;
    font-size: 1.618rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    /* text-transform: uppercase; */
    text-align: left;
    z-index: 2;
    word-wrap: break-word;
}

.ipo-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #104b88;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: Plus Jakarta Sans, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 3;
}

.company-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.company-value-date {
    display: flex;
    align-items: center;
    gap: 16px;
}

.company-value {
    font-family: Urbanist, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    flex: 1;
}

.value-date-separator {
    width: 1px;
    height: 24px;
    background-color: #ddd;
}

.company-date {
    font-family: Plus Jakarta Sans, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    color: #666;
}

.company-card-separator {
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
}

.company-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.company-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.detail-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: #999;
}

.detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-family: Plus Jakarta Sans, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-family: Plus Jakarta Sans, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    color: #1a1a1a;
}

.company-card-footer {
    padding-top: 8px;
}

.view-transaction-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: Plus Jakarta Sans, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #003366;
    text-decoration: none;
    border-bottom: 2px solid #003366;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.view-transaction-link:hover {
    color: #0a3a6b;
    border-color: #0a3a6b;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .company-listing-container {
        padding: 64px 40px;
    }

    .company-listing-card {
        flex: 1 1 calc(50% - 16px);
        min-width: 280px;
    }
}

@media screen and (max-width: 768px) {
    .company-listing-container {
        padding: 48px 40px;
    }

    .company-listing-row {

        gap: 24px;
    }

    .company-listing-card {
        flex: 1 1 45%;
        /* min-width: 100%; */
    }

    .company-card-header {
        height: 200px;
    }

    .company-card-header::before {
        height: 55%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0) 100%);
    }

    .company-name-overlay {
        font-size: 1.382rem;
        padding: 20px 16px;
        line-height: 1.3;
    }

    .company-value {
        font-size: 1.382rem;
    }
}

@media screen and (max-width: 430px) {
    .company-listing-container {
        padding: 48px 20px;
    }

    .company-listing-row {
        gap: 20px;
    }

    .company-card-body {
        padding: 20px;
    }

    .company-card-header {
        height: 180px;
    }

    .company-card-header::before {
        height: 60%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0) 100%);
    }

    .company-name-overlay {
        font-size: 1.2rem;
        padding: 16px;
        line-height: 1.3;
    }

    .ipo-badge {
        top: 12px;
        left: 12px;
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .company-value {
        font-size: 1.2rem;
    }

    .company-date {
        font-size: 0.85rem;
    }

    .detail-value {
        font-size: 0.9rem;
    }

    .view-transaction-link {
        font-size: 0.9rem;
    }
}