/* Resources Page Styles */

/* Header Section - Matching Modern Hero */
.resources-hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.resources-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.resources-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    line-height: 1.6;
}

/* Navigation Tabs */
.resources-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    gap: 10px;
}

.resources-nav a {
    padding: 12px 24px;
    color: var(--text-light);
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.resources-nav a:hover {
    color: var(--primary);
    background-color: rgba(99, 102, 241, 0.05);
}

.resources-nav a.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Resource Sections */
.resource-section {
    margin-bottom: 100px;
    text-align: center;
}

.resource-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.resource-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 2px;
}

/* Presentations Grid */
.presentations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    justify-content: center;
}

.presentation-item {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(123, 44, 191, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.presentation-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.presentation-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(99, 102, 241, 0.3);
}

.presentation-item:hover::before {
    opacity: 1;
}

.presentation-item h3 {
    color: var(--text);
    margin-bottom: 15px;
    font-size: 1.4rem;
    transition: var(--transition);
}

.presentation-item:hover h3 {
    color: var(--primary);
}

.presentation-item p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.presentation-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: auto;
}

.presentation-download:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.download-icon {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Workshops Grid */
.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    justify-content: center;
}

.workshop-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(123, 44, 191, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.workshop-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(99, 102, 241, 0.3);
}

.workshop-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    /* Aspect ratio */
    overflow: hidden;
}

.workshop-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.workshop-card:hover .workshop-image img {
    transform: scale(1.05);
}

.workshop-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.workshop-badge {
    display: inline-block;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
}

.workshop-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
    transition: var(--transition);
}

.workshop-card:hover .workshop-title {
    color: var(--primary);
}

.workshop-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.workshop-meta {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    padding-top: 15px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.workshop-meta-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.workshop-meta-icon {
    margin-right: 6px;
    color: var(--primary);
}

.workshop-cta {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.workshop-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    color: white;
}

/* Book Showcase */
.book-showcase {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    border: 1px solid rgba(123, 44, 191, 0.1);
    position: relative;
    overflow: hidden;
}

.book-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.book-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .book-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 50px;
    }

    .book-image {
        flex: 0 0 250px;
    }
}

.book-image img {
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.book-image img:hover {
    transform: scale(1.03) rotate(1deg);
}

.book-details h3 {
    color: var(--text);
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 700;
}

.book-details p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-light);
}

/* Lecture Promo Popup */
.lecture-promo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lecture-promo-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lecture-promo-popup {
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 700px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lecture-promo-overlay.active .lecture-promo-popup {
    transform: scale(1);
}

.lecture-promo-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 25px 30px;
    position: relative;
}

.lecture-promo-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.lecture-promo-header p {
    margin: 8px 0 0;
    opacity: 0.9;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.lecture-promo-content {
    display: flex;
    padding: 30px;
    gap: 30px;
}

.lecture-promo-image {
    flex: 0 0 200px;
}

.lecture-promo-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.lecture-promo-details {
    flex: 1;
}

.lecture-promo-details p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-light);
}

.lecture-promo-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.lecture-promo-buttons {
    display: flex;
    gap: 15px;
}

.lecture-promo-cta {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    flex: 1;
}

.lecture-promo-cta:hover {
    background-color: var(--secondary);
    color: white;
}

.lecture-promo-secondary {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    flex: 1;
}

.lecture-promo-secondary:hover {
    background-color: #f8fafc;
    border-color: var(--text-light);
}

.lecture-promo-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lecture-promo-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .lecture-promo-content {
        flex-direction: column;
    }

    .lecture-promo-image {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .lecture-promo-buttons {
        flex-direction: column;
    }
}