/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================================================
   ALERT BANNER - Important notices (controlled via notices.json)
   ============================================================================ */
.alert-banner {
    background: linear-gradient(135deg, #ff6b35, #ff9900);
    color: white;
    padding: 12px 50px 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.alert-banner .alert-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.alert-banner .alert-message {
    text-align: center;
    line-height: 1.4;
}

.alert-banner .alert-dismiss {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
    padding: 5px 10px;
    line-height: 1;
}

.alert-banner .alert-dismiss:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Alert banner type variations */
.alert-banner.alert-warning {
    background: linear-gradient(135deg, #ff6b35, #ff9900);
}

.alert-banner.alert-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.alert-banner.alert-critical {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

/* Responsive alert banner */
@media (max-width: 768px) {
    .alert-banner {
        padding: 10px 40px 10px 15px;
        font-size: 0.85rem;
    }
    
    .alert-banner .alert-dismiss {
        right: 10px;
        font-size: 1.3rem;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f1729;
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 200;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 30px;
    gap: 20px;
    position: relative;
}

.title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 132px;
    height: 132px;
    object-fit: contain;
}

.title-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #232f3e;
    text-align: center;
    margin: 0;
    background: linear-gradient(135deg, #0f1729, #1a8caa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 2px solid rgba(255, 153, 0, 0.35);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    position: absolute;
    top: 24px;
    right: 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    z-index: 60;
}

.nav-toggle:focus-visible {
    outline: 3px solid rgba(255, 153, 0, 0.4);
    outline-offset: 2px;
}

.nav-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    border-color: rgba(255, 153, 0, 0.6);
}

.nav-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #232f3e;
}

.nav-toggle-icon i {
    line-height: 1;
}

.nav-toggle-icon .fa-xmark {
    display: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #666;
    background: rgba(255, 255, 255, 0.7);
}

.nav-link:hover {
    background: rgba(255, 153, 0, 0.1);
    color: #ff9900;
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #ff9900, #ff6b35);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.header.nav-open .nav-toggle-icon .fa-bars {
    display: none;
}

.header.nav-open .nav-toggle-icon .fa-xmark {
    display: inline-block;
}

.user-info {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 10;
}

.nav-user {
    display: none;
}

.student-input {
    padding: 12px 20px;
    border: 2px solid #ff6b6b;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    width: 200px;
    transition: all 0.3s ease;
    display: none; /* Hidden by default, only shown for admin */
    /* Position in top-left corner */
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.student-input:focus {
    outline: none;
    border-color: #ff9900;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

/* Main content */
.main-content {
    margin-top: 30px;
}

/* Workshop sections */
.workshop-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #232f3e;
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
    z-index: 50;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9900, #ff6b35);
}

.workshops-grid {
    row-gap: 50px;
    column-gap: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 20px 0;
}

/* Workshop cards */
.workshop-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    max-width: 400px;
    justify-self: center;
    display: flex;
    flex-direction: column;
}

.workshop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9900, #ff6b35);
}

.workshop-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-icon {
    width: 60px;
    min-width: 60px;
    height: 60px;
    min-height: 60px;
    background: linear-gradient(135deg, #0f1729, #1a2744);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Quiz card special styling */
.workshop-card[data-workshop="awssaquiz_level1"] .card-icon,
.workshop-card[data-workshop="awssaquiz_level2"] .card-icon,
.workshop-card[data-workshop="awssaquiz_level3"] .card-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(243, 156, 18, 0.8);
    }
}

.workshop-card[data-workshop="awssaquiz_level1"] .card-header h3,
.workshop-card[data-workshop="awssaquiz_level2"] .card-header h3,
.workshop-card[data-workshop="awssaquiz_level3"] .card-header h3 {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.workshop-card[data-workshop="awssaquiz_level1"]::before,
.workshop-card[data-workshop="awssaquiz_level2"]::before,
.workshop-card[data-workshop="awssaquiz_level3"]::before {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

/* Wrap Up Quiz Level 2 - Same styling as Level 1 */
.workshop-card[data-workshop="wrapupquiz_level2"] .card-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    animation: pulse-glow 2s ease-in-out infinite;
}

.workshop-card[data-workshop="wrapupquiz_level2"] .card-header h3 {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.workshop-card[data-workshop="wrapupquiz_level2"]::before {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #232f3e;
}

.card-body {
    margin-bottom: 25px;
    flex: 1;
}

.card-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #45a049);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #888;
}

.card-footer {
    display: flex;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff9900, #ff6b35);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 153, 0, 0.3);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-success {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.3);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0f1729, #1a2744);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: white;
    float: right;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
}

/* Remove top margin from first heading in modal body */
.modal-body h1:first-child,
.modal-body h2:first-child,
.modal-body h3:first-child,
.modal-body h4:first-child {
    margin-top: 0 !important;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

/* Progress modal */
.progress-container {
    text-align: center;
    margin-bottom: 30px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff9900;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.step.active {
    background: linear-gradient(135deg, #ff9900, #ff6b35);
    color: white;
}

.step.completed {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.step i {
    font-size: 1.2rem;
    width: 20px;
}

/* Success modal */
.success-content {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 20px;
}

.workshop-details {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
}

.workshop-details h3 {
    margin-bottom: 15px;
    color: #232f3e;
}

.access-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.instructions {
    text-align: left;
    margin: 25px 0;
}

.instructions h3 {
    margin-bottom: 15px;
    color: #232f3e;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.workshop-instructions {
    text-align: left;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
}

.workshop-instructions h3 {
    margin-bottom: 15px;
    color: #232f3e;
}

#instructionsContent {
    line-height: 1.6;
    color: #555;
}

#instructionsContent h1,
#instructionsContent h2,
#instructionsContent h3 {
    color: #232f3e;
    margin: 20px 0 10px 0;
}

#instructionsContent h1 {
    font-size: 1.5rem;
}

#instructionsContent h2 {
    font-size: 1.3rem;
}

#instructionsContent h3 {
    font-size: 1.1rem;
}

#instructionsContent p {
    margin-bottom: 15px;
}

#instructionsContent ul,
#instructionsContent ol {
    margin: 15px 0;
    padding-left: 25px;
}

#instructionsContent li {
    margin-bottom: 8px;
}

#instructionsContent code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

#instructionsContent pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
}

#instructionsContent pre code {
    background: none;
    padding: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        padding: 30px 20px;
        gap: 25px;
    }
    
    .title-section h1 {
        font-size: 2.5rem;
    }
    
    .logo-image {
        width: 100px;
        height: 100px;
    }
    
    .student-input {
        width: 100%;
        max-width: 300px;
    }
    
    .workshops-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .workshop-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .access-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 992px) {
    .header-content {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "title toggle"
            "quote quote"
            "user user";
        padding: 20px 24px 18px;
        gap: 12px;
        align-items: center;
    }

    .title-section {
        grid-area: title;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
    }

    .logo-image {
        width: 52px;
        height: 52px;
    }

    .title-section h1 {
        font-size: 1.6rem;
        text-align: left;
    }

    .nav-toggle {
        grid-area: toggle;
        display: inline-flex;
        position: static;
        justify-self: end;
        align-self: center;
        margin-right: 2px;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 14px);
        right: 0px;
        width: min(320px, 90vw);
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 0;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
        opacity: 0;
        transform: translateX(16px);
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.25s ease;
        z-index: 500;
    }

    .header.nav-open .main-nav {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
        padding: 12px 10px;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .user-info {
        display: none;
    }

    .nav-user {
        display: none;
    }

    .quote-banner {
        grid-area: quote;
        padding: 4px 6px 2px;
        display: none;
    }

    .user-info {
        grid-area: user;
        justify-content: flex-start;
    }
}

/* ============================================================================
   GLOBAL LOADER OVERLAY
   ============================================================================ */

.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.global-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.loader-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 50px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.loader-content .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff9900;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* ============================================================================
   ENHANCED MOBILE RESPONSIVE STYLES
   ============================================================================ */

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .header {
        border-radius: 15px;
        margin-bottom: 20px;
    }

    .header-content {
        padding: 20px 15px;
        gap: 15px;
    }

    .title-section h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .logo-image {
        width: 70px;
        height: 70px;
    }

    /* Navigation on mobile */
    .main-nav {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        justify-content: center;
    }

    .nav-link {
        padding: 8px 14px;
        font-size: 0.8rem;
        gap: 5px;
        flex: 0 0 auto;
    }

    .nav-link i {
        font-size: 0.85rem;
    }

    /* Workshop cards on mobile */
    .workshops-grid {
        gap: 15px;
    }

    .workshop-card {
        padding: 15px;
    }

    .workshop-card .card-header h3 {
        font-size: 1rem;
    }

    .workshop-card .card-body p {
        font-size: 0.85rem;
    }

    .workshop-card .provision-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    /* Modals on mobile */
    .modal-content {
        width: 98%;
        margin: 5% auto;
        border-radius: 15px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-footer {
        padding: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .modal-footer .btn {
        flex: 1 1 100%;
    }

    /* Buttons on mobile */
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    /* Global loader on mobile */
    .loader-content {
        padding: 20px 30px;
        margin: 0 15px;
    }

    .loader-content .spinner {
        width: 40px;
        height: 40px;
    }

    .loader-text {
        font-size: 14px;
    }

    /* Admin tools section */
    .admin-tools-section .workshops-grid {
        grid-template-columns: 1fr;
    }
}

/* Medium mobile devices */
@media (max-width: 768px) and (min-width: 481px) {
    .header-content {
        padding: 25px 20px;
        gap: 20px;
    }

    .title-section h1 {
        font-size: 2.2rem;
    }

    .logo-image {
        width: 90px;
        height: 90px;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-link {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Touch-friendly styles for all mobile */
@media (max-width: 768px) {
    /* Increase tap targets */
    .btn, 
    .nav-link, 
    .bootcamp-tab,
    .workshop-card .provision-btn {
        min-height: 44px;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    .container {
        overflow-x: hidden;
    }

    /* Better scrolling on modals */
    .modal-body {
        max-height: 60vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Success modal improvements */
    .access-item {
        padding: 15px;
    }

    .access-item .btn {
        width: 100%;
        justify-content: center;
    }

    /* Form inputs */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 12px;
    }

    /* Tables on mobile - horizontal scroll */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Week sections spacing */
    .week-section {
        margin-bottom: 25px;
    }

    /* Flex items don't overflow */
    .workshops-grid {
        grid-template-columns: 1fr;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        margin: 2% auto;
        max-height: 90vh;
    }

    .modal-body {
        max-height: 50vh;
    }

    .header-content {
        padding: 15px 20px;
        flex-direction: row;
        justify-content: space-between;
    }

    .title-section {
        flex-direction: row;
        gap: 15px;
    }

    .logo-image {
        width: 60px;
        height: 60px;
    }

    .title-section h1 {
        font-size: 1.5rem;
    }
}

/* ============================================================================
   FOOTER STYLES
   ============================================================================ */

.site-footer {
    background: #2D3445;
    color: #ffffff;
    padding: 0;
    margin-top: 60px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #636C82;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 30px 30px;
}

/* Footer Main - Multi-column layout */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand Column */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a8caa, #2cb5d6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.footer-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-tagline {
    font-size: 0.95rem;
    color: #8b949e;
    line-height: 1.6;
}

/* Brand Ecosystem Box */
.brand-ecosystem {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.ecosystem-label {
    font-size: 0.75rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ecosystem-links {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;
}

.ecosystem-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #58a6ff;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.ecosystem-link:hover {
    color: #79c0ff;
}

.ecosystem-link i {
    font-size: 0.85rem;
    width: 16px;
}

/* About Us Link in Brand Column */
.brand-about {
    margin-top: 5px;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8b949e;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.about-link:hover {
    color: #1a8caa;
}

.about-link i {
    font-size: 0.9rem;
    width: 18px;
}

/* Footer Link Columns */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-col-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: #8b949e;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover {
    color: #1a8caa;
}

.footer-link i {
    font-size: 1rem;
    width: 20px;
}

.footer-link svg {
    flex-shrink: 0;
}

/* Footer Bottom - Copyright + Patent Notice */
.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding-top: 25px;
    text-align: center;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #6e7681;
    margin: 0;
}

.footer-patent-notice {
    font-size: 0.75rem;
    color: #6e7681;
    margin: 0;
    font-style: italic;
}

/* ============================================================================
   PATENT PENDING PILL — Inline pill badge next to section titles with tooltip
   ============================================================================ */
/* The wrapper span sits inside the h2.section-title (which has text-align:center).
   It's inline-block so it shrinks to the title text width, stays centered,
   and serves as a positioning context for the absolutely-placed pill. */
.leaderboard-title-wrapper {
    position: relative;
    display: inline-block;
    z-index: 100;
}

.leaderboard-title-text {
    /* inherits section-title styling naturally */
}

.patent-pending-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.42em;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #e0e6ed;
    background: #0f1729;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 4px 12px;
    border-radius: 14px;
    vertical-align: middle;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: absolute;
    left: 100%;
    margin-left: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: default;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
    /* Override gradient text-fill inherited from .section-title */
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: #e0e6ed;
    background-clip: border-box;
}

.patent-pending-pill:hover {
    background: #1a2744;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 12px rgba(26, 140, 170, 0.25);
}

/* Tooltip container — hidden by default, shown on pill hover */
.patent-pending-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 340px;
    max-width: 90vw;
    background: #1a1f2e;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 18px 20px;
    z-index: 9999;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    text-align: left;
    cursor: default;
    /* Reset inherited styles */
    font-size: 13px;
    letter-spacing: normal;
    text-transform: none;
    font-weight: 400;
    /* Ensure text wraps properly */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Arrow pointing up from tooltip */
.patent-pending-tooltip::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #1a1f2e;
    border-left: 1px solid rgba(255, 215, 0, 0.3);
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}

.patent-pending-pill:hover .patent-pending-tooltip {
    display: block;
}

.patent-pending-tooltip-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 10px;
    line-height: 1.3;
    -webkit-text-fill-color: #ffd700;
    white-space: normal;
}

.patent-pending-tooltip-body {
    display: block;
    font-size: 0.82rem;
    color: #c9d1d9;
    line-height: 1.55;
    font-weight: 400;
    -webkit-text-fill-color: #c9d1d9;
    white-space: normal;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand-col {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-content {
        padding: 40px 20px 25px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-brand-col {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
