/* ===== EVENTS PAGE SPECIFIC STYLES ===== */
/* Colors matching home page: Cyan #7af7f7 */

/* Hero Section - Desktop (full screen) */
.events-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.75)), 
                url('/assets/images/play16.png') center/cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width: 100%;
    margin-top: 0;
    isolation: isolate;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.events-hero .hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.events-hero .hero-subtitle {
    font-size: 1.1rem;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.events-hero .hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.events-hero .btn-primary {
    background: #7af7f7;
    color: #0a0a0c;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 40px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.events-hero .btn-primary:hover {
    background: #5ed4d4;
    transform: translateY(-2px);
}

/* Events Section */
.events-section {
    padding: 50px 0;
    background: #0a0a0c;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #7af7f7;
    font-weight: 700;
}

.section-header p {
    color: #9CA3AF;
    font-size: 0.85rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Bar Section */
.search-section {
    margin-bottom: 30px;
}

.search-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    min-width: 200px;
}

.search-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7af7f7;
    font-size: 0.9rem;
}

.search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    color: #ffffff;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #7af7f7;
    background: rgba(122, 247, 247, 0.05);
}

.search-input::placeholder {
    color: #6B7280;
}

.search-btn {
    padding: 10px 24px;
    background: #7af7f7;
    color: #0a0a0c;
    border: none;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: #5ed4d4;
    transform: translateY(-2px);
}

.clear-search {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #9CA3AF;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-search:hover {
    border-color: #7af7f7;
    color: #7af7f7;
}

.search-results-info {
    text-align: center;
    margin-top: 12px;
    color: #9CA3AF;
    font-size: 0.8rem;
}

.search-results-info span {
    color: #7af7f7;
    font-weight: 600;
}

/* Events Grid - Desktop: 3 columns */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Event Card */
.event-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-3px);
    border-color: #7af7f7;
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.3);
}

.event-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-date-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(122, 247, 247, 0.9);
    color: #0a0a0c;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
}

.event-info {
    padding: 12px;
}

.event-title {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.3;
}

.event-date,
.event-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: #9CA3AF;
    margin-bottom: 5px;
}

.event-date i,
.event-location i {
    color: #7af7f7;
    width: 14px;
    font-size: 0.7rem;
}

.event-price {
    color: #83f582;
    font-weight: 600;
    font-size: 0.7rem;
    margin-top: 6px;
    display: inline-block;
    padding: 2px 8px;
    background: rgba(131, 245, 130, 0.1);
    border-radius: 20px;
}

.view-details-btn {
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 1px solid #7af7f7;
    color: #7af7f7;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.view-details-btn:hover {
    background: #7af7f7;
    color: #0a0a0c;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.no-results i {
    font-size: 2.5rem;
    color: #7af7f7;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-results p {
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* Event Modal */
.event-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.event-modal-content {
    background: #14141a;
    border: 1px solid rgba(122, 247, 247, 0.3);
    border-radius: 16px;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.event-modal-header {
    position: sticky;
    top: 0;
    background: #14141a;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
    z-index: 1;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(122, 247, 247, 0.1);
    color: #7af7f7;
}

.event-modal-body {
    padding: 24px;
}

.event-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

/* Event Details Content */
.event-details {
    display: grid;
    gap: 20px;
}

.event-header {
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.event-title {
    font-size: 1.5rem;
    color: #7af7f7;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 700;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e5e7eb;
    font-size: 0.8rem;
}

.event-meta-item i {
    color: #7af7f7;
    font-size: 0.9rem;
}

.event-image {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-description {
    color: #9CA3AF;
    line-height: 1.5;
    font-size: 0.85rem;
}

.event-description p {
    margin-bottom: 0.75rem;
}

.event-highlights {
    background: rgba(122, 247, 247, 0.05);
    border-left: 3px solid #7af7f7;
    padding: 14px;
    border-radius: 0 8px 8px 0;
}

.event-highlights h4 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.event-highlights ul {
    list-style: none;
    padding: 0;
}

.event-highlights li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #9CA3AF;
    font-size: 0.75rem;
}

.event-highlights li i {
    color: #83f582;
    font-size: 0.75rem;
}

.event-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.event-actions .btn {
    padding: 10px 24px;
    font-size: 0.8rem;
    min-width: 120px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (992px and below) */
@media (max-width: 992px) {
    .events-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .events-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* Mobile (768px and below) - EXACT SAME AS HOME PAGE */
@media (max-width: 768px) {
    /* Hero section - not full screen on mobile (same as home page) */
    .events-hero {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        min-height: auto;
        padding: 100px 0 60px;
        align-items: center;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .events-hero .hero-title {
        font-size: 2rem;
    }
    
    .events-hero .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .events-hero .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .events-hero .hero-cta .btn {
        width: 100%;
        max-width: 220px;
    }
    
    /* Section padding */
    .events-section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .section-header p {
        font-size: 0.75rem;
    }
    
    /* Search bar - improved layout on mobile */
    .search-container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .search-input-wrapper {
        flex: 1 1 calc(50% - 8px);
        min-width: 120px;
    }
    
    .search-btn, .clear-search {
        flex: 0 0 auto;
        width: auto;
        padding: 10px 16px;
        white-space: nowrap;
    }
    
    /* Events Grid - 2 columns on mobile */
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Event card adjustments */
    .event-image {
        height: 120px;
    }
    
    .event-title {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .event-info {
        padding: 8px;
    }
    
    .event-date, .event-location {
        font-size: 0.6rem;
        gap: 4px;
        margin-bottom: 3px;
    }
    
    .event-date i, .event-location i {
        font-size: 0.6rem;
        width: 12px;
    }
    
    .event-price {
        font-size: 0.65rem;
        margin-top: 4px;
        padding: 2px 6px;
    }
    
    .view-details-btn {
        padding: 6px;
        font-size: 0.6rem;
        margin-top: 8px;
    }
    
    /* Prevent horizontal scroll */
    body, .container {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Small Mobile (550px and below) - Search bar becomes full width */
@media (max-width: 550px) {
    .search-container {
        gap: 8px;
    }
    
    .search-input-wrapper {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .search-btn, .clear-search {
        flex: 1 1 calc(50% - 4px);
        text-align: center;
        justify-content: center;
    }
}

/* Very Small Mobile (480px and below) */
@media (max-width: 480px) {
    .events-hero {
        padding: 80px 0 40px;
    }
    
    .events-hero .hero-title {
        font-size: 1.6rem;
    }
    
    .events-hero .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .events-section {
        padding: 30px 0;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .section-header p {
        font-size: 0.7rem;
    }
    
    /* Events Grid - 2 columns still */
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .event-image {
        height: 100px;
    }
    
    .event-title {
        font-size: 0.7rem;
    }
    
    .event-date, .event-location {
        font-size: 0.55rem;
    }
    
    .event-price {
        font-size: 0.6rem;
    }
    
    .view-details-btn {
        padding: 5px;
        font-size: 0.55rem;
    }
    
    .event-date-badge {
        font-size: 0.55rem;
        padding: 2px 6px;
    }
    
    /* Modal */
    .event-modal-body {
        padding: 16px;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
    
    .event-image {
        height: 150px;
    }
    
    .event-description {
        font-size: 0.75rem;
    }
}

/* Landscape mode for mobile */
@media (max-width: 900px) and (orientation: landscape) {
    .events-hero {
        padding: 60px 0 30px;
        min-height: auto;
    }
    
    .events-hero .hero-title {
        font-size: 1.5rem;
    }
    
    .events-hero .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .events-section {
        padding: 30px 0;
    }
    
    /* Search bar in landscape - horizontal row */
    .search-container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .search-input-wrapper {
        flex: 1 1 calc(50% - 8px);
        min-width: 180px;
    }
    
    .search-btn, .clear-search {
        flex: 0 0 auto;
        width: auto;
        padding: 10px 20px;
    }
    
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .event-image {
        height: 110px;
    }
}
/* Event Status Badges */
.event-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    z-index: 2;
}

.event-status-badge.upcoming {
    background: #7af7f7;
    color: #0a0a0c;
}

.event-status-badge.ongoing {
    background: #83f582;
    color: #0a0a0c;
}

.event-status-badge.completed {
    background: #6B7280;
    color: white;
}

/* Training card specific */
.training-card .event-instructor {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: #7af7f7;
    margin: 5px 0;
}

.training-card .event-instructor i {
    font-size: 0.65rem;
}

/* Modal additional content styles */
.event-instructor-detail,
.event-topics,
.event-requirements,
.event-certificate,
.event-capacity {
    margin-top: 15px;
    padding: 12px;
    background: rgba(122, 247, 247, 0.05);
    border-radius: 8px;
}

.event-instructor-detail h4,
.event-topics h4,
.event-requirements h4 {
    color: #7af7f7;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.event-topics ul {
    list-style: none;
    padding: 0;
}

.event-topics li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #9CA3AF;
    font-size: 0.75rem;
}

.event-topics li i {
    color: #83f582;
    font-size: 0.7rem;
}

.event-certificate {
    background: rgba(131, 245, 130, 0.1);
    border-left: 3px solid #83f582;
    color: #83f582;
    font-size: 0.75rem;
}

.event-capacity {
    background: rgba(122, 247, 247, 0.05);
    color: #9CA3AF;
    font-size: 0.75rem;
}

.event-capacity i {
    color: #7af7f7;
    margin-right: 6px;
}