/* ===================================
   LANDING PAGE STYLING - KONI ACEH
   Enhanced styling for posts components
   =================================== */

/* Posts Inner Container Styling */
.section,
.site-content {
    padding: 0px 0;
}

.posts__inner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 251, 0.98) 100%);
    border-radius: 12px;
    padding: 24px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.posts__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e30613 0%, #ffd100 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left center;
}


/* Posts Title Styling */
.posts__title {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.posts__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.posts__title:hover,
.posts__title a:hover {
    color: #e30613;
    text-decoration: none;
}

.posts__title:hover {
    transform: translateX(5px);
}

/* Featured News Slider Title */
.posts--slider-featured .posts__title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.6),
        0 1px 3px rgba(0, 0, 0, 0.4);
    margin-bottom: 12px;
}

.posts--slider-featured .posts__title:hover {
    color: #ffd100;
    transform: translateY(-2px);
}

/* Posts Excerpt Styling */
.posts__excerpt {
    color: #cfcfcf;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
        word-wrap: break-word;
    overflow-wrap: break-word;
}

.posts__inner:hover .posts__excerpt {
    color: #c9c9c9;
}

/* Category Label Enhancements */
.posts__cat {
    margin-bottom: 12px;
}

.posts__cat-label {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.posts__cat-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.posts__inner:hover .posts__cat-label::before {
    left: 100%;
}

/* Meta Information Styling */
.post__meta,
.news-grid-item__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    font-size: 13px;
    color: #888;
}

.post__meta-date,
.news-grid-item__date {
    color: #e30613;
    font-weight: 600;
}

.post__meta-views,
.news-grid-item__views {
    color: #888;
    position: relative;
}

.post__meta-views::before,
.news-grid-item__views::before {
    content: '👁';
    margin-right: 4px;
    font-size: 12px;
}

/* Card Content Animation */
.card__content {
    overflow: hidden;
}

.card__content .posts__inner {
    transition-delay: 0.1s;
}

.card__content .posts__inner:nth-child(2) {
    transition-delay: 0.2s;
}

.card__content .posts__inner:nth-child(3) {
    transition-delay: 0.3s;
}

/* News Grid Item Specific Styling */
.news-grid-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 2px 15px rgba(0, 0, 0, 0.06),
        0 1px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-grid-item:hover {
    transform: translateY(-8px);
    box-shadow:
        0 12px 40px rgba(227, 6, 19, 0.12),
        0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(227, 6, 19, 0.1);
}

.news-grid-item__content {
    padding: 20px;
}

.news-grid-item__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #1a1a1a;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.news-grid-item__title a {
    color: inherit;
    text-decoration: none;
}

.news-grid-item:hover .news-grid-item__title {
    color: #e30613;
}

.news-grid-item__excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Thumbnail Enhancements */
.news-grid-item__thumb,
.posts__thumb {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.news-grid-item__thumb img,
.posts__thumb img {
    transition: transform 0.4s ease;
}

.news-grid-item:hover .news-grid-item__thumb img,
.posts__inner:hover .posts__thumb img {
    transform: scale(1.05);
}

/* News List Layout Styling */
.news-list-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.news-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.08);
    border-color: rgba(227, 6, 19, 0.1);
}

.news-list-item__thumb {
    flex: 0 0 120px;
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
}

.news-list-item__thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-list-item:hover .news-list-item__thumb img {
    transform: scale(1.05);
}

.news-list-item__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-list-item__cat {
    flex: 0 0 auto;
}

.news-list-item__cat .label {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.news-list-item__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-item__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-list-item:hover .news-list-item__title a {
    color: #e30613;
}

.news-list-item__excerpt {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.news-list-item__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #888;
    margin-top: auto;
}

.news-list-item__date {
    color: #e30613;
    font-weight: 600;
}

.news-list-item__views {
    color: #888;
}

.news-list-item__views::before {
    content: '👁';
    margin-right: 4px;
    font-size: 11px;
}

/* Layout Toggle Buttons */
.layout-toggle {
    display: flex;
    gap: 5px;
    align-items: center;
}

.layout-toggle__btn {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    background: #fff;
    color: #6c757d;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.layout-toggle__btn:hover {
    border-color: #e30613;
    color: #e30613;
    background: rgba(227, 6, 19, 0.05);
}

.layout-toggle__btn.active {
    background: #e30613;
    border-color: #e30613;
    color: #fff;
}

.layout-toggle__btn i {
    font-size: 14px;
}

/* Responsive Design for List Layout */
@media (max-width: 768px) {
    .news-list-item {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .news-list-item__thumb {
        flex: none;
        width: 100%;
        order: -1;
    }

    .news-list-item__thumb img {
        height: 150px;
        width: 100%;
    }

    .news-list-item__content {
        gap: 6px;
    }

    .news-list-item__title {
        font-size: 15px;
    }

    .news-list-item__excerpt {
        font-size: 12px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}

@media (max-width: 480px) {
    .posts--slider-featured .posts__title {
        font-size: 16px !important;
        line-height: 1.2;
        margin-bottom: 6px;
    }
    
    .posts--slider-featured .posts__excerpt {
        font-size: 12px;
        line-height: 1.3;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .posts--slider-featured .posts__inner {
        padding: 12px;
    }
    
    .layout-toggle {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .layout-toggle__btn {
        width: 100%;
        justify-content: center;
    }

    .news-list-item {
        padding: 10px;
    }

    .news-list-item__thumb img {
        height: 120px;
    }

    .news-list-item__title {
        font-size: 14px;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.posts__inner {
    animation: fadeInUp 0.6s ease-out;
}

/* Dark Mode Support
@media (prefers-color-scheme: dark) {
    .posts__inner {
        background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .posts__title {
        color: #ffffff;
    }
    
    .posts__excerpt {
        color: #cccccc;
    }
    
    .posts__inner:hover .posts__excerpt {
        color: #ffffff;
    }
    
    .news-grid-item {
        background: #1a1a1a;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .news-grid-item__title {
        color: #ffffff;
    }
    
    .news-grid-item__excerpt {
        color: #cccccc;
    }
} */

/* Accessibility Improvements */
.posts__inner:focus-within {
    outline: 2px solid #ffd100;
    outline-offset: 2px;
}

.posts__title a:focus {
    outline: 2px solid #e30613;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .posts__inner {
        box-shadow: none;
        border: 1px solid #a74242;
        break-inside: avoid;
    }

    .posts__inner:hover {
        transform: none;
    }
}


/* News Grid Cards Fixed Height */
.news-grid-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-grid-item__thumb {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.news-grid-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-grid-item__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.news-grid-item__cat {
    flex: 0 0 auto;
    margin-bottom: 10px;
}

.news-grid-item__title {
    flex: 1;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 2.8em;
}

.news-grid-item__meta {
    flex: 0 0 auto;
    margin-top: auto;
}

/* Gallery Items Fixed Height */
.gallery__item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 15px;
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery__item:hover .gallery__img {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Hide layout toggle on mobile */
    .layout-toggle {
        display: none !important;
    }
    
    /* Force list layout on mobile */
    .news-layout--grid {
        display: none !important;
    }
    
    .news-layout--list {
        display: block !important;
    }
    
    .posts--slider-featured .posts__title {
        font-size: 18px !important;
        line-height: 1.3;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .posts--slider-featured .posts__excerpt {
        font-size: 13px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .posts--slider-featured .posts__inner {
        padding: 15px;
    }
    
    .posts__item--event .posts__inner {
        padding: 15px;
    }

    .news-grid-item__thumb img {
        height: 100%;
    }

    .gallery__img {
        height: 100%;
    }
}

@media (max-width: 480px) {
    .posts--slider-featured .posts__thumb {
        height: 100%;
    }
}

@media (max-width: 768px) {
    .posts--slider-featured .posts__thumb {
        height: 100%;
    }
}


.event-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    min-height: 140px;
}

.event-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    border-color: #1892ed;
}

.event-item.hidden {
    display: none;
}

.event-date {
    flex-shrink: 0;
    text-align: center;
    background: linear-gradient(135deg, #1892ed, #0d6db8);
    color: #fff;
    border-radius: 8px;
    padding: 10px 8px;
    min-width: 60px;
    box-shadow: 0 3px 8px rgba(24, 146, 237, 0.3);
    align-self: flex-start;
}

.event-date__day {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.event-date__month {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-date__range {
    font-size: 8px;
    margin-top: 3px;
    opacity: 0.9;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 3px;
}

.event-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-row-1 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.event-row-2 {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.event-title {
    font-size: 15px;
    font-weight: 600;
    color: #31404b;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    min-width: 0;
}

.event-organizer {
    display: inline-block;
    background: #ffdc11;
    color: #31404b;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.event-location,
.event-duration {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #6c757d;
    flex: 1;
    min-width: 0;
}

.event-location i,
.event-duration i {
    width: 12px;
    color: #1892ed;
    font-size: 11px;
    flex-shrink: 0;
}

.event-location span,
.event-duration span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

/* Empty state styling */
.event-grid:empty+.no-events-message,
.event-grid.no-results+.no-events-message {
    display: block;
    padding: 40px 20px;
}

.no-events-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    display: none;
    grid-column: 1 / -1;
}

.no-events-message.show {
    display: block;
}

/* Responsive design */
@media (max-width: 768px) {
    .card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .event-filter {
        width: 100%;
        justify-content: flex-start;
    }

    .event-scroll-hint {
        display: block;
    }

    .event-scroll-container {
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 15px;
        margin: -5px;
        padding: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .event-scroll-container::-webkit-scrollbar {
        display: none;
    }

    .event-grid {
        display: flex;
        flex-direction: row;
        gap: 15px;
        width: max-content;
        max-height: none;
        overflow-y: visible;
        padding-right: 20px;
        align-items: stretch;
    }

    .event-item {
        flex: 0 0 280px;
        width: 280px;
        gap: 12px;
        padding: 12px;
        min-height: 140px;
        max-width: 280px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .event-item:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .event-date {
        min-width: 50px;
        padding: 8px 6px;
    }

    .event-date__day {
        font-size: 16px;
    }

    .event-date__month {
        font-size: 9px;
    }

    .event-row-1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .event-row-2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .event-organizer {
        align-self: flex-start;
    }

    .event-content {
        gap: 6px;
    }

    .event-title {
        font-size: 14px;
    }

    .event-location,
    .event-duration {
        font-size: 11px;
    }

    .event-description {
        font-size: 12px;
    }

    .no-events-message {
        min-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 0 0 100%;
    }
}

@media (max-width: 480px) {
    .event-item {
        flex: 0 0 250px;
        width: 250px;
        padding: 10px;
        min-height: 120px;
        max-width: 250px;
    }

    .event-date {
        padding: 6px 4px;
        min-width: 45px;
    }

    .event-date__day {
        font-size: 14px;
    }

    .event-date__month {
        font-size: 8px;
    }

    .event-title {
        font-size: 13px;
    }

    .event-organizer {
        font-size: 9px;
        padding: 3px 6px;
    }

    .btn-filter {
        font-size: 11px;
        padding: 5px 10px;
    }

    .event-scroll-hint {
        margin-bottom: 8px;
        padding: 6px;
    }

    .event-scroll-hint small {
        font-size: 11px;
    }
}

/* Desktop keeps the grid layout */
@media (min-width: 769px) {
    .event-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
        max-height: 600px;
        overflow-y: auto;
        padding-right: 10px;
    }

    .event-scroll-container {
        overflow-x: visible;
        overflow-y: visible;
        padding-bottom: 10px;
        margin: -5px;
        padding: 5px;
    }

    .event-scroll-hint {
        display: none;
    }
}

/* Scroll hint for mobile */
.event-scroll-hint {
    display: none;
    text-align: center;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(24, 146, 237, 0.1);
    border-radius: 6px;
    border: 1px dashed #1892ed;
}

.event-scroll-hint small {
    color: #1892ed;
    font-weight: 600;
    font-size: 12px;
}

.event-scroll-hint i {
    margin-right: 5px;
    animation: slideRight 2s ease-in-out infinite;
}

@keyframes slideRight {

    0%,
    100% {
        transform: translateX(0px);
    }

    50% {
        transform: translateX(5px);
    }
}

/* Event List Styling */
.event-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    margin: -5px;
    padding: 5px;
    position: relative;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
    padding-top: 5px;
}

/* Custom scrollbar for desktop */
.event-grid::-webkit-scrollbar {
    width: 6px;
}

.event-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.event-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.event-grid::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Scroll indicator for mobile */
.event-scroll-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 10px;
    width: 20px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
    pointer-events: none;
    display: none;
}

@media (max-width: 768px) {
    .event-scroll-container::after {
        display: block;
    }
}

/* Event Filter Styling */
.card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.event-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-filter {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    background: #fff;
    color: #6c757d;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-filter:hover {
    border-color: #1892ed;
    color: #1892ed;
    background: rgba(24, 146, 237, 0.1);
}

.btn-filter.active {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-filter.active:hover {
    background: #0d6db8;
    border-color: #0d6db8;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    min-height: 140px;
}

.event-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    border-color: #1892ed;
}

.event-item.hidden {
    display: none;
}

.event-date {
    flex-shrink: 0;
    text-align: center;
    background: linear-gradient(135deg, #1892ed, #0d6db8);
    color: #fff;
    border-radius: 8px;
    padding: 10px 8px;
    min-width: 60px;
    box-shadow: 0 3px 8px rgba(24, 146, 237, 0.3);
    align-self: flex-start;
}

.event-date__day {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.event-date__month {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-date__range {
    font-size: 8px;
    margin-top: 3px;
    opacity: 0.9;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 3px;
}

.event-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-row-1 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.event-row-2 {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.event-title {
    font-size: 15px;
    font-weight: 600;
    color: #31404b;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    min-width: 0;
}

.event-organizer {
    display: inline-block;
    background: #ffdc11;
    color: #31404b;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.event-location,
.event-duration {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #6c757d;
    flex: 1;
    min-width: 0;
}

.event-location i,
.event-duration i {
    width: 12px;
    color: #1892ed;
    font-size: 11px;
    flex-shrink: 0;
}

.event-location span,
.event-duration span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

/* Responsive design */
@media (max-width: 768px) {
    .card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .event-filter {
        width: 100%;
        justify-content: flex-start;
    }

    .event-scroll-hint {
        display: block;
    }

    .event-scroll-container {
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 15px;
        margin: -5px;
        padding: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .event-scroll-container::-webkit-scrollbar {
        display: none;
    }

    .event-grid {
        display: flex;
        flex-direction: row;
        gap: 15px;
        width: max-content;
        max-height: none;
        overflow-y: visible;
        padding-right: 20px;
        align-items: stretch;
    }

    .event-item {
        flex: 0 0 280px;
        width: 280px;
        gap: 12px;
        padding: 12px;
        min-height: 140px;
        max-width: 280px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .event-item:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .event-date {
        min-width: 50px;
        padding: 8px 6px;
    }

    .event-date__day {
        font-size: 16px;
    }

    .event-date__month {
        font-size: 9px;
    }

    .event-row-1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .event-row-2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .event-organizer {
        align-self: flex-start;
    }

    .event-content {
        gap: 6px;
    }

    .event-title {
        font-size: 14px;
    }

    .event-location,
    .event-duration {
        font-size: 11px;
    }

    .event-description {
        font-size: 12px;
    }

    .no-events-message {
        min-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 0 0 100%;
    }
}

@media (max-width: 480px) {
    .event-item {
        flex: 0 0 250px;
        width: 250px;
        padding: 10px;
        min-height: 120px;
        max-width: 250px;
    }

    .event-date {
        padding: 6px 4px;
        min-width: 45px;
    }

    .event-date__day {
        font-size: 14px;
    }

    .event-date__month {
        font-size: 8px;
    }

    .event-title {
        font-size: 13px;
    }

    .event-organizer {
        font-size: 9px;
        padding: 3px 6px;
    }

    .btn-filter {
        font-size: 11px;
        padding: 5px 10px;
    }

    .event-scroll-hint {
        margin-bottom: 8px;
        padding: 6px;
    }

    .event-scroll-hint small {
        font-size: 11px;
    }
}

/* Desktop keeps the grid layout */
@media (min-width: 769px) {
    .event-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
        max-height: 600px;
        overflow-y: auto;
        padding-right: 10px;
    }

    .event-scroll-container {
        overflow-x: visible;
        overflow-y: visible;
        padding-bottom: 10px;
        margin: -5px;
        padding: 5px;
    }

    .event-scroll-hint {
        display: none;
    }
}

/* Gallery Slider Styling */
.gallery-section {
    margin-bottom: 30px;
}

.gallery-section:last-child {
    margin-bottom: 0;
}

.gallery-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e30613;
    position: relative;
}

.gallery-section__header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #ffd100;
}

.gallery-section__title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
}

.gallery-section__view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #e30613;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(227, 6, 19, 0.05);
    border: 1px solid rgba(227, 6, 19, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gallery-section__view-btn:hover {
    color: #ffffff;
    background: #e30613;
    border-color: #e30613;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

.gallery-section__view-btn i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.gallery-section__view-btn:hover i {
    transform: translateX(2px);
}

/* Gallery Slider Container */
.gallery-slider-container {
    position: relative;
    overflow: hidden;
}

.gallery-slider {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
}

.gallery-slider__item {
    flex: 0 0 calc(33.333% - 10px);
    position: relative;
}

/* Gallery Item Enhancements */
.gallery__item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16/9;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery__item:hover .gallery__img {
    transform: scale(1.05);
}

.gallery__item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery__item:hover .gallery__item-overlay {
    opacity: 1;
}

.gallery__item-caption {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    margin-top: 10px;
}

/* Video Play Icon */
.gallery__item--video {
    border-radius: 12px;
}

.gallery__item--video .gallery__item-overlay {
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}

.gallery__item-play-icon {
    width: 60px;
    height: 60px;
    background: rgba(227, 6, 19, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.gallery__item-play-icon i {
    color: #ffffff;
    font-size: 24px;
    margin-left: 3px;
}

.gallery__item--video:hover .gallery__item-play-icon {
    background: #e30613;
    transform: scale(1.1);
}

/* Mobile Responsive - Slider Functionality */
@media (max-width: 768px) {
    .gallery-slider-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .gallery-slider-container::-webkit-scrollbar {
        display: none;
    }

    .gallery-slider {
        width: calc(100% + 30px);
        padding-right: 30px;
    }

    .gallery-slider__item {
        flex: 0 0 280px;
    }

    .gallery-section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .gallery-section__view-btn {
        align-self: flex-end;
        font-size: 12px;
        padding: 5px 10px;
    }

    .gallery-section__title {
        font-size: 15px;
    }

    .gallery__item-caption {
        font-size: 13px;
    }

    .gallery__item-play-icon {
        width: 50px;
        height: 50px;
    }

    .gallery__item-play-icon i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-slider__item {
        flex: 0 0 250px;
    }

    .gallery-section {
        margin-bottom: 25px;
    }

    .gallery-section__header {
        gap: 8px;
    }

    .gallery-section__view-btn {
        font-size: 11px;
        padding: 4px 8px;
    }

    .gallery-section__view-btn i {
        font-size: 10px;
    }

    .gallery__item-overlay {
        padding: 12px;
    }
}

/* Desktop Grid Fallback */
@media (min-width: 769px) {
    .gallery-slider {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .gallery-slider__item {
        flex: none;
    }
}

/* Loading Animation for Gallery Items */
@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-slider__item {
    animation: galleryFadeIn 0.6s ease-out;
}

.gallery-slider__item:nth-child(1) {
    animation-delay: 0.1s;
}

.gallery-slider__item:nth-child(2) {
    animation-delay: 0.2s;
}

.gallery-slider__item:nth-child(3) {
    animation-delay: 0.3s;
}

/* Ensure consistent styling for both photo and video gallery sliders */
.gallery-slider--photo .gallery__item,
.gallery-slider--video .gallery__item {
    border-radius: 12px;
    overflow: hidden;
}

.gallery-slider--photo .gallery__img,
.gallery-slider--video .gallery__img {
    border-radius: 12px;
}

.gallery-slider--video .gallery__item-overlay {
    border-radius: 12px;
}