/* =========================================================
   PCUpgradeHub Homepage
   ========================================================= */

.pcuh-homepage {
    width: 100%;
}


/* =========================================================
   GENERAL CONTAINER
   ========================================================= */

.pcuh-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HERO / BANNER
   ========================================================= */

.pcuh-hero {
    width: 100%;
}


/* =========================================================
   QUIZ
   ========================================================= */

.pcuh-quiz-section {
    width: 100%;
    padding: 40px 20px;
}

.pcuh-quiz {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.pcuh-quiz iframe {
    display: block;
    width: 100%;
    min-height: 500px;
    border: 0;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.pcuh-section {
    width: 100%;
    padding: 60px 0;
}

.pcuh-section-title {
    margin: 0 0 30px;
    font-size: 32px;
    line-height: 1.2;
}


/* =========================================================
   ARTICLE GRID
   ========================================================= */

.pcuh-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}


/* =========================================================
   ARTICLE CARD
   ========================================================= */

.pcuh-article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
}

.pcuh-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f3f3;
}

.pcuh-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.pcuh-card-image:hover img {
    transform: scale(1.03);
}

.pcuh-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #777;
}

.pcuh-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
}

.pcuh-card-title {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.3;
}

.pcuh-card-title a {
    text-decoration: none;
}

.pcuh-card-description {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   LATEST ARTICLES
   ========================================================= */

.pcuh-latest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.pcuh-latest-card {
    padding: 25px 0;
    border-top: 1px solid #e5e5e5;
}

.pcuh-latest-title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
}

.pcuh-latest-title a {
    text-decoration: none;
}

.pcuh-latest-description {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .pcuh-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .pcuh-container {
        width: min(100% - 30px, 1200px);
    }

    .pcuh-quiz-section {
        padding: 30px 15px;
    }

    .pcuh-quiz iframe {
        min-height: 600px;
    }

    .pcuh-section {
        padding: 45px 0;
    }

    .pcuh-section-title {
        margin-bottom: 25px;
        font-size: 27px;
    }

    .pcuh-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pcuh-latest-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pcuh-card-content {
        padding: 18px;
    }

    .pcuh-card-title {
        font-size: 20px;
    }

}