/* Page Header */
.page-header {
    position: relative;
    height: 40vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 95, 60, 0.8), rgba(15, 95, 60, 0.6));
}

.header-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    text-align: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-yellow);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.page-title {
    font-family: 'Amiri', serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Course Filter Section */
.courses-filter-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.filter-header {
    text-align: center;
    margin-bottom: 40px;
}

.filter-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.filter-header h2 .highlight-green {
    color: var(--primary-green);
}

.filter-header h2 .highlight-orange {
    color: var(--secondary-yellow);
}

.filter-header p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: white;
    color: var(--text-dark);
    border: 2px solid transparent;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 95, 60, 0.3);
}

.course-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-card);
    margin: 30px auto;
    max-width: 600px;
}

.stat {
    text-align: center;
    position: relative;
    padding: 10px;
    min-width: 120px;
}

.stat::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #e0e0e0, transparent);
}

.stat:last-child::after {
    display: none;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Courses Grid Section */
.courses-grid-section {
    padding: 80px 0;
    background: white;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-green);
}

.course-card.featured {
    border: 3px solid var(--secondary-yellow);
    transform: scale(1.02);
}

.course-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.course-card.hidden {
    display: none;
}

.course-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-green);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.course-card.featured .course-badge {
    background: var(--secondary-yellow);
    color: var(--orange-text);
}

.course-level {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.course-content {
    padding: 25px;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.course-duration,
.course-category {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.course-duration {
    background: rgba(15, 95, 60, 0.1);
    color: var(--primary-green);
}

.course-category {
    background: rgba(246, 199, 68, 0.2);
    color: #b8860b;
}

.course-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
    min-height: 60px;
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.course-instructor i {
    color: var(--primary-green);
    font-size: 12px;
}

.course-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.course-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.course-stats .stat i {
    font-size: 12px;
    color: var(--primary-green);
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.course-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-old {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
}

.course-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-btn:hover {
    background: var(--primary-green-hover);
    transform: translateY(-2px);
}

/* Load More Section */
.load-more-section {
    text-align: center;
}

.load-more-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.load-more-btn:hover {
    background: var(--primary-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 95, 60, 0.3);
}

.course-count {
    color: var(--text-muted);
    font-size: 14px;
}

/* Newsletter CTA Section */
.newsletter-cta-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M30 30l15-15v30l-15-15zm-15 0l-15 15V15l15 15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 32px;
    color: var(--orange-text);
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content h2 .highlight-green {
    color: var(--primary-green);
}

.cta-content h2 .highlight-orange {
    color: var(--secondary-yellow);
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-primary {
    background: var(--secondary-yellow);
    color: var(--orange-text);
    border: none;
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-primary:hover {
    background: var(--secondary-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(246, 199, 68, 0.3);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: white;
    color: var(--primary-green);
    transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .page-header {
        height: 35vh;
        min-height: 350px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }
    
    .course-stats {
        gap: 40px;
    }
    
    .filter-tabs {
        gap: 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 30vh;
        min-height: 300px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 15px;
        padding: 0 15px;
    }
    
    .breadcrumb {
        font-size: 13px;
    }
    
    .courses-filter-section,
    .courses-grid-section,
    .newsletter-cta-section {
        padding: 50px 0;
    }
    
    .filter-header h2 {
        font-size: 26px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .course-card.featured {
        transform: none;
        border-width: 2px;
    }
    
    .course-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .course-stats {
        gap: 25px;
        padding: 15px 20px;
        margin: 25px auto;
        max-width: 500px;
    }
    
    .stat {
        padding: 8px;
        min-width: 100px;
    }
    
    .stat::after {
        right: -12px;
        height: 35px;
    }
    
    .stat-number {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .page-header {
        height: 25vh;
        min-height: 250px;
    }
    
    .page-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .page-subtitle {
        font-size: 14px;
        padding: 0 20px;
        line-height: 1.5;
    }
    
    .breadcrumb {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .header-content {
        padding: 0 15px;
    }
    
    .courses-filter-section,
    .courses-grid-section,
    .newsletter-cta-section {
        padding: 40px 0;
    }
    
    .filter-header h2 {
        font-size: 22px;
    }
    
    .course-content {
        padding: 20px;
    }
    
    .course-title {
        font-size: 18px;
        min-height: 50px;
    }
    
    .course-image {
        height: 180px;
    }
    
    .stat-number {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .course-stats {
        gap: 20px;
        padding: 12px 15px;
        max-width: 400px;
    }
    
    .stat {
        padding: 6px;
        min-width: 80px;
    }
    
    .stat::after {
        right: -10px;
        height: 30px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-content p {
        font-size: 15px;
    }
    
    .cta-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .cta-primary,
    .cta-secondary {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .page-header {
        min-height: 220px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .page-subtitle {
        font-size: 13px;
        padding: 0 10px;
    }
    
    .breadcrumb {
        font-size: 11px;
    }
}