/* Audio & Video Lectures Page */

.audio-video-page {
    width: 100%;
}

/* Header Section */
.av-header {
    background: linear-gradient(135deg, #1e5f6f 0%, #2a7a8c 100%);
    color: white;
    padding: 3em 1em;
    text-align: center;
    margin:0;
}

.av-header-content {
    max-width: var(--site-max-width);
    margin: 0 auto;
}

.av-header h1 {
    color: white;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 0.2em;
    font-weight: 600;
}

.av-header h2 {
    color: #ffd166;
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 1em;
    font-weight: 700;
}

.av-header-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto 2em;
    line-height: 1.6;
}

.av-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.av-stat {
    text-align: center;
}

.av-stat-number {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #ffd166;
    display: block;
    margin-bottom: 0.3em;
}

.av-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.wavy-element {
  /* Single smooth curve along the bottom edge */
  border-bottom-left-radius: 10% 90px;
  border-bottom-right-radius: 10% 90px;
}

/* Filter Bar */
.av-filters {
    background: #f5f5f7;
    border-bottom: 1px solid var(--light-border);
    padding: 1.5em 1em;
    overflow-x: auto;
}

.av-filters-content {
    max-width: var(--site-max-width);
    margin: 0 auto;
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
    align-items: center;
}

.av-filter-btn {
    padding: 0.5em 1em;
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius);
    background: white;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.av-filter-btn:hover {
    border-color: var(--brand-color);
    color: var(--brand-color);
    box-shadow: var(--shadow-soft);
}

.av-filter-btn.active {
    background: var(--brand-color);
    color: white;
    border-color: var(--brand-color);
}

/* Main Content */
.av-main-content {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 2em 1em;
}

/* Section Styling */
.av-section {
    margin-bottom: 4em;
}

.av-section-header {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 2px solid var(--light-border);
}

.av-section-icon {
    font-size: 1.5rem;
    color: var(--brand-color);
    font-weight: 700;
}

.av-section h2 {
    margin: 0;
    font-size: 1.6rem;
}

/* Grid Layout */
.av-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2em;
}

@media (min-width: 768px) {
    .av-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .av-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card Styling */
.av-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.av-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

.av-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.av-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.av-card:hover .av-card-image img {
    transform: scale(1.05);
}

.av-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--brand-color);
    transition: transform var(--transition-fast);
    z-index: 2;
}

.av-card:hover .av-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
}

.av-card-content {
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.av-card-content h3 {
    font-size: 1.1rem;
    margin: 0 0 0.75em;
    color: var(--brand-color);
    line-height: 1.4;
    min-height: 2.8em;
}

.av-card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 1em;
    line-height: 1.6;
    flex: 1;
}

/* Tags */
.av-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 1em;
}

.av-tag {
    display: inline-block;
    padding: 0.35em 0.75em;
    background: #f0f0f0;
    color: var(--text-color);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Card Footer */
.av-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1em;
    border-top: 1px solid var(--light-border);
}

.av-duration {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.av-card-footer .btn {
    padding: 0.5em 1em;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .av-header {
        padding: 2em 1em;
    }

    .av-main-content {
        padding: 1.5em 1em;
    }

    .av-section {
        margin-bottom: 3em;
    }

    .av-stats {
        gap: 1em;
    }
}
