/* assets/css/application.css */
/* ===== HEADER STYLES - FIX OVERLAP ===== */
.site-header {
    background: #003366;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    width: 100%;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo-area img {
    height: 70px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.site-title {
    line-height: 1.2;
}

.site-title h1 {
    font-size: 1.3rem;
    margin: 0;
    color: white;
    white-space: nowrap;
}

.site-title p {
    margin: 3px 0 0;
    font-size: 0.85rem;
    opacity: 0.9;
    white-space: nowrap;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    background: #004c99;
}

.main-nav a.active {
    border-bottom: 3px solid #ffd700;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* Responsive Header */
@media (max-width: 1024px) {
    .site-title h1 {
        font-size: 1.1rem;
    }
    
    .site-title p {
        font-size: 0.75rem;
    }
    
    .main-nav a {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }
    
    .main-nav.show {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .main-nav a {
        padding: 12px 15px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: left;
    }
    
    .logo-area {
        flex: 1;
    }
    
    .logo-area img {
        height: 50px;
    }
    
    .site-title h1 {
        font-size: 1rem;
        white-space: normal;
    }
    
    .site-title p {
        white-space: normal;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f4f7f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
.site-header {
    background: #003366; /* FTH Gombe blue */
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-area img {
    height: 60px;
    width: auto;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.main-nav a:hover {
    background: #004c99;
}

/* Form styles */
.application-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.form-section h2 {
    color: #003366;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #003366;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 5px rgba(0,51,102,0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #004c99;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Alert messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.site-footer {
    background: #003366;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* Table styles (for admin) */
.data-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th {
    background: #003366;
    color: white;
    padding: 12px;
    text-align: left;
}

.data-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.data-table tr:hover {
    background: #f5f5f5;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}


/* Add to your existing application.css */

/* Header & Navigation enhancements */
.site-header {
    background: #003366;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-area img {
    height: 70px;
    width: auto;
}

.site-title h1 {
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

.site-title p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 500;
    display: block;
}

.main-nav a:hover,
.main-nav a.active {
    background: #004c99;
}

.main-nav a.active {
    border-bottom: 3px solid #ffd700;
}

.admin-link a {
    background: #dc3545;
}

.admin-link a:hover {
    background: #c82333;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}


/* Cards for courses, tutors, etc. */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    color: #003366;
    margin-bottom: 10px;
}

/* Footer enhancements */
.site-footer {
    background: #002244;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-section h3 {
    color: #ffd700;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ffd700;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #ffd700;
    color: #002244;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 20px;
    }
    
    .main-nav.show {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav a {
        padding: 15px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .logo-area {
        flex: 1;
    }
    
    .site-title h1 {
        font-size: 1.2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

