/**
 * ATH Career Auto-Blogger & SEO Lead Engine Frontend Styles (100% Responsive & Touch Optimized)
 */

/* Key Takeaways Box */
.ath-key-takeaways {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-left: 5px solid #0284c7;
    border-radius: 14px;
    padding: clamp(16px, 3vw, 22px) clamp(16px, 3.5vw, 24px);
    margin: 24px 0 28px 0;
    box-shadow: 0 4px 12px -2px rgba(2, 132, 199, 0.08);
}

.ath-key-takeaways h4 {
    margin: 0 0 10px 0;
    font-size: clamp(15px, 2.5vw, 17px);
    font-weight: 800;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
}

.ath-key-takeaways ul {
    margin: 0;
    padding-left: 20px;
    color: #334155;
    font-size: clamp(14px, 1.8vw, 15px);
    line-height: 1.65;
}

.ath-key-takeaways li {
    margin-bottom: 6px;
}

.ath-key-takeaways li:last-child {
    margin-bottom: 0;
}

/* Table of Contents */
.ath-table-of-contents {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: clamp(14px, 2.5vw, 18px) clamp(16px, 3vw, 22px);
    margin: 24px 0 28px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ath-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 14.5px;
    color: #0f172a;
    cursor: pointer;
    user-select: none;
    min-height: 38px;
}

.ath-toc-toggle {
    font-size: 12px;
    color: #64748b;
    transition: transform 0.2s ease;
}

.ath-toc-list {
    margin: 12px 0 0 0;
    padding-left: 20px;
    list-style-type: decimal;
    display: block;
}

.ath-toc-list.ath-hidden {
    display: none;
}

.ath-toc-main {
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13.5px;
}

.ath-toc-sub {
    margin-bottom: 4px;
    font-weight: 400;
    padding-left: 10px;
    font-size: 13px;
}

.ath-toc-list a {
    color: #2563eb;
    text-decoration: none;
    display: inline-block;
    padding: 2px 0;
    min-height: 28px;
}

.ath-toc-list a:hover, .ath-toc-list a:active {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Mid-Article Course Bridge CTA */
.ath-mid-course-bridge {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    padding: clamp(20px, 4vw, 28px) clamp(18px, 4vw, 30px);
    margin: 32px 0;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
    border: 1px solid #334155;
}

.ath-bridge-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.ath-mid-course-bridge h4 {
    color: #ffffff;
    font-size: clamp(18px, 3vw, 21px);
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.ath-mid-course-bridge p {
    color: #cbd5e1;
    font-size: clamp(13.5px, 1.8vw, 15px);
    line-height: 1.6;
    margin: 0 0 18px 0;
}

.ath-bridge-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 600px) {
    .ath-bridge-actions {
        flex-direction: column;
    }
}

.ath-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    padding: 11px 18px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    min-height: 44px;
    text-align: center;
}

.ath-btn-primary:hover, .ath-btn-primary:active {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.ath-btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #22c55e;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    padding: 11px 18px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    min-height: 44px;
    text-align: center;
}

.ath-btn-wa:hover, .ath-btn-wa:active {
    background: #16a34a;
}

/* Bottom Comprehensive Career Counseling Lead Card */
.ath-bottom-counseling-card {
    background: linear-gradient(145deg, #0b1329 0%, #172554 100%);
    border: 1px solid #1e3a8a;
    border-radius: 18px;
    padding: clamp(22px, 4vw, 35px);
    margin: 40px 0 25px 0;
    color: #ffffff;
    box-shadow: 0 15px 35px -5px rgba(11, 19, 41, 0.35);
}

.ath-counseling-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.ath-counseling-header h3 {
    color: #ffffff;
    font-size: clamp(20px, 3.5vw, 24px);
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.ath-counseling-header p {
    color: #93c5fd;
    font-size: clamp(13.5px, 1.8vw, 15px);
    line-height: 1.6;
    margin: 0 0 18px 0;
}

.ath-counseling-perks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(10px, 2vw, 14px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: clamp(14px, 2.5vw, 18px);
    margin-bottom: 22px;
}

@media (max-width: 640px) {
    .ath-counseling-perks {
        grid-template-columns: 1fr;
    }
}

.ath-perk-item {
    font-size: clamp(12.5px, 1.6vw, 13.5px);
    color: #e2e8f0;
    line-height: 1.5;
}

.ath-counseling-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .ath-counseling-footer {
        flex-direction: column;
    }
}

.ath-btn-counseling {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: 800;
    padding: 13px 24px;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.2s ease;
    min-height: 48px;
    text-align: center;
}

.ath-btn-counseling:hover, .ath-btn-counseling:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.ath-btn-wa-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #22c55e;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 20px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    min-height: 48px;
    text-align: center;
}

.ath-btn-wa-alt:hover, .ath-btn-wa-alt:active {
    background: #16a34a;
}

.ath-counseling-subtext {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}

/* FAQ Accordion Styling */
.ath-faq-section {
    margin: 22px 0;
}

.ath-faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: clamp(14px, 2.5vw, 18px);
    margin-bottom: 10px;
}

.ath-faq-question {
    font-size: clamp(15px, 2.2vw, 16.5px);
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.ath-faq-answer p {
    font-size: clamp(13.5px, 1.8vw, 14.5px);
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

/* Floating Bottom Ribbon (Touch Optimized) */
.ath-floating-ribbon {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #334155;
    padding: clamp(8px, 1.5vw, 12px) clamp(14px, 3vw, 20px);
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    color: #ffffff;
    transition: transform 0.3s ease;
}

.ath-ribbon-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ath-ribbon-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(12px, 1.8vw, 13.5px);
    color: #e2e8f0;
}

.ath-ribbon-bold {
    font-weight: 800;
    color: #38bdf8;
    white-space: nowrap;
}

.ath-ribbon-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: athPulse 2s infinite;
    flex-shrink: 0;
}

.ath-ribbon-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ath-ribbon-btn {
    background: #2563eb;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.2s ease;
    white-space: nowrap;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

.ath-ribbon-btn:hover {
    background: #1d4ed8;
}

.ath-ribbon-wa {
    background: #22c55e;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none !important;
    white-space: nowrap;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

.ath-ribbon-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    padding: 6px 10px;
    line-height: 1;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ath-ribbon-close:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .ath-ribbon-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .ath-ribbon-text {
        font-size: 11.5px;
    }
    .ath-ribbon-actions {
        width: 100%;
        justify-content: space-between;
    }
    .ath-ribbon-btn, .ath-ribbon-wa {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}
