/* ==========================================================================
   COMMUNITIES & MANAGEMENT SPECIFIC STYLES
   (Relies on styles.css for Header, Footer, and Resets)
   ========================================================================== */

/* Management Hero Section */
.management-hero-section {
    display: flex;
    justify-content: flex-start;
    padding-top: 8rem;
    position: relative;
}

.management-hero-content {
    max-width: 1150px;
    margin: 0;
    text-align: left;
    padding-left: 0rem;
}

.management-hero-title {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.management-hero-description {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 0rem;
}

.management-hero-description p {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: -0.01em;
}

/* Event Management Section */
.event-management-section {
    padding: 2rem 0;
}

.event-header {
    display: flex;
    justify-content: flex-start;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.01em;
}

/* Timeline Container */
.timeline-container {
    position: relative;
    margin-top: 4rem;
    padding-left: 4rem;
}

/* Timeline Line */
.timeline-line {
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.1) 100%);
    z-index: 1;
}

/* Timeline Card */
.timeline-card {
    position: relative;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    will-change: transform;
}

.timeline-card:hover {
    transform: translateY(-8px) scale(1);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Timeline Connection Dots */
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -63px;
    top: 2rem;
    width: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.6) 100%);
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.timeline-year {
    position: relative;
    left: 15px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 1px;
}

/* Card Content */
.card-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    min-height: 300px;
}

.card-left {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-header {
    margin-bottom: 2rem;
}

.card-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.event-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.event-link svg {
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.event-link:hover svg {
    opacity: 1;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.card-role {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.card-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-right {
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.timeline-card:hover .card-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.3) 100%);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.timeline-card:hover .image-overlay {
    opacity: 0.3;
}

.event-content {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.event-item {
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.event-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.event-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.event-role {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin-bottom: 1rem;
}

.event-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-weight: 400;
    max-width: 800px;
}

/* Community Section */
.community-section {
    padding: 2rem 0;
}

.community-header {
    display: flex;
    justify-content: flex-start;
}

.community-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.community-content {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.community-item {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    will-change: transform;
}

.community-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

/* Floating decoration elements */
.community-item::after {
    content: '';
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 70%);
    border-radius: 50%;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.community-item:hover::after {
    transform: scale(1.5);
    opacity: 0.8;
}

.community-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
    text-decoration: none;
}

.community-role {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-bottom: 1rem;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    position: relative;
    z-index: 2;
}

.community-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

/* Approach Section */
.approach-section {
    padding: 2rem 0;
}

.approach-header {
    display: flex;
    justify-content: flex-start;
}

.approach-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.approach-content {
    margin-top: 2rem;
    max-width: 900px;
    margin-left: 0;
    margin-right: auto;
    padding-left: 0rem;
    text-align: left;
}

.approach-text {
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.5;
    color: #a3a3a3;
    margin-bottom: 2.5rem;
    letter-spacing: 0.01em;
}

.approach-text:last-child {
    margin-bottom: 0;
}

/* Event Grid Layout */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* The Translucent "Glassmorphism" Card */
.event-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    /* PERFORMANCE FIX */
}

.event-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.event-card .event-name {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.event-card .event-role {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.event-card .event-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ==========================================================================
   THE ARCADE SECTION
   ========================================================================== */
.arcade-section {
    padding: 2rem 0;
}

.arcade-container {
    margin-top: 4rem;
    max-width: 1200px;
}

.arcade-card {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.arcade-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.arcade-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.arcade-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    color: #000000;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 1rem;
}

.arcade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Visual Decoration (Right Side) */
.arcade-visual {
    height: 100%;
    min-height: 300px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arcade-placeholder-art {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    position: relative;
}

.arcade-placeholder-art::before,
.arcade-placeholder-art::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
}

.arcade-placeholder-art::before {
    transform: rotate(30deg);
}

.arcade-placeholder-art::after {
    transform: rotate(-30deg);
}


/* Mobile Responsive */
@media (max-width: 900px) {
    .arcade-card {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .arcade-visual {
        min-height: 200px;
        order: -1;
        /* Puts image on top on mobile */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .management-hero-section {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 3rem;
    }

    .management-hero-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .management-hero-description p {
        font-size: 1.125rem;
    }

    .event-management-section,
    .community-section,
    .approach-section {
        padding: 1rem 0;
    }

    .approach-text {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    /* Timeline mobile adjustments */
    .timeline-container {
        padding-left: 2rem;
    }

    .timeline-line {
        left: 10px
    }

    .timeline-marker {
        left: -32px;
        top: 2rem;
    }

    .timeline-year {
        left: 11px;
        font-size: 0.9rem;
    }

    .card-left {
        padding: 2rem;
    }

    .card-links {
        gap: 0.75rem;
    }

    .event-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .timeline-card {
        margin-left: 1.5rem;
    }

    .timeline-card::before {
        left: -2.75rem;
    }

    .card-content {
        grid-template-columns: 1fr;
    }

    .card-right {
        display: none;
    }

    /* Community grid mobile adjustments */
    .community-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .community-item {
        padding: 2rem;
    }

    .community-item:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {

    /* Timeline mobile adjustments */
    .timeline-container {
        padding-left: 0.5rem;
    }

    .timeline-line {
        left: 5px
    }

    .timeline-marker {
        left: -13px;
        top: 2rem;
    }

    .timeline-year {
        left: 11px;
        font-size: 0.9rem;
    }

    .card-left {
        padding: 2rem;
    }

    .timeline-card {
        margin-left: 1.5rem;
    }

    .timeline-card::before {
        left: -2.75rem;
    }

    .card-content {
        grid-template-columns: 1fr;
    }

    .card-right {
        display: none;
    }

    .card-left {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .card-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .card-stats {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .stat-item {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
    }

    .stat-number {
        font-size: 1.125rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .management-hero-title {
        font-size: 1.5rem;
    }

    .management-hero-description p {
        font-size: 1rem;
    }

    .approach-text {
        font-size: 1.125rem;
    }
}