/* ==========================================================================
   NAO SENA MEDAL EXPLORER STYLES
   ========================================================================== */

.nsm-page-body {
    background-color: var(--bg-dark-deep, #090D16);
    color: var(--text-light, #F8FAFC);
    font-family: var(--font-body, 'Outfit', sans-serif);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.light-theme.nsm-page-body {
    background-color: #F8FAFC;
    color: #0F172A;
}

.nsm-main {
    padding-top: var(--navbar-height, 80px);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.section-heading {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--saffron, #FF9933) 0%, var(--gold, #FFB01F) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-intro {
    max-width: 800px;
    margin: -1rem auto 2rem;
    text-align: center;
    color: var(--text-muted, #94A3B8);
}

.glass-card {
    background: var(--bg-dark-card, rgba(30, 41, 59, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius-lg, 18px);
    padding: 1.75rem;
    transition: var(--transition-smooth, all 0.4s ease);
}

.light-theme .glass-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.nsm-hero {
    padding: 4rem 1.5rem 3rem;
    background: linear-gradient(180deg, rgba(9, 13, 22, 0.9) 0%, rgba(8, 24, 48, 0.95) 100%),
                radial-gradient(circle at 50% 20%, rgba(56, 130, 246, 0.22) 0%, transparent 60%);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.light-theme .nsm-hero {
    background: linear-gradient(180deg, #DBEAFE 0%, #FFFFFF 100%);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.nsm-hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.nsm-hero-kicker {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    background: rgba(56, 130, 246, 0.15);
    color: #60A5FA;
    border: 1px solid rgba(56, 130, 246, 0.35);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.nsm-hero-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #60A5FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.light-theme .nsm-hero-title {
    background: linear-gradient(135deg, #0F172A 0%, #2563EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nsm-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted, #94A3B8);
    margin-bottom: 2rem;
}

.nsm-hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.nsm-badge {
    padding: 0.5rem 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    font-size: 0.9rem;
}

.light-theme .nsm-badge {
    background: #FFFFFF;
    border-color: #E2E8F0;
    color: #1E293B;
}

/* Tab Navigation */
.nsm-tab-nav {
    position: sticky;
    top: var(--navbar-height, 80px);
    z-index: 90;
    background: rgba(9, 13, 22, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}

.light-theme .nsm-tab-nav {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.tab-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    gap: 0.5rem;
}

.tab-btn {
    padding: 0.6rem 1.2rem;
    background: none;
    border: none;
    color: var(--text-muted, #94A3B8);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 8px;
    transition: var(--transition-snappy, all 0.2s ease);
}

.tab-btn:hover,
.tab-btn.active {
    color: #FFFFFF;
    background: #2563EB;
}

.light-theme .tab-btn.active {
    color: #FFFFFF;
}

/* Sections Toggle */
.nsm-section {
    display: none;
}

.nsm-section.active {
    display: block;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.eligibility-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.eligibility-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.light-theme .eligibility-list li {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.eligibility-list li:last-child {
    border-bottom: none;
}

/* Process steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.step {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.step-num {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    background: #2563EB;
    color: #FFFFFF;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Timeline Controls & Table */
.timeline-controls {
    margin-bottom: 1.5rem;
}

#recipient-search {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 0.95rem;
}

.light-theme #recipient-search {
    background: #FFFFFF;
    border-color: #CBD5E1;
    color: #0F172A;
}

.recipients-table-container {
    overflow-x: auto;
}

.recipients-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.recipients-table th,
.recipients-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.light-theme .recipients-table th,
.light-theme .recipients-table td {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.recipients-table th {
    color: #60A5FA;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.awardees-note {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted, #94A3B8);
    text-align: center;
}

/* Timeline List */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 820px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.timeline-badge {
    flex-shrink: 0;
    min-width: 84px;
    text-align: center;
    padding: 0.5rem 0.75rem;
    background: rgba(56, 130, 246, 0.15);
    color: #60A5FA;
    border: 1px solid rgba(56, 130, 246, 0.35);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.timeline-content {
    flex: 1;
    padding: 1.25rem 1.5rem;
}

.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.timeline-content p {
    margin: 0;
    color: var(--text-muted, #94A3B8);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.gallery-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted, #94A3B8);
}

.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted, #94A3B8);
    font-size: 0.88rem;
}

@media (max-width: 768px) {
    .nsm-hero-title {
        font-size: 2.25rem;
    }
    .section-heading {
        font-size: 1.75rem;
    }
    .timeline-item {
        flex-direction: column;
        gap: 0.5rem;
    }
}
