/* ===========================
   FEATURED IMAGE SECTION
   =========================== */
.featured-section {
    width: 100%;
    margin-top: 80px;
    background-color: rgba(230, 255, 250, 0.70);
    padding: var(--spacing-lg) 0;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.featured-header {
    padding: var(--spacing-md);
}

.featured-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.featured-image {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(44, 122, 123, 0.2);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    position: relative;
    z-index: 501;
}


/*Responsive Styles */

@media (max-width: 768px) {
    .featured-content {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .featured-header h1 {
        font-size: 2rem;
    }
}

/* ===========================
   THUMBNAIL GALLERY
   =========================== */
.thumbnail-gallery {
    background-color: rgba(230, 255, 250, 0.70);
    padding: var(--spacing-md) 0;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.thumbnail {
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    background-color: transparent;
    position: relative;
    z-index: 501;
}

.thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(44, 122, 123, 0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    position: relative;
    z-index: 502;
}

/* ===========================
   CONTENT SECTION
   =========================== */
.content-section {
    background-color: rgba(230, 255, 250, 0.70);
    padding: var(--spacing-xl) 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-lg);
}

.main-content {
    background-color: rgba(255, 255, 255, 0.50);
    padding: var(--spacing-lg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
}

.content-block {
    margin-bottom: var(--spacing-lg);
}

.content-block h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.8rem;
}

.content-block p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.content-block ul {
    list-style: none;
    padding: 0;
    margin-top: var(--spacing-sm);
}

.content-block ul li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    color: var(--text-color);
    line-height: 1.6;
}

.content-block ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Theme Cards */
.theme-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    justify-items: center; /* Center items */
}

.theme-card {
    max-width: 400px; /* Limit card width */
    width: 100%;
}

.theme-card {
    background-color: rgba(255, 255, 255, 0.70);
    padding: var(--spacing-md);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.theme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(44, 122, 123, 0.15);
}

.theme-card h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.theme-card p {
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.theme-card .cta-button {
    width: 100%;
    text-align: center;
}

/* ===========================
   SIDEBAR - APPOINTMENTS
   =========================== */
/* ===========================
   SIDEBAR - TIMETABLES (PDF)
   =========================== */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.appointments-box {
    background-color: rgba(255, 255, 255, 0.50);
    padding: var(--spacing-lg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(44, 122, 123, 0.1);
}

.appointments-box h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
}

/* PDF Item in Sidebar */
.pdf-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    background-color: rgba(255, 255, 255, 0.70);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.pdf-item:hover {
    box-shadow: 0 4px 10px rgba(44, 122, 123, 0.2);
}

.pdf-item-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.pdf-icon-sidebar {
    color: #dc3545;
    flex-shrink: 0;
}

.pdf-item-info {
    flex: 1;
}

.pdf-item-info h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
}

.pdf-item-info .pdf-meta {
    color: var(--text-light);
    font-size: 0.8rem;
    margin: 0;
}

.pdf-item-actions {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xs);
}

.btn-sidebar-view,
.btn-sidebar-download {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-sidebar-view {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-sidebar-view:hover {
    background-color: #1a6566;
    transform: translateY(-2px);
}

.btn-sidebar-download {
    background-color: #28a745;
    color: var(--white);
}

.btn-sidebar-download:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.btn-sidebar-view svg,
.btn-sidebar-download svg {
    width: 16px;
    height: 16px;
}

/* PDF Modal */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.pdf-modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    margin: 2% auto;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.pdf-modal-close {
    position: absolute; /* Positioned relative to .pdf-modal */
    top: 20px;
    right: 35px;
    color: white;
    background-color: #dc3545;
    border: none;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.pdf-modal-close:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

#pdfViewer {
    border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        margin-top: var(--spacing-lg);
    }
    
    .pdf-modal-content {
        width: 95%;
        height: 95%;
        margin: 2.5% auto;
    }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .featured-image {
        height: 350px;
    }
    
    .image-caption h1 {
        font-size: 2rem;
    }
    
    .thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thumbnail {
        height: 120px;
    }
    
    .theme-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .featured-image {
        height: 250px;
    }
    
    .image-caption h1 {
        font-size: 1.5rem;
    }
    
    .thumbnails {
        grid-template-columns: 1fr;
    }
    
    .appointment-date {
        min-width: 50px;
    }
    
    .appointment-date .day {
        font-size: 1.4rem;
    }
}


/* Theme card team info */
.theme-team-info {
    color: var(--secondary-color) !important;
    font-weight: 600;
    font-size: 0.9rem !important;
    margin-bottom: var(--spacing-xs) !important;
    font-style: italic;
}


/* Header Styling */
.workshop-duration {
    color: var(--white);
    font-size: 1.1rem;
    margin-top: var(--spacing-xs);
    font-weight: 500;
}

.page-header {
    background-color: rgba(230, 255, 250, 0.70);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.workshop-duration {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Category Headers on Overview */
.overview-category-header {
    grid-column: 1 / -1; /* Span full width */
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--accent-color);
}

.overview-category-header:first-child {
    margin-top: 0;
}

/* Contact link after intro text */
.intro-text .contact-link-text {
    font-size: 1.1rem;
    margin-top: var(--spacing-md);
    text-align: center;
}

.intro-text .contact-link-text a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2px;
    transition: var(--transition);
}

.intro-text .contact-link-text a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}