/* ========== EVENT DETAIL PAGE - MODERN DESIGN ========== */

/* ========== BASE & THEME COLORS ========== */
.event-detail-page {
    min-height: 100vh;
    background: var(--body-bg, #f8fafc);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    position: relative;
    left: 0;
}

/* ========== CUSTOM CONTAINER ========== */
.event-detail-container {
    width: 100%;
    padding-right: 2.50rem;
    padding-left: 2.50rem;
    margin-right: auto;
    margin-left: auto;
    max-width: 1620px;
}

/* ========== PAGE LOAD ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.top-bar {
    animation: slideDown 0.5s ease-out forwards;
}

.article-card {
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
    opacity: 0;
}

.content-section {
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

.sidebar-card:nth-child(1) { animation: fadeInRight 0.5s ease-out 0.2s forwards; opacity: 0; }
.sidebar-card:nth-child(2) { animation: fadeInRight 0.5s ease-out 0.35s forwards; opacity: 0; }
.sidebar-card:nth-child(3) { animation: fadeInRight 0.5s ease-out 0.5s forwards; opacity: 0; }
.sidebar-card:nth-child(4) { animation: fadeInRight 0.5s ease-out 0.65s forwards; opacity: 0; }
.sidebar-card:nth-child(5) { animation: fadeInRight 0.5s ease-out 0.8s forwards; opacity: 0; }

/* ========== TOP BAR ========== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    gap: 16px;
}

.article-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--card-text, #1e293b);
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-actions {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid var(--primary-color, #667eea);
    background: var(--card-bg, white);
    color: var(--primary-color, #667eea);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon:hover {
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--primary-shadow, 0 5px 15px rgba(102, 126, 234, 0.35));
}

/* ========== ARTICLE CARD ========== */
.article-card {
    background: var(--card-bg, white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow, 0 4px 20px rgba(0,0,0,0.08));
    margin-bottom: 1.5rem;
}

.article-cover {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    transition: transform 0.5s ease;
}

.article-card:hover .article-cover img {
    transform: scale(1.03);
}

.cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.article-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: var(--primary-shadow, 0 5px 15px rgba(102, 126, 234, 0.35));
}

.article-badge.past {
    background: linear-gradient(135deg, #64748b, #94a3b8);
}

.article-body {
    padding: 2rem;
}

.article-title_sub {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--card-text, #1e293b);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

/* ========== EVENT INFO CARDS ========== */
.event-info-cards {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.event-info-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--body-bg, #f8fafc);
    border-radius: 14px;
    border-left: 4px solid var(--primary-color, #667eea);
    transition: all 0.3s ease;
}

.event-info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.event-info-item.date .info-icon {
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
}

.event-info-item.location .info-icon {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.event-info-item.location {
    border-left-color: #ef4444;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-content .info-label {
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.info-content .info-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--card-text, #1e293b);
}

.info-content .info-sub {
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
}

/* ========== ARTICLE CONTENT ========== */
.article-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--card-text, #334155);
    border-top: 2px solid var(--border-color, #f1f5f9);
    padding-top: 1.5rem;
}

.article-content p { margin-bottom: 1.25rem; }

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.article-content h2, .article-content h3 {
    color: var(--card-text, #1e293b);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content a { color: var(--primary-color, #667eea); }

.article-content blockquote {
    border-left: 4px solid var(--primary-color, #667eea);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--body-bg, #f8fafc);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-muted, #64748b);
}

/* ========== COMPACT GALLERY SECTION ========== */
.content-section {
    background: var(--card-bg, white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow, 0 4px 20px rgba(0,0,0,0.08));
}

.section-header-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-icon-sm {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.section-title-sm {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--card-text, #1e293b);
    margin: 0;
    flex: 1;
}

.section-count {
    font-size: 0.8rem;
    color: var(--primary-color, #667eea);
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border: 2px solid var(--primary-color, #667eea);
    border-radius: 50px;
}

.gallery-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.gallery-thumb {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-thumb:hover img { transform: scale(1.1); }

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color, rgba(102, 126, 234, 0.85)), var(--secondary-color, rgba(118, 75, 162, 0.85)));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    font-size: 1.5rem;
}

.gallery-thumb:hover .thumb-overlay { opacity: 0.5; }

/* ========== SIDEBAR ========== */
.sidebar-sticky {
    position: sticky;
    top: 1rem;
}

.sidebar-card {
    background: var(--card-bg, white);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--card-shadow, 0 4px 20px rgba(0,0,0,0.08));
    margin-bottom: 1rem;
}

/* ========== STATUS CARD ========== */
.status-card {
    overflow: hidden;
}

.status-card.upcoming {
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    color: white;
}

.status-card.past {
    background: linear-gradient(135deg, #64748b, #94a3b8);
    color: white;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.status-info {
    flex: 1;
}

.status-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 2px;
}

.status-date {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
}

/* Countdown Mini */
.countdown-mini {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.countdown-items {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.countdown-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 0.6rem 0.5rem;
    border-radius: 10px;
    font-size: 0.85rem;
    min-width: 52px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.countdown-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.countdown-value {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.countdown-value.flip {
    transform: rotateX(90deg) scale(0.8);
    opacity: 0;
}

.countdown-label {
    font-size: 0.6rem;
    font-weight: 600;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.countdown-item strong {
    font-size: 1.1rem;
}

.countdown-ended {
    display: block;
    text-align: center;
    font-weight: 600;
    animation: pulse 2s infinite;
}

/* ========== CALENDAR SECTION (Inside Status Card) ========== */
.calendar-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.calendar-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
}

.calendar-section-header i {
    font-size: 1rem;
}

.calendar-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.calendar-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
}

.calendar-btn i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* Calendar Button Tooltip */
.calendar-btn .btn-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    pointer-events: none;
}

.calendar-btn .btn-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.calendar-btn:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* Calendar Button Hover Effects */
.calendar-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.calendar-btn.google:hover {
    background: #4285f4;
}

.calendar-btn.outlook:hover {
    background: #0078d4;
}

.calendar-btn.apple:hover {
    background: rgba(255, 255, 255, 0.3);
}

.calendar-btn.ics:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Countdown pulse effect for seconds */
@keyframes countdownPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
    50% { box-shadow: 0 0 0 4px rgba(255,255,255,0); }
}

#countdown-seconds {
    animation: countdownPulse 1s ease-in-out infinite;
}

/* ========== INFO CARD ========== */
.info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--card-text, #1e293b);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color, #f1f5f9);
}

.info-header i { color: var(--primary-color, #667eea); }

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.info-list .info-label { color: var(--text-muted, #64748b); }
.info-list .info-value { font-weight: 600; color: var(--card-text, #1e293b); }

/* ========== FILES CARD ========== */
.files-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color, #f1f5f9);
}

.files-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.files-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--card-text, #1e293b);
    margin: 0;
}

.files-count {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--body-bg, #f8fafc);
    border-radius: 10px;
    transition: all 0.3s;
}

.file-item:hover {
    background: var(--bg-hover, #f1f5f9);
    transform: translateX(3px);
}

.file-icon-sm {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.file-icon-sm.pdf { background: #ef4444; }
.file-icon-sm.word { background: #3b82f6; }
.file-icon-sm.excel { background: #22c55e; }
.file-icon-sm.ppt { background: #f97316; }
.file-icon-sm.image { background: #8b5cf6; }
.file-icon-sm.zip { background: #f59e0b; }
.file-icon-sm.video { background: #ec4899; }
.file-icon-sm.audio { background: #06b6d4; }
.file-icon-sm.default { background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2)); }

.file-details { flex: 1; min-width: 0; }

.file-name-sm {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--card-text, #1e293b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size-sm {
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
}

.file-download-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.file-download-sm:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: var(--primary-shadow, 0 5px 15px rgba(102, 126, 234, 0.35));
    color: white;
}

/* ========== ACTIONS CARD ========== */
.actions-card {
    padding: 0;
    overflow: hidden;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
}

.action-link:last-child { border-bottom: none; }

.action-link:hover {
    background: var(--body-bg, #f8fafc);
    padding-left: 1.5rem;
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.action-link:hover .action-icon { transform: scale(1.1); }

.action-icon.back { background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2)); }
.action-icon.home { background: linear-gradient(135deg, var(--secondary-color, #764ba2), var(--accent-color, #f472b6)); }

.action-text { flex: 1; }

.action-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
}

.action-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--card-text, #1e293b);
}

.action-link > .bi-chevron-right {
    color: var(--primary-color, #667eea);
    transition: transform 0.3s;
}

.action-link:hover > .bi-chevron-right { transform: translateX(3px); }

/* ========== LIGHTBOX ========== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.lightbox-close:hover {
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.lightbox-nav:hover {
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    transform: translateY(-50%) scale(1.1);
}

.lightbox-content {
    max-width: 90%;
    max-height: 75vh;
    text-align: center;
    animation: scaleIn 0.4s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-info {
    margin-top: 1rem;
    color: white;
}

.lightbox-counter {
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 1rem;
}

.lightbox-caption {
    opacity: 0.8;
    font-size: 0.9rem;
}

.lightbox-thumbs {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    max-width: 80%;
    overflow-x: auto;
    padding: 10px;
}

.lightbox-thumb {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.lightbox-thumb:hover,
.lightbox-thumb.active {
    opacity: 1;
    border-color: var(--primary-color, #667eea);
    transform: scale(1.1);
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .sidebar-sticky { position: static; }
    
    .sidebar-card:nth-child(1),
    .sidebar-card:nth-child(2),
    .sidebar-card:nth-child(3),
    .sidebar-card:nth-child(4) {
        animation: fadeInUp 0.5s ease-out forwards;
        animation-delay: 0.4s;
    }
}

@media (max-width: 768px) {
    .article-cover { height: 250px; }
    .article-title { font-size: 1.5rem; }
    .article-body { padding: 1.5rem; }
    .article-content { font-size: 1rem; }
    
    .event-info-cards { flex-direction: column; }
    .event-info-item { min-width: 100%; }
    
    .lightbox-wrapper { padding: 60px 20px; }
    .lightbox-nav { width: 40px; height: 40px; }
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
    
    .gallery-compact { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
    .top-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .article-title { text-align: left; }
    .top-actions { justify-content: flex-end; }
}

@media (max-width: 480px) {
    .gallery-compact { grid-template-columns: repeat(3, 1fr); }
}

/* ========== PRINT STYLES ========== */
@media print {
    .top-bar, .sidebar-card, .lightbox, .gallery-compact, .map-modal {
        display: none !important;
    }
    
    .col-lg-8 {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .article-card {
        box-shadow: none;
        animation: none;
        opacity: 1;
    }
    
    .event-detail-page {
        margin: 0;
        width: auto;
    }
}

/* ========== CLICKABLE LOCATION ========== */
.event-info-item.location.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-info-item.location.clickable:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.15);
    border-left-width: 6px;
}

.event-info-item.location.clickable:hover .info-icon {
    transform: scale(1.1);
}

.event-info-item.location.clickable::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== MAP CARD (SIDEBAR) ========== */
.map-card {
    padding: 0;
    overflow: hidden;
}

.map-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    color: white;
}

.map-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.map-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.map-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.map-preview {
    position: relative;
    cursor: pointer;
    transition: filter 0.3s;
}

.map-preview:hover {
    filter: brightness(1.05);
}

.map-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--body-bg, #f8fafc);
}

.btn-map-directions {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    color: white;
    border: none;
}

.btn-map-directions:hover {
    transform: translateY(-2px);
    box-shadow: var(--primary-shadow, 0 5px 15px rgba(102, 126, 234, 0.35));
    color: white;
}

.btn-map-share {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid var(--primary-color, #667eea);
    background: var(--card-bg, white);
    color: var(--primary-color, #667eea);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

    .btn-map-share:hover {
        background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
        color: white;
        transform: scale(1.05);
    }

.btn-map-expand {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid var(--primary-color, #667eea);
    background: var(--card-bg, white);
    color: var(--primary-color, #667eea);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.btn-map-expand:hover {
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    border-color: transparent;
    color: white;
    transform: scale(1.05);
}

/* ========== MAP MODAL ========== */
.map-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.map-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.map-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.map-modal-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: var(--card-bg, white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: scaleIn 0.4s ease;
}

.map-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    color: white;
}

.map-modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.map-modal-title i {
    font-size: 1.4rem;
}

.map-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.map-modal-body {
    position: relative;
}

.map-modal-body #eventLocationMap {
    border: none;
}

.map-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--body-bg, #f8fafc);
    border-top: 1px solid var(--border-color, #e2e8f0);
    flex-wrap: wrap;
    gap: 1rem;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--card-text, #1e293b);
    font-weight: 500;
    flex: 1;
    min-width: 200px;
}

.location-info i {
    color: var(--primary-color, #667eea);
    font-size: 1.1rem;
}

.map-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-map-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: 2px solid var(--primary-color, #667eea);
    background: transparent;
    color: var(--primary-color, #667eea);
}

.btn-map-action:hover {
    background: var(--primary-color, #667eea);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-map-action.primary {
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    color: white;
    border-color: transparent;
}

.btn-map-action.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--primary-shadow, 0 8px 25px rgba(102, 126, 234, 0.4));
}

/* ========== MAP MODAL RESPONSIVE ========== */
@media (max-width: 768px) {
    .map-modal {
        padding: 10px;
    }
    
    .map-modal-container {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .map-modal-body #eventLocationMap {
        height: 300px !important;
    }
    
    .map-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .location-info {
        justify-content: center;
        text-align: center;
    }
    
    .map-modal-actions {
        justify-content: center;
    }
}
.bx-shdw {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

/* ========== ADD TO CALENDAR CARD ========== */
.calendar-card {
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
}

.calendar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    /*background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));*/
    color: white;
}

.calendar-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.calendar-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.calendar-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    display: block;
}

.calendar-options {
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;    
    flex-wrap: nowrap;
    align-items: center;
}

.calendar-option-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 2px solid var(--primary-color, #667eea);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: var(--card-bg, white);*/
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.calendar-option-btn i {
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

/* Tooltip */
.calendar-option-btn .btn-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--card-text, #1e293b);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    pointer-events: none;
}

.calendar-option-btn .btn-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--card-text, #1e293b);
}

.calendar-option-btn:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* Google Calendar */
.calendar-option-btn.google {
    color: #4285f4;
}

.calendar-option-btn.google:hover {
    background: #4285f4;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4);
    border:none;
}

.calendar-option-btn.google:hover .btn-tooltip {
    background: #4285f4;
}

.calendar-option-btn.google:hover .btn-tooltip::after {
    border-top-color: #4285f4;
}

/* Outlook */
.calendar-option-btn.outlook {
    color: #0078d4;
}

    .calendar-option-btn.outlook:hover {
        background: #0078d4;
        color: white;
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 120, 212, 0.4);
        border: none;
    }

.calendar-option-btn.outlook:hover .btn-tooltip {
    background: #0078d4;
}

.calendar-option-btn.outlook:hover .btn-tooltip::after {
    border-top-color: #0078d4;
}

/* Apple Calendar */
.calendar-option-btn.apple {
    color: #333;
}

    .calendar-option-btn.apple:hover {
        background: linear-gradient(135deg, #333, #555);
        color: white;
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(51, 51, 51, 0.4);
        border: none;
    }

.calendar-option-btn.apple:hover .btn-tooltip {
    background: #333;
}

.calendar-option-btn.apple:hover .btn-tooltip::after {
    border-top-color: #333;
}

/* ICS Download */
.calendar-option-btn.ics {
    color: var(--primary-color, #667eea);
}

    .calendar-option-btn.ics:hover {
        background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
        color: white;
        transform: translateY(-5px);
        box-shadow: var(--primary-shadow, 0 8px 25px rgba(102, 126, 234, 0.4));
        border: none;
    }

.calendar-option-btn.ics:hover .btn-tooltip {
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
}

.calendar-option-btn.ics:hover .btn-tooltip::after {
    border-top-color: var(--primary-color, #667eea);
}

/* Responsive - Calendar Card */
@media (max-width: 480px) {
    .calendar-options {
        padding: 1rem 0.75rem;
        gap: 0.5rem;
    }
    
    .calendar-option-btn {
        width: 44px;
        height: 44px;
    }
    
    .calendar-option-btn i {
        font-size: 1.1rem;
    }
    
    .calendar-option-btn .btn-tooltip {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
}