/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-split {
    display: flex;
    height: 100%;
    width: 100%;
}

.hero-left {
    width: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.hero-right {
    width: 50%;
    position: relative;
}

.hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-content {
    max-width: 500px;
    text-align: left;
}

.hero-logo {
    margin-bottom: var(--spacing-md);
}

.hero-logo img {
    max-width: 500px;
    height: auto;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-light);
    text-align: center;
}

/* History & Team Section */
.history-team {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
    padding-top: 0;
}

.history-team h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.team-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: var(--spacing-lg);
}

.team-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

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

.team-gallery-item img {
    width: 100%;
    object-fit: cover;
    display: block;
    height: 500px;
}

/* Events Section */
.events {
    background-color: var(--white);
}

.events-list {
    margin: 0 auto 40px;
    max-width: var(--container-width);
    padding: 0;
}

.event-item {
    display: grid;
    grid-template-columns: 100px 1fr 180px;
    gap: 30px;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 32px;
    position: relative;
    transition: all 0.2s ease;
    overflow: hidden;
}

.event-date {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: auto;
    margin-bottom: auto;
}

.date-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.date-box .day {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1;
    color: var(--text-dark);
}

.date-box .weekday {
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-box .month {
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.event-image {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    width: 180px;
    height: 100%;
    margin-left: auto;
    min-height: 150px;
    margin-top: auto;
    margin-bottom: auto;
}

.image-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.event-item .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.event-gradient-bg {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(var(--primary-color-rgb), 0.6) 100%);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.event-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.event-item:hover .image-container img,
.event-item:hover .event-gradient-bg {
    opacity: 1;
}

/* News Section */
.news {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.news-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.news-content h3 a {
    text-decoration: none!important;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.news-content h3 a:hover {
    color: var(--primary-color);
}   

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: var(--spacing-md);
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.news-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-content h3 a:hover {
    color: var(--primary-color);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 0.875rem;
    color: #666;
}

.news-meta img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.news-link {
    display: none;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .team-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-item {
        grid-template-columns: 100px 1fr 150px;
        gap: 20px;
    }
    
    .event-image {
        width: 150px;
    }
}

@media screen and (max-width: 768px) {
    .hero-split {
        flex-direction: column;
    }

    .hero-left {
        width: 80%;
        height: 50vh;
    }

    .hero-right {
        width: 100%;
        height: 50vh;
    }

    .hero-left {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: var(--spacing-md);
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-logo {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: var(--spacing-sm);
    }

    .hero-logo img {
        min-width: auto;
        max-width: 300px;
        width: 100%;
    }

    .hero-text {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-text p {
        font-size: 1.2rem;
        text-align: center;
        max-width: 300px;
        margin: 0 auto;
    }

    .events-list {
        padding: 0 20px;
    }

    .event-item {
        grid-template-columns: 80px 1fr;
        gap: 20px;
        padding: 24px;
    }

    .event-image {
        position: absolute;
        top: 0;
        right: 0;
        width: 120px;
        height: 100%;
        margin: 0;
        border-radius: 0 8px 8px 0;
        opacity: 0.1;
    }

    .event-content {
        padding-right: 100px;
    }

    .event-intro .text {
        -webkit-line-clamp: 2;
    }

    .date-box {
        text-align: center;
    }

    .date-box .day {
        font-size: 2.2rem;
    }

    .date-box .weekday,
    .date-box .month {
        font-size: 0.85rem;
    }

    .event-time {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .team-gallery {
        grid-template-columns: 1fr;
    }

    .team-gallery-item img {
        height: 250px;
    }

    .events-list {
        padding: 0 16px;
    }

    .event-item {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        margin-bottom: 24px;
    }

    .event-date {
        width: 100%;
        display: flex;
        padding-bottom: 16px;
        margin-bottom: 16px;
        border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
    }

    .date-box {
        display: flex;
        flex-direction: row !important;
        align-items: baseline;
        gap: 12px;
        flex: 1;
    }

    .date-box .weekday,
    .date-box .month,
    .event-time,
    .event-time i {
        font-size: 0.95rem;
        line-height: 1;
        font-weight: 400;
        color: #666;
    }

    .date-box .weekday {
        order: -1;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-dark);
        opacity: 0.8;
    }

    .date-box .day {
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-dark);
        margin: 0;
    }

    .event-time {
        margin: 0;
        margin-left: auto;
        display: flex;
        align-items: baseline;
        gap: 6px;
    }

    .event-time i {
        opacity: 0.7;
    }

    .event-content {
        padding-right: 0;
    }

    .event-image {
        position: absolute;
        top: 0;
        right: 0;
        width: 80px;
        height: 100%;
        opacity: 0.08;
    }

    .event-item:hover .image-container img,
    .event-item:hover .event-gradient-bg {
        opacity: 0.15;
    }

    .event-intro {
        margin-top: 8px;
    }

    .event-participants {
        margin-top: 4px;
    }

    .event-participants .label,
    .event-intro .label {
        font-size: 0.75rem;
    }

    .event-participants .text,
    .event-intro .text {
        font-size: 0.875rem;
    }

    .event-title-link {
        margin-top: 8px;
        display: inline-block;
        font-size: 0.875rem;
    }

    .event-content h3 {
        font-size: 1.125rem;
        line-height: 1.3;
    }
}

/* Update event-intro styles */
.event-intro {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 100%;
}

.event-intro .label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-intro .text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #444;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Add styles for paragraphs within event intro */
.event-intro .text p {
    margin-bottom: 12px;
}

.event-intro .text p:last-child {
    margin-bottom: 0;
}

.event-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
}

.event-participants,
.event-intro {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-participants .label,
.event-intro .label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-participants .text,
.event-intro .text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #444;
}

.event-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.875rem;
    margin-top: 4px;
}

.event-time i {
    color: var(--text-dark);
    width: 16px;
    text-align: center;
}

.event-title-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}

.event-title-link:hover {
    color: var(--primary-color);
}

/* Add styles for paragraphs within event intro */
.event-intro .text p {
    margin-bottom: 12px;
}

.event-intro .text p:last-child {
    margin-bottom: 0;
} 