/* ==============================================
   fervorit — html/css/sub.css v1.0
   열정아이티 서브페이지 공통 스타일
   
   올타(jjtheme) sub.css 구조 계승 +
   fervorit 전용 컴포넌트 추가:
   - 서브 공통 래퍼
   - company_about / company_history / company_cert
   - service_* 공통
   - portfolio_* / shortform
   - contact
   ============================================== */

/* ── 변수 오버라이드 (fervorit 색상) ── */
:root {
    --brand:       #13225a;
    --brand-d:     #0d1840;
    --brand-m:     #262755;
    --brand-light: #ebebf7;
    --brand-sub:   #676cb1;
    --accent:      #fbc500;
    --accent-d:    #e0b000;
}

/* ==============================================
   서브페이지 래퍼 공통
   ============================================== */
.sub_wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 28px 90px;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 960px) {
    .sub_wrap { padding: 40px 16px 70px; }
}

/* 섹션 구분 */
.sub_section {
    margin-bottom: 72px;
}
.sub_section:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
    .sub_section { margin-bottom: 52px; }
}

/* 섹션 헤더 */
.sec_head {
    margin-bottom: 40px;
    position: relative;
}
.sec_head.center { text-align: center; }
.sec_eyebrow {
    font-size: 11px; letter-spacing: 3px; font-weight: 700;
    color: var(--accent); text-transform: uppercase;
    margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.sec_eyebrow::before {
    content: ''; display: block; width: 20px; height: 2px;
    background: var(--accent);
}
.sec_head.center .sec_eyebrow { justify-content: center; }
.sec_head.center .sec_eyebrow::before { display: none; }
.sec_title {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800; color: var(--brand); line-height: 1.3;
    margin-bottom: 14px; word-break: keep-all;
}
.sec_desc {
    font-size: clamp(14px, 3vw, 15px);
    color: var(--txt-s); line-height: 1.85; word-break: keep-all;
}
.sec_divider {
    width: 0; height: 3px; background: var(--accent);
    margin: 14px 0 0; border-radius: 2px;
    transition: width .6s cubic-bezier(.4,0,.2,1);
}
.sec_head.center .sec_divider { margin: 14px auto 0; }
.sec_divider.is-visible { width: 48px; }

/* ==============================================
   애니메이션 공통 (@keyframes)
   ============================================== */
@keyframes jj-fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes jj-float-soft {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@keyframes jj-pop {
    0%  { opacity: 0; transform: scale(.7); }
    60% { opacity: 1; transform: scale(1.04); }
    100%{ opacity: 1; transform: scale(1); }
}
@keyframes jj-line-grow {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}
@keyframes jj-slide-text {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes marquee-ltr {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes marquee-rtl {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* reveal */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity .65s cubic-bezier(.4,0,.2,1),
                transform .65s cubic-bezier(.4,0,.2,1);
    transition-delay: var(--delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* stagger 클래스 */
.reveal-d1 { --delay: 60ms; }
.reveal-d2 { --delay: 120ms; }
.reveal-d3 { --delay: 180ms; }
.reveal-d4 { --delay: 240ms; }
.reveal-d5 { --delay: 300ms; }

/* motion-float */
.motion-float { animation: jj-float-soft 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
    .motion-float { animation: none !important; }
}

/* ==============================================
   FAQ 아코디언
   ============================================== */
.faq_list { max-width: 840px; margin: 0 auto; }
.faq_item {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px; overflow: hidden;
    transition: box-shadow .2s;
}
.faq_q {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; background: var(--bg);
    font-weight: 700; font-size: 15px; cursor: pointer;
    user-select: none; min-height: 54px;
    transition: background .18s;
}
.faq_q .faq_icon {
    font-size: 13px; color: var(--brand);
    transition: transform .3s; flex-shrink: 0; margin-left: 12px;
}
.faq_item.is-open .faq_q { background: var(--brand-light); }
.faq_item.is-open .faq_icon { transform: rotate(180deg); }
.faq_a {
    display: none; padding: 16px 20px;
    font-size: 14px; color: var(--txt-s); line-height: 1.85;
    background: var(--white);
}
.faq_item.is-open .faq_a { display: block; }
@media (max-width: 768px) {
    .faq_q { padding: 14px 16px; font-size: 14px; }
    .faq_a { padding: 14px 16px; font-size: 13px; }
}

/* ==============================================
   값/핵심가치 아이템 (value_item)
   ============================================== */
.values_list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 768px) { .values_list { grid-template-columns: 1fr; } }
.value_item {
    display: flex; gap: 20px; align-items: flex-start;
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    transition: border-color .3s, box-shadow .3s, transform .2s;
}
.value_item:hover {
    border-color: var(--brand);
    box-shadow: 0 4px 16px rgba(19,34,90,.1);
    transform: translateX(4px);
}
.value_icon {
    width: 48px; height: 48px; flex-shrink: 0;
    background: var(--brand); color: var(--white); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; transition: transform .3s, background .3s;
}
.value_item:hover .value_icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent);
}
.value_icon i { color: inherit; }
.value_txt h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.value_txt p  { font-size: 13px; color: var(--txt-s); line-height: 1.75; }

/* ==============================================
   서비스 히어로 (biz_hero)
   ============================================== */
.biz_hero {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center; margin-bottom: 60px;
}
.biz_hero.reverse { direction: rtl; }
.biz_hero.reverse > * { direction: ltr; }
@media (max-width: 768px) {
    .biz_hero { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
    .biz_hero.reverse { direction: ltr; }
}
.biz_hero_img {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow);
}
.biz_hero_img img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
    transition: transform .5s; display: block;
}
.biz_hero_img:hover img { transform: scale(1.04); }
.biz_hero_txt .b_label {
    font-size: 11px; letter-spacing: 3px; font-weight: 700;
    color: var(--accent); text-transform: uppercase;
    margin-bottom: 12px; display: block;
}
.biz_hero_txt h3 {
    font-size: clamp(20px, 4vw, 26px); font-weight: 800;
    line-height: 1.35; margin-bottom: 16px; color: var(--brand);
}
.biz_hero_txt p {
    font-size: 15px; color: var(--txt-s); line-height: 1.85;
    margin-bottom: 20px;
}
.tag_list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag_list span {
    padding: 6px 16px; background: var(--brand-light);
    color: var(--brand); border-radius: 50px; font-size: 13px; font-weight: 600;
    opacity: 0; transform: translateY(8px);
    transition: opacity .35s, transform .35s, background .2s;
}
.tag_list span.is-visible { opacity: 1; transform: translateY(0); }
.tag_list span:hover { background: var(--brand); color: var(--white); }

/* 서비스 카드 그리드 */
.biz_cards {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 22px; margin-bottom: 48px;
}
@media (max-width: 1024px) { .biz_cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .biz_cards { grid-template-columns: 1fr; } }
.biz_card {
    background: var(--bg); border-radius: var(--radius);
    overflow: hidden; border: 1.5px solid var(--border);
    transition: box-shadow .3s, transform .3s, border-color .3s;
}
.biz_card:hover {
    box-shadow: var(--shadow-lg); transform: translateY(-6px);
    border-color: var(--brand);
}
.biz_card_img { overflow: hidden; }
.biz_card_img img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
    transition: transform .5s; display: block;
    background: var(--brand-light);
}
.biz_card:hover .biz_card_img img { transform: scale(1.07); }
/* 이미지 없을 때 placeholder */
.biz_card_img.placeholder {
    aspect-ratio: 4/3; background: var(--brand-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-sub); font-size: 36px;
}
.biz_card_txt { padding: 20px; }
.biz_card_txt h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.biz_card_txt p  { font-size: 13px; color: var(--txt-s); line-height: 1.7; }

/* 프로세스 스텝 */
.process_wrap {
    display: flex; flex-wrap: wrap;
    gap: 0; margin-bottom: 48px;
    background: var(--brand); border-radius: var(--radius-lg);
    overflow: hidden;
}
.process_step {
    flex: 1; text-align: center; padding: 32px 20px;
    position: relative; transition: background .25s;
    border-right: 1px solid rgba(255,255,255,.1);
}
.process_step:last-child { border-right: none; }
.process_step:hover { background: rgba(255,255,255,.08); }
.process_step::after {
    content: '→';
    position: absolute; right: -10px; top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.4); font-size: 18px; z-index: 1;
}
.process_step:last-child::after { display: none; }
@media (max-width: 768px) {
    .process_wrap { flex-direction: column; }
    .process_step { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
    .process_step::after { display: none; }
}
.process_num {
    width: 44px; height: 44px; background: var(--accent);
    color: var(--brand); border-radius: 50%;
    font-size: 16px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
}
.process_step h4 { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.process_step p  { font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.65; }

/* ==============================================
   연혁 타임라인 (company_history)
   ============================================== */
.history_wrap {
    position: relative; padding-left: 0;
}
.history_wrap::before {
    content: '';
    position: absolute; left: 120px; top: 0; bottom: 0;
    width: 2px; background: var(--brand-light);
    transform-origin: top; animation: jj-line-grow .9s ease forwards;
    animation-play-state: paused;
}
.history_wrap.line-visible::before { animation-play-state: running; }
@media (max-width: 768px) {
    .history_wrap::before { left: 72px; }
}
@media (max-width: 480px) {
    .history_wrap::before { left: 56px; }
}
.history_item {
    display: flex; gap: 0;
    margin-bottom: 52px; position: relative;
    transition: transform .2s;
}
.history_item:hover { transform: translateX(4px); }
@media (max-width: 768px) { .history_item { margin-bottom: 36px; } }

.history_year {
    width: 120px; flex-shrink: 0;
    font-size: clamp(20px, 4vw, 26px); font-weight: 900;
    color: var(--brand); padding-top: 2px;
}
@media (max-width: 768px) { .history_year { width: 72px; font-size: 18px; } }
@media (max-width: 480px) { .history_year { width: 56px; font-size: 16px; } }

.history_content {
    padding-left: 40px; flex: 1;
    border-left: none; /* ::before로 처리 */
}
.history_content::before {
    content: '';
    position: absolute; left: 116px; top: 8px;
    width: 10px; height: 10px;
    background: var(--accent); border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--brand);
    transition: transform .2s, box-shadow .2s;
}
@media (max-width: 768px) { .history_content::before { left: 68px; } }
@media (max-width: 480px) { .history_content::before { left: 52px; width: 8px; height: 8px; } }
.history_item:hover .history_content::before {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px var(--brand);
}
.history_content ul { padding: 0; }
.history_content li {
    font-size: 14px; color: var(--txt-s);
    line-height: 1.8; padding: 2px 0;
    padding-left: 14px; position: relative;
}
.history_content li::before {
    content: '·';
    position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
.history_year_badge {
    display: inline-block;
    background: var(--brand); color: var(--white);
    font-size: 13px; font-weight: 700;
    padding: 3px 12px; border-radius: 50px;
    margin-bottom: 10px;
}

/* ==============================================
   인증서 카드 (company_cert)
   ============================================== */
.cert_grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 768px) { .cert_grid { grid-template-columns: 1fr; } }
.cert-card {
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px;
    display: flex; gap: 20px; align-items: flex-start;
    cursor: pointer; transition: all .25s;
    position: relative; overflow: hidden;
}
.cert-card::before {
    content: ''; position: absolute;
    left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--accent);
}
.cert-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.cert-card-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    background: var(--brand-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--brand);
    transition: background .25s;
}
.cert-card:hover .cert-card-icon { background: var(--brand); color: var(--white); }
.cert-card-body h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--brand); }
.cert-card-body p  { font-size: 13px; color: var(--txt-s); line-height: 1.7; }
.cert-card-meta {
    margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px;
}
.cert-meta-tag {
    font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 50px;
    background: var(--brand-light); color: var(--brand);
}
.cert-meta-tag.valid { background: #e8f5e9; color: #2e7d32; }

/* 인증서 라이트박스 */
#cert-lightbox {
    display: none; position: fixed; inset: 0; z-index: 99998;
    background: rgba(0,0,0,.88);
    align-items: center; justify-content: center;
    flex-direction: column; gap: 16px;
}
#cert-lightbox.open { display: flex; }
#cert-lightbox img {
    max-width: 90vw; max-height: 85vh;
    border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
#cert-lightbox-close {
    position: absolute; top: 20px; right: 24px;
    font-size: 32px; color: #fff; cursor: pointer;
    background: none; border: none; line-height: 1;
}

/* ==============================================
   포트폴리오 게시판 스타일
   (jj_gallery_modi 스킨과 연동)
   ============================================== */
/* 필터 탭 */
.pf-filter-bar {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 32px;
}
.pf-filter-btn {
    padding: 8px 20px; border-radius: 50px; font-size: 14px; font-weight: 600;
    border: 1.5px solid var(--border);
    background: var(--white); color: var(--txt-s);
    cursor: pointer; transition: all .22s;
}
.pf-filter-btn.active,
.pf-filter-btn:hover {
    background: var(--brand); color: var(--white); border-color: var(--brand);
}

/* 갤러리 그리드 */
.pf-gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 1024px) { .pf-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .pf-gallery-grid { grid-template-columns: 1fr; } }
.pf-gallery-item {
    border-radius: var(--radius-lg); overflow: hidden;
    background: var(--white); box-shadow: 0 2px 10px rgba(19,34,90,.07);
    transition: all .3s; cursor: pointer;
}
.pf-gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pf-gallery-thumb {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
    display: block; transition: transform .5s;
    background: var(--brand-light);
}
.pf-gallery-item:hover .pf-gallery-thumb { transform: scale(1.06); }
.pf-gallery-info { padding: 16px 18px; }
.pf-gallery-cat {
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    color: var(--accent); text-transform: uppercase; margin-bottom: 4px;
}
.pf-gallery-title { font-size: 15px; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.pf-gallery-client { font-size: 13px; color: var(--txt-s); }

/* ==============================================
   숏폼 게시판 스타일
   ============================================== */
.sf-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 1024px) { .sf-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .sf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .sf-grid { grid-template-columns: repeat(2, 1fr); } }
.sf-item {
    border-radius: var(--radius-lg); overflow: hidden;
    background: var(--brand-d); position: relative;
    aspect-ratio: 9/16; max-height: 400px;
    cursor: pointer; transition: all .3s;
}
.sf-item:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.sf-thumb {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s; display: block;
}
.sf-item:hover .sf-thumb { transform: scale(1.08); }
.sf-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(13,24,64,.85) 0%, transparent 50%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 18px 14px;
}
.sf-play {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 48px; height: 48px; background: rgba(251,197,0,.9);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
}
.sf-play i { font-size: 16px; color: var(--brand); margin-left: 3px; }
.sf-item:hover .sf-play { opacity: 1; }
.sf-client {
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    color: var(--accent); text-transform: uppercase; margin-bottom: 4px;
}
.sf-title { font-size: 13px; font-weight: 700; color: var(--white); line-height: 1.4; }

/* 숏폼 라이트박스 */
#sf-lightbox {
    display: none; position: fixed; inset: 0; z-index: 99998;
    background: rgba(0,0,0,.9);
    align-items: center; justify-content: center; flex-direction: column; gap: 16px;
}
#sf-lightbox.open { display: flex; }
#sf-lightbox iframe {
    width: min(900px, 90vw);
    height: calc(min(900px, 90vw) * 9/16);
    border: none; border-radius: 8px;
}
#sf-lightbox-close {
    position: absolute; top: 20px; right: 24px;
    font-size: 32px; color: #fff; cursor: pointer;
    background: none; border: none; line-height: 1;
}

/* ==============================================
   문의 폼 (contact)
   ============================================== */
.contact_wrap {
    display: grid; grid-template-columns: 1fr 1.4fr;
    gap: 56px; align-items: start;
}
@media (max-width: 900px) {
    .contact_wrap { grid-template-columns: 1fr; gap: 40px; }
}
.contact_info_card {
    background: var(--brand); border-radius: var(--radius-lg);
    padding: 36px 32px; color: var(--white); position: sticky; top: 90px;
}
@media (max-width: 900px) { .contact_info_card { position: static; } }
.contact_info_card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.contact_info_card p  { font-size: 14px; opacity: .75; margin-bottom: 28px; line-height: 1.7; }
.contact_info_list { display: flex; flex-direction: column; gap: 16px; }
.contact_info_item {
    display: flex; gap: 14px; align-items: flex-start;
}
.contact_info_item i {
    width: 38px; height: 38px; flex-shrink: 0;
    background: rgba(251,197,0,.2); color: var(--accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 15px;
}
.contact_info_item div { font-size: 14px; line-height: 1.65; }
.contact_info_item strong { display: block; color: rgba(255,255,255,.6); font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.contact_info_item a { color: var(--white); }
.contact_info_item a:hover { color: var(--accent); }
.contact_sns { display: flex; gap: 10px; margin-top: 24px; }
.contact_sns a {
    width: 38px; height: 38px; background: rgba(255,255,255,.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: rgba(255,255,255,.7);
    transition: background .2s, color .2s;
}
.contact_sns a:hover { background: var(--accent); color: var(--brand); }

/* 문의 폼 */
.form_wrap { width: 100%; }
.form_group { margin-bottom: 20px; }
.form_group label {
    display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px;
}
.form_group label .required { color: #e53e3e; margin-left: 3px; }
.form_group input,
.form_group select,
.form_group textarea {
    width: 100%; padding: 13px 16px;
    border: 1.5px solid var(--border); border-radius: var(--radius);
    font-size: 15px; font-family: inherit; color: var(--txt);
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}
.form_group input:focus,
.form_group select:focus,
.form_group textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(19,34,90,.1);
}
.form_group textarea { resize: vertical; min-height: 150px; }
.form_row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form_row { grid-template-columns: 1fr; } }
.form_submit {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 16px;
    background: var(--brand); color: var(--white);
    border: none; border-radius: var(--radius);
    font-size: 16px; font-weight: 700; cursor: pointer;
    transition: background .2s, transform .15s;
}
.form_submit:hover { background: var(--brand-d); transform: translateY(-2px); }

/* 카카오 지도 */
.map_wrap {
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1.5px solid var(--border); margin-top: 40px;
}
.map_header {
    background: var(--brand); color: var(--white);
    padding: 14px 20px; font-weight: 700; font-size: 14px;
}
.map_header i { margin-right: 8px; }
#kakao-map { width: 100%; height: 300px; background: var(--brand-light); }
.map_footer {
    padding: 12px 20px; font-size: 12px;
    color: var(--txt-s); border-top: 1px solid var(--border);
}

/* ==============================================
   그누보드 게시판 버튼/링크 컬러 통일
   ============================================== */
.btn_s, .btn_m, .btn_l { border-radius: 6px !important; }
.btn_s { background: var(--brand) !important; color: #fff !important; border-color: var(--brand) !important; }
.btn_s:hover { background: var(--brand-d) !important; }

/* 페이징 */
.pg_wrap { margin-top: 32px; text-align: center; }
.pg_wrap a, .pg_wrap strong {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px;
    font-size: 14px; margin: 0 2px;
    border: 1.5px solid var(--border); color: var(--txt-s);
    transition: all .2s;
}
.pg_wrap a:hover { border-color: var(--brand); color: var(--brand); }
.pg_wrap strong { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ==============================================
   반응형 보강
   ============================================== */
@media (max-width: 768px) {
    .sec_title { font-size: 22px; }
    .biz_cards { gap: 14px; }
    .cert_grid { gap: 16px; }
    .process_wrap { border-radius: var(--radius); }
    .process_step { padding: 24px 16px; }
}
@media (max-width: 480px) {
    .sf-grid { grid-template-columns: 1fr 1fr; }
    .pf-gallery-grid { grid-template-columns: 1fr; }
}

/* 터치 피드백 */
@media (hover: none) {
    .biz_card:active  { transform: scale(.98); }
    .cert-card:active { transform: scale(.98); }
    .value_item:active { transform: translateX(2px); }
}
