/*
    CSS for GPU-Accelerated Memory/Storage Page
*/

/* --- GLOBAL VARS & UTILITIES --- */
:root {
    --h3-gpu-font-family: "myriad-pro", "Open Sans", sans-serif;
    --h3-gpu-text-dark: #000000;
    --h3-gpu-text-light: #FFFFFF;
    --h3-gpu-text-grey: #555;
    --h3-gpu-bg-light: #f7f7f7;
}

.h3-gpu-storage {
    font-family: var(--h3-gpu-font-family);
    line-height: 1.6;
}

.bg-light {
    background-color: var(--h3-gpu-bg-light);
}

.color-primary {
    color: #00aeef;
}

.h3-section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 3rem 0;
    color: var(--h3-gpu-text-dark);
}

.h3-section-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 3rem 0;
    color: var(--h3-gpu-text-dark);
    text-align: center;
}

/* --- 0. BREADCRUMB --- */
.h3-breadcrumb {
    padding-top: 1px; /* Optional: to prevent margin collapse */
}

/* --- 1. HERO SECTION --- */
.h3-gpu-hero {
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    color: var(--h3-gpu-text-light);
}

.h3-gpu-hero__title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.h3-gpu-hero__subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    margin-top: 1rem;
}

/* --- 2. OVERVIEW SECTION --- */
.h3-gpu-overview {
    padding: 80px 0;
    background-color: #fff;
    position: relative;
    z-index: 5;
}

.h3-gpu-overview__container {
    display: flex;
    align-items: flex-start; /* Core change: Top alignment */
    gap: 60px; /* Core change: Adjust gap */
}

.h3-gpu-overview__content {
    flex: 1;
}

/* Core change: Remove top margin for alignment */
.h3-gpu-overview .h3-section-title {
    margin-top: -10px;
    margin-bottom: 2rem;
}

.h3-gpu-overview__image {
    flex: 1; /* Core change: Allow flex grow/shrink */
    max-width: 550px; /* Core change: Set max width */
}

.h3-gpu-overview__image img {
    height: auto;
    max-width: 100%;
    display: block; /* Core change: Remove bottom space */
}


/* --- 3. BENEFITS SECTION --- */
.h3-gpu-benefits {
    padding: 80px 0;
}

.h3-gpu-benefits__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.h3-gpu-benefits__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 80px;
    row-gap: 60px;
}

.h3-gpu-benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.h3-gpu-benefit-card__icon {
    flex-shrink: 0;
    width: 120px;
}

.h3-gpu-benefit-card__icon img {
    width: 100%;
    height: auto;
}

.h3-gpu-benefit-card__content {
    flex: 1;
}

.h3-gpu-benefit-card__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.h3-gpu-benefit-card__description {
    color: var(--h3-gpu-text-grey);
    margin: 0;
}

/* --- 4. ARCHITECTURE SECTION --- */
.h3-gpu-architecture {
    padding: 80px 0;
}

.h3-gpu-architecture__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

/* .h3-gpu-architecture__content {
    max-width: 800px;
} */

.h3-gpu-architecture__diagrams {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.h3-gpu-architecture__diagrams img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
}

/* --- 5. USE CASES SECTION --- */
.h3-gpu-use-cases {
    padding: 80px 0;
}

.h3-gpu-use-cases__container {
    text-align: center;
}

.h3-gpu-use-cases__grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    margin-top: 3rem;
}

.h3-gpu-use-case-card {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 900px;
    text-align: left;
}

.h3-gpu-use-case-card__icon {
    flex: 0 0 120px;
}

.h3-gpu-use-case-card__icon img {
    width: 100%;
    height: auto;
}

.h3-gpu-use-case-card__title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.h3-gpu-use-case-card__description {
    color: var(--h3-gpu-text-grey);
}

/* --- 5. USE CASES 按鈕樣式 (MDI CDN 版本) --- */
.btn-more {
    display: inline-flex;
    align-items: center;
    font-size: 1.25rem;
    text-transform: uppercase;
    text-decoration: none;
    color: #00aeef;
    font-weight: 400;
    transition: all 0.3s ease;
}

.btn-more .mdi {
    margin-right: 8px;    
    font-size: 1.6rem;     
    line-height: 1;        
    color: inherit;        
    display: inline-block;
}

.btn-more:hover {
    color: #0088cc;
}

.btn-more:hover .mdi {
    transform: scale(1.1);
}

/* --- 6. PRODUCT SECTION --- */
.h3-gpu-product {
    padding: 80px 0;
}

.h3-gpu-product__wrapper {
    text-align: center;
}

.h3-gpu-product__container {
    margin-top: 3rem;
    position: relative;
}

.h3-gpu-product__image-wrapper {
    line-height: 0;
}

.h3-gpu-product__image-wrapper img {
    max-width: 70%;
    display: inline-block;
}

.h3-gpu-product__card {
    background-color: white;
    position: relative;
    z-index: 10;
    margin: -130px auto 0;
    width: 70%;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding-bottom: 30px;
}

.h3-gpu-product__card-content {
    padding: 3rem;
    color: var(--h3-gpu-text-grey);
}

/* === RESPONSIVE STYLES === */
@media (max-width: 1023.98px) {
    .h3-gpu-overview__container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .h3-gpu-overview .h3-section-title {
        margin-top: 2rem; /* Restore margin for mobile */
    }

    .h3-gpu-benefits__grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }
}


@media (max-width: 767.98px) {
    /* --- GENERAL --- */
    .w1200 {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .h3-section-title {
        font-size: 2rem;
        margin: 2rem 0;
    }

    /* --- HERO --- */
    .h3-gpu-hero {
        padding: 80px 0;
    }

    .h3-gpu-hero__title {
        font-size: 2.5rem;
    }

    .h3-gpu-hero__subtitle {
        font-size: 1.25rem;
    }

    /* --- OVERVIEW --- */
    .h3-gpu-overview {
        padding: 60px 0;
    }

    /* --- SECTIONS PADDING --- */
    .h3-gpu-benefits,
    .h3-gpu-architecture,
    .h3-gpu-use-cases,
    .h3-gpu-product {
        padding: 60px 0;
    }
    
    .h3-gpu-benefit-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .h3-gpu-benefit-card__icon {
        width: 120px;
    }

    /* --- USE CASES --- */
    .h3-gpu-use-case-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .h3-gpu-use-case-card__icon {
        flex: 0 0 auto;
        width: 120px;
    }

    /* --- PRODUCT --- */
    .h3-gpu-product__card {
        width: 90%;
        margin-top: -50px;
    }

    .h3-gpu-product__card-content {
        padding: 1.5rem;
    }
}


/* === DESKTOP ALIGNMENT OVERRIDES === */
@media (min-width: 1024px) {
    /* --- BENEFITS --- */
    .h3-gpu-benefits__container {
        align-items: flex-start;
        text-align: left;
    }

    /* --- ARCHITECTURE --- */
    .h3-gpu-architecture__container {
        align-items: flex-start;
        text-align: left;
    }

    /* --- USE CASES --- */
    .h3-gpu-use-cases__container {
        text-align: left;
    }

    /* --- SECTION TITLES --- */
    .h3-section-title {
        text-align: left;
    }
}
