
@import url('../core/variables.css');
@import url('../core/reset.css');


.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.clubs-section { 
    margin-bottom: 25px;
}

.clubs-grid { 
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    overflow-x: hidden;
    padding: 10px 0;
}

.club-card { 
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    padding: 0;
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 200px;
    min-width: min(200px, 100%);
    flex: 0 1 auto;
    max-width: 200px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.club-card:hover { 
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 0.98);
}


.club-card a { 
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}


.club-icon { 
    font-size: 1.5rem;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}


.club-title { 
    color: #063462;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 2;
    padding: 0 8px;
    -webkit-line-clamp: 2;
}


.club-description { 
    color: #4a5568;
    font-size: 0.7rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 0 8px 8px;
}


.club-card.with-image { 
    position: relative;
}


.club-card.with-image::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}


.club-card.with-image:hover::before { 
    opacity: 1;
}


.club-image { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}


.club-card.with-image .club-icon, 
.club-card.with-image .club-title, 
.club-card.with-image .club-description { 
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}


.main-content-container { 
    width: 100%;
    max-width: 1410px;
    margin: 0 auto;
    padding: 20px;
}

.three-columns-layout { 
    display: grid;
    grid-template-columns: 320px 1.5fr 280px;
    gap: 20px;
    align-items: start;
}


.content-column { 
    background: transparent;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}


.content-column h2 { 
    display: none;
}




.announcements-column { 
    background: transparent;
    overflow: hidden;
}


.section-header { 
    padding: 0;
    background: transparent;
    position: relative;
}


.announcements-list { 
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    overflow: visible;
    max-height: 700px;
    height: 100%;
}


.today-badge { 
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ff6b00 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
    animation: pulse 2s infinite;
}


@keyframes pulse { 
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


.today-announcement { 
    border: 2px solid var(--accent-orange);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}


.today-announcement:hover { 
    box-shadow: 0 8px 30px rgba(255, 107, 0, 0.4);
}


.announcement-card { 
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(241, 245, 249, 0.9);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    height: 100%;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}


.announcement-card:hover { 
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(241, 245, 249, 0.9);
}


.announcement-card.with-image { 
    position: relative;
    height: 100%;
}


.announcement-image { 
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}


.announcement-image img { 
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}


.announcement-card:hover .announcement-image img { 
    transform: scale(1.05);
}


.announcement-overlay { 
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
    color: white;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
}


.announcement-header { 
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}


.announcement-content { 
    margin-top: auto;
}


.announcement-title { 
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.announcement-theme { 
    color: rgba(255,255,255,0.95);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.announcement-meta { 
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.meta-item { 
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    line-height: 1.3;
}


.meta-icon { 
    font-size: 0.75rem;
    opacity: 0.8;
    flex-shrink: 0;
    margin-top: 1px;
}


.meta-text { 
    flex: 1;
}




.announcement-card.no-image { 
    display: flex;
    flex-direction: column;
    height: 100%;
}


.announcement-card.no-image .announcement-header { 
    padding: 12px 15px 8px 15px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}


.announcement-card.no-image .announcement-content { 
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}


.announcement-card.no-image .announcement-title { 
    color: #1a202c;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.announcement-card.no-image .announcement-theme { 
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}


.announcement-card.no-image .announcement-meta { 
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.announcement-card.no-image .meta-item { 
    color: #718096;
    text-shadow: none;
}


.date-time { 
    display: flex;
    align-items: center;
    gap: 8px;
}


.date-day { 
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}


.announcement-card.no-image .date-day { 
    color: var(--primary-blue);
    text-shadow: none;
}


.date-month { 
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}


.announcement-card.no-image .date-month { 
    color: #718096;
    text-shadow: none;
}


.time-badge { 
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}


.announcement-card.no-image .time-badge { 
    color: #718096;
    text-shadow: none;
}


.time-icon { 
    font-size: 0.7rem;
}


.news-column { 
    padding: 0;
    display: flex;
    flex-direction: column;
}


.news-list { 
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}


.main-news-item { 
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.9);
    position: relative;
    cursor: pointer;
    flex: 1;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 450px; 
    display: flex;
    flex-direction: column;
}


.main-news-item:hover { 
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.98);
}


.main-news-image { 
    flex: 0 0 490px; 
    min-height: 320px;
    position: relative;
    overflow: hidden;
}


.main-news-image img { 
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}


.main-news-item:hover .main-news-image img { 
    transform: scale(1.05);
}


.news-overlay { 
    flex: 1; 
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.85) 100%);
    color: white;
    padding: 25px 30px 20px 30px; 
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 130px; 
    
}


.main-news-image {
    position: relative;
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2;

}


.main-news-item:hover .news-overlay { 
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.95) 100%);
    padding-bottom: 20px;
}


.news-date-overlay { 
    font-size: 0.9rem; 
    opacity: 0.95;
    margin-bottom: 10px; 
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}


.news-title-overlay { 
    font-size: 1.6rem; 
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    margin-bottom: 12px; 
}


.news-theme-overlay { 
    font-size: 1.05rem; 
    line-height: 1.4; 
    margin-bottom: 0;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.secondary-news-grid { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    flex: 1;
}


.secondary-news-item { 
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 220px; 
}


.secondary-news-item:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(226, 232, 240, 0.9);
}


.secondary-news-content { 
    display: flex;
    flex-direction: column;
}


.news-date { 
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}


.news-date::before { 
    content: "📰";
    margin-right: 6px;
    font-size: 0.7rem;
}


.secondary-news-content .news-title { 
    color: #1a202c;
    font-size: 1.05rem; 
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.secondary-news-content .news-theme { 
    color: #4a5568;
    font-size: 0.9rem; 
    line-height: 1.3;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.news-image-placeholder { 
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e4a82 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}


.news-image-placeholder::before { 
    content: "📰";
}


.banners-column { 
    padding: 0;
    display: flex;
    flex-direction: column;
}


.banners-list { 
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}


.banner-item { 
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.9);
    flex: 1;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 110px;
}


.banner-item:hover { 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(226, 232, 240, 0.9);
}


.banner-item a { 
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}


.banner-item img { 
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 6px;
    background: white;
    padding: 5px;
    box-sizing: border-box;
}


.banner-item:hover img { 
    transform: scale(1.03);
}


.banner-title { 
    display: none;
}


.empty-state { 
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
}


.empty-icon { 
    font-size: 3rem;
    margin-bottom: 15px;
}


.no-content { 
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
    font-style: italic;
}


.event-detail-text {
    line-height: 1.6;
    font-size: 16px;
    color: #333;
    margin: 20px 0;
}

.text-paragraph {
    text-indent: 1.5em;
    margin-bottom: 1em;
    line-height: 1.6;
    text-align: justify;
    color: #333;
}


.event-detail-text .text-paragraph:first-child {
    margin-top: 0;
}


.event-detail-text .text-paragraph:last-child {
    margin-bottom: 0;
}


.event-detail-text ul,
.event-detail-text ol {
    margin: 1em 0;
    padding-left: 2em;
    line-height: 1.5;
}

.event-detail-text li {
    margin-bottom: 0.5em;
}

.event-detail-text ul li {
    list-style-type: disc;
}

.event-detail-text ol li {
    list-style-type: decimal;
}


.event-detail-text b,
.event-detail-text strong {
    font-weight: 700;
    color: #1a202c;
}

.event-detail-text i,
.event-detail-text em {
    font-style: italic;
}

.event-detail-text u {
    text-decoration: underline;
}


.event-detail-text a {
    color: var(--primary-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(6, 52, 98, 0.3);
    transition: all 0.2s ease;
}

.event-detail-text a:hover {
    color: #063462;
    border-bottom-color: #063462;
}


@media (max-width: 768px) {
    .text-paragraph {
        text-indent: 1em;
        margin-bottom: 0.8em;
        line-height: 1.5;
        text-align: left;
        font-size: 15px;
    }
    
    .event-detail-text ul,
    .event-detail-text ol {
        padding-left: 1.5em;
    }
}

@media (max-width: 1200px) {
    .three-columns-layout { 
        grid-template-columns: 300px 1fr 250px;
    }
    .clubs-grid { 
        gap: 20px;
        flex-wrap: wrap;
    }
    .main-news-item { 
        height: 400px; 
    }
    .main-news-image { 
        flex: 0 0 280px;
        min-height: 280px;
    }
    .secondary-news-item { 
        height: 200px; 
    }
}


@media (max-width: 768px) {
    .three-columns-layout { 
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .clubs-grid { 
        justify-content: flex-start;
        overflow-x: auto;
        padding: 10px;
    }
    .club-card {
        min-width: 180px;
    }
    .secondary-news-grid { 
        grid-template-columns: 1fr;
    }
    .main-news-item { 
        height: 350px; 
    }
    .main-news-image { 
        flex: 0 0 220px; 
        min-height: 220px;
    }
    .news-overlay { 
        padding: 20px; 
        min-height: 130px;
    }
    .news-title-overlay { 
        font-size: 1.4rem; 
    }
    .news-theme-overlay { 
        font-size: 1rem; 
        -webkit-line-clamp: 2; 
    }
    .secondary-news-item { 
        height: 180px; 
    }
}


#dynamic-content-area {
    display: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


.event-detail-page {
    display: block;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0;
    margin: 20px 0;
    border: 1px solid var(--light-gray);
}


.event-detail-header {
    background: var(--white);
    color: var(--dark);
    padding: 30px;
    border-bottom: 1px solid var(--light-gray);
}


.event-detail-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}


.event-detail-back {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 20px;
}


.event-detail-back:hover {
    background: var(--primary-dark);
}


.event-detail-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    flex: 1;
    margin-right: 20px;
}


.event-detail-date {
    font-size: 18px;
    color: var(--dark);
    font-weight: 500;
    margin-bottom: 15px;
}


.event-detail-divider {
    height: 4px;
    border-radius: 2px;
    margin-top: 10px;
}


.event-detail-divider.news {
    background: var(--news-color);
}


.event-detail-divider.announcement {
    background: var(--announcement-color);
}


.event-detail-content {
    padding: 30px;
}

.carousel-container {
    position: relative;
    margin: 20px 0;
    border-radius: 8px;
}
