/* Events Archive Page Styles */

.events-grid-section {
    padding: 0px 0;
    background: var(--primary-bg);
}

.events-grid {
    max-width: 1232px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.events-grid .event-card {
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s;
}

.events-grid .event-card:hover {
    transform: translateY(-5px);
}

.events-grid .event-card-arrow {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    margin-top: auto;
}

.events-grid .event-card-arrow img {
    width: 30px;
    height: auto;
    transition: opacity 0.3s;
}

.events-grid .event-card:hover .event-card-arrow img {
    opacity: 0.7;
}

@media (max-width: 992px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}

.events-archive-page {
    background: #E0D5CF;
}

.events-archive-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 0;
}

.events-archive-header {
    margin-bottom: 80px;
}

.events-archive-content {
    text-align: center;
}

.events-archive-title {
    font-family: 'FbMatador', Arial, sans-serif;
    font-size: 42px;
    font-weight: 400;
    color: #003346;
    margin: 0;
    text-align: center;
}

/* Event Gallery (Slider) - COPIED FROM style-events.css */
.event-gallery {
    padding: 0;
    background: #E0D5CF;
}

.event-gallery-wrapper {
    max-width: 1440px;
    margin: 0 auto;
   
}

.event-gallery-inner {
    width: 100%;
    max-width: 1232px;
    margin: 0 auto;
    position: relative;
}

.event-gallery-title {
    font-family: 'Heebo', sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 56px;
    color: #003346;
    text-align: left;
    margin: 0 0 40px 0;
    margin-left: 20px;
}

.event-gallery-nav {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 15px;
    z-index: 10;
    margin-left: 20px;
}

.gallery-nav-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.gallery-nav-btn img {
    width: 45px;
    height: 45px;
}

.event-gallery-container {
    overflow: hidden;
    width: 1232px;
    margin: 0 auto;
}

.event-gallery-track {
    display: flex;
    gap: 31px;
    transition: transform 0.4s ease-in-out;
}

.gallery-item {
    flex: 0 0 390px;
    height: auto;
}

/* Event Card Styles */
.event-card {
    flex: 0 0 390px;
    background: #E0D5CF;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.event-card-image {
    width: 100%;
    height: 260px;
    position: relative;
}

.event-image {
    width:100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.event-card-content {
   
    position: relative;
    direction: rtl;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 20px;
}

.event-card-date-badge {
    background-color: #D7794C;
    color: #000;
    padding: 6px 12px;
    border-radius: 26px;
    font-family: 'Assistant', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.event-card-title {
    font-family: 'Heebo', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #003346;
    margin: 0 0 10px 0;
    line-height: 28px;
}

.event-card-excerpt {
    font-family: 'Assistant', Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #666;
    line-height: 22px;
    margin: 0 0 18px 0;
}

.event-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Assistant', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #003346;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-card-link:hover {
    color: #D7794C;
}

.event-card-link svg {
    transition: transform 0.3s ease;
}

.event-card-link:hover svg {
    transform: translateX(-2px);
}

/* Decorative Line */
.event-gallery-decorative-line {
    width: 100%;
    max-width: 1192px;
    height: 2px;
    background: linear-gradient(to left, #D7794C 240px, rgba(0, 51, 70, 0.4) 240px);
    margin: 40px auto 60px auto;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .events-archive-container {
        padding: 60px 20px;
        overflow-x: hidden;
    }
    
    .event-gallery-wrapper {
        padding: 0;
    }
    
    .event-gallery-inner {
        max-width: 100%;
        padding: 0 40px;
    }
    
    .event-gallery-container {
        width: 100%;
        max-width: 1000px;
    }
    
    .gallery-item,
    .event-card {
        flex: 0 0 320px;
    }
    
    .event-gallery-track {
        gap: 20px;
    }
    
    .event-gallery-decorative-line {
        max-width: calc(100% - 80px);
    }
}

@media (max-width: 992px) {
    .events-archive-container {
        padding: 50px 15px;
    }
    
    .events-archive-header {
        margin-bottom: 60px;
    }
    
    .events-archive-title {
        font-size: 36px;
    }
    
    .event-gallery-inner {
        padding: 0 30px;
    }
    
    .event-gallery-title {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 35px;
    }
    
    .event-gallery-nav {
        gap: 12px;
    }
    
    .gallery-nav-btn img {
        width: 40px;
        height: 40px;
    }
    
    .event-gallery-container {
        max-width: 900px;
    }
    
    .gallery-item,
    .event-card {
        flex: 0 0 300px;
    }
    
    .event-gallery-track {
        gap: 20px;
    }
    
    .event-card-image {
        height: 180px;
    }
    
    .event-card-content {
        padding: 20px;
    }
    
    .event-card-title {
        font-size: 18px;
        line-height: 24px;
    }
    
    .event-card-excerpt {
        font-size: 14px;
        line-height: 20px;
    }
    
    .event-gallery-decorative-line {
        max-width: calc(100% - 60px);
    }
}

@media (max-width: 768px) {
    .events-archive-container {
        padding: 40px 10px;
    }
    
    .events-archive-header {
        margin-bottom: 50px;
    }
    
    .events-archive-title {
        font-size: 30px;
    }
    
    .event-gallery-inner {
        padding: 0 20px;
    }
    
    .event-gallery-title {
        font-size: 26px;
        line-height: 34px;
        margin-bottom: 30px;
    }
    
    .event-gallery-nav {
        top: 0;
        left: 0;
        gap: 10px;
    }
    
    .gallery-nav-btn img {
        width: 38px;
        height: 38px;
    }
    
    .event-gallery-container {
        max-width: 100%;
    }
    
    .gallery-item,
    .event-card {
        flex: 0 0 280px;
    }
    
    .event-gallery-track {
        gap: 15px;
    }
    
    .event-card-image {
        height: 160px;
    }
    
    .event-card-content {
        padding: 18px;
    }
    
    .event-card-date-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .event-card-title {
        font-size: 17px;
        line-height: 23px;
        margin-bottom: 8px;
    }
    
    .event-card-excerpt {
        font-size: 13px;
        line-height: 19px;
        margin-bottom: 14px;
    }
    
    .event-card-link {
        font-size: 13px;
    }
    
    .event-gallery-decorative-line {
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .events-archive-container {
        padding: 30px 5px;
    }
    
    .events-archive-header {
        margin-bottom: 40px;
    }
    
    .events-archive-title {
        font-size: 26px;
    }
    
    .event-gallery-inner {
        padding: 0 15px;
    }
    
    .event-gallery-title {
        font-size: 22px;
        line-height: 30px;
        margin-bottom: 25px;
    }
    
    .event-gallery-nav {
        gap: 8px;
    }
    
    .gallery-nav-btn img {
        width: 32px;
        height: 32px;
    }
    
    .event-gallery-container {
        width: 100%;
    }
    
    .gallery-item,
    .event-card {
        flex: 0 0 260px;
    }
    
    .event-gallery-track {
        gap: 12px;
    }
    
    .event-card-image {
        height: 140px;
    }
    
    .event-card-content {
        padding: 15px;
    }
    
    .event-card-date-badge {
        font-size: 10px;
        padding: 4px 8px;
        margin-bottom: 10px;
    }
    
    .event-card-title {
        font-size: 16px;
        line-height: 22px;
        margin-bottom: 6px;
    }
    
    .event-card-excerpt {
        font-size: 12px;
        line-height: 18px;
        margin-bottom: 12px;
    }
    
    .event-card-link {
        font-size: 12px;
        gap: 6px;
    }
    
    .event-card-link svg {
        width: 14px;
        height: 14px;
    }
    
    .event-gallery-decorative-line {
        max-width: calc(100% - 30px);
        margin: 30px auto 50px auto;
    }
}
