/* Modern CSS Variables - Matching academic-outreach-programs */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;

    --primary-gradient: linear-gradient(135deg, #c83252 0%, #30306e 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);

    --text-primary: #343a40;
    --text-secondary: #6c757d;
    --text-light: #bdc3c7;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --border-light: #e9ecef;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-breadcrumb {
    background: linear-gradient(135deg, #d13250 0%, #3b3b79 100%);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.modern-breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.breadcrumb-wrapper {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb li {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb li a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb li a:hover {
    color: #ffd700;
    text-decoration: none;
}

.breadcrumb li.active {
    color: #ffd700;
    font-weight: 600;
}

/* Main Layout */
.main-content.modern-layout {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Page Header */
.page-header {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c83252, #30306e);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #c83252);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    background: var(--bg-light);
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.meta-item:hover {
    background: linear-gradient(90deg, #c83252, #30306e);
    color: white;
    transform: translateY(-2px);
}

.page-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-action:hover {
    background: linear-gradient(90deg, #c83252, #30306e);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Main Content Grid */
.main-content-grid {
    gap: 3rem;
}

/* Program Detail Card */
.program-detail-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

/* Gallery Section */
.gallery-section {
    position: relative;
    background: #000;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    overflow: hidden;
}

.gallery-container {
    position: relative;
}

.gallery-carousel {
    width: 100%;
    background: #fff;
}

.gallery-carousel .owl-stage-outer {
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    overflow: hidden;
}

.gallery-carousel .owl-stage {
    display: flex;
    align-items: center;
}

.gallery-carousel .owl-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item {
    position: relative;
    height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: var(--transition);
    max-width: 100%;
    max-height: 100%;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.gallery-nav-container {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

#gallery-prev,
#gallery-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

#gallery-prev:hover,
#gallery-next:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Gallery Counter */
.gallery-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

.image-overlay .view-link {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateY(10px) scale(0.9);
    opacity: 0;
}

.gallery-item:hover .view-link {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.image-overlay .view-link:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-overlay .view-link i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.image-overlay .view-link:hover i {
    transform: scale(1.1);
}

/* Content Section */
.content-section {
    padding: 2.5rem;
}

.content-header {
    margin-bottom: 2rem;
}

.content-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    position: relative;
}

.content-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #c83252, transparent);
    border-radius: 1px;
}

.content-title i {
    background: linear-gradient(90deg, #c83252);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.program-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.program-description p {
    margin-bottom: 1.5rem;
}

/* Program Highlights */
.program-highlights {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.highlights-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.highlights-title i {
    color: #ffd700;
}

.highlights-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

/* Lightbox */
#lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 1000;
}

#lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-container {
    position: relative;
    width: 90%;
    height: 90vh;
    max-width: 1200px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.lightbox-nav button {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.lightbox-nav button:hover {
    background: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content-grid {
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .sidebar-modern {
        order: -1;
    }
}

@media (max-width: 768px) {
    .main-content.modern-layout {
        padding: 2rem 0;
    }

    .page-header {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .page-meta {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .page-actions {
        justify-content: center;
        margin-top: 1rem;
    }

    .content-section {
        padding: 2rem 1.5rem;
    }

    .gallery-item {
        height: 300px;
    }

    .gallery-nav-container {
        padding: 0 10px;
    }

    #gallery-prev,
    #gallery-next {
        width: 35px;
        height: 35px;
        background: white;
    }

    .gallery-counter {
        bottom: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .image-overlay .view-link {
        width: 36px;
        height: 36px;
    }

    .image-overlay .view-link i {
        font-size: 14px;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .event-item-modern,
    .recent-event-item {
        flex-direction: column;
        text-align: center;
    }

    .event-date-modern {
        align-self: center;
    }

    .lightbox-container {
        width: 95%;
        height: 80vh;
    }

    .lightbox-nav button {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .program-highlights {
        padding: 1.5rem;
    }

    .gallery-item {
        height: 250px;
    }

    .gallery-nav-container {
        padding: 0 5px;
    }

    #gallery-prev,
    #gallery-next {
        width: 32px;
        height: 32px;
    }

    #gallery-prev {
        left: 10px;
    }

    #gallery-next {
        right: 10px;
    }

    .gallery-counter {
        bottom: 10px;
        right: 10px;
        padding: 4px 10px;
        font-size: 11px;
    }

    .image-overlay .view-link {
        width: 32px;
        height: 32px;
    }

    .image-overlay .view-link i {
        font-size: 13px;
    }

    .lightbox-container {
        width: 100%;
        height: 70vh;
    }

    .lightbox-nav button {
        width: 32px;
        height: 32px;
    }

    .lightbox-close {
        top: -35px;
        font-size: 20px;
    }
}

/* Print Styles */
@media print {

    .sidebar-modern,
    .page-actions,
    .gallery-nav,
    .gallery-counter {
        display: none;
    }

    .main-content-grid {
        display: block;
    }

    .program-detail-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .main-content.modern-layout::before {
        display: none;
    }
}