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

:root {
    --primary-color:#1e40af;      /* Soft Indigo */
    --secondary-color: #059669;    /* Modern Purple */
    --success-color: #f59e0b;      /* Fresh Green */
    --danger-color: #ef4444;       /* Modern Red */
    --warning-color: #10b981;      /* Amber */
    --dark-bg: #0f172a;            /* Deep Navy Gray */
    --light-bg: #f8fafc;           /* Soft Off-White */
    --border-color: #e2e8f0;       /* Cool Light Gray */
    --text-dark: #0f172a;          /* Clean Deep Text */
    --text-light: #64748b;  /* Muted Gray Text */

}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* -------------------------
   Global Navbar Styles
------------------------- */
.navbar {
    width: 100%;
    background: white;
    color: #a9aaaf;
    font-weight: bold;
    padding: 0.5rem 1rem;
    position: relative;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    white-space: nowrap;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 1rem;
}

.user-info {
    padding: 0.1rem 1rem;
    transition: background 0.2s ease;
}

.nav-link {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    padding: 0.1rem 1rem;
    border-radius: 5px;
    transition: background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(79, 70, 229, 0.15);
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 4px 0;
    transition: 0.3s;
}

.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: -3rem auto 3rem;
}

.slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
}

img {
  vertical-align: middle;
  border-radius: 10px;
}

/* Next / previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  user-select: none;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
}

.next { right: 0; }
.prev { left: 0; }

.active {
  background-color: #faf9f9;
}

/* Fade animation */
.fade {
  animation: fadeEffect 1.5s;
}

@keyframes fadeEffect {
  from {opacity: .4}
  to {opacity: 1}
}

/* -------------------------
   Responsive Styles
------------------------- */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        width: 100%;
        display: none;
        margin-top: 0.5rem;
        background: var(--primary-color);
        border-radius: 5px;
        padding: 0.5rem 0;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        color: white;
    }

    .nav-toggle {
        display: flex;
    }

    .logo {
        font-size: 1.2rem;
    }
}


/* Hero Section */
.hero {
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* behind content */
}

.bg-slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-fit: cover; /* keeps aspect ratio and fills container */
    object-position: center; /* center image */

}

.hero-content {
    position: relative;
    z-index: 2; /* front */
    color: white;
    text-align: center;
    padding-top: 10%;
    padding-left: 10px;
    padding-right: 10px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #9333ea;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.full-width {
    width: 100%;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Authentication */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.auth-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-box h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.role-btn {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.role-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

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

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me label {
    margin-bottom: 0;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.close:hover {
    color: var(--text-dark);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* -------------------------
   About Section
------------------------- */
.about,
.how-it-works,
.goals,
.join-adventure,
.game-setup,
.features {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.about h2,
.how-it-works h2,
.goals h2,
.join-adventure h2,
.game-setup h2,
.features h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.about p,
.goals p {
    font-size: 1.2rem;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.8;
}

/* -------------------------
   How It Works / Lists
------------------------- */
.how-it-works ul,
.join-adventure ol,
.game-setup ol {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 1.5rem;
    list-style-position: inside;
    font-size: 1.1rem;
    line-height: 1.8;
}

.how-it-works ul li,
.join-adventure ol li,
.game-setup ol li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

/* -------------------------
   Features / Awards Table
------------------------- */
.features table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
}

.features table th,
.features table td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    font-weight: 500;
}

.features table th {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 1.05rem;
    text-align: center;
}

.features table td {
    background-color: var(--color-white);
    color: var(--color-dark);
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.features table tr:last-child td {
    border-bottom: none;
}

.features table tr:nth-child(even) td {
    background-color: var(--color-light);
}

.features table tr:hover td {
    background-color: #eff6ff; /* Light blue on hover */
}

/* -------------------------
   Modern, Polished Sections
------------------------- */

/* General Section Styles */
section {
    max-width: 1200px;
    margin: 0rem auto;          /* reduced spacing */
    padding: 3rem 2rem;         /* smoother spacing */
    background: #ffffff;        /* clean modern white */
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    height: 100%;
}


section:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

section h2::after {
    display: none; /* removed underline bar */
}

section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-light);
}


/* Lists (How It Works / Steps) */
section ul li,
section ol li {
    background: #ffffff;
    padding: 1.2rem 1.4rem;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    transition: 0.25s ease;
}

section ul li:hover,
section ol li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

/* Remove number decoration circles */
section ul li::before,
section ol li::before {
    display: none;
}


section ul li::before,
section ol li::before {
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 15px;
    top: 15px;
}

/* Features / Awards Table */
.features table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
}

.features table th,
.features table td {
    padding: 1rem 1.5rem;
    text-align: center;
    font-weight: 500;
}

.features table th {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.1rem;
}

.features table td {
    background-color: #ffffff;
    color: var(--text-dark);
    font-size: 1rem;
    transition: background 0.3s ease;
}

.features table tr:nth-child(even) td {
    background-color: #f7f7f7;
}

.features table tr:hover td {
    background-color: #e6e6ff;
}

/* Divider Lines */
.section-divider {
    height: 2px;
    width: 80px;
    background: var(--secondary-color);
    margin: 2rem auto 2.5rem;
    border-radius: 2px;
}

.steps-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

/* Vertical Steps */
.steps-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.step-box {
    display: flex;
    align-items: flex-start;
    background: white;
    width: 100%;
    max-width: 700px;
    padding: 18px 20px;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    gap: 15px;
}

.step-icon {
    font-size: 2rem;
}

.step-content h3 {
    margin: 0 0 5px;
}

.step-line {
    width: 3px;
    height: 40px;
    background: #ff7f50;
    margin: 10px 0;
    border-radius: 10px;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.step-number {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.step-content h3 {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 1rem;
    color: #6b7280; /* Lighter text for detail */
    margin: 0 auto; /* Override previous section p margin */
}

/* Responsive */
@media (max-width: 768px) {

    .steps-container.vertical {
        flex-direction: column;
    }
    
    section h2 {
        font-size: 1.8rem;
    }

    section p {
        font-size: 1rem;
    }

    section ul,
    section ol {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero {
        height: 55vh;
        padding-top: 2rem;
    }

    .features table th,
    .features table td {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }

    .about h2,
    .how-it-works h2,
    .goals h2,
    .join-adventure h2,
    .game-setup h2,
    .features h2 {
        font-size: 1.8rem;
    }

    .about p,
    .goals p,
    .how-it-works ul li,
    .join-adventure ol li,
    .game-setup ol li {
        font-size: 1rem;
    }

    .features table th,
    .features table td {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background-color: var(--light-bg);
    border-bottom: 2px solid var(--border-color);
}

table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

table tbody tr:hover {
    background-color: var(--light-bg);
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.search-bar button {
    white-space: nowrap;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Updated Status Colors */
.status-active {
    background-color: #dcfce7;
    color: #15803d;
}

.status-inactive {
    background-color: #fee2e2;
    color: #b91c1c;
}

.status-pending {
    background-color: #fef3c7;
    color: #b45309;
}

.status-completed {
    background-color: #e0e7ff;
    color: #3730a3;
}