@charset "utf-8";
/* CSS Document */
/* Mobile-first responsive styles for Teach and Learn page */

.main-content {
    width: 100%;
    max-width: none;
	background:var(--gray)
}

@media (min-width:1024px) {
	.main-content{
		margin-top:5vh;
		postion:relative;
		z-index:5;
	}
}

/* Filter Navigation */
.filter-nav {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.filter-container {
    display: flex;
	flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
	justify-content: center;
}

.filter-btn {
    background: var(--light-blue);
    border: 1px solid #e2e8f0;
    color: var(--gray);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold);
    color: white;
    border-color: #3b508f;
}


/* Responsive adjustments */
@media (min-width: 640px) {
    .filter-nav {
        padding: 1.5rem;
    }
    
    .filter-container {
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
}

@media (min-width: 1024px) {
    .filter-nav {
        padding: 2rem;
    }
    
    .filter-container {
        gap: 1rem;
		flex-wrap: nowrap; */
    }
    
    .filter-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}


/* Featured Section */
.featured-section {
    padding: 2rem 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.featured-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

/* Featured Cards */
.featured-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.featured-card.large .card-image {
    height: 200px;
}

.card-image {
    height: 150px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-category {
    display: inline-block;
    background: #f1f5f9;
    color: #4f46e5;
    font-size: 0.75rem;
    font-weight: 400;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 400;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1
}

.card-content p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card-link {
    color: #4f46e5;
    font-weight: 400;
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.card-link:hover {
    color: #3730a3;
}

.card-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.card-link:hover::after {
    transform: translateX(2px);
}

/* Resources Section */
.resources-section {
    padding: 2rem 1rem;
    background: #f8fafc;
}

.resources-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.resource-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.resource-card .card-image {
    height: 120px;
}

.resource-card .card-content {
    padding: 1rem;
}

.resource-card .card-content h3 {
    font-size: 1rem;
}

.resource-card .card-content p {
    font-size: 0.8125rem;
}

/* CTA Section */
.cta-section {
    background: #1e293b;
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}

.cta-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-primary {
    background: #4f46e5;
    color: white;
}

.btn-primary:hover {
    background: #3730a3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #1e293b;
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .hero {
        padding: 3rem 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .featured-section,
    .resources-section {
        padding: 3rem 2rem;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: left;
    }
    
    .featured-grid {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .featured-card.large {
        grid-row: 1 / 3;
    }
    
    .featured-card.large .card-image {
        height: 300px;
    }
    
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-container {
        justify-content: center;
        overflow-x: visible;
    }
    
    .cta-section {
        padding: 4rem 2rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero {
        padding: 4rem 2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.25rem;
    }
    
    .featured-section,
    .resources-section {
        padding: 4rem 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .featured-grid {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .featured-card.large {
        grid-row: 1 / 2;
    }
    
    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filter-nav {
        padding: 1.5rem 2rem;
    }
    
    .cta-section {
        padding: 5rem 2rem;
    }
    
    .cta-content h2 {
        font-size: 2.25rem;
    }
    
    .cta-content p {
        font-size: 1.125rem;
    }
}

/* Large Desktop */
@media (min-width: 1280px) {
    .resources-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Focus and accessibility */
.filter-btn:focus,
.card-link:focus,
.btn:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
.card-image img {
    transition: opacity 0.3s;
}

.card-image img[loading="lazy"] {
    opacity: 0;
}

.card-image img[loading="lazy"].loaded {
    opacity: 1;
}
	