/* 기본 초기화 (최상위 영향 최소화 및 기존 사이트 스타일 충돌 완전 차단) */
.tg-guide-wrap {
    --color-primary: #2481cc;
    --color-primary-dark: #1c65a3;
    --color-secondary: #f4f6f8;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-border: #e1e8ed;
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --transition-speed: 0.3s;

    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-align: left;
}

/* 래퍼 안의 모든 요소에 대한 리셋 (호스트 사이트 영향 받지 않도록) */
:where(.tg-guide-wrap) *,
:where(.tg-guide-wrap) *::before,
:where(.tg-guide-wrap) *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 기본 HTML 태그들 독립 리셋 규칙 적용 (특이도 낮춤) */
:where(.tg-guide-wrap) h1,
:where(.tg-guide-wrap) h2,
:where(.tg-guide-wrap) h3,
:where(.tg-guide-wrap) h4,
:where(.tg-guide-wrap) h5,
:where(.tg-guide-wrap) h6,
:where(.tg-guide-wrap) p,
:where(.tg-guide-wrap) div,
:where(.tg-guide-wrap) span,
:where(.tg-guide-wrap) button,
:where(.tg-guide-wrap) a,
:where(.tg-guide-wrap) ul,
:where(.tg-guide-wrap) ol,
:where(.tg-guide-wrap) li,
:where(.tg-guide-wrap) img,
:where(.tg-guide-wrap) figure,
:where(.tg-guide-wrap) figcaption,
:where(.tg-guide-wrap) article,
:where(.tg-guide-wrap) section,
:where(.tg-guide-wrap) main,
:where(.tg-guide-wrap) strong,
:where(.tg-guide-wrap) code {
    border: 0;
    font-size: 100%;
    font: inherit;
    font-weight: normal;
    font-style: normal;
    text-decoration: none;
    background: transparent;
    outline: none;
    color: inherit;
    list-style: none;
    letter-spacing: normal;
    box-shadow: none;
}

/* 블록/인라인 블록 등 기본 디스플레이 속성 */
:where(.tg-guide-wrap) div,
:where(.tg-guide-wrap) article,
:where(.tg-guide-wrap) section,
:where(.tg-guide-wrap) figure,
:where(.tg-guide-wrap) main {
    display: block;
}

:where(.tg-guide-wrap) h1,
:where(.tg-guide-wrap) h2,
:where(.tg-guide-wrap) h3 {
    display: block;
    font-weight: bold;
}

:where(.tg-guide-wrap) p {
    display: block;
    margin-bottom: 0;
    /* 별도 클래스로 여백 제어되도록 함 */
}

:where(.tg-guide-wrap) strong {
    font-weight: bold;
}

:where(.tg-guide-wrap) button {
    display: inline-block;
    cursor: pointer;
    font-family: inherit;
}

:where(.tg-guide-wrap) a {
    display: inline;
    cursor: pointer;
}

:where(.tg-guide-wrap) img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 유틸리티 클래스 */
.tg-guide-section {
    padding: 60px 20px;
}

.tg-guide-section__container {
    max-width: 1000px;
    margin: 0 auto;
}

.tg-guide-wrap .tg-guide-section__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text);
    text-align: center;
}

.tg-guide-wrap .tg-guide-section__description {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 40px !important;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


.tg-guide-wrap .icon-text .btn {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white-color) !important;
    line-height: 1;
    text-align: center;
    padding: 18px 30px !important;
    border: 0 none;
    border-radius: 6px;
    outline: 0 none;
    position: relative;
    z-index: 1;
}


/* Header */
.tg-guide-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tg-guide-header__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tg-guide-header__logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
}

.tg-guide-header__menu {
    display: none;
}

/* 모바일 퍼스트 -> 태블릿/데스크톱 대응 */
@media (min-width: 768px) {
    .tg-guide-header__menu {
        display: flex;
        gap: 20px;
    }

    .tg-guide-header__menu-link {
        font-weight: 500;
        transition: color var(--transition-speed);
    }

    .tg-guide-header__menu-link:hover {
        color: var(--color-primary);
    }
}

/* Hero Section */
.tg-guide-hero {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    padding: 60px 20px;
}

.tg-guide-hero__container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.tg-guide-hero__text {
    text-align: center;
}

.tg-guide-hero__title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 20px;
    word-break: keep-all;
}

.tg-guide-wrap .tg-guide-hero__description {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 30px !important;
    word-break: keep-all;
}

.tg-guide-hero__button {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.tg-guide-hero__button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.tg-guide-hero__img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}



@media (min-width: 768px) {
    .tg-guide-hero__container {
        flex-direction: row;
        text-align: left;
    }

    .tg-guide-hero__text {
        flex: 1;
        text-align: left;
    }

    .tg-guide-hero__title {
        font-size: 2rem;
    }

    .tg-guide-hero__image {
        flex: 1;
    }
}

/* Install Cards */
.tg-guide-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 600px) {
    .tg-guide-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .tg-guide-card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tg-guide-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.tg-guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.tg-guide-card__icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.tg-guide-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.tg-guide-card__text {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.tg-guide-section__figure {
    margin-top: 30px;
    text-align: center;
}

.tg-guide-section__figure-img {
    border-radius: 12px;
    border: 1px solid var(--color-border);
    margin: 0 auto 10px;
}

.tg-guide-section__figure-caption {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Tabs for Login */
.tg-guide-tabs {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

.tg-guide-tabs__header {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
}

@media (min-width: 600px) {
    .tg-guide-tabs__header {
        flex-direction: row;
    }
}

.tg-guide-tabs__btn {
    flex: 1;
    padding: 16px;
    background: var(--color-secondary);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.tg-guide-tabs__btn:hover {
    background: #e9ecef;
}

.tg-guide-tabs__btn--active {
    background: var(--color-bg);
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
}

.tg-guide-tabs__content {
    display: none;
    padding: 30px;
}

.tg-guide-tabs__content--active {
    display: block;
    animation: tgGuideFadeIn 0.4s ease-in-out;
}

.tg-guide-tabs__grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

@media (min-width: 768px) {
    .tg-guide-tabs__grid {
        flex-direction: row;
        align-items: flex-start;
    }

    .tg-guide-tabs__image-side {
        flex: 1;
        min-width: 0;
    }

    .tg-guide-tabs__text-side {
        flex: 1.2;
        text-align: left;
    }
}

@keyframes tgGuideFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tg-guide-tabs__content-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.tg-guide-wrap .tg-guide-tabs__content-desc {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.tg-guide-step-list {
    margin-bottom: 25px;
    padding-left: 20px;
    list-style-type: decimal;
}

.tg-guide-step-list__item {
    margin-bottom: 10px;
    font-size: 1.05rem;
    line-height: 1.5;
}

.tg-guide-tabs__content-img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Tips Section */
.tg-guide-tips {
    background-color: var(--color-secondary);
}

.tg-guide-feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .tg-guide-feature-list {
        flex-direction: row;
    }
}

.tg-guide-feature-item {
    flex: 1;
    background-color: var(--color-bg);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.tg-guide-feature-item__icon-wrapper {
    flex-shrink: 0;
}

.tg-guide-feature-item__icon {
    font-size: 2.5rem;
}

.tg-guide-feature-item__title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.tg-guide-feature-item__desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.tg-guide-feature-item__desc code {
    background-color: var(--color-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

/* Conclusion */
.tg-guide-conclusion__container {
    text-align: center;
    background-color: var(--color-primary);
    color: #ffffff;
    border-radius: 16px;
    padding: 50px 30px;
}

.tg-guide-conclusion__title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.tg-guide-wrap .tg-guide-conclusion__text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.tg-guide-conclusion__btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #fff;
    color: var(--color-primary);
    font-weight: bold;
    border-radius: 8px;
    transition: background-color var(--transition-speed);
}

.tg-guide-conclusion__btn:hover {
    background-color: var(--color-secondary);
}

/* Footer */
.tg-guide-footer {
    padding: 30px 20px;
    text-align: center;
    background-color: #1a1a1a;
    color: #999;
}

/* Carousel */
.tg-guide-carousel {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg);
}

.tg-guide-carousel__track-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.tg-guide-carousel__track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tg-guide-carousel__slide {
    min-width: 100%;
    flex: 0 0 100%;
}

.tg-guide-carousel__figure {
    margin: 0;
    text-align: center;
}

.tg-guide-carousel__image {
    width: 100%;
    display: block;
    object-fit: contain;
}

.tg-guide-carousel__caption {
    padding: 18px 20px;
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-secondary);
    border-top: 1px solid var(--color-border);
    font-weight: 500;
}

.tg-guide-carousel__button {
    position: absolute;
    top: calc(50% - 28px);
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-text);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all var(--transition-speed);
}

.tg-guide-carousel__button:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.tg-guide-carousel__button--left {
    left: 15px;
}

.tg-guide-carousel__button--right {
    right: 15px;
}

.tg-guide-carousel__button.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tg-guide-carousel__nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    background-color: var(--color-secondary);
}

.tg-guide-carousel__indicator {
    border: none;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    background: #ccc;
    cursor: pointer;
    transition: background var(--transition-speed);
    padding: 0;
}

.tg-guide-carousel__indicator.tg-guide-current-indicator {
    background: var(--color-primary);
    width: 24px;
    border-radius: 5px;
}