/* News & Media Section Specific Styles */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.news-image {
    height: 220px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-blue);
}

.news-content {
    padding: 1.5rem;
}

.news-category {
    display: inline-block;
    background: var(--accent-gold);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    color: #666;
    font-size: 0.85rem;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-news {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.featured-image {
    height: 400px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 6rem;
}

.featured-content {
    padding: 2rem;
}

.featured-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.events-timeline {
    position: relative;
    padding: 2rem 0;
}

.event-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.event-date-box {
    min-width: 100px;
    background: var(--primary-blue);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.event-day {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.event-month-year {
    font-size: 0.9rem;
    opacity: 0.9;
}

.event-details {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.event-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.event-time-location {
    display: flex;
    gap: 1.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.press-releases {
    background: #f8fafc;
    padding: 3rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.press-release-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-blue);
}

.press-release-title {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.press-release-date {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-blue);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-thumbnail {
    height: 200px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.video-info {
    padding: 1rem;
}

.video-title {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* ================================================
   Event List Page — Hull-inspired layout
   ================================================ */
.evlist-section {
    padding: 4rem 0 5rem;
    background: #fff;
}

.evlist-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

/* ---- Sidebar (sticky) ---- */
.evlist-sidebar-inner {
    position: sticky;
    top: 110px;
}

.evlist-filters-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--dark-blue, #003366);
}

.evlist-filters-heading i {
    font-size: 1.2rem;
    color: var(--dark-blue, #003366);
}

.evlist-filters-heading span {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-blue, #003366);
    letter-spacing: 0.5px;
}

.evlist-filter-group {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.evlist-filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.evlist-filter-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-blue, #003366);
    margin-bottom: 0.75rem;
}

.evlist-select-wrapper {
    position: relative;
}

.evlist-select {
    width: 100%;
    padding: 0.85rem 2.5rem 0.85rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark, #333);
    border: 1px solid #ccc;
    border-radius: 0;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.evlist-select:focus {
    outline: none;
    border-color: var(--primary-blue, #004080);
}

.evlist-select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--text-gray, #666);
    pointer-events: none;
}

/* Toggle switch */
.evlist-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.evlist-toggle-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark, #333);
}

.evlist-toggle-row input[type="checkbox"] {
    display: none;
}

.evlist-toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: #ccc;
    border-radius: 26px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.evlist-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.evlist-toggle-row input:checked + .evlist-toggle-switch {
    background: var(--primary-blue, #004080);
}

.evlist-toggle-row input:checked + .evlist-toggle-switch::after {
    transform: translateX(22px);
}

.evlist-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #c0392b;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s ease;
}

.evlist-clear-btn:hover {
    opacity: 0.7;
}

.evlist-clear-btn i {
    font-size: 0.8rem;
}

/* ---- Event list items (right) ---- */
.evlist-content {
    min-height: 400px;
}

.evlist-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 2rem 0;
    transition: background 0.2s ease;
}

.evlist-item:first-child {
    padding-top: 0;
}

.evlist-item:last-of-type {
    border-bottom: none;
}

.evlist-item-link {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
}

.evlist-item-thumb {
    flex-shrink: 0;
    width: 130px;
    height: 105px;
    overflow: hidden;
}

.evlist-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.evlist-item:hover .evlist-item-thumb img {
    transform: scale(1.05);
}

.evlist-item-info {
    flex: 1;
}

.evlist-item-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-blue, #003366);
    line-height: 1.35;
    margin: 0 0 0.35rem 0;
    transition: color 0.3s ease;
}

.evlist-item:hover .evlist-item-title {
    color: var(--primary-blue, #004080);
    text-decoration: underline;
}

.evlist-item-date {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue, #004080);
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.evlist-item-desc {
    font-size: 0.9rem;
    color: var(--text-gray, #666);
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.evlist-item-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-gray, #666);
}

.evlist-item-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.evlist-item-meta i {
    font-size: 0.75rem;
    color: var(--primary-blue, #004080);
}

/* Empty state */
.evlist-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-gray, #666);
}

.evlist-empty i {
    font-size: 3.5rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    display: block;
}

.evlist-empty h3 {
    font-size: 1.5rem;
    color: var(--dark-blue, #003366);
    margin-bottom: 0.75rem;
}

.evlist-empty p {
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Pagination */
.evlist-section .pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.evlist-section .pagination-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-blue, #003366);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.evlist-section .pagination-btn:hover,
.evlist-section .pagination-btn.active {
    background: var(--primary-blue, #004080);
    color: #fff;
    border-color: var(--primary-blue, #004080);
}

/* Search input for news sidebar */
.evlist-search-wrapper {
    display: flex;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease;
}

.evlist-search-wrapper:focus-within {
    border-color: var(--primary-blue, #004080);
}

.evlist-search-input {
    flex: 1;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark, #333);
    border: none;
    outline: none;
    background: #fff;
}

.evlist-search-input::placeholder {
    color: #aaa;
}

.evlist-search-btn {
    flex-shrink: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue, #004080);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.evlist-search-btn:hover {
    background: var(--dark-blue, #003366);
}

/* ================================================
   Gallery Page
   ================================================ */
.gallery-section {
    padding: 4rem 0 5rem;
    background: #fff;
}

/* Masonry-style grid */
.gallery-masonry {
    columns: 4;
    column-gap: 1.25rem;
}

.gallery-card {
    break-inside: avoid;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
}

.gallery-card-img {
    display: block;
    line-height: 0;
}

.gallery-card-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-img img {
    transform: scale(1.04);
}

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0, 32, 64, 0.85) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.35s ease;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card-overlay p {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

/* Empty state */
.gallery-empty {
    text-align: center;
    padding: 6rem 2rem;
    color: var(--text-gray, #666);
}

.gallery-empty i {
    font-size: 4rem;
    color: #d0d0d0;
    margin-bottom: 1.5rem;
    display: block;
}

.gallery-empty h3 {
    font-size: 1.75rem;
    color: var(--dark-blue, #003366);
    margin-bottom: 0.75rem;
}

.gallery-empty p {
    font-size: 1.05rem;
    max-width: 450px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- Lightbox ---- */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 15, 30, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 85vw;
    max-height: 78vh;
    object-fit: contain;
    display: block;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    text-align: center;
    margin-top: 1rem;
    max-width: 600px;
    line-height: 1.5;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.25rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

/* ================================================
   News Detail Page
   ================================================ */
.newsdetail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Sidebar meta */
.newsdetail-meta-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.newsdetail-meta-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue, #004080);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.newsdetail-meta-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-blue, #003366);
}

/* Share buttons */
.newsdetail-share-links {
    display: flex;
    gap: 0.6rem;
}

.newsdetail-share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.newsdetail-share-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.newsdetail-share-fb { background: #1877f2; }
.newsdetail-share-tw { background: #000; }
.newsdetail-share-tg { background: #0088cc; }
.newsdetail-share-li { background: #0077b5; }

/* Related articles in sidebar */
.newsdetail-related-list {
    display: flex;
    flex-direction: column;
}

.newsdetail-related-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.newsdetail-related-item:first-child {
    padding-top: 0;
}

.newsdetail-related-item:last-child {
    border-bottom: none;
}

.newsdetail-related-date {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-blue, #004080);
    letter-spacing: 1.5px;
}

.newsdetail-related-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-blue, #003366);
    line-height: 1.35;
    transition: color 0.3s ease;
}

.newsdetail-related-item:hover .newsdetail-related-title {
    color: var(--primary-blue, #004080);
    text-decoration: underline;
}

/* Back link */
.newsdetail-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-blue, #003366);
    border-bottom: 2px solid var(--dark-blue, #003366);
    padding-bottom: 0.2rem;
    transition: all 0.3s ease;
}

.newsdetail-back-link:hover {
    gap: 0.75rem;
}

.newsdetail-back-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.newsdetail-back-link:hover i {
    transform: translateX(-3px);
}

/* Article content area */
.newsdetail-content {
    min-height: 400px;
}

.newsdetail-hero-img {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    position: relative;
}

.newsdetail-hero-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #00bcd4 0%, #6a1b9a 50%, var(--primary-blue, #004080) 100%);
}

.newsdetail-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Article body — typography */
.newsdetail-body {
    max-width: 100%;
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-dark, #333);
}

.newsdetail-body h1,
.newsdetail-body h2,
.newsdetail-body h3,
.newsdetail-body h4 {
    color: var(--dark-blue, #003366);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.newsdetail-body h2 {
    font-size: 1.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.newsdetail-body h3 {
    font-size: 1.35rem;
}

.newsdetail-body p {
    margin-bottom: 1.5rem;
    color: var(--text-dark, #333);
    font-size: 1.05rem;
    line-height: 1.85;
}

.newsdetail-body a {
    color: var(--primary-blue, #004080);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.newsdetail-body a:hover {
    color: var(--dark-blue, #003366);
}

.newsdetail-body img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    display: block;
}

.newsdetail-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    border-left: 4px solid var(--primary-blue, #004080);
    background: #f5f8fc;
    font-style: italic;
    color: var(--text-gray, #666);
}

.newsdetail-body blockquote p {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.newsdetail-body ul,
.newsdetail-body ol {
    margin: 1.25rem 0 1.5rem 1.5rem;
}

.newsdetail-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.newsdetail-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.newsdetail-body table th,
.newsdetail-body table td {
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    text-align: left;
    font-size: 0.95rem;
}

.newsdetail-body table th {
    background: var(--dark-blue, #003366);
    color: #fff;
    font-weight: 600;
}

.newsdetail-body table tr:nth-child(even) {
    background: #f8fafc;
}

/* ================================================
   Event Detail — Sidebar Info Rows
   ================================================ */
.evdetail-info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.evdetail-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #ebebeb;
}

.evdetail-info-row:first-child {
    padding-top: 0;
}

.evdetail-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.evdetail-info-row > i {
    font-size: 1rem;
    color: var(--primary-blue, #004080);
    margin-top: 0.15rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.evdetail-info-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-blue, #004080);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.1rem;
}

.evdetail-info-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-blue, #003366);
    line-height: 1.35;
}

/* ================================================
   RESPONSIVE — 1024px (Tablet Landscape)
   ================================================ */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .featured-image { height: 300px; }
    .featured-title { font-size: 1.6rem; }

    .evlist-layout { grid-template-columns: 260px 1fr; gap: 3rem; }
    .newsdetail-layout { grid-template-columns: 260px 1fr; gap: 3rem; }

    .gallery-masonry { columns: 3; }

    .event-item { gap: 1.5rem; }
    .conference-item { gap: 1.5rem; }

    .evlist-section { padding: 3rem 0 4rem; }
}

/* ================================================
   RESPONSIVE — 768px (Tablet Portrait / Mobile)
   ================================================ */
@media (max-width: 768px) {
    /* News grid */
    .news-grid { grid-template-columns: 1fr; }
    .news-image { height: 180px; }
    .news-title { font-size: 1.15rem; }

    /* Featured news */
    .featured-image { height: 220px; font-size: 4rem; }
    .featured-content { padding: 1.5rem; }
    .featured-title { font-size: 1.4rem; }

    /* Event list page — sidebar becomes top section */
    .evlist-section { padding: 2.5rem 0 3rem; }
    .evlist-layout { grid-template-columns: 1fr; gap: 2rem; }
    .evlist-sidebar-inner { position: static; }
    .evlist-item-link { gap: 1.25rem; }
    .evlist-item-thumb { width: 110px; height: 90px; }

    /* News detail page — sidebar becomes top section */
    .newsdetail-layout { grid-template-columns: 1fr; gap: 2rem; }
    .newsdetail-hero-img { max-height: 350px; margin-bottom: 2rem; }
    .newsdetail-body { font-size: 1rem; }
    .newsdetail-body h2 { font-size: 1.5rem; }
    .newsdetail-body h3 { font-size: 1.2rem; }

    /* Events timeline */
    .event-item { flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
    .event-date-box { min-width: auto; display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; }
    .event-day { font-size: 1.75rem; }
    .event-time-location { flex-direction: column; gap: 0.5rem; }

    /* Gallery */
    .gallery-masonry { columns: 2; column-gap: 1rem; }
    .gallery-card { margin-bottom: 1rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }

    /* Video gallery */
    .video-gallery { grid-template-columns: 1fr; }
    .video-thumbnail { height: 180px; }

    /* Press releases */
    .press-releases { padding: 2rem 1.25rem; }

    /* Lightbox */
    .lightbox-content { max-width: 95vw; }
    .lightbox-content img { max-width: 95vw; max-height: 70vh; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1rem; }
    .lightbox-close { top: 0.75rem; right: 0.75rem; }
}

/* ================================================
   RESPONSIVE — 640px (Small Mobile)
   ================================================ */
@media (max-width: 640px) {
    .news-content { padding: 1.25rem; }
    .news-meta { flex-direction: column; gap: 0.5rem; align-items: flex-start; }

    .evlist-item-link { flex-direction: column; }
    .evlist-item-thumb { width: 100%; height: 160px; }

    .gallery-masonry { columns: 1; }
    .gallery-grid { grid-template-columns: 1fr; }

    .featured-image { height: 180px; font-size: 3rem; }
    .featured-title { font-size: 1.2rem; }

    .event-date-box { flex-direction: row; justify-content: center; }
}

