/* Media Pages Styles (Gallery, News, Events) */

/* General Hero Styling for Media Pages */
.gallery-hero, .news-hero, .events-hero {
    padding: 60px 0;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(242, 185, 21, 0.1), transparent 70%);
}

.gallery-kicker, .news-kicker, .events-kicker {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(242, 185, 21, 0.15);
    color: var(--accent-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border: 1px solid rgba(242, 185, 21, 0.3);
}

.gallery-hero h2, .news-hero h2, .events-hero h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: var(--text-primary);
}

.gallery-hero p, .news-hero p, .events-hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Gallery Section */
.gallery-filter-section {
    padding: 40px 0 80px;
}

.gallery-filter-section input[type="radio"] {
    display: none;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.gallery-filters label {
    padding: 10px 25px;
    background: var(--nav-bg);
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.gallery-filters label:hover {
    background: var(--accent-primary);
    color: #000;
}

#all:checked ~ .gallery-filters label[for="all"],
#campus:checked ~ .gallery-filters label[for="campus"],
#academic:checked ~ .gallery-filters label[for="academic"],
#cultural:checked ~ .gallery-filters label[for="cultural"],
#sports:checked ~ .gallery-filters label[for="sports"] {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 5px 15px rgba(242, 185, 21, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item-overlay span {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-item-overlay span {
    transform: translateY(0);
}

/* CSS Filter Logic */
#campus:checked ~ .gallery-grid .gallery-item:not(.campus),
#academic:checked ~ .gallery-grid .gallery-item:not(.academic),
#cultural:checked ~ .gallery-grid .gallery-item:not(.cultural),
#sports:checked ~ .gallery-grid .gallery-item:not(.sports) {
    display: none;
}

/* News Section */
.news-content-section {
    padding: 40px 0 80px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: rgb(0, 0, 0);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px var(--shadow-color);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.news-image {
    position: relative;
    height: 220px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--accent-primary);
    color: #000000;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.85rem;
}
body.theme-light .news-date {
    color: #fff;
}

.news-info {
    padding: 25px;
}

.news-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.3;
}

.news-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.news-link:hover {
    gap: 12px;
}

/* Events Section */
.events-list-section {
    padding: 40px 0 80px;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-wrapper h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.events-timeline {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.event-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 30px;
    align-items: start;
}

.event-date {
    background: var(--accent-primary);
    color: #000;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100px;
    box-shadow: 0 10px 20px rgba(242, 185, 21, 0.2);
}
body.theme-light .event-date {
    /* background: #f1f5f9; */
    color: #fff;
    /* border-color: #e2e8f0; */
}

.event-date .day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.event-date .month {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.event-details {
    background: rgb(0, 0, 0);
    border-radius: var(--radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: 300px 1fr;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px var(--shadow-color);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.event-item:hover .event-details {
    transform: scale(1.02);
    border-color: var(--accent-primary);
}

.event-image {
    height: 100%;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-info {
    padding: 30px;
}

.event-info h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.event-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.event-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.event-tags li {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Theme Light Compatibility */
body.theme-light .gallery-filters label {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #e2e8f0;
}

body.theme-light .gallery-filters label:hover {
    background: var(--accent-primary);
    color: #fff;
}

body.theme-light #all:checked ~ .gallery-filters label[for="all"],
body.theme-light #campus:checked ~ .gallery-filters label[for="campus"],
body.theme-light #academic:checked ~ .gallery-filters label[for="academic"],
body.theme-light #cultural:checked ~ .gallery-filters label[for="cultural"],
body.theme-light #sports:checked ~ .gallery-filters label[for="sports"] {
    background: #10235a;
    color: #fff;
}

body.theme-light .news-card, 
body.theme-light .event-details {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .event-details {
        grid-template-columns: 200px 1fr;
    }
}

@media (max-width: 768px) {
    .gallery-hero, .news-hero, .events-hero {
        padding: 40px 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .event-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .event-date {
        width: 80px;
        height: 80px;
        padding: 10px;
    }
    
    .event-details {
        grid-template-columns: 1fr;
    }
    
    .event-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}
