/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(180deg, #1e1e2e 0%, #252538 100%);
    padding: 50px 45px;
    border-radius: 16px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Top decorative gradient bar */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

/* Side accent line */
.container::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 0;
    width: 4px;
    height: calc(100% - 4px);
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    opacity: 0.6;
}

/* Typography */
h1 {
    color: #ffffff;
    border-bottom: none;
    padding-bottom: 20px;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 2.4em;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #a8a8a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

h2 {
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
    border-left: none;
    padding-left: 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

h2::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 3px;
    flex-shrink: 0;
}

h2 > strong:first-child,
h2 span.number,
h2 strong {
    font-weight: 700;
}

h3 {
    color: #e8e8e8;
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 1.2em;
    font-weight: 600;
    padding-left: 18px;
    position: relative;
}

h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
}

h3 span.number,
h3 strong {
    font-weight: 600;
}

span.number {
    font-weight: 600;
    color: #a8b4ff;
}

strong {
    color: #ffffff;
    font-weight: 600;
}

/* Links */
a {
    color: #8b9eff;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: #a8b4ff;
    border-bottom-color: #a8b4ff;
    text-decoration: none;
}

/* Date Info Box */
.date-info {
    background: linear-gradient(135deg, #2a2a4a 0%, #1e1e3a 100%);
    padding: 18px 24px;
    border-radius: 12px;
    margin: 25px 0 35px 0;
    border: 1px solid rgba(102, 126, 234, 0.2);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.date-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea, #764ba2);
}

.date-info strong {
    color: #a8b4ff;
}

/* Important Notice Box */
.important {
    background: linear-gradient(135deg, #3d2438 0%, #2d1a2a 100%);
    padding: 20px 24px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.important::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #e74c3c, #c0392b);
}

.important p {
    margin: 0;
}

.important strong {
    color: #ff6b6b;
}

/* Paragraphs */
p {
    margin: 16px 0;
    color: #c8c8d0;
}

/* Lists */
ul {
    padding-left: 0;
    list-style: none;
    margin: 16px 0;
}

ul li {
    margin-bottom: 14px;
    color: #c8c8d0;
    padding-left: 28px;
    position: relative;
    line-height: 1.7;
}

ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
}

/* Nested lists */
ul ul {
    margin-top: 12px;
    margin-bottom: 12px;
    padding-left: 20px;
}

ul ul li::before {
    width: 4px;
    height: 4px;
    top: 11px;
    background: #8b9eff;
}

ul ul ul li::before {
    width: 4px;
    height: 4px;
    border-radius: 0;
    transform: rotate(45deg);
    background: #a8b4ff;
}

/* Section Dividers */
.section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Table of Contents styling */
.section h2:first-child {
    margin-top: 0;
}

/* Final thank you section */
.section:last-child p strong {
    display: block;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #2a2a4a 0%, #1e1e3a 100%);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #a8b4ff;
    font-size: 1.05em;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7b8fff, #8b5cb5);
}

/* Selection styling */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: #ffffff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 20px 12px;
    }

    .container {
        padding: 35px 24px;
        border-radius: 12px;
    }

    h1 {
        font-size: 1.8em;
        padding-bottom: 16px;
    }

    h1::after {
        width: 60px;
        height: 3px;
    }

    h2 {
        font-size: 1.3em;
        margin-top: 32px;
        gap: 10px;
    }

    h2::before {
        width: 5px;
        height: 20px;
    }

    h3 {
        font-size: 1.1em;
        padding-left: 16px;
    }

    h3::before {
        width: 6px;
        height: 6px;
    }

    .date-info {
        padding: 14px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .important {
        padding: 16px 18px;
    }

    ul li {
        padding-left: 24px;
    }

    ul li::before {
        left: 6px;
    }

    .section {
        margin-bottom: 30px;
        padding-bottom: 24px;
    }

    .section:last-child p strong {
        padding: 16px;
        font-size: 1em;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    body {
        padding: 12px 8px;
    }

    .container {
        padding: 28px 18px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.2em;
    }

    h3 {
        font-size: 1.05em;
    }
}

/* Print styles */
@media print {
    body {
        background: #ffffff;
        color: #000000;
        padding: 0;
    }

    .container {
        background: #ffffff;
        box-shadow: none;
        padding: 20px;
        max-width: 100%;
    }

    .container::before,
    .container::after {
        display: none;
    }

    h1, h2, h3 {
        color: #000000;
        -webkit-text-fill-color: #000000;
    }

    h1::after,
    h2::before,
    h3::before {
        background: #333333;
    }

    a {
        color: #0066cc;
    }

    .date-info,
    .important {
        border: 1px solid #cccccc;
        background: #f5f5f5;
    }

    .important strong {
        color: #cc0000;
    }

    ul li::before {
        background: #333333;
    }

    .section {
        border-bottom-color: #cccccc;
    }
}