﻿/* Presentations Hero Section */
.presentations-hero {
    padding: 140px 0 80px;
    color: white;
    text-align: center;
    position: relative;
}

.presentations-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.presentations-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.presentations-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.presentations-hero .breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.presentations-hero .breadcrumbs a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.presentations-hero .breadcrumbs a:hover {
    opacity: 0.8;
}

.presentations-hero .breadcrumbs span {
    margin: 0 10px;
    opacity: 0.7;
}

/* Presentations Filter Section */
.presentations-filter {
    padding: 50px 0 30px;
    background-color: #f8fafc;
    position: sticky;
    top: var(--nav-height);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.search-container {
    position: relative;
    display: flex;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

#presentation-search {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#presentation-search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 141, 0.1);
}

.search-btn {
    padding: 0 25px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--hover-accent);
}

.filter-options {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-dropdown {
    position: relative;
    flex: 1;
    width: 100px;
}

.filter-dropdown select {
    width: 100%;
    padding: 14px 45px 14px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 1rem;
    appearance: none;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-dropdown select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 141, 0.1);
}

.filter-dropdown i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.filter-dropdown:hover i {
    color: var(--accent);
}

.filter-reset {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.03);
    border: none;
    border-radius: 6px;
    color: var(--text-medium);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-reset:hover {
    background: rgba(0, 122, 141, 0.1);
    color: var(--accent);
}

.filter-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tags-label {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.tag {
    padding: 6px 14px;
    background: rgba(0, 122, 141, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 122, 141, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .presentations-hero {
        padding: 120px 0 60px;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .presentations-hero h1 {
        font-size: 2.2rem;
    }
    
    .presentations-hero .subtitle {
        font-size: 1.1rem;
    }
    
    .filter-options {
        flex-wrap: wrap;
    }
    
    .filter-reset {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .presentations-hero {
        padding: 100px 0 50px;
    }
    
    .presentations-hero h1 {
        font-size: 1.8rem;
    }
    
    #presentation-search,
    .filter-dropdown select {
        padding: 12px 15px 12px 45px;
    }
    
    .search-btn {
        padding: 0 15px;
    }
    
    .filter-tags {
        justify-content: flex-start;
    }
}

/* Presentations Grid Section */
.presentations-grid-section {
    padding: 60px 0;
    background-color: white;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.results-count {
    font-size: 1rem;
    color: var(--text-medium);
    font-weight: 500;
}

.view-toggle {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.view-option {
    padding: 8px 15px;
    background: white;
    border: none;
    color: var(--text-medium);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-option.active {
    background: var(--accent);
    color: white;
}

.view-option:not(.active):hover {
    background: rgba(0, 122, 141, 0.1);
    color: var(--accent);
}

.presentations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.presentation-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.presentation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 122, 141, 0.2);
}

.presentation-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.presentation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.presentation-card:hover .presentation-image img {
    transform: scale(1.05);
}

.presentation-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.presentation-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.presentation-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.presentation-title {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.presentation-description {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.presentation-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-download, .btn-preview {
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-download {
    background: var(--accent);
    color: white;
    flex: 1;
    justify-content: center;
}

.btn-download:hover {
    background: var(--hover-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 141, 0.2);
}

.btn-preview {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-preview:hover {
    background: rgba(0, 122, 141, 0.05);
    border-color: rgba(0, 122, 141, 0.1);
}

/* List View Styles */
.presentations-list {
    display: none;
    flex-direction: column;
    gap: 15px;
}

.presentation-list-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.presentation-list-item:hover {
    border-color: rgba(0, 122, 141, 0.2);
    box-shadow: 0 5px 20px rgba(0, 122, 141, 0.05);
}

.list-item-content {
    flex: 1;
    max-width: calc(100% - 200px);
}

.list-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.list-item-meta .presentation-badge {
    position: static;
    transform: none;
}

.presentation-details {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.presentation-details i {
    margin-right: 5px;
    color: var(--accent);
}

.list-item-actions {
    display: flex;
    gap: 10px;
}

/* Pagination Styles */
.pagination-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
    gap: 20px;
}

.pagination-info {
    font-size: 0.95rem;
    color: var(--text-medium);
}

.pagination-info span {
    font-weight: 500;
    color: var(--primary-dark);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-prev, .pagination-next {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
}

.pagination-prev:disabled, .pagination-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-prev:not(:disabled):hover, 
.pagination-next:not(:disabled):hover {
    background: rgba(0, 122, 141, 0.1);
    color: var(--accent);
    border-color: rgba(0, 122, 141, 0.2);
}

.pagination-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: white;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.page-number.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.page-number:not(.active):hover {
    background: rgba(0, 122, 141, 0.1);
    color: var(--accent);
}

.page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-light);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .presentations-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .presentation-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .list-item-content {
        max-width: 100%;
    }
    
    .list-item-actions {
        width: 100%;
    }
    
    .btn-download, .btn-preview {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .grid-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .view-toggle {
        align-self: flex-end;
    }
    
    .pagination-section {
        flex-direction: column;
        align-items: center;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .presentations-grid {
        grid-template-columns: 1fr;
    }
    
    .presentation-actions {
        flex-direction: column;
    }
    
    .page-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .pagination-prev, .pagination-next {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Featured Presentation Section */
.featured-presentation {
    padding: 80px 0;
    background-color: #f8fafc;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.featured-image {
    position: relative;
    min-height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #00a86b;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--accent);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.featured-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.presentation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.meta-item i {
    color: var(--accent);
}

.featured-title {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-description {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 30px;
}

.featured-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--hover-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 141, 0.2);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: transparent;
    color: var(--accent);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: rgba(0, 122, 141, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 141, 0.1);
}

.featured-stats {
    display: flex;
    gap: 30px;
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* Related Resources Section */
.related-resources {
    padding: 80px 0;
    background-color: white;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.resource-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 122, 141, 0.2);
}

.resource-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 122, 141, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.resource-content {
    flex: 1;
}

.resource-title {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.resource-description {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.resource-link:hover {
    color: var(--hover-accent);
}

.resource-link i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.resource-link:hover i {
    transform: translateX(3px);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .featured-presentation,
    .related-resources {
        padding: 60px 0;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .featured-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }
    
    .featured-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .featured-presentation,
    .related-resources {
        padding: 50px 0;
    }
    
    .featured-details {
        padding: 25px;
    }
    
    .featured-title {
        font-size: 1.4rem;
    }
    
    .resource-card {
        flex-direction: column;
        padding: 25px;
    }
}
