@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,800&display=swap');

:root {
    --bg-dark: #070d19;
    --bg-card: #131b2f;
    --primary-orange: #ff5e14;
    --primary-blue: #0d6efd;
    --text-light: #ffffff;
    --text-muted: #a0a5b1;
    --border-color: #2a3143;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Header & Nav */
header {
    background: #fdfdfd;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #689f38;
    height: 70px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-style: italic;
    color: #333;
    line-height: 1;
}

.logo i {
    color: var(--primary-orange);
    font-size: 36px;
}

.logo div {
    font-size: 24px;
    display: flex;
    flex-direction: column;
}

.logo span {
    color: var(--primary-orange);
    font-size: 14px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links li a {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    padding: 0 15px;
    height: 70px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    color: #558b2f;
}

.colorful-nav a.nav-home.active { 
    background: #689f38; 
    color: #fff !important; 
    border-radius: 8px;
}
.colorful-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
}
.colorful-nav li a i {
    font-size: 18px;
    margin-bottom: 2px;
}
.colorful-nav a.nav-events:hover { color: #558b2f; }
.colorful-nav a.nav-about:hover { color: #558b2f; }
.colorful-nav a.nav-results:hover { color: #558b2f; }
.colorful-nav a.nav-gallery:hover { color: #558b2f; }
.colorful-nav a.nav-contact:hover { color: #558b2f; }

/* Quick Links Icon Bar */
.quick-links-bar {
    display: flex;
    width: 100%;
    background: #689f38;
    flex-wrap: nowrap;
}
.ql-box {
    flex: 1;
    text-align: center;
    color: white;
    text-decoration: none;
    padding: 30px 10px;
    border-right: 1px solid rgba(255,255,255,0.2);
    transition: background 0.3s;
}
.ql-box:last-child {
    border-right: none;
}
.ql-box:hover {
    background: #558b2f;
}
.ql-icon {
    width: 50px;
    height: 50px;
    background: white;
    color: #689f38;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 15px;
}
.ql-box span {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    display: block;
}

@media (max-width: 768px) {
    .quick-links-bar {
        flex-wrap: wrap;
    }
    .ql-box {
        flex: 1 1 33.33%;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    .ql-box:nth-child(3n) {
        border-right: none;
    }
}
@media (max-width: 480px) {
    .ql-box {
        flex: 1 1 50%;
    }
    .ql-box:nth-child(even) {
        border-right: none;
    }
}

.contact-card:hover { transform: translateY(-5px); }

.nav-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ccc;
    color: #333;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: var(--primary-orange);
    color: #fff;
}

.btn-primary:hover {
    background: #e5500d;
}

.btn-cat {
    padding: 8px 30px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    min-height: 45vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #070d19;
}

.hero-slider {
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: transform 1.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-content {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    padding-bottom: 50px;
}

.hero-subtitle {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    
    .hero {
        min-height: 25vh; /* Reduced for mobile so contain works well */
    }

    .hero-title {
        font-size: 3rem;
    }
}

.hero-title {
    font-size: 5.5rem;
    line-height: 0.9;
    margin-bottom: 20px;
    font-style: italic;
    letter-spacing: -2px;
}

.hero-title span {
    color: var(--primary-orange);
}

.hero-desc {
    max-width: 350px;
    color: #cbd0d8;
    margin-bottom: 40px;
    font-size: 1rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Hero Stats Box matching exactly */
.hero-stats-wrapper {
    position: absolute;
    bottom: 50px;
    right: 5%;
    z-index: 10;
}

.hero-stats {
    display: flex;
    background: rgba(19, 27, 47, 0.9);
    backdrop-filter: blur(10px);
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 25px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:first-child {
    padding-left: 0;
}

.stat-item:last-child {
    border-right: none;
    padding-right: 0;
}

.stat-icon {
    width: 35px;
    height: 35px;
    background: var(--primary-orange);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.stat-text h4 {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 3px;
    font-weight: 700;
}

.stat-text p {
    font-weight: 400;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Categories Section */
.categories-section {
    padding: 80px 20px;
    background: #fdfdfd;
    color: #111;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.wing {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wing span {
    height: 3px;
    background: var(--primary-orange);
    border-radius: 2px;
}

.wing-left span:nth-child(1) { width: 30px; margin-left: auto; }
.wing-left span:nth-child(2) { width: 40px; margin-left: auto; }
.wing-left span:nth-child(3) { width: 20px; margin-left: auto; }

.wing-right span:nth-child(1) { width: 30px; }
.wing-right span:nth-child(2) { width: 40px; }
.wing-right span:nth-child(3) { width: 20px; }

.section-title {
    font-size: 2rem;
    color: #070d19;
    font-weight: 800;
    font-style: italic;
    margin: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.category-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    text-align: center;
    padding-bottom: 25px;
    border: 1px solid #eee;
    position: relative;
    --cat-color: #ff5e14;
}

.c-blue { --cat-color: #0d6efd; }
.c-green { --cat-color: #28a745; }
.c-purple { --cat-color: #8a2be2; }
.c-red { --cat-color: #ff3b3b; }

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.img-wrapper {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.img-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0; width: 40%;
    background: linear-gradient(115deg, var(--cat-color) 0%, var(--cat-color) 15%, transparent 15%, transparent 20%, var(--cat-color) 20%, var(--cat-color) 23%, transparent 23%);
    opacity: 0.95;
    z-index: 1;
}

.img-wrapper::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; width: 40%;
    background: linear-gradient(-115deg, var(--cat-color) 0%, var(--cat-color) 15%, transparent 15%, transparent 20%, var(--cat-color) 20%, var(--cat-color) 23%, transparent 23%);
    opacity: 0.95;
    z-index: 1;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-icon {
    width: 45px;
    height: 45px;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    position: absolute;
    left: 20px;
    top: 150px;
    transform: translateY(-50%);
    border: 3px solid #fff;
}

.category-card h3 {
    font-size: 1.1rem;
    color: #111;
    margin-top: 30px;
    margin-bottom: 2px;
    font-weight: 800;
}

.category-card p {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Card Specific Colors */
.c-orange .category-icon { background: #ff5e14; }
.c-blue .category-icon { background: #0d6efd; }
.c-green .category-icon { background: #28a745; }
.c-purple .category-icon { background: #8a2be2; }
.c-red .category-icon { background: #ff3b3b; }

/* Why Join Us */
.features-section {
    background: #070d19;
    padding: 60px 20px;
}

.features-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.features-title {
    width: 200px;
}

.features-title h2 {
    font-size: 1.8rem;
    color: #fff;
}

.features-title hr {
    width: 40px;
    height: 3px;
    background: var(--primary-orange);
    border: none;
    margin-top: 8px;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    font-size: 35px;
    color: var(--primary-orange);
}

.feature-text h4 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 12px;
    color: #cbd0d8;
    line-height: 1.4;
}

/* Forms (Register/Login) */
.form-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    background: linear-gradient(135deg, #0a1329 0%, #070d19 100%);
}

.form-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 2rem;
    color: var(--text-light);
}

.form-header p {
    color: var(--text-muted);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 94, 20, 0.1);
}

select.form-control option {
    background: var(--bg-card);
    color: var(--text-light);
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: var(--success);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: var(--danger);
}

/* Admin Dashboard styling kept as is... */
/* ... omitted unchanged parts to save token space if not required, but I should rewrite it. */

/* Admin Dashboard */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-dark);
}

.sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
    z-index: 10;
}

.sidebar .logo {
    padding: 10px 25px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 15px;
}

.sidebar .logo i {
    color: var(--primary-orange);
    font-size: 32px;
}

.sidebar .logo div {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.sidebar .logo div span {
    color: var(--primary-orange);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-top: 5px;
}

.sidebar-nav {
    flex: 1;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 25px;
    color: #8c98a4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-weight: 500;
    border-left: 4px solid transparent;
    position: relative;
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(255,94,20,0.15) 0%, transparent 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    color: #fff;
    border-left: 4px solid var(--primary-orange);
}

.sidebar-nav a:hover i, .sidebar-nav a.active i {
    color: var(--primary-orange);
}

.sidebar-nav a:hover::before, .sidebar-nav a.active::before {
    width: 100%;
}

.main-content {
    flex: 1;
    padding: 30px 40px;
    background: var(--bg-dark);
    overflow-y: auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background: var(--bg-card);
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.top-bar h2 {
    color: #fff;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.top-bar div {
    color: #8c98a4;
    font-size: 14px;
}

.top-bar div strong {
    color: #fff;
    background: rgba(255,94,20,0.1);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,94,20,0.2);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-card:nth-child(1) .icon { background: rgba(13, 110, 253, 0.1); color: var(--primary-blue); }
.stat-card:nth-child(2) .icon { background: rgba(40, 167, 69, 0.1); color: var(--success); }
.stat-card:nth-child(3) .icon { background: rgba(255, 193, 7, 0.1); color: var(--warning); }
.stat-card:nth-child(4) .icon { background: rgba(220, 53, 69, 0.1); color: var(--danger); }

.stat-card h3 { font-size: 24px; margin-bottom: 5px; }
.stat-card p { color: var(--text-muted); font-size: 14px; }

/* Table */
.data-table-container {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow-x: auto;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.table-header h3 {
    color: #fff;
    font-size: 20px;
    margin: 0;
}

.search-box {
    padding: 10px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    min-width: 250px;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: rgba(255,255,255,0.05);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

th, td {
    padding: 16px 20px;
    text-align: left;
    background: transparent;
}

th {
    color: #8c98a4;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}

tbody tr {
    background: rgba(255,255,255,0.02);
    transition: all 0.3s ease;
}

tbody tr:hover {
    background: rgba(255,255,255,0.05);
    transform: scale(1.005);
}

tbody tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

tbody tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

td {
    font-size: 14px;
    color: #d1d5db;
    border-bottom: none;
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pending { background: rgba(255, 193, 7, 0.1); color: var(--warning); }
.badge-approved { background: rgba(40, 167, 69, 0.1); color: var(--success); }
.badge-rejected { background: rgba(220, 53, 69, 0.1); color: var(--danger); }

.action-btns {
    display: flex;
    gap: 5px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .hero {
        flex-direction: column;
        padding-top: 100px;
    }
    
    .hero::before, .hero-overlay {
        width: 100%;
        clip-path: none;
    }
    
    .hero-content {
        text-align: center;
        padding-top: 50px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-desc {
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats-wrapper {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 30px;
        padding: 20px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 0 0 15px 0;
    }

    .features-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Navbar Responsive is handled in index.html */
    .nav-actions {
        display: none; /* Hide login button on mobile or move it into menu */
    }

    /* Admin Layout Responsive */
    .admin-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
        margin-top: 15px;
    }
    .sidebar-nav a {
        padding: 8px 12px;
        font-size: 14px;
        flex: 1;
        text-align: center;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(1, 1fr);
        max-width: 320px;
        margin: 0 auto;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    .hero-content p {
        font-size: 16px;
    }
}

/* Desktop Sidebar Layout */
@media (min-width: 992px) {
    body {
        padding-left: 100px;
    }
    header {
        width: 100px;
        height: 100vh;
        left: 0;
        top: 0;
        bottom: 0;
        border-bottom: none;
        border-right: 3px solid #689f38;
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    .nav-container {
        flex-direction: column;
        justify-content: flex-start;
        height: 100%;
        padding: 15px 0;
        width: 100%;
    }
    .logo {
        flex-direction: column;
        margin-bottom: 20px;
        text-align: center;
        gap: 5px;
    }
    .logo i { font-size: 28px; margin-bottom: 5px; }
    .logo div { font-size: 14px; line-height: 1.2; display: flex; flex-direction: column; }
    .logo span { font-size: 10px; margin-top: 2px; }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
        flex: 1;
        overflow-y: auto;
    }
    .nav-links::-webkit-scrollbar {
        width: 4px;
    }
    .nav-links::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
    .nav-links li {
        width: 100%;
        height: auto;
        border-bottom: 1px solid #f0f0f0;
    }
    .nav-links li a {
        height: auto;
        padding: 15px 5px;
        width: 100%;
        font-size: 10px;
        border-radius: 0 !important;
    }
    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 10px 10px 0;
        border-top: 1px solid #f0f0f0;
    }
    .btn {
        width: 100%;
        justify-content: center;
        font-size: 10px;
        padding: 10px 5px;
    }
    .btn i { margin-right: 5px; }
    
    .hero, .page-view, section.page-view {
        margin-top: 0 !important;
    }
    #hero-main {
        margin-top: 0 !important;
    }
}

