/* Updated Registration Button - Larger and More Prominent */

        
.registerx-btn {
    background: #003366;
    width: 100%;
    padding: 18px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 20px;
    letter-spacing: 0.5px;
    border-radius: 60px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

 

.registerx-btn:hover {
    background: #002450;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.3);
}

.registerx-btn:active {
    transform: translateY(0);
}

.registerx-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* For extra large screens */
@media (min-width: 1024px) {
    .registerx-btn {
        padding: 20px 32px;
        font-size: 1.2rem;
    }
}

/* For tablets */
@media (max-width: 768px) {
    .registerx-btn {
        padding: 16px 24px;
        font-size: 1rem;
    }
}

/* For mobile phones */
@media (max-width: 480px) {
    .registerx-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

        /* Form Loading State */
        .btn-loading {
            opacity: 0.7;
            cursor: not-allowed;
            pointer-events: none;
        }

        .btn-loading i {
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }


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

        body {
            font-family: 'Inter', sans-serif;
            background-color: #f8fafc;
            color: #0f172a;
            line-height: 1.5;
            scroll-behavior: smooth;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
        }


        /* ----- OFFICIAL HEADER (Blue tone) ----- */
        .official-header {
            background: #003366;
            color: white;
            padding: 12px 0;
            border-bottom: 2px solid #ff0000;
        }

        .header-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 16px;
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .logo-left, .logo-right {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
        }

        .logo-placeholder {
            background: rgba(255,255,255,0.15);
            border-radius: 12px;
            padding: 8px 16px;
            font-weight: 700;
            font-size: 0.9rem;
            backdrop-filter: blur(2px);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .logo-placeholder img {
            max-width: 60px;
            height: auto;
        }

        .center-text {
            text-align: center;
            font-size: 0.85rem;
            font-weight: 500;
            line-height: 1.4;
            letter-spacing: 0.3px;
            flex: 1;
        }

        .center-text .swahili h1 {
            font-size: 1.9rem;
            margin: 0;
        }

        .center-text h2 {
            font-size: 1.2rem;
            margin: 4px 0;
        }

        /* Top Bar */
        .top-bar {
            background: #002856;
            color: white;
            font-size: 0.85rem;
            padding: 10px 0;
        }

        .top-bar .container {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
        }

        .contact-info {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .contact-info span {
            margin-right: 0;
            white-space: nowrap;
        }

        .contact-info i, .social-links i {
            margin-right: 6px;
        }

        .social-links {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .social-links a {
            color: white;
            margin-left: 0;
            transition: opacity 0.2s;
        }

        /* Main Navigation */
        .main-nav {
            background: white;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid #e2e8f0;
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            padding: 16px 24px;
            max-width: 1280px;
            margin: 0 auto;
            gap: 16px;
        }

        .logo h1 {
            font-size: 1.7rem;
            font-weight: 800;
            color: #003366;
            letter-spacing: -0.5px;
        }

        .logo span {
            font-weight: 400;
            color: #ff0000;
        }

        .nav-links {
            display: flex;
            gap: 28px;
            list-style: none;
            flex-wrap: wrap;
        }

        .nav-links a {
            text-decoration: none;
            font-weight: 600;
            color: #1e293b;
            transition: color 0.2s;
        }

        .nav-links a:hover, .nav-links a.active {
            color: #ff0000;
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(105deg, #003366 0%, #1a4a7a 100%);
            color: white;
            padding: 50px 0 60px;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: "🏃‍♂️🏃‍♀️";
            font-size: 180px;
            opacity: 0.06;
            position: absolute;
            bottom: -40px;
            right: -20px;
            pointer-events: none;
        }

        .hero-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 40px;
        }

        .hero-text {
            flex: 1;
            min-width: 280px;
        }

        .hero-text .tag {
            background: #ff0000;
            display: inline-block;
            padding: 6px 18px;
            border-radius: 40px;
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 1px;
            margin-bottom: 20px;
        }

        .hero-text h1 {
            font-size: 2.8rem;
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 20px;
        }

        .hero-text p {
            font-size: 1.1rem;
            opacity: 0.9;
            max-width: 550px;
            margin-bottom: 32px;
        }

        .btn-group {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
        }

        .btn {
            display: inline-block;
            padding: 12px 28px;
            border-radius: 60px;
            text-decoration: none;
            font-weight: 700;
            transition: all 0.25s;
            border: none;
            cursor: pointer;
            text-align: center;
        }

        .btn-primary {
            background: #ff0000;
            color: white;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

        .btn-primary:hover {
            background: #cf711f;
            transform: translateY(-2px);
        }

        .btn-outline-light {
            background: transparent;
            border: 2px solid white;
            color: white;
        }

        .btn-outline-light:hover {
            background: white;
            color: #003366;
        }

        .hero-stats {
            flex: 0.8;
            min-width: 280px;
            background: rgba(255,255,255,0.12);
            backdrop-filter: blur(4px);
            border-radius: 48px;
            padding: 25px 20px;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        .stat {
            text-align: center;
        }

        .stat-number {
            font-size: 1.8rem;
            font-weight: 800;
            display: block;
        }

        .stat-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            opacity: 0.8;
        }

        /* Sections */
        .section {
            padding: 50px 0;
        }

        .section-title {
            text-align: center;
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 16px;
            color: #003366;
        }

        .section-sub {
            text-align: center;
            color: #475569;
            max-width: 700px;
            margin: 0 auto 40px auto;
            padding: 0 16px;
        }

        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
        }

        .card {
            background: white;
            border-radius: 28px;
            padding: 28px 20px;
            box-shadow: 0 12px 28px rgba(0,0,0,0.05);
            transition: all 0.25s;
            text-align: center;
            border: 1px solid #eef2ff;
        }

        .card:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 30px rgba(0,0,0,0.08);
        }

        .card-icon {
            font-size: 2.5rem;
            color: #ff0000;
            margin-bottom: 16px;
        }

        .card h3 {
            font-size: 1.3rem;
            margin-bottom: 12px;
            color: #0f172a;
        }

        .card p {
            color: #475569;
            margin-bottom: 20px;
            font-size: 0.95rem;
        }

        .route-map {
            background: #f1f5f9;
            border-radius: 32px;
            margin-top: 40px;
            padding: 24px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 24px;
        }

        .map-placeholder {
            background: #e2e8f0;
            border-radius: 24px;
            min-height: 200px;
            flex: 1.2;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            color: #334155;
            font-weight: 500;
            padding: 20px;
            text-align: center;
        }

        .route-details {
            flex: 1;
        }

        /* Schedule Table - Fixed width issue */
        .schedule-wrapper {
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .schedule-table {
            width: 100%;
            background: white;
            border-radius: 28px;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0,0,0,0.05);
            border-collapse: collapse;
        }

        .schedule-table th {
            background: #003366;
            color: white;
            padding: 14px 16px;
            text-align: left;
            font-weight: 700;
            font-size: 0.9rem;
        }

        .schedule-table td {
            padding: 12px 16px;
            border-bottom: 1px solid #e9e6dd;
            font-size: 0.9rem;
        }

        /* Registration Box */
        .registration-box {
            background: white;
            border-radius: 28px;
            padding: 28px 20px;
            box-shadow: 0 20px 35px rgba(0,0,0,0.05);
            max-width: 800px;
            margin: 0 auto;
        }

        .form-row {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 20px;
        }

        .form-group {
            flex: 1;
            min-width: 100%;
        }

        label {
            display: block;
            font-weight: 600;
            margin-bottom: 8px;
            font-size: 0.9rem;
        }

        input, select {
            width: 100%;
            padding: 12px 16px;
            border-radius: 40px;
            border: 1px solid #cbd5e1;
            font-family: inherit;
            background: #ffffff;
            transition: 0.2s;
            font-size: 0.95rem;
        }

        input:focus, select:focus {
            outline: none;
            border-color: #ff0000;
            box-shadow: 0 0 0 3px rgba(230,126,34,0.2);
        }

        /* File upload styling */
        .file-upload-wrapper {
            position: relative;
            width: 100%;
        }

        .file-upload-wrapper input[type="file"] {
            padding: 10px 12px;
            border-radius: 40px;
            background: #f8fafc;
            cursor: pointer;
            font-size: 0.85rem;
        }

        .file-hint {
            font-size: 0.7rem;
            color: #64748b;
            margin-top: 6px;
            display: block;
        }

        .register-btn {
            background: #003366;
            width: 100%;
            padding: 14px;
            font-size: 1rem;
            margin-top: 12px;
        }

        .register-btn:hover {
            background: #002450;
        }

        footer {
            background: #0f172a;
            color: #cbd5e6;
            padding: 40px 0 20px;
            margin-top: 40px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 32px;
            margin-bottom: 32px;
        }

        .footer-col h4 {
            color: white;
            margin-bottom: 16px;
            font-size: 1.1rem;
        }

        .footer-col p, .footer-col a {
            color: #cbd5e6;
            text-decoration: none;
            line-height: 1.6;
            font-size: 0.85rem;
        }

        .footer-bottom {
            border-top: 1px solid #2d3a4b;
            padding-top: 20px;
            text-align: center;
            font-size: 0.8rem;
        }

        /* ===== ENHANCED MOBILE RESPONSIVENESS ===== */
        @media (min-width: 640px) {
            .form-group {
                min-width: 180px;
            }
            
            .hero-stats {
                grid-template-columns: repeat(4, 1fr);
            }
            
            .hero-text h1 {
                font-size: 3.2rem;
            }
            
            .registration-box {
                padding: 40px;
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 16px;
            }
            
            .header-container {
                flex-direction: column;
                text-align: center;
                gap: 12px;
            }
            
            .logo-left, .logo-right {
                justify-content: center;
            }
            
            .logo-placeholder img {
                max-width: 50px;
            }
            
            .center-text .swahili h1 {
                font-size: 1rem;
            }
            
            .center-text h2 {
                font-size: 0.85rem;
            }
            
            .top-bar .container {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
            
            .contact-info {
                justify-content: center;
            }
            
            .social-links {
                justify-content: center;
            }
            
            .nav-container {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
            
            .nav-links {
                justify-content: center;
                gap: 16px;
            }
            
            .nav-links li a {
                font-size: 0.9rem;
            }
            
            .hero {
                padding: 40px 0 50px;
            }
            
            /* CENTER HERO CONTENT ON MOBILE */
            .hero-content {
                flex-direction: column;
                text-align: center;
                justify-content: center;
                align-items: center;
            }
            
            .hero-text {
                text-align: center;
                display: flex;
                flex-direction: column;
                align-items: center;
            }
            
            .hero-text h1 {
                font-size: 2rem;
                text-align: center;
            }
            
            .hero-text p {
                font-size: 1rem;
                text-align: center;
                margin-left: auto;
                margin-right: auto;
            }
            
            .btn-group {
                justify-content: center;
            }
            
            .hero-stats {
                grid-template-columns: repeat(2, 1fr);
                padding: 20px;
                width: 100%;
                justify-items: center;
            }
            
            .stat-number {
                font-size: 1.5rem;
            }
            
            .stat-label {
                font-size: 0.7rem;
            }
            
            .btn {
                padding: 10px 20px;
                font-size: 0.9rem;
            }
            
            .section {
                padding: 40px 0;
            }
            
            .section-title {
                font-size: 1.6rem;
            }
            
            .section-sub {
                font-size: 0.9rem;
                margin-bottom: 30px;
            }
            
            .cards-grid {
                gap: 20px;
            }
            
            .card {
                padding: 24px 16px;
            }
            
            .card h3 {
                font-size: 1.2rem;
            }
            
            .card p {
                font-size: 0.85rem;
            }
            
            /* FIX SCHEDULE SECTION - Convert table to block/cards on mobile */
            .schedule-wrapper {
                overflow-x: auto;
                margin: 0 -8px;
                padding: 0 8px;
            }
            
            .schedule-table {
                width: 100%;
                min-width: 100%;
                font-size: 0.85rem;
            }
            
            .schedule-table th,
            .schedule-table td {
                padding: 10px 12px;
                white-space: normal;
                word-break: break-word;
            }
            
            .route-map {
                padding: 20px;
                text-align: center;
                flex-direction: column;
            }
            
            .map-placeholder {
                min-height: 180px;
                width: 100%;
            }
            
            .route-details {
                text-align: center;
                width: 100%;
            }
            
            .route-details ul {
                text-align: left;
                display: inline-block;
            }
            
            .route-details h3 {
                font-size: 1.2rem;
            }
            
            .route-details ul li {
                font-size: 0.85rem;
            }
            
            .registration-box {
                padding: 24px 16px;
            }
            
            .footer-grid {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 24px;
            }
            
            .footer-col h4 {
                font-size: 1rem;
            }
        }

        @media (max-width: 480px) {
            .hero-text h1 {
                font-size: 1.6rem;
            }
            
            .hero-stats {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }
            
            .stat-number {
                font-size: 1.2rem;
            }
            
            .btn-group {
                flex-direction: column;
                width: 100%;
            }
            
            .btn {
                width: 100%;
                text-align: center;
            }
            
            .nav-links {
                gap: 12px;
            }
            
            .nav-links li a {
                font-size: 0.8rem;
            }
            
            .logo h1 {
                font-size: 1.3rem;
            }
            
            .section-title {
                font-size: 1.4rem;
            }
            
            input, select {
                padding: 10px 14px;
                font-size: 0.9rem;
            }
            
            /* Schedule table adjustments for very small screens */
            .schedule-table th,
            .schedule-table td {
                padding: 8px 10px;
                font-size: 0.75rem;
            }
        }