/* =======================
   Technical Certification Page (최종 반응형)
   ======================= */

:root {
    --tech-red: #e11d2e;
    --tech-gray: #555;
    --tech-black: #111;
}

/* 기본 래퍼 */
.tech-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    text-align: center;
    margin: clamp(4rem, 6vw, 8rem) auto;
    background: #fff;
    z-index: 1;
    font-family: "Noto Sans KR", system-ui, sans-serif;
}

/* =======================
   상단 영역
   ======================= */
.tech-header {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.tech-header .highlight {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    font-weight: 800;
    color: var(--tech-black);
    margin-bottom: 0.5rem;
}
.tech-header p {
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    color: var(--tech-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.tech-logo {
    width: clamp(120px, 10vw, 160px);
    margin: 0 auto;
    display: block;
}

/* =======================
   타이틀 영역
   ======================= */
.tech-title-section {
    margin: clamp(2rem, 4vw, 3rem) auto;
    position: relative;
    z-index: 2;
}
.tech-title {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 800;
    margin-bottom: clamp(0.8rem, 1.5vw, 1.2rem);
    letter-spacing: 0.5px;
    color: var(--tech-black);
}
.tech-sub {
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    color: var(--tech-gray);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* =======================
   카드 리스트
   ======================= */
.tech-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    justify-items: center;
    margin-top: clamp(2rem, 4vw, 3rem);
    position: relative;
    z-index: 2;
}

.tech-card {
    background: #fff;
    text-align: center;
    width: 100%;
    max-width: 230px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tech-card img {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: transform 0.3s ease;
}
.tech-card img:hover {
    transform: scale(1.03);
}
.tech-card h4 {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    font-weight: 600;
    margin-top: clamp(0.8rem, 1vw, 1rem);
    color: var(--tech-black);
    line-height: 1.4;
}
.tech-card p {
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    color: var(--tech-gray);
    margin-top: 0.3rem;
}

/* =======================
   배경
   ======================= */
.tech-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 0;
}
.tech-background img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (1200px / 800px / 600px)
   ========================================================= */

/* --- 1200px 이하 --- */
@media (max-width: 1200px) {
    .tech-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* --- 800px 이하 --- */
@media (max-width: 800px) {
    .tech-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .tech-card {
        max-width: none;
    }
}

/* --- 600px 이하 --- */
@media (max-width: 600px) {
    .tech-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        row-gap: 1.5rem;
        justify-items: center;
    }

    .tech-card {
        width: 100%;
        max-width: 160px;
    }

    .tech-card img {
        border-radius: 4px;
    }

    .tech-card h4 {
        font-size: 0.9rem;
    }

    .tech-card p {
        font-size: 0.8rem;
    }
}
