/* Homepage Specific Styles */
:root {
    --primary-blue: #1e3a8a;
    --accent-blue: #3b82f6;
    --light-gray: #f8fafc;
    --dark-gray: #64748b;
}

/* Override main content positioning for homepage */
body.homepage .main-content {
    margin-left: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

body.homepage .container:first-child {
    display: none; /* Hide sidebar container on homepage */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-outline-light {
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
    background: var(--light-gray);
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
}

.stat-label {
    color: var(--dark-gray);
    font-size: 1rem;
    margin-top: 5px;
}

/* Section Titles */
.section-title {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 50px;
}

/* Footer */
.homepage-footer {
    background: var(--primary-blue);
    color: white;
    padding: 40px 0;
}

.homepage-footer a {
    color: #ccc;
    text-decoration: none;
}

.homepage-footer a:hover {
    color: white;
    text-decoration: none;
}

/* Quick Access Panel */
.quick-access {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: -50px;
    position: relative;
    z-index: 3;
}

.access-link {
    display: block;
    padding: 15px 20px;
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

.access-link:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
    text-decoration: none;
    transform: translateX(5px);
}

/* Utility Classes for spacing */
.me-2 {
    margin-right: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-5 {
    margin-top: 3rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.text-muted {
    color: #6c757d;
}

.text-success {
    color: #28a745;
}

.text-primary {
    color: var(--primary-blue);
}

.opacity-25 {
    opacity: 0.25;
}

.fw-bold {
    font-weight: 700;
}

/* Gap utility for flexbox */
.gap-3 {
    gap: 1rem;
}

.d-flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .quick-access {
        margin-top: -25px;
        padding: 20px;
    }
}