/* Event Section Styles extracted from Home.css */

/*Event highlight */
.Event-highlight {
    width: 80%;
    margin: 0px auto;
    margin-top: 150px !important;
    height: auto;
    text-align: center;
    color: #f7f6f6;
    display: flex;
    flex-direction: column;
}

.Event-highlight .heading h2 {
    margin-top: 20px;
    font-size: 2rem;
    position: relative;
    z-index: 1;
    font-weight: 1000;
    color: #ffffff;
    text-shadow: 0 0 15px #ff3700, 0 0 35px #FF2E63;
}

.Event-highlight .heading p {
    margin: 20px 0;
    font-size: 1rem;
}

/*  Event Stats */
.event-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 50px auto 0;
    padding: 0 20px;
}

/* Individual card */
.stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 28px 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(122, 56, 252, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 0 40px rgba(255, 46, 99, 0.7);
}

.stat-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 0 12px #ff2e63;
}

.stat-card span {
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: #eaeaea;
}

/* Tablet  */
@media (max-width: 992px) {
    .event-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card h2 {
        font-size: 2rem;
    }
}

/* ================= Mobile ================= */
@media (max-width: 600px) {
    .event-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card {
        padding: 22px 12px;
        width: auto;
    }

    .stat-card h2 {
        font-size: 1.8rem;
    }

    .stat-card span {
        font-size: 0.9rem;
        width: 100%;
    }
}

/* Event Timeline */
.flowchart {
    margin: 80px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.flowchart .heading h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin: 15px 0;
    letter-spacing: 1px;
    text-shadow: 0 0 15px #ff3700, 0 0 35px #FF2E63;
}

.flowchart .heading p {
    color: #eaeaea;
    text-align: center;
    margin-bottom: 30px;
}

/* Timeline Controls (Tabs) */
.timeline-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
}

.timeline-btn {
    background: transparent;
    border: 2px solid #7A38FC;
    color: #fff;
    padding: 10px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 0 10px rgba(122, 56, 252, 0.2);
}

.timeline-btn:hover,
.timeline-btn.active {
    background: #7A38FC;
    box-shadow: 0 0 20px #7A38FC, 0 0 40px #FF2E63;
    transform: scale(1.05);
}

/* Timeline Container */
.timeline-container {
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    position: relative;
    padding: 20px 0;
}

.timeline-container.active {
    display: flex;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Timeline Line */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, transparent, #7A38FC, #FF2E63, transparent);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(122, 56, 252, 0.5);
}

/* Timeline Item Container */
.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 50px;
    position: relative;
}

/* Central Dot */
.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #000;
    border: 4px solid #FF2E63;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 20px #FF2E63;
    transition: all 0.3s ease;
}

.timeline-item:hover::after {
    background: #FF2E63;
    box-shadow: 0 0 30px #FF2E63, 0 0 60px #7A38FC;
    transform: translateX(-50%) scale(1.2);
}

/* Content & Time sides */
.timeline-item .time,
.timeline-item .content,
.timeline-item .events-wrapper {
    width: 45%;
}

.timeline-item .time {
    text-align: right;
    font-size: 1.3rem;
    color: #FF2E63;
    font-weight: 800;
    padding-right: 40px;
    text-shadow: 0 0 10px rgba(255, 46, 99, 0.5);
}

.timeline-item .content {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    margin-left: auto;
    position: relative;
    overflow: hidden;
}

.timeline-item .events-wrapper .content {
    width: 100%;
    margin-bottom: 20px;
    margin-left: 0;
}

.timeline-item .events-wrapper .content:last-child {
    margin-bottom: 0;
}

.timeline-item .content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay */
    background: linear-gradient(135deg, rgba(122, 56, 252, 0.1), rgba(255, 46, 99, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-item .content:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #7A38FC;
    box-shadow: 0 0 30px rgba(122, 56, 252, 0.4);
}

.timeline-item .content:hover::before {
    opacity: 1;
}

.timeline-item .content h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.timeline-item .content .tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    background: rgba(122, 56, 252, 0.2);
    color: #d8b4fe;
    border: 1px solid rgba(122, 56, 252, 0.4);
    margin-top: 8px;
    position: relative;
    z-index: 1;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.timeline-item .content .tag.break {
    background: rgba(255, 165, 0, 0.15);
    color: #ffd700;
    border-color: rgba(255, 165, 0, 0.4);
}

/* Alternating Layout */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .time {
    text-align: left;
    padding-right: 0;
    padding-left: 40px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        position: relative;
        padding-left: 70px;
        /* Space for line */
        margin-bottom: 40px;
    }

    .timeline-item::after {
        left: 30px;
        transform: translateX(-50%);
    }

    .timeline-item:hover::after {
        transform: translateX(-50%) scale(1.2);
    }

    .timeline-item .time {
        width: 100%;
        text-align: left;
        padding: 0;
        margin-bottom: 12px;
        font-size: 1.1rem;
        padding-left: 5px;
    }

    .timeline-item .content,
    .timeline-item .events-wrapper {
        width: 100%;
        margin-left: 0;
    }

    .timeline-item .content {
        padding: 20px;
    }
}




/* Extracted from General Mobile Media Queries in Home.css */
@media (max-width: 768px) {
    .event-stats {
        flex-direction: column;
        /* Stack stats */
        align-items: center;
        gap: 20px;
    }

    .stat-card {
        width: auto;
        /* Full width cards */
    }

    .timeline-item .content {
        width: 100%;
    }
}

/* --- FEATURED EVENTS SECTION --- */
.featured-events {
    width: 80%;
    margin: 100px auto;
    text-align: center;
}

.featured-events h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 40px;
    text-shadow: 0 0 15px #ff3700, 0 0 35px #FF2E63;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Event Card Styles (Adapted from Event/event.css) */
.event-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.event-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .card-image img {
    transform: scale(1.1);
}

.category-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.tag-online {
    background: #10b981;
    color: #000;
}

.tag-offline {
    background: #f43f5e;
    color: #fff;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-date {
    color: #8b5cf6;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: #ffffff;
}

.event-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.event-details {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: auto;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.register-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: white;
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
}

.register-btn:hover {
    background: #8b5cf6;
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.view-all-events {
    margin-top: 40px;
}

.view-all-events a {
    text-decoration: none;
    font-size: 1.1rem;
    padding: 12px 30px;
    color: #fff;
    border: 1px solid #7A38FC;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: rgba(122, 56, 252, 0.1);
}

.view-all-events a:hover {
    background: #7A38FC;
    box-shadow: 0 0 20px rgba(122, 56, 252, 0.4);
    transform: translateY(-3px);
}