/* Pages-specific styles for content-heavy site */
.main-content {
    padding: 2rem 0;
    min-height: 80vh;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.main-article {
    min-width: 0;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f8ff, #f8fcff);
    border-radius: 10px;
    border-left: 3px solid #068200;
}

.breadcrumb a {
    color: #068200;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: #0b7c01;
}

.breadcrumb span {
    color: #444;
    font-weight: 600;
}

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(45deg, #068200, #0b7c01);
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Article meta info */
.article-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f0f8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #444;
}

.reading-time, .word-count, .last-updated {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Table of contents */
.table-of-contents {
    background: linear-gradient(135deg, #f0f8f0, #e8f5e8);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 3rem;
    border-left: 4px solid #068200;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.table-of-contents h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: #068200;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.3rem 0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toc-list a:hover {
    background: #e8f5e8;
    padding-left: 1rem;
}

.toc-list .toc-level-2 {
    padding-left: 1rem;
}

.toc-list .toc-level-3 {
    padding-left: 2rem;
}

/* Article styles for content-heavy pages */
.article {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    line-height: 1.8;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #068200, #0b7c01, #068200);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Reduce spacing for article sections */
.article section {
    padding: 0.5rem 0;
}

.article section:first-of-type {
    padding-top: 0;
}

.article section + section {
    margin-top: 1rem;
}

/* Enhanced typography for long content */
.article h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #068200, #0b7c01);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article h2 {
    font-size: 1.6rem;
    margin: 1.5rem 0 1.5rem 0;
    line-height: 1.4;
}

.article h3 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    line-height: 1.4;
}

.article h4 {
    font-size: 1.1rem;
    margin: 2rem 0 1.2rem 0;
    line-height: 1.4;
    color: #2c3e50;
    font-weight: 600;
}

.article p {
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #444;
}

/* Content sections with proper spacing */
.content-section + .content-section {
    margin-top: 2rem;
}

.content-section {
    margin-bottom: 3rem;
    padding: 0;
    background: transparent;
    border: none;
    position: relative;
}

.content-section:last-child {
    border-bottom: none;
}

.question-item {
    margin-bottom: 2rem;
}

.question-item h4 {
    margin-top: 2.2rem;
    margin-bottom: 1.2rem;
}

/* Enhanced spacing for h4 elements in content areas */
.answer-box h4, 
.tips h4, 
.method-content h4,
.prep-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
}

/* Specific spacing for content that follows h4 elements */
.answer-box h4 + p,
.tips h4 + ul,
.method-content h4 + ul,
.prep-content h4 + ul {
    margin-top: 0.8rem;
}

.example-box {
    margin-top: 1.2rem;
}

.tip-card, .form-type-card, .quality-item {
    margin-bottom: 1.5rem;
}

.step {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step h4 {
    margin-bottom: 0.8rem;
    margin-top: 0;
}

.step p {
    margin-bottom: 0.5rem;
}

.step-content {
    flex: 1;
}

.step-details {
    margin-top: 1rem;
}

/* Section dividers */
.section-divider {
    border: none;
    height: 2px;
    background: linear-gradient(45deg, #068200, #0b7c01);
    margin: 3rem 0;
    border-radius: 1px;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f0fff4, #e8f5e8);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6,130,0,0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #555;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.article-content {
    line-height: 1.8;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #068200;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0b7c01, transparent);
}

/* Specific adjustment for article section h2 */
.article section h2 {
    margin-top: 0;
}

.content-section h2 i {
    color: #068200;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #f0fff4, #e8f5e8);
    padding: 0.5rem;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    color: #444;
}

/* Time Templates - New Visual Design */
.time-templates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.template-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e8f5e8;
}

.template-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #b8e6c8;
}

.template-card h3 {
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, #f0fff4, #e8f5e8);
    color: #068200;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 2px solid #e8f5e8;
}

.template-card h3 i {
    font-size: 1.2rem;
    color: #068200;
}

.template-content {
    padding: 2rem;
}

.template-content h4 {
    color: #068200;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.template-content h4::before {
    content: '▶';
    color: #068200;
    font-size: 0.8rem;
}

.example-box {
    background: linear-gradient(135deg, #f0fff4, #f8fffa);
    border-left: 4px solid #068200;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.example-box::after {
    content: '"';
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 60px;
    color: rgba(6,130,0,0.1);
    font-family: Georgia, serif;
}

.example-box p {
    font-style: italic;
    color: #333;
    line-height: 1.8;
    margin: 0;
}

/* Structure Box - Timeline Style */
.structure-box {
    background: linear-gradient(135deg, #fff, #f8f8f8);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 1.5rem;
    position: relative;
}

.structure-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.structure-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #068200, #0b7c01);
}

.structure-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.time-label {
    background: linear-gradient(135deg, #068200, #0b7c01);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
}

.content-label {
    flex: 1;
    color: #333;
    font-weight: 500;
}

/* Impression Points - Enhanced Visual Design */
.impression-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.point-card {
    background: white;
    border-radius: 12px;
    padding: 1.8rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8f5e8;
}

.point-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #b8e6c8;
}

.point-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.2rem;
    background: linear-gradient(135deg, #f0fff4, #e8f5e8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #068200;
}

.point-icon i {
    font-size: 1.8rem;
    color: #068200;
}

.point-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.point-card p {
    color: #555;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Industry Customization Cards */
.industry-customization {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.industry-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8f5e8;
}

.industry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #b8e6c8;
}

.industry-card h3 {
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, #f0fff4, #e8f5e8);
    color: #068200;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 2px solid #e8f5e8;
}

.industry-card h3 i {
    font-size: 1.2rem;
    color: #068200;
}

.industry-content {
    padding: 2rem;
}

.industry-content h4 {
    color: #068200;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.industry-content ul {
    list-style: none;
    padding: 0;
}

.industry-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.industry-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #068200;
    font-weight: bold;
}

/* NG Behaviors - Warning Style */
.ng-behaviors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.ng-item {
    background: #fff5f5;
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    padding: 1.2rem;
    transition: all 0.3s ease;
}

.ng-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220,53,69,0.15);
}

.ng-item h3 {
    color: #dc3545;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.ng-item p {
    color: #666;
    line-height: 1.5;
}

/* Practice Steps - Process Flow */
.practice-steps {
    position: relative;
    padding-left: 50px;
    margin-top: 2rem;
}

.practice-steps::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg, #068200, #0b7c01);
}

.practice-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.practice-step .step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #068200, #0b7c01);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: absolute;
    left: -30px;
    box-shadow: 0 4px 10px rgba(6,130,0,0.3);
}

.practice-step .step-content {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    flex: 1;
    transition: all 0.3s ease;
}

.practice-step:hover .step-content {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.practice-step h3 {
    color: #068200;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.practice-step p {
    color: #555;
    margin: 0;
}

/* Enhanced Checklist */
.checklist {
    background: #f8fff8;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid #e8f5e8;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.2rem;
    background: white;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checklist-item:hover {
    border-color: #b8e6c8;
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(6,130,0,0.1);
}

.checklist-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: #068200;
    cursor: pointer;
}

.checklist-item input[type="checkbox"]:checked + label {
    color: #068200;
    font-weight: 500;
}

.checklist-item label {
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    flex: 1;
}

/* Sidebar Enhanced Styles */
.sidebar {
    background: linear-gradient(135deg, #f0f8f0, #e8f5e8);
    border-radius: 20px;
    padding: 2rem;
    height: fit-content;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.related-articles, .quick-tips {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.related-articles:hover, .quick-tips:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.related-articles h3, .quick-tips h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-articles h3::before {
    content: '📚';
}

.quick-tips h3::before {
    content: '💡';
}

.related-articles ul {
    list-style: none;
}

.related-articles li {
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.related-articles li:last-child {
    border-bottom: none;
}

.related-articles a {
    color: #068200;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.related-articles a:hover {
    color: #0b7c01;
    padding-left: 10px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0fff4, #ffffff);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tip-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(6,130,0,0.15);
}

.tip-item i {
    color: #068200;
    font-size: 1.2rem;
}

.tip-item p {
    color: #333;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* Responsive design improvements */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr 280px;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        padding: 1rem 0.5rem;
        gap: 2rem;
    }

    .sidebar {
        margin-top: 2rem;
    }

    .article {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }

    .time-templates {
        grid-template-columns: 1fr;
    }

    .impression-points {
        grid-template-columns: 1fr;
    }

    .industry-customization {
        grid-template-columns: 1fr;
    }

    .ng-behaviors {
        grid-template-columns: 1fr;
    }

    .practice-steps {
        padding-left: 30px;
    }

    .practice-step .step-number {
        left: -15px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .article {
        padding: 1.5rem 1rem;
    }

    .content-section {
        padding: 1.5rem 1rem;
    }

    .template-card h3 {
        padding: 1rem;
        font-size: 1.1rem;
    }

    .point-icon {
        width: 60px;
        height: 60px;
    }

    .point-icon i {
        font-size: 1.5rem;
    }
}

/* Additional animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.template-card, .point-card, .industry-card, .ng-item, .practice-step {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}