/* ============================================
   EXHIBITION DETAIL PAGE STYLES
   ============================================ */

/* SMOOTH SCROLL */
html {
    scroll-behavior: smooth;
}

/* HERO */
.exhibition-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 550px;
    max-height: 800px;
    overflow: hidden;
    margin-top: 0px;
}

.exhibition-hero .hero-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.exhibition-hero .hero-overlay {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, #1a1a2e);
    pointer-events: none;
}

/* BACK TO ARCHIVE LINK */
.back-to-archive {
    display: inline-block;
    color: var(--military-orange);
    font-weight: 600;
    margin-top: 1rem;
    transition: transform 0.3s;
}

.back-to-archive:hover {
    transform: translateX(-5px);
}

/* PAST EXHIBITION STYLES */
body.past-exhibition .registration-status {
    display: none;
}

/* PARTNERS SECTION */
.partners-section {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
}

.partners-group {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid rgba(93, 138, 168, 0.15);
}

.partners-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.partners-group-title {
    text-align: center;
    color: var(--military-orange);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.partners-group-title::before,
.partners-group-title::after {
    content: '';
    flex: 1;
    max-width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--military-orange), transparent);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Larger cards for sponsors */
.partners-grid-sponsor {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.9) 100%);
    border: 1px solid rgba(93, 138, 168, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.partner-card:hover {
    transform: translateY(-5px);
    border-color: var(--military-blue);
    box-shadow: 0 12px 30px rgba(93, 138, 168, 0.3);
}

.partner-card.no-logo {
    cursor: default;
}

/* Logo wrapper */
.partner-logo-wrapper {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.partner-logo-wrapper img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.partner-card:hover .partner-logo-wrapper img {
    transform: scale(1.05);
}

/* Sponsor cards - bigger logos */
.partners-grid-sponsor .partner-card {
    padding: 2rem;
}

.partners-grid-sponsor .partner-logo-wrapper {
    height: 140px;
}

.partners-grid-sponsor .partner-logo-wrapper img {
    max-height: 130px;
}

/* Partner info */
.partner-info {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.partner-name {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.partner-name-large {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--military-orange);
    text-align: center;
    padding: 1.5rem 1rem;
}

.partner-name-fallback {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--military-orange);
    text-align: center;
}

/* Buttons */
.partner-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.partner-detail-btn,
.partner-web-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.partner-detail-btn {
    background: linear-gradient(135deg, var(--military-orange), #f39c12);
    color: white;
}

.partner-detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.partner-web-btn {
    background: linear-gradient(135deg, var(--military-blue), var(--accent-cyan));
    color: white;
}

.partner-web-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 138, 168, 0.4);
}

/* MODAL */
.partner-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.partner-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.partner-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid var(--military-blue);
    border-radius: 20px;
    padding: 3rem;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.partner-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-modal-close:hover {
    background: var(--military-orange);
    border-color: var(--military-orange);
    transform: rotate(90deg);
}

.partner-modal-logo {
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.partner-modal-logo img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
}

.partner-modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partner-modal-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre-line;
}

/* INFO CARDS */
.info-card {
    height: 100%;
}

.info-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-weight: 700;
    color: white;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.6;
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery-section {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #2c3e50;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s;
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.3);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

.no-photos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
}

/* ========================================
   LIGHTBOX
   ======================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.2s;
}

.lightbox-caption {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--military-orange);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--military-blue);
}

/* ========================================
   CATEGORY CARDS
   ======================================== */

.category-card {
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--military-orange);
}

.category-card.category-special {
    border-color: var(--military-orange);
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.08) 0%, rgba(44, 62, 80, 0.95) 100%);
}

.category-code {
    display: inline-block;
    background: var(--military-orange);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.category-special-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    color: #1a1a2e;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 0.5rem;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-line {
    margin: 0 0 0.4rem 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.5;
}

.category-label {
    color: var(--accent-cyan);
}

.category-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0.75rem 0 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(93, 138, 168, 0.2);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 968px) {
    .exhibition-hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }
    
    .partners-grid-sponsor {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .partners-grid,
    .partners-grid-sponsor {
        grid-template-columns: 1fr;
    }
    
    .partner-logo-wrapper {
        height: 80px;
    }
    
    .partner-logo-wrapper img {
        max-height: 70px;
    }
    
    .partners-grid-sponsor .partner-logo-wrapper {
        height: 100px;
    }
    
    .partners-grid-sponsor .partner-logo-wrapper img {
        max-height: 90px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PROGRAM SECTION
   ======================================== */

.program-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.program-column {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
}

.program-column-title {
    color: var(--military-orange);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(230, 126, 34, 0.3);
}

.program-item {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(93, 138, 168, 0.15);
}

.program-item:last-child {
    border-bottom: none;
}

.program-time {
    flex-shrink: 0;
    min-width: 100px;
    font-weight: 700;
    color: var(--military-orange);
    font-size: 1rem;
}

.program-content {
    flex: 1;
}

.program-title {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 500;
}

.program-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .program-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .program-column {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .program-item {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .program-time {
        min-width: auto;
        font-size: 0.9rem;
    }
}