/* =====================================================
   NEWS & EVENTS SECTION — Premium Redesign
   ===================================================== */

/* --- Section wrapper --- */
.news-events-section {
    position: relative;
    padding: 80px 0 60px;
    background: url('../images/news-bg.jpeg') center center / cover no-repeat;
    overflow: hidden;
}

.news-events-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

.news-events-section::after {
    display: none;
}

.news-events-section > * {
    position: relative;
    z-index: 2;
}

/* --- Section title --- */
.news-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.news-section-title .section-subtitle {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #06A3DA;
    margin-bottom: 10px;
    position: relative;
    padding: 0 20px;
}

.news-section-title .section-subtitle::before,
.news-section-title .section-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #06A3DA);
}

.news-section-title .section-subtitle::before {
    left: -30px;
    background: linear-gradient(90deg, transparent, #06A3DA);
}

.news-section-title .section-subtitle::after {
    right: -30px;
    background: linear-gradient(90deg, #06A3DA, transparent);
}

.news-section-title h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.2;
}

.news-section-title h2 span {
    background: linear-gradient(135deg, #06A3DA, #4fc3f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Tab Buttons --- */
.button-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 10px;
    flex-wrap: wrap;
}

.button-tabs .nav-item {
    flex: 0 1 auto;
}

.button-tabs .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.button-tabs .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #06A3DA, #4fc3f7);
    transition: width 0.35s ease;
    border-radius: 2px;
}

.button-tabs .nav-link::after {
    display: none;
}

.button-tabs .nav-link:hover {
    color: #fff;
    background: rgba(6, 163, 218, 0.08);
    border-color: rgba(6, 163, 218, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(6, 163, 218, 0.12);
}

.button-tabs .nav-link:hover::before {
    width: 60%;
}

.button-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(6,163,218,0.18) 0%, rgba(6,163,218,0.08) 100%);
    border-color: rgba(6, 163, 218, 0.4);
    box-shadow: 0 4px 24px rgba(6, 163, 218, 0.18), inset 0 1px 0 rgba(255,255,255,0.06);
    transform: translateY(-1px);
}

.button-tabs .nav-link.active::before {
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, #06A3DA, #4fc3f7);
}

.button-tabs .nav-link .tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.button-tabs .nav-link:hover .tab-icon,
.button-tabs .nav-link.active .tab-icon {
    background: rgba(6, 163, 218, 0.2);
    transform: scale(1.05);
}

.button-tabs .nav-link .tab-label {
    font-size: 0.95rem;
    letter-spacing: 0.4px;
}

/* Reset individual tab colors — unified scheme */
#placement-tab,
#latest-events-tab,
#upcoming-events-tab {
    background: rgba(255, 255, 255, 0.04);
}

#placement-tab.active {
    background: linear-gradient(135deg, rgba(6,163,218,0.18) 0%, rgba(6,163,218,0.08) 100%);
}

#latest-events-tab.active {
    background: linear-gradient(135deg, rgba(76,175,80,0.15) 0%, rgba(76,175,80,0.06) 100%);
    border-color: rgba(76,175,80,0.4);
    box-shadow: 0 4px 24px rgba(76,175,80,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
}

#latest-events-tab.active::before {
    background: linear-gradient(90deg, #4CAF50, #81C784);
}

#latest-events-tab:hover {
    background: rgba(76,175,80,0.08);
    border-color: rgba(76,175,80,0.25);
    box-shadow: 0 4px 20px rgba(76,175,80,0.1);
}

#upcoming-events-tab.active {
    background: linear-gradient(135deg, rgba(255,152,0,0.15) 0%, rgba(255,152,0,0.06) 100%);
    border-color: rgba(255,152,0,0.4);
    box-shadow: 0 4px 24px rgba(255,152,0,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
}

#upcoming-events-tab.active::before {
    background: linear-gradient(90deg, #FF9800, #FFB74D);
}

#upcoming-events-tab:hover {
    background: rgba(255,152,0,0.08);
    border-color: rgba(255,152,0,0.25);
    box-shadow: 0 4px 20px rgba(255,152,0,0.1);
}

/* --- Tab Content --- */
.tab-content {
    padding: 20px 0 10px;
    margin-top: 10px;
}

.tab-content .container {
    border-radius: 16px;
    padding: 30px;
}

/* --- Event Slider --- */
.event-slider {
    padding: 30px 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.event-slider .owl-stage-outer {
    overflow: hidden;
}

/* Force equal owl-item sizing */
.event-slider .owl-item {
    display: flex !important;
    align-items: stretch;
}

.event-slider .owl-stage {
    display: flex !important;
    align-items: stretch;
}

/* --- Event Card --- */
.event-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
    margin: 0;
    cursor: pointer;
    background: #ffffff;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.12);
    width: 100% !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-item .event-image-wrapper {
    position: relative;
    overflow: hidden;
}

.event-item::before {
    display: none;
}

/* View overlay icon — disabled */
.event-item::after {
    display: none;
}

.event-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-bottom: none;
    display: block;
}

/* --- Event Info (name + date) --- */
.event-info {
    background: #ffffff;
    padding: 18px 20px 16px;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-name {
    font-size: 0.95rem;
    font-weight: 700;
    text-align: left;
    color: #1a1a2e;
    letter-spacing: 0.2px;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: none;
    padding: 0;
    min-height: auto;
}

.event-name::before {
    display: none;
}

.event-date {
    font-size: 0.82rem;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.3px;
}

/* --- Owl Carousel Nav --- */
.owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}

.owl-prev,
.owl-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    font-size: 1.4rem !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 50% !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: all;
}

.owl-prev:hover,
.owl-next:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
    transform: scale(1.08);
}

.owl-prev {
    left: -10px;
}

.owl-next {
    right: -10px;
}

/* --- Owl Dots --- */
.owl-dots {
    text-align: center;
    margin-top: 20px;
}

.owl-dot span {
    width: 8px !important;
    height: 8px !important;
    background: rgba(255,255,255,0.2) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    margin: 0 5px !important;
}

.owl-dot.active span {
    background: #06A3DA !important;
    width: 24px !important;
    border-radius: 4px !important;
}

.owl-dot:hover span {
    background: rgba(6,163,218,0.5) !important;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .news-events-section {
        padding: 60px 0 40px;
    }

    .news-section-title h2 {
        font-size: 2rem;
    }

    .owl-prev {
        left: 5px;
    }

    .owl-next {
        right: 5px;
    }
}

@media (max-width: 768px) {
    .news-events-section {
        padding: 50px 0 30px;
    }

    .news-section-title h2 {
        font-size: 1.6rem;
    }

    .event-item::before {
        display: none;
    }

    .event-info {
        padding: 14px 16px 12px;
    }

    .event-name {
        font-size: 0.85rem;
    }

    .event-date {
        font-size: 0.78rem;
    }

    .button-tabs {
        gap: 6px;
        padding: 12px 0;
    }

    .button-tabs .nav-link {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .button-tabs .nav-link .tab-icon {
        width: 30px;
        height: 30px;
    }

    .button-tabs .nav-link .tab-icon svg {
        width: 18px;
        height: 18px;
    }

    .button-tabs .nav-link .tab-label {
        font-size: 0.85rem;
    }

    .owl-prev,
    .owl-next {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.1rem !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 480px) {
    .button-tabs {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .button-tabs .nav-link {
        width: 220px;
        justify-content: center;
        padding: 10px 20px;
    }

    .event-item::before {
        display: none;
    }
}

/* --- Modal --- */
.modal-content {
    background-color: transparent;
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.modal-body {
    padding: 0;
}

.modal-body img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-backdrop.show {
    opacity: 0.85;
}
