/* ===================== INSTRUCTION PAGE STYLES ===================== */

/* Instruction Navigation */
.instruction-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.instruction-nav h2 {
    text-align: center;
    color: #114814;
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 700;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.nav-card {
    background: linear-gradient(135deg, rgba(33, 163, 0, 0.05), rgba(17, 72, 20, 0.05));
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-card:hover {
    background: linear-gradient(135deg, rgba(33, 163, 0, 0.1), rgba(17, 72, 20, 0.1));
    border-color: #21a300;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(33, 163, 0, 0.3);
}

.nav-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.nav-card h3 {
    color: #114814;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Instruction Content */
.instruction-content {
    text-align: left;
    position: relative;
    z-index: 1;
}

.instruction-content h3 {
    color: #21a300;
    font-size: 28px;
    margin: 30px 0 15px 0;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 3px solid #e0e0e0;
}

.instruction-content h4 {
    color: #114814;
    font-size: 22px;
    margin: 25px 0 12px 0;
    font-weight: 600;
}

/* Step Boxes */
.step-box {
    background: linear-gradient(135deg, rgba(33, 163, 0, 0.05), rgba(17, 72, 20, 0.05));
    border-left: 4px solid #21a300;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
}

.step-box:hover {
    background: linear-gradient(135deg, rgba(33, 163, 0, 0.1), rgba(17, 72, 20, 0.1));
    box-shadow: 0 5px 20px rgba(33, 163, 0, 0.2);
    transform: translateX(5px);
}

.step-number {
    min-width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #21a300, #114814);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(33, 163, 0, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-top: 0;
    color: #114814;
    font-size: 20px;
}

.step-content p {
    margin: 10px 0;
    color: #555;
    line-height: 1.8;
}

.step-content ul {
    margin: 15px 0 0 20px;
    color: #555;
}

.step-content li {
    margin: 8px 0;
    line-height: 1.6;
}

/* Tip Box */
.tip-box {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(21, 101, 192, 0.05));
    border-left: 4px solid #2196f3;
    border-radius: 10px;
    padding: 20px 25px;
    margin: 25px 0;
    color: #1976d2;
    font-weight: 600;
}

.tip-box::before {
    content: '';
    display: inline;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(245, 124, 0, 0.05));
    border-left: 4px solid #ff9800;
    border-radius: 10px;
    padding: 20px 25px;
    margin: 25px 0;
    color: #f57c00;
    font-weight: 600;
}

/* Role Cards */
.role-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 245, 0.95));
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.role-card:hover {
    border-color: #21a300;
    box-shadow: 0 10px 30px rgba(33, 163, 0, 0.2);
    transform: translateY(-3px);
}

.role-card h4 {
    color: #114814;
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.role-card p {
    margin: 10px 0;
}

.role-card strong {
    color: #21a300;
    font-weight: 700;
}

.role-card ul {
    margin: 15px 0 15px 25px;
}

.role-card li {
    margin: 8px 0;
    line-height: 1.6;
}

/* FAQ Items */
.faq-item {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #21a300;
    box-shadow: 0 5px 15px rgba(33, 163, 0, 0.15);
}

.faq-item h4 {
    color: #114814;
    font-size: 20px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.faq-item p {
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* Tip Cards for Best Practices */
.tip-card {
    border-radius: 15px;
    padding: 30px;
    margin: 25px 0;
    border: 2px solid #e0e0e0;
}

.tip-card.success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(56, 142, 60, 0.05));
    border-color: #4caf50;
}

.tip-card.warning {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(211, 47, 47, 0.05));
    border-color: #f44336;
}

.tip-card h4 {
    margin-top: 0;
    font-size: 22px;
    font-weight: 700;
}

.tip-card.success h4 {
    color: #388e3c;
}

.tip-card.warning h4 {
    color: #d32f2f;
}

.tip-card ul {
    margin: 15px 0 0 25px;
}

.tip-card li {
    margin: 10px 0;
    line-height: 1.6;
}

/* Support Grid */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.support-card {
    background: linear-gradient(135deg, rgba(33, 163, 0, 0.05), rgba(17, 72, 20, 0.05));
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.support-card:hover {
    border-color: #21a300;
    box-shadow: 0 8px 25px rgba(33, 163, 0, 0.2);
    transform: translateY(-5px);
}

.support-icon {
    font-size: 56px;
    margin-bottom: 15px;
    display: block;
}

.support-card h4 {
    color: #114814;
    font-size: 20px;
    margin: 15px 0;
    font-weight: 700;
}

.support-card p {
    color: #555;
    margin: 10px 0;
    font-size: 16px;
}

.support-card a {
    color: #21a300;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.support-card a:hover {
    color: #114814;
    text-decoration: underline;
}

.support-card small {
    color: #888;
    font-size: 14px;
    display: block;
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .instruction-nav {
        padding: 25px;
    }

    .instruction-nav h2 {
        font-size: 24px;
    }

    .nav-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .nav-card {
        padding: 20px 15px;
    }

    .nav-icon {
        font-size: 36px;
    }

    .nav-card h3 {
        font-size: 16px;
    }

    .instruction-content h3 {
        font-size: 22px;
    }

    .instruction-content h4 {
        font-size: 18px;
    }

    .step-box {
        flex-direction: column;
        padding: 20px;
    }

    .step-number {
        min-width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .role-card {
        padding: 20px;
    }

    .role-card h4 {
        font-size: 20px;
    }

    .support-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .nav-grid {
        grid-template-columns: 1fr;
    }

    .instruction-nav {
        padding: 20px;
    }

    .instruction-content h3 {
        font-size: 20px;
    }

    .step-content h4 {
        font-size: 18px;
    }

    .faq-item {
        padding: 20px;
    }

    .faq-item h4 {
        font-size: 18px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .nav-grid {
        display: none;
    }

    .glass-box,
    .glass-box-2 {
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
    }

    .step-box,
    .role-card,
    .faq-item {
        page-break-inside: avoid;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Scroll Margin for Anchor Links */
section[id] {
    scroll-margin-top: 120px;
}

/* Animation for Content */
.instruction-content {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Highlight Effect for Links */
.instruction-content a {
    color: #21a300;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.instruction-content a:hover {
    color: #114814;
    border-bottom-color: #21a300;
}

/* Code Style */
code {
    background: rgba(33, 163, 0, 0.1);
    padding: 3px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    color: #114814;
    font-weight: 600;
}

/* Strong Text */
.instruction-content strong {
    color: #114814;
    font-weight: 700;
}

/* List Styling Enhancement */
.instruction-content ul li::marker {
    color: #21a300;
}

.instruction-content ol li::marker {
    color: #21a300;
    font-weight: 700;
}