/* ==========================================
   HEADER AND NAVIGATION GRID STYLING
   Applied across all pages for consistent spacing
   ========================================== */

/* Header Top Styling */
.header-top {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-bottom: 30px;
    width: 100%;
}

.header-top h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.header-top h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

/* Navigation Grid Container */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .nav-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}

/* Navigation Card Styling */
.nav-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.nav-card:hover {
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
    text-decoration: none;
    color: #333;
}

/* Active Card State */
.nav-card.active {
    border: 3px solid #667eea;
    opacity: 0.7;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

/* Icon Styling */
.nav-card-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: #667eea;
}

.nav-card.active .nav-card-icon {
    color: #764ba2;
}

/* Card Title */
.nav-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* Main Content Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Responsive adjustments for main container */
@media (max-width: 768px) {
    .main-container {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 15px 10px;
    }
}

/* Header responsive adjustments */
@media (max-width: 768px) {
    .header-top {
        padding: 15px 20px;
    }

    .header-top h1 {
        font-size: 22px;
    }

    .header-top h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .header-top {
        padding: 12px 15px;
        margin-bottom: 20px;
    }

    .header-top h1 {
        font-size: 18px;
    }

    .header-top h2 {
        font-size: 16px;
    }
}
