/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    line-height: 1.6;
}

/* Typography */
p {
    font-size: 1.0625rem;
    margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    color: #111827;
    line-height: 1.3;
}

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

/* Skip to content link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2563eb;
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Hero section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
}

.hero-blue {
    background: linear-gradient(rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
}

.hero-green {
    background: linear-gradient(rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.hero-purple {
    background: linear-gradient(rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
}

/* Content sections */
.content-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.content-section:last-child {
    border-bottom: none;
}

/* Learning cards */
.learning-card {
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.learning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Info boxes */
.info-box {
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-width: 1px;
}

.info-box-blue {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.info-box-green {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.info-box-purple {
    background-color: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag-blue {
    background-color: rgba(59, 130, 246, 0.15);
    color: #1d4ed8; /* Darkened for better contrast */
}

.tag-green {
    background-color: rgba(16, 185, 129, 0.15); 
    color: #047857; /* Darkened for better contrast */
}

.tag-purple {
    background-color: rgba(139, 92, 246, 0.15);
    color: #6d28d9; /* Darkened for better contrast */
}

.tag-orange {
    background-color: rgba(249, 115, 22, 0.15);
    color: #c2410c; /* Darkened for better contrast */
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 40;
}

.mobile-menu.open {
    display: block;
}

/* Scroll to top button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

/* High contrast mode support */
@media (forced-colors: active) {
    .tag, .learning-card, .info-box {
        border: 1px solid;
    }
    
    button, a.btn {
        border: 1px solid;
    }
}