@font-face {
    font-family: 'Sentinel';
    src: url('/fonts/Sentinel/Sentinel-Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sentinel';
    src: url('/fonts/Sentinel/Sentinel-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Sentinel';
    src: url('/fonts/Sentinel/Sentinel-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sentinel', serif;
    background-color: #ffffff;
    min-height: 100vh;
    position: relative;
    padding-bottom: 1cm;
}

header {
    padding: 39px 28px 28px;
    text-align: center;
    background-color: #ffffff;
    margin-bottom: 8px;
    position: relative;
}

.logo-container {
    max-width: 240px;
    margin: 0 auto;
    cursor: pointer;
}

.logo {
    width: 100%;
    height: auto;
}

.user-info {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    font-family: 'Sentinel', serif;
    font-weight: normal;
    font-size: 16px;
    color: #AF232D;
}

.user-info .chapter-name {
    font-weight: 700;
}

/* User Info Popup Styles */
.user-info-content {
    position: relative;
    cursor: pointer;
    text-align: center;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.user-info-content:hover {
    background-color: rgba(175, 35, 45, 0.1);
}

.user-popup {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 16px;
    width: 280px;
    z-index: 1000000;
    font-family: 'Sentinel', serif;
}

.user-popup.show {
    display: block;
}

.user-popup.show {
    display: block !important;
}

.dashboard-toggle {
    margin-bottom: 12px;
}

.toggle-container {
    position: relative;
    display: flex;
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 4px;
    width: 100%;
}

.toggle-option {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    z-index: 2;
    position: relative;
}

.toggle-option.active {
    color: white;
}

.toggle-option:not(.active) {
    color: #666;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background-color: #AF232D;
    border-radius: 16px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.toggle-option[data-mode="launched"].active ~ .toggle-slider {
    transform: translateX(100%);
}

.button-row {
    display: flex;
    gap: 8px;
}

.change-password-button, .logout-button {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.change-password-button:hover, .logout-button:hover {
    background-color: #f5f5f5;
    border-color: #AF232D;
}

.logout-button {
    background-color: #AF232D;
    color: white;
    border-color: #AF232D;
}

.logout-button:hover {
    background-color: #8f1e25;
}

/* Password Modal Styles */
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000001;
    justify-content: center;
    align-items: center;
}

.password-modal.show {
    display: flex;
}

.password-modal-content {
    background: white;
    padding: 24px;
    border-radius: 8px;
    width: 400px;
    max-width: 90vw;
}

.password-modal-content h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #AF232D;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.error-message {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 8px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    background-color: #AF232D;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.submit-button:hover {
    background-color: #8f1e25;
}

.close-modal {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #AF232D;
}

main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.icons-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 42px;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 20px;
}

.icon-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    transition: none;
    flex: 1;
    min-width: 0;
    width: 192px;
    cursor: pointer;
}

.stage-icon-container {
    width: 192px;
    height: 192px;
    position: relative;
    display: block;
}

.stage-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.stage-title {
    font-size: 1.1em;
    font-weight: 500;
    color: #666666;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    background-color: transparent;
    text-align: center;
    white-space: nowrap;
    width: 192px;
    transition: none;
}

.progress-bar {
    width: 154px;
    height: 16px;
    background-color: #d0d0d0;
    border-radius: 8px;
    margin-top: 5px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background-color: #AF232D;
    transition: none;
}

/* Text hover effects - ONLY for incomplete stages */
.icon-section:not(.stage-completed):hover .stage-title {
    color: #AF232D !important;
    border-color: #AF232D !important;
}

/* Stage icon hover effects - ENABLED */
.stage-icon-container {
    position: relative;
}

.stage-icon-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0s ease;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

/* Red hover images for each stage */
.icon-section[href="stages/discovery.html"] .stage-icon-container::after {
    background-image: url('assets/stage-icons/Discovery Process - Red.jpg');
}

.icon-section[href="stages/adult-leader-onboarding.html"] .stage-icon-container::after {
    background-image: url('assets/stage-icons/Adult Leader Onboarding - Red.jpg');
}

.icon-section[href="stages/member-recruitment.html"] .stage-icon-container::after {
    background-image: url('assets/stage-icons/Member Recruitment - Red.jpg');
}

.icon-section[href="stages/chapter-launch.html"] .stage-icon-container::after {
    background-image: url('assets/stage-icons/Chapter Launch - Red.jpg');
}

.icon-section[href="stages/ongoing-rhythm.html"] .stage-icon-container::after {
    background-image: url('assets/stage-icons/Ongoing Rhythm - Red.jpg');
}

/* Show red version on hover - ONLY for incomplete stages */
.icon-section:not(.stage-completed):hover .stage-icon-container::after {
    opacity: 1;
}

/* Add pointer cursor for all stages */
.icon-section {
    cursor: pointer;
}

.footer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.4cm;
    background-color: #AF232D;
}

.knight-image {
    position: absolute;
    bottom: 1.4cm;
    left: 20px;
    height: 75px;
    width: auto;
    transform-origin: bottom center;
}

@keyframes knightJump {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    75% { transform: translateY(-10px) rotate(-5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes knightShake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.knight-jump {
    animation: knightJump 0.8s ease-in-out;
}

@media print {
    @page {
        margin: 1in;
    }

    /* Default portrait orientation for all content */
    @page :first {
        size: portrait;
    }

    /* Landscape orientation for pages containing tables */
    @page :left {
        size: landscape;
    }

    body {
        font-family: 'Sentinel', serif; /* Ensure Sentinel is used */
        background-color: #ffffff !important;
        color: black !important;
        padding-bottom: 0 !important; /* Remove padding meant for screen footer */
        margin: 0;
        -webkit-print-color-adjust: exact !important; /* Try to force exact colors for images if needed */
        print-color-adjust: exact !important;
        visibility: visible !important; /* Added for emphasis */
    }

    /* Universal reset for print - hide backgrounds, shadows, ensure text is black */
    * {
        background-color: #ffffff !important;
        color: black !important;
        box-shadow: none !important;
        border-color: black !important; /* Or use transparent if borders are not desired */
    }

    /* Force page break before tables to ensure they start on a new page */
    .brother-templars-section-container,
    .parents-section-container,
    .leaders-section-container {
        page-break-before: always !important;
        page-break-after: always !important;
    }

    /* Ensure tables use full width in landscape mode */
    .brother-templars-table {
        width: 100% !important;
        margin: 0 !important;
        page-break-inside: avoid !important;
    }

    /* Adjust table container margins for landscape printing */
    .brother-templars-section-container,
    .parents-section-container,
    .leaders-section-container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    /* Ensure table headers and cells are properly visible */
    .brother-templars-table th,
    .brother-templars-table td {
        padding: 8px !important;
        border: 1px solid black !important;
        text-align: left !important;
        font-size: 12pt !important;
    }

    /* Ensure table headers stand out */
    .brother-templars-table th {
        background-color: #f0f0f0 !important;
        font-weight: bold !important;
    }

    /* Rest of the existing print styles */
    header {
        display: block !important;
        visibility: visible !important;
        padding: 0 0 20px 0 !important;
        text-align: left !important;
        margin-top: 0 !important;
        margin-bottom: 20px !important;
        border-bottom: none !important;
    }

    header .logo-container {
        margin: 0 !important;
        max-width: 240px; /* Increased size by 20% */
        display: block !important;
        visibility: visible !important;
    }
    
    header .logo {
         width: 240px !important; /* Increased size by 20% */
         height: auto !important;
         display: block !important;
         visibility: visible !important;
    }

    .user-info,
    .nav-container,
    .progress-container,
    .steps-container .step .checkmark,
    .toggle-controls,
    .footer-bar,
    .knight-image {
        display: none !important;
    }

    .stage-title-container {
        display: flex !important;
        align-items: center;
        margin: 0 0 20px 0 !important; /* Remove side auto margins, keep bottom */
        border-bottom: 1px solid #ccc !important;
        padding: 0 0 10px 0 !important; /* Remove side padding, keep bottom */
        width: 100% !important; /* Use full available width */
        max-width: none !important; /* Remove any max-width constraint */
        box-shadow: none !important; /* Ensure no shadow */
        border: none !important; /* Ensure no border if not desired from previous rule */
    }

    .stage-title-container .stage-icon {
        width: 80px !important;
        height: 80px !important;
        margin-right: 20px !important;
        border: 1px solid black !important; /* Add border to icon if it's white/transparent */
        display: block !important;
        visibility: visible !important;
    }

    .stage-title-container .stage-name {
        font-size: 24pt !important;
        color: black !important;
        visibility: visible !important;
        flex-grow: 1 !important; /* Allow it to take available space */
        text-align: center !important; /* Center the text */
    }

    .steps-container {
        margin: 0 0 20px 0 !important; /* Remove side auto margins, keep bottom */
        padding: 0 !important; /* Remove all padding */
        width: 100% !important; /* Use full available width */
        max-width: none !important; /* Remove any max-width constraint */
        border: none !important; /* Ensure no border */
        box-shadow: none !important; /* Ensure no shadow */
        background-color: #ffffff !important; /* Ensure background is white */
    }

    .step {
        page-break-inside: avoid !important;
        margin-bottom: 20px !important;
        border: none !important; /* Remove border for print */
        padding: 0 !important;   /* Remove padding for print */
        width: 100% !important; /* Allow step to use full width */
    }

    .step .step-header {
        margin-bottom: 10px !important;
    }
    
    .step .step-header .step-number {
        font-weight: bold !important;
        display: inline !important; /* Ensure step numbers are visible */
        color: black !important;
        visibility: visible !important;
        font-size: inherit !important; /* Use inherited font size or set explicitly if needed */
        margin-right: 8px; /* Add some space between number and title */
    }

    .step .step-header .step-title {
        font-size: 16pt !important;
        color: black !important;
    }

    .step .step-content {
        display: block !important;
        max-height: none !important;
        padding-left: 1cm !important; /* Added 1cm left padding for text */
        position: relative !important; /* Ensure positioning context for ::before */
    }

    /* Style for the vertical line to the left of step content in print */
    .step .step-content::before {
        content: '' !important;
        position: absolute !important;
        left: 0 !important; /* Position line at the very left of step-content padding box */
        top: 0 !important; /* Align to top of content area */
        height: 100% !important; /* Make line full height of content area */
        width: 2px !important;
        background-color: black !important; /* Ensure line is black */
        display: block !important;
        visibility: visible !important;
    }

    .step .guidance-section {
        margin-top: 10px !important;
    }

    .step .guidance-section .section-header {
        font-size: 14pt !important;
        font-weight: bold !important;
        margin-bottom: 5px !important;
        color: black !important;
    }

    .step .guidance-section .guidance-text,
    .step .guidance-section p { /* Target any paragraphs within guidance */
        font-size: 12pt !important;
        color: black !important;
        line-height: 1.4 !important;
    }

    /* Hide any links that are not essential for print, or style them simply */
    a {
        text-decoration: none !important; /* No underlines for links */
        color: black !important; /* Ensure links are black */
    }

    /* Remove hover effects for print - handled by media query */

    /* Ensure FAQ sections are expanded and visible for print */
    .faq-section .faq-content {
        display: block !important;
        max-height: none !important;
        visibility: visible !important;
    }

    .faq-toggle-button {
        display: block !important; /* Make it visible */
        font-family: 'Sentinel', serif !important;
        font-weight: bold !important;
        color: black !important; /* Make it black */
        background: none !important;
        border: none !important;
        padding: 0 !important;
        font-size: 14pt !important; /* Similar to other section headers */
        cursor: default !important; /* Not clickable in print */
        margin-top: 1em !important;
        margin-bottom: 0.5em !important; /* Add some space below it */
        text-align: left !important; /* Default alignment, or could be 'center' if preferred */
    }
}

/* Responsive adjustments for icon navigation on smaller screens */

@media (max-width: 768px) {
    .icons-container {
        flex-direction: column; /* Stack icon sections vertically */
        align-items: center;    /* Center them in the container */
        gap: 30px;              /* Adjust gap for vertical layout */
        padding: 0 10px;        /* Reduce side padding */
    }

    .icon-section {
        flex: none;             /* Remove flex-grow/shrink behavior */
        width: 80%;             /* Allow sections to take more width */
        max-width: 300px;       /* But cap it for very wide small screens if needed */
    }

    .stage-title {
        white-space: normal; /* Allow title text to wrap */
    }

    /* === MOVED FROM 480px breakpoint === */
    /* Adjustments for the general header and user-info */
    header {
        padding: 15px 10px 10px; 
        display: flex;           
        flex-direction: column;  
        align-items: center;     
    }

    .logo-container {
        max-width: 180px; /* Consider if this size is okay for 768px, was 240px for desktop */
        margin-bottom: 10px;     
    }

    .user-info {
        position: relative; /* Changed from static to relative to allow popup positioning */
        text-align: center;
        margin-bottom: 10px;   
        margin-top: 0;         
        padding: 5px;
        font-size: 14px; /* Consider if this font size is okay for 768px */
        width: 100%;           
    }
    /* === END MOVED SECTION === */
}

@media (max-width: 480px) {
    .icons-container {
        gap: 20px; /* Further reduce gap for very small screens */
    }

    .icon-section {
        width: 90%; /* Allow a bit more width on very narrow screens */
        gap: 10px;  /* Reduce gap between icon and title */
    }

    .stage-icon {
        width: 150px;  /* Slightly smaller icon */
        height: 150px;
    }

    .stage-title {
        width: 100%; /* Ensure title can use full width of .icon-section */
        font-size: 1em; /* Slightly smaller title font if needed */
        padding: 10px;
    }

    /* Specific overrides for 480px if needed, e.g., further reducing logo or font size */
    /* For example, if 180px logo is too big for 480px, we can make it smaller here */
    /* .logo-container {
        max-width: 150px; 
    } */
    /* .user-info {
        font-size: 12px;
    } */

    /* Knight image adjustments for very small screens */
    .knight-image {
        height: 60px; /* Smaller knight */
        left: 10px;
        /* Consider bottom: 10px; if footer bar is also adjusted or hidden */
    }
}

/* Date Fields Styles */
.date-fields-container {
    display: flex;
    justify-content: center;
    gap: 2cm;
    margin: calc(40px + 5mm) auto 60px;
    max-width: 1200px;
    padding: 0 20px;
}

.date-field {
    text-align: center;
    flex-shrink: 0;
}

.date-field-title {
    font-family: 'Sentinel', serif;
    font-weight: bold;
    font-size: 20px;
    color: #AF232D;
    margin-bottom: 10px;
}

.date-field-value {
    font-family: 'Sentinel', serif;
    font-weight: normal;
    font-size: 21px;
    color: #333333;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease, border 0.2s ease;
    border: 2px solid transparent;
    min-width: 120px;
    display: inline-block;
}

.editable-date-field:hover .date-field-value {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
}

.date-field-input {
    font-family: 'Sentinel', serif;
    font-size: 21px;
    padding: 8px 12px;
    border: 2px solid #AF232D;
    border-radius: 4px;
    background-color: #ffffff;
    color: #333333;
    min-width: 120px;
    text-align: center;
    outline: none;
}

.date-field-input:focus {
    box-shadow: 0 0 5px rgba(175, 35, 45, 0.3);
}

.save-dates-btn {
    background-color: #AF232D;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-family: 'Sentinel', serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.save-dates-btn:hover {
    background-color: #8f1d25;
}

.save-dates-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Toast animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile responsiveness for date fields */
@media (max-width: 768px) {
    .date-fields-container {
        flex-direction: column;
        gap: 30px;
        margin: 30px auto 40px;
    }
    
    .date-field-title {
        font-size: 18px;
    }
    
    .date-field-value {
        font-size: 20px;
    }
}

/* Date Input Styles for Discovery Process */
.date-input-container {
    display: flex;
    justify-content: center;
    gap: 2cm;
    margin: 20px 0;
    padding: 0 20px;
}

.date-input-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.date-input-label {
    font-family: 'Sentinel', serif;
    font-weight: bold;
    font-size: 20px;
    color: #AF232D;
    margin-bottom: 10px;
    text-align: center;
}

.date-input {
    font-family: 'Sentinel', serif;
    font-size: 18px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    background-color: #ffffff;
    color: #333333;
    min-width: 150px;
    text-align: center;
}

.date-input:focus {
    outline: none;
    border-color: #AF232D;
    box-shadow: 0 0 5px rgba(175, 35, 45, 0.3);
}

/* Mobile responsiveness for date inputs */
@media (max-width: 768px) {
    .date-input-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .date-input-label {
        font-size: 18px;
    }
    
    .date-input {
        font-size: 16px;
        min-width: 200px;
    }
}

/* First-time User Guide Modal Styles - DEFENSIVE CSS */
#userGuideModal.guide-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999 !important;
    font-family: 'Sentinel', serif !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-sizing: border-box !important;
}

#userGuideModal.guide-modal.show {
    opacity: 1 !important;
    pointer-events: all !important;
}

#userGuideModal .guide-modal-content {
    background-color: white !important;
    width: 500px !important;
    height: auto !important;
    min-height: 600px !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    overflow: visible !important;
    transform: scale(0.9) !important;
    transition: transform 0.3s ease !important;
    position: relative !important;
    margin: auto !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-sizing: border-box !important;
}

#userGuideModal.show .guide-modal-content {
    transform: scale(1) !important;
}

#userGuideModal .guide-header {
    background-color: white !important;
    color: #333 !important;
    padding: 25px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
    border-bottom: 2px solid #AF232D !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

#userGuideModal .guide-logo {
    max-width: 180px !important;
    height: auto !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

#userGuideModal .guide-header h2 {
    margin: 0 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    font-family: 'Sentinel', serif !important;
    color: #AF232D !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1.2 !important;
}

#userGuideModal .guide-body {
    padding: 30px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: visible !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

#userGuideModal .guide-body p {
    font-size: 16px !important;
    color: #333 !important;
    margin-bottom: 25px !important;
    text-align: center !important;
    line-height: 1.5 !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

#userGuideModal .guide-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#userGuideModal .guide-list li {
    margin-bottom: 20px !important;
    padding: 15px !important;
    background-color: #f8f9fa !important;
    border-radius: 8px !important;
    border-left: 4px solid #AF232D !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
}

#userGuideModal .guide-list li strong {
    color: #AF232D !important;
    font-weight: 600 !important;
}

#userGuideModal .guide-footer {
    padding: 25px !important;
    text-align: center !important;
    border-top: 1px solid #e9ecef !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

#userGuideModal .guide-btn {
    background-color: #AF232D !important;
    color: white !important;
    border: none !important;
    padding: 15px 40px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-family: 'Sentinel', serif !important;
    transition: background-color 0.2s ease !important;
    margin: 0 !important;
    outline: none !important;
}

#userGuideModal .guide-btn:hover {
    background-color: #8b1c25 !important;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .guide-modal-content {
        width: 90%;
        height: 90%;
        margin: 20px;
    }
    
    .guide-header {
        padding: 20px;
    }
    
    .guide-header h2 {
        font-size: 24px;
    }
    
    .guide-body {
        padding: 20px;
    }
    
    .guide-list li {
        padding: 15px;
        font-size: 15px;
    }
}

/* 60 Days to Launch Timeline Sidebar */
.launch-timeline-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 100vh;
    background-color: #8D9388;
    color: white;
    font-family: 'Sentinel', serif;
    z-index: 100000;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    transform: translateX(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    
    /* "Piece of paper" effect */
    border-right: 1px solid #666;
    background-image: 
        linear-gradient(to right, #8D9388 0%, #8D9388 95%, #7A8075 95%, #7A8075 100%);
}

/* Clickable edge area when sidebar is open */
.launch-timeline-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    cursor: pointer;
    background: transparent;
    z-index: 100001;
}

.launch-timeline-sidebar.hidden {
    transform: translateX(-320px); /* Leave 30px visible for the edge */
    cursor: pointer; /* Make the visible edge clickable */
}

/* Make the visible edge area obvious when hidden */
.launch-timeline-sidebar.hidden:hover {
    transform: translateX(-315px); /* Slide out slightly on hover */
}

.timeline-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.1);
}

.timeline-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: white;
}

.timeline-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.timeline-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.timeline-content {
    padding: 20px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    transition: background-color 0.2s, border-left-color 0.2s;
}

.timeline-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.6);
}

.timeline-number {
    background-color: white;
    color: #8D9388;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.timeline-details {
    flex: 1;
}

.timeline-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.3;
}

.timeline-date-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Sentinel', serif;
    font-size: 14px;
    transition: border-color 0.2s, background-color 0.2s;
}

.timeline-date-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.15);
}

.timeline-date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Countdown Styles */
.timeline-countdown {
    margin-top: 30px;
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
    font-family: 'Sentinel', serif;
    font-size: 48px;
    font-weight: bold;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
}

.countdown-label {
    font-family: 'Sentinel', serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: lowercase;
}

/* Clickable Indicator Tab */
.launch-timeline-sidebar::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -31px;
    transform: translateY(-50%);
    width: 18px;
    height: 60px;
    background-color: rgba(141, 147, 136, 0.9);
    border-radius: 0 8px 8px 0;
    z-index: 100002;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
}

/* Three dots on the tab */
.launch-timeline-sidebar::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        white 15%, 
        transparent 25%, 
        white 35%, 
        transparent 45%, 
        white 55%, 
        transparent 65%, 
        white 75%, 
        transparent 85%, 
        white 95%, 
        transparent 100%
    );
    border-radius: 2px;
    opacity: 0.8;
    z-index: 100003;
}

/* Timeline Tab (visible when sidebar is hidden) */
.timeline-tab {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 100vh;
    background-color: #8D9388;
    color: white;
    cursor: pointer;
    z-index: 99999; /* Just below sidebar */
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, transform 0.2s;
    font-family: 'Sentinel', serif;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-tab:hover {
    background-color: #7A8075;
    transform: translateX(2px);
}

.timeline-tab-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 1px;
    text-align: center;
}

/* NO body adjustments - timeline is pure overlay */
body.timeline-visible,
body.timeline-hidden {
    margin-left: 0 !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .launch-timeline-sidebar {
        width: 300px;
    }
    
    .launch-timeline-sidebar.hidden {
        transform: translateX(-270px);
    }
    
    /* NO margin adjustments for mobile - pure overlay */
    body.timeline-visible,
    body.timeline-hidden {
        margin-left: 0 !important;
    }
    
    .timeline-title {
        font-size: 20px;
    }
    
    .timeline-item {
        margin-bottom: 20px;
        padding: 12px;
    }
    
    .timeline-text {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .launch-timeline-sidebar {
        width: 280px;
    }
    
    .launch-timeline-sidebar.hidden {
        transform: translateX(-250px);
    }
    
    /* NO margin adjustments for small mobile - pure overlay */
    body.timeline-visible,
    body.timeline-hidden {
        margin-left: 0 !important;
    }
} 