/* =========================================
   AMALGAMATION PAGE
========================================= */

.amalgamation-page {
    min-height: calc(100vh - 88px);

    padding: 28px 0 60px;

    background: var(--page-bg);
}


.amalgamation-section {
    width: 100%;

    padding: 0 24px 50px;

    background: var(--page-bg);
}


/* =========================================
   TAB BAR
========================================= */

.amalgamation-section .company-tabs {
    margin-bottom: 30px;
}


.amalgamation-section .company-tab.active {
    color: var(--green);
}


.amalgamation-section .company-tab.active::after {
    background:
        linear-gradient(
            90deg,
            var(--green),
            var(--blue)
        );
}


/* =========================================
   GRID
========================================= */

.amalgamation-grid {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    align-items: stretch;
}


/* =========================================
   COMPANY CARD
========================================= */

.amalgamation-card {
    width: 100%;
    min-height: 390px;

    padding: 24px;

    border-radius: 20px;
}


.amalgamation-status {
    top: 0;
    right: 0;

    padding: 15px 20px;

    border-radius: 0 20px 0 18px;

    color: var(--main-text);

    background:
        linear-gradient(
            135deg,
            rgba(19, 185, 120, 0.15),
            rgba(23, 104, 229, 0.16)
        );

    font-size: 13px;
    font-weight: 700;
}


/* =========================================
   LOGO
========================================= */

.amalgamation-logo {
    height: 210px;

    margin: 30px 0 20px;

    align-items: center;
    justify-content: center;
}


.amalgamation-logo img {
    width: auto;
    height: auto;

    max-width: 82%;
    max-height: 125px;

    object-fit: contain;
}


/* =========================================
   CARD TEXT
========================================= */

.amalgamation-card h2 {
    margin: 12px 0;

    color: var(--main-text);

    font-size: 21px;
    line-height: 1.4;
}


.amalgamation-card .company-sector-label {
    margin-top: auto;

    padding-top: 30px;

    color: var(--muted-text);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
}


.amalgamation-card .company-sector-name {
    margin-top: 7px;
    margin-bottom: 0;

    color: var(--main-text);

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================
   HOVER
========================================= */

.amalgamation-card:hover {
    transform: translateY(-8px);

    border-color:
        rgba(19, 185, 120, 0.45);

    box-shadow:
        0 22px 48px
        rgba(20, 70, 140, 0.15);
}


/* =========================================
   LIST VIEW
========================================= */

.amalgamation-grid.list-view {
    grid-template-columns: 1fr;
}


.amalgamation-grid.list-view .amalgamation-card {
    width: 100%;
    min-height: 220px;

    display: grid;

    grid-template-columns:
        220px 1fr;

    grid-template-rows:
        auto auto 1fr;

    column-gap: 30px;

    align-items: center;
}


.amalgamation-grid.list-view .amalgamation-logo {
    height: 170px;

    margin: 0;

    grid-column: 1;
    grid-row: 1 / span 3;
}


.amalgamation-grid.list-view .amalgamation-card h2 {
    grid-column: 2;

    margin-top: 30px;

    font-size: 25px;
}


.amalgamation-grid.list-view
.company-sector-label {
    grid-column: 2;

    margin-top: 10px;
    padding-top: 0;
}


.amalgamation-grid.list-view
.company-sector-name {
    grid-column: 2;
}


/* =========================================
   DARK MODE
========================================= */

html[data-theme="dark"]
.amalgamation-status {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            rgba(53, 201, 152, 0.22),
            rgba(110, 114, 255, 0.25)
        );
}


html[data-theme="dark"]
.amalgamation-card:hover {
    border-color:
        rgba(53, 201, 152, 0.4);

    box-shadow:
        0 24px 48px
        rgba(0, 0, 0, 0.32);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1200px) {

    .amalgamation-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 900px) {

    .amalgamation-page {
        min-height: calc(100vh - 76px);

        padding-top: 20px;
    }


    .amalgamation-section {
        padding: 0 16px 50px;
    }


    .amalgamation-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {

    .amalgamation-grid {
        grid-template-columns: 1fr;
    }


    .amalgamation-card {
        min-height: 370px;
    }


    .amalgamation-grid.list-view
    .amalgamation-card {
        display: flex;

        min-height: 370px;
    }


    .amalgamation-logo {
        height: 185px;
    }

}
