/* ===== CONTENT STYLES - REUSABLE ACROSS ALL PAGES ===== */

/* ===== MAIN CONTENT CONTAINER ===== */
main {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    z-index: 1;
    overflow-x: hidden; /* Prevent horizontal overflow */
    width: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY HIERARCHY ===== */
main h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--deep-navy);
    text-align: center;
    margin: 3rem 0 2rem;
    padding: 0 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--deep-navy), var(--navy-medium));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--vivid-pink), var(--pink-hover));
    border-radius: 2px;
}

main h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--deep-navy);
    margin: 3rem 0 1.5rem;
    padding: 0 1rem;
    line-height: 1.3;
    position: relative;
    border-left: 4px solid var(--vivid-pink);
    padding-left: 1.5rem;
}

main h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy-medium);
    margin: 2.5rem 0 1rem;
    padding: 0 1rem;
    line-height: 1.4;
    position: relative;
}

main h3::before {
    content: '🎯';
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

main h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--navy-medium);
    margin: 2rem 0 1rem;
    padding: 0 1rem;
    line-height: 1.4;
    border-bottom: 2px solid rgba(255, 78, 177, 0.2);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* ===== PARAGRAPH STYLES ===== */
main p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--navy-medium);
    margin: 1.5rem 0;
    padding: 0 1rem;
    text-align: justify;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main p:first-of-type {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--deep-navy);
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--vivid-pink);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===== LIST STYLES ===== */
main ul, main ol {
    margin: 1.5rem 0;
    padding: 0 1rem 0 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

main ul li {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--navy-medium);
    margin: 0.8rem 0;
    padding: 0.5rem 0;
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main ol li {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--deep-navy);
    margin: 2.5rem 0;
    padding: 0.5rem 0;
    position: relative;
    font-weight: 600;
}

main ul li::before {
    content: '◆';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    font-size: 0.9rem;
    color: #4A90E2;
}

main ol {
    counter-reset: content-counter !important;
    list-style: none !important;
    padding-left: 0 !important;
    margin: 2rem 0 !important;
}

main ol li {
    counter-increment: content-counter !important;
    padding-left: 0 !important;
    position: relative !important;
    list-style: none !important;
    margin: 2.5rem 0 !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: var(--deep-navy) !important;
}

main ol li::before {
    content: counter(content-counter, decimal) '.' !important;
    position: absolute !important;
    left: -3rem !important;
    top: 0 !important;
    font-weight: 900 !important;
    color: var(--vivid-pink) !important;
    font-size: 2.5rem !important;
    line-height: 1 !important;
}

/* ===== NESTED LISTS ===== */
main ul ul, main ol ol, main ul ol, main ol ul {
    margin: 1rem 0 0.5rem 1rem;
    padding-left: 2rem;
}

main ol ul {
    margin: 1rem 0 0.5rem 0;
    padding-left: 2rem;
}

main ul ul li::before {
    content: '◆';
    font-size: 0.9rem;
    color: #4A90E2;
}

main ol ol {
    counter-reset: sub-counter !important;
}

main ol ol li {
    counter-increment: sub-counter !important;
}

main ol ol li::before {
    content: counter(content-counter) '.' counter(sub-counter) '.' !important;
    color: var(--pink-hover) !important;
}

/* Mixed nested lists */
main ul ol li {
    counter-increment: sub-counter;
}

main ul ol li::before {
    content: counter(sub-counter) '.';
    color: var(--pink-hover);
}

main ol ul li::before {
    content: '💎';
    font-size: 0.8rem;
}

/* ===== TABLE STYLES ===== */
main .table-container {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 78, 177, 0.2);
}

main table {
    width: 100%;
    min-width: 600px; /* Ensure minimum width for readability */
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

main table thead {
    background: linear-gradient(135deg, var(--deep-navy), var(--navy-medium));
}

main table thead th {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.2rem 1rem;
    text-align: left;
    border-bottom: 2px solid var(--vivid-pink);
}

main table tbody tr {
    transition: all 0.3s ease;
}

main table tbody tr:nth-child(even) {
    background: rgba(248, 249, 255, 0.5);
}

main table tbody tr:hover {
    background: rgba(255, 78, 177, 0.05);
    transform: translateY(-1px);
}

main table tbody td {
    padding: 1rem;
    font-size: 1rem;
    color: var(--navy-medium);
    border-bottom: 1px solid rgba(255, 78, 177, 0.1);
    vertical-align: middle;
}

main table tbody td:first-child {
    font-weight: 600;
    color: var(--deep-navy);
}

/* ===== LINK STYLES ===== */
main a {
    color: var(--vivid-pink);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

main a:hover {
    color: var(--pink-hover);
    border-bottom-color: var(--pink-hover);
    text-shadow: 0 0 8px rgba(255, 78, 177, 0.3);
}

main a[href^="mailto:"] {
    background: linear-gradient(135deg, var(--vivid-pink), var(--pink-hover));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: none;
}

main a[href^="mailto:"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 78, 177, 0.4);
    border-bottom: none;
}

/* ===== SPECIAL CONTENT SECTIONS ===== */
main .content-section {
    background: white;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 78, 177, 0.1);
    max-width: 1200px;
}

main .highlight-box {
    background: linear-gradient(135deg, rgba(255, 78, 177, 0.1), rgba(255, 142, 83, 0.1));
    border: 2px solid rgba(255, 78, 177, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
}

main .highlight-box::before {
    content: '⭐';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.5;
}

main .highlight-box h3,
main .highlight-box h4 {
    color: var(--deep-navy);
    border: none;
    padding: 0;
    margin-top: 0;
}

main .highlight-box p {
    color: var(--navy-medium);
    margin: 1rem 0;
}

/* ===== REGISTRATION STEPS ===== */
main .registration-steps {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 1200px;
}

main .steps-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 2rem;
    border: none;
    padding: 0;
}

main .steps-title::before {
    content: '⏰';
    background: #FF6B35;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

main .step-section {
    margin: 2rem 0;
}

main .step-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--deep-navy);
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

main .step-list {
    counter-reset: step-counter !important;
    list-style: none !important;
    padding-left: 0 !important;
    margin: 1rem 0 !important;
}

main .step-list li {
    counter-increment: step-counter !important;
    position: relative !important;
    padding-left: 3.5rem !important;
    margin: 1rem 0 !important;
    font-size: 1rem !important;
    color: var(--deep-navy) !important;
    line-height: 1.5 !important;
}

main .step-list li::before {
    content: counter(step-counter, decimal) '.' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    font-weight: 900 !important;
    color: var(--vivid-pink) !important;
    font-size: 1.8rem !important;
    line-height: 1 !important;
}



/* ===== CALL-TO-ACTION SECTIONS ===== */
main .cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--deep-navy), var(--navy-medium));
    color: white;
    padding: 3rem 2rem;
    margin: 3rem auto;
    border-radius: 20px;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
}

main .cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

main .cta-section h2,
main .cta-section h3 {
    color: white;
    border: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

main .cta-section p {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 1rem 0;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    main h1 {
        font-size: 2.2rem;
        margin: 2rem 0 1.5rem;
    }
    
    main h2 {
        font-size: 1.8rem;
        margin: 2.5rem 0 1rem;
    }
    
    main h3 {
        font-size: 1.4rem;
        margin: 2rem 0 0.8rem;
    }
    
    main h4 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.8rem;
    }
    
    main p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    main p:first-of-type {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    main ul, main ol {
        padding: 0 0.5rem 0 2rem;
    }
    
    main .table-container {
        margin: 1.5rem 0.5rem;
        border-radius: 8px;
    }
    
    main table {
        font-size: 0.9rem;
        min-width: 100%; /* Use full container width on tablets */
    }
    
    main table thead th,
    main table tbody td {
        padding: 0.8rem 0.5rem;
    }
    
    main .content-section,
    main .highlight-box,
    main .cta-section {
        margin: 1.5rem 0.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    main h1 {
        font-size: 1.8rem;
    }
    
    main h2 {
        font-size: 1.5rem;
    }
    
    main h3 {
        font-size: 1.3rem;
    }
    
    main .table-container {
        margin: 1rem 0.3rem;
        border-radius: 6px;
    }
    
    main table {
        font-size: 0.8rem;
        min-width: 100%; /* Use full container width on mobile */
    }
    
    main table thead th,
    main table tbody td {
        padding: 0.6rem 0.3rem;
        word-wrap: break-word; /* Allow text to wrap in cells */
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    main {
        background: white;
    }
    
    main h1,
    main h2,
    main h3,
    main h4 {
        color: black;
        border: none;
        padding: 0;
        margin: 1rem 0;
    }
    
    main p,
    main li {
        color: black;
    }
    
    main table {
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    main table thead {
        background: #f0f0f0;
    }
    
    main table thead th {
        color: black;
    }
} 