@charset "utf-8";
/* =============================================
   Self-Therapy Index CSS
   Location: /static/self_therapy/css/index.css
   
   Depends on: static_common.css
   - Uses: .back-home, .scroll-top-btn
   
   Mobile-first design
   Media Query: Mobile (default) + PC (min-width: 768px)
   Color Theme: Green (#11998e)
   ============================================= */

/* =============================================
   1. Page Header (Green Theme)
   ============================================= */
.self-header {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
    padding: 24px 16px;
    margin: 0 0 24px 0;
    text-align: center;
    border-radius: 10px;
}

.self-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.self-header .meta {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0 0 10px 0;
}

.self-header .header-desc {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.95;
}

/* =============================================
   2. Intro Section
   ============================================= */
.self-intro {
    background: white;
    border-radius: 12px;
    padding: 20px 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.self-intro h2 {
    font-size: 1.2rem;
    color: #11998e;
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.self-intro h2 i {
    font-size: 1.3rem;
}

.self-intro p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    margin: 0 0 16px 0;
}

.self-highlight {
    background: linear-gradient(135deg, #fff9e6, #fffbf0);
    border-left: 4px solid #ffc107;
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.self-highlight i {
    font-size: 1.3rem;
    color: #ffc107;
    margin-top: 2px;
    flex-shrink: 0;
}

.self-highlight strong {
    color: #333;
}

/* =============================================
   3. Steps Section
   ============================================= */
.self-steps {
    margin-bottom: 24px;
}

.self-steps-title {
    font-size: 1.3rem;
    color: #333;
    text-align: center;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.self-steps-title i {
    color: #11998e;
}

.self-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

/* =============================================
   4. Step Card
   ============================================= */
.self-step-card {
    position: relative;
    display: block;
    background: white;
    border-radius: 12px;
    padding: 18px 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.self-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    transition: width 0.3s ease;
}

.self-step-card:hover::before {
    width: 8px;
}

.self-step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.2);
}

.self-step-number {
    display: inline-block;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.self-step-title {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 6px 0;
    font-weight: 600;
}

.self-step-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    padding-right: 40px;
}

.self-step-icon {
    position: absolute;
    top: 18px;
    right: 16px;
    font-size: 1.8rem;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.self-step-card:hover .self-step-icon {
    color: #11998e;
    transform: scale(1.1);
}

/* =============================================
   5. Tips Section
   ============================================= */
.self-tips {
    background: white;
    border-radius: 12px;
    padding: 20px 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.self-tips h2 {
    font-size: 1.2rem;
    color: #11998e;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.self-tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.self-tip-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.self-tip-item:hover {
    background: #e8f8f5;
    transform: translateY(-2px);
}

.self-tip-item i {
    font-size: 1.8rem;
    color: #11998e;
    margin-bottom: 10px;
    display: block;
}

.self-tip-item h3 {
    font-size: 0.95rem;
    color: #333;
    margin: 0 0 6px 0;
    font-weight: 600;
}

.self-tip-item p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* =============================================
   6. Scroll Top Button (Green Theme Override)
   ============================================= */
.scroll-top-btn {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

.scroll-top-btn:hover {
    background: linear-gradient(135deg, #0e8274, #2fd46a);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.6);
}

/* =============================================
   PC / Desktop (min-width: 768px)
   ============================================= */
@media (min-width: 768px) {

    /* Header */
    .self-header {
        padding: 36px 24px;
        margin: 0 0 32px 0;
    }

    .self-header h1 {
        font-size: 2rem;
    }

    .self-header .meta {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .self-header .header-desc {
        font-size: 1.05rem;
    }

    /* Intro */
    .self-intro {
        padding: 28px 24px;
        margin-bottom: 32px;
    }

    .self-intro h2 {
        font-size: 1.4rem;
        margin-bottom: 18px;
    }

    .self-intro h2 i {
        font-size: 1.5rem;
    }

    .self-intro p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .self-highlight {
        padding: 18px 20px;
    }

    .self-highlight i {
        font-size: 1.5rem;
    }

    /* Steps */
    .self-steps {
        margin-bottom: 32px;
    }

    .self-steps-title {
        font-size: 1.5rem;
        margin-bottom: 32px;
        gap: 12px;
    }

    .self-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .self-step-card {
        padding: 22px 20px;
    }

    .self-step-number {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .self-step-title {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .self-step-desc {
        font-size: 0.95rem;
    }

    .self-step-icon {
        font-size: 2rem;
        top: 20px;
        right: 20px;
    }

    /* Tips */
    .self-tips {
        padding: 28px 24px;
        margin-bottom: 32px;
    }

    .self-tips h2 {
        font-size: 1.4rem;
        margin-bottom: 24px;
    }

    .self-tips-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .self-tip-item {
        padding: 18px;
    }

    .self-tip-item i {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .self-tip-item h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .self-tip-item p {
        font-size: 0.9rem;
    }
}

/* =============================================
   Large Desktop (min-width: 1024px)
   ============================================= */
@media (min-width: 1024px) {

    /* Steps - 3 columns on large screens */
    .self-steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}