/* Accordion Styles */
.accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    background: #1863AB;
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #14528a;
}

.accordion-header .icon {
    font-size: 22px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-body {
    display: none;
    padding: 20px 15px;
    background: #fff;
    border-top: 1px solid #e5e9ef;
}

.accordion-body a {
    display: inline-block;
    margin-bottom: 8px;
    color: #0b5ed7;
    text-decoration: none;
}

/* First accordion active by default */
.accordion-item.active .accordion-body {
    display: block;
}

.accordion-item.active .accordion-header {
    background: #14528a;
}

/* Gallery Archive Styles */
.gallery-archive {
    max-width: 390px;
    margin: 20px auto;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.archive-title {
    font-size: 20px;
    font-weight: 600;
    color: #152b54;
    padding: 4px 6px 10px;
}

.archive-title .glyphicon {
    font-size: 17px;
    color: #1769e0;
    margin-right: 8px;
    vertical-align: middle;
}

.archive-item {
    display: table;
    width: 100%;
    min-height: 57px;
    padding: 7px 7px;
    margin-bottom: 6px;
    border: 1px solid #edf0f4;
    border-radius: 7px;
    background: #fff;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.archive-item:hover {
    background: #fafcff;
    border-color: #dce5f0;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.04);
}

.archive-thumb {
    display: table-cell;
    width: 48px;
    vertical-align: middle;
}

.archive-thumb img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.archive-content {
    display: table-cell;
    vertical-align: middle;
    padding-left: 8px;
}

.archive-session {
    font-size: 13px;
    font-weight: 600;
    color: #19345f;
    line-height: 18px;
}

.current-session {
    font-size: 11px;
    color: #079447;
    margin-top: 1px;
}

.archive-events {
    display: table-cell;
    width: 75px;
    text-align: right;
    vertical-align: middle;
}

.event-badge {
    display: inline-block;
    padding: 4px 7px;
    font-size: 9px;
    font-weight: 500;
    color: #2870d8;
    background: #eef6ff;
    border-radius: 5px;
    white-space: nowrap;
}

.archive-item:last-child {
    margin-bottom: 0;
}

/* Gallery Section Styles */
.gallery-section {
    padding: 0;
}

.gallery-section .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.gallery-section .col-sm-4,
.gallery-section .col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

/* Gallery Card Styles */
.gallery-card {
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.gallery-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0879d9;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.new-badge:after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 12px;
    border-top: 5px solid #0879d9;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.gallery-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-title {
    font-size: 15px;
    font-weight: 600;
    color: #17345c;
    margin: 0 0 12px;
    line-height: 1.4;
    min-height: 42px;
}

.gallery-info {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.gallery-info span {
    margin-right: 18px;
}

.gallery-info i {
    margin-right: 5px;
    color: #64748b;
}

.view-gallery {
    display: block;
    width: 100%;
    border: 1px solid #d9e2ee;
    background: #f5f9ff;
    color: #1266c4;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
    text-align: center;
}

.view-gallery:hover {
    background: #1266c4;
    color: #fff;
    border-color: #1266c4;
}

.view-gallery .arrow {
    float: right;
    font-size: 16px;
    line-height: 12px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .gallery-section .col-sm-4,
    .gallery-section .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .gallery-section .col-sm-4,
    .gallery-section .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .gallery-image {
        height: 250px;
    }
    
    .accordion-header {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .accordion-body {
        padding: 15px 10px;
    }
}

@media (max-width: 480px) {
    .gallery-archive {
        margin: 15px 10px;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .gallery-title {
        font-size: 14px;
        min-height: auto;
    }
    
    .gallery-card {
        margin-bottom: 15px;
    }
}