/* ── Base ────────────────────────────────────────────── */
body {
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.container {
    flex: 1;
}

/* ── Navbar ──────────────────────────────────────────── */
.navbar-brand img {
    border-radius: 4px;
}

/* ── Hero banner ─────────────────────────────────────── */
.hero-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    padding: 4rem 2rem;
}

/* ── Cards ───────────────────────────────────────────── */
.card {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .08);
}

/* ── News thumbnail ──────────────────────────────────── */
.news-thumb {
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

/* ── Gallery ─────────────────────────────────────────── */
.gallery-thumb {
    height: 180px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    width: 100%;
}

.gallery-item img {
    transition: opacity .2s ease;
}

.gallery-item img:hover {
    opacity: .85;
}

/* ── Member photo ────────────────────────────────────── */
.member-photo {
    height: 200px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px 12px 0 0;
}

.member-photo-placeholder {
    height: 200px;
    border-radius: 12px 12px 0 0;
}

/* ── Quick link cards ────────────────────────────────── */
.quick-link-card .card {
    transition: transform .15s ease, box-shadow .15s ease;
    color: #212529;
}

.quick-link-card .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
}

/* ── Timeline (history page) ─────────────────────────── */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: .3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #212529;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #dee2e6;
}

.timeline-year {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6c757d;
    margin-bottom: .25rem;
}

.timeline-content h5 {
    font-weight: 600;
    margin-bottom: .5rem;
}

/* ── Admin sidebar ───────────────────────────────────── */
.list-group-item.active {
    background-color: #212529;
    border-color: #212529;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
    margin-top: auto;
}

/* ── Utility ─────────────────────────────────────────── */
h3 {
    font-weight: 600;
}

.fw-medium {
    font-weight: 500;
}

/* ── Responsive tweaks ───────────────────────────────── */
@media (max-width: 768px) {
    .hero-banner {
        padding: 2.5rem 1rem;
    }

    .news-thumb {
        height: 160px;
    }
}

/* ── Gallery (year/competition) ──────────────────────── */
.competition-heading {
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: .5rem;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.gallery-thumb-sm {
    height: 120px;
    object-fit: cover;
    width: 100%;
    border-radius: 4px 4px 0 0;
}

/* ── Accomplishments ─────────────────────────────────── */
.accomplishment-card {
    border-left: 4px solid #212529;
    transition: transform .15s ease, box-shadow .15s ease;
}

.accomplishment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .1) !important;
}

.accomplishment-badge {
    background-color: #212529;
    color: #fff;
    font-size: .8rem;
    font-weight: 500;
}

/* ── News list (single-column) ───────────────────────── */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-list-item {
    display: block;
    color: inherit;
}

.news-list-card {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    transition: background .12s ease;
}

.news-list-item:last-child .news-list-card {
    border-bottom: none;
}

.news-list-card:hover {
    background: rgba(0, 0, 0, .02);
}

.news-list-thumb {
    width: 110px;
    height: 80px;
}

.news-list-thumb img {
    width: 110px;
    height: 80px;
    object-fit: cover;
}

.news-list-thumb-placeholder {
    width: 110px;
    height: 80px;
    font-size: 1.5rem;
}

.news-list-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.4;
    transition: color .12s ease;
}

.news-list-item:hover .news-list-title {
    color: #0d6efd;
}

.news-list-excerpt {
    font-size: .9rem;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-read-more {
    font-size: .8rem;
    opacity: 0;
    transition: opacity .15s ease;
}

.news-list-item:hover .news-read-more {
    opacity: 1;
}

/* ── News item (article page) ────────────────────────── */
.news-item-cover {
    max-height: 480px;
    object-fit: cover;
}

.news-gallery-thumb {
    height: 200px;
    object-fit: cover;
    transition: opacity .2s ease;
}

.news-gallery-thumb:hover {
    opacity: .85;
}

/* ── Home news cards (clickable) ─────────────────────── */
.home-news-card {
    transition: transform .15s ease, box-shadow .15s ease;
}

.home-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1) !important;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 576px) {
    .news-list-thumb,
    .news-list-thumb img,
    .news-list-thumb-placeholder {
        width: 80px;
        height: 60px;
    }
}

/* ── Footer links ────────────────────────────────────── */
.footer-link {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    font-size: .9rem;
    transition: color .15s ease;
}

.footer-link:hover {
    color: #fff;
}

.letter-spacing {
    letter-spacing: .07em;
}

/* ── Contact page ────────────────────────────────────── */
.contact-icon {
    width: 44px;
    height: 44px;
    background: #212529;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-block {
    align-items: flex-start;
}

.map-wrapper {
    border: 1px solid rgba(0, 0, 0, .08);
}

/* ── Sponsors page ───────────────────────────────────── */
.sponsor-cta {
    background: #f1f3f5;
    border: 1px solid rgba(0, 0, 0, .07);
}

.border-dashed {
    border: 2px dashed #dee2e6 !important;
    border-radius: 12px;
}

/* ── Lightbox ─────────────────────────────────────────── */
.lightbox-img {
    max-height: 82vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .55);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
    z-index: 10;
}

.lightbox-arrow:hover {
    background: rgba(0, 0, 0, .8);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ── Calendar widget ─────────────────────────────────── */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-header {
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    color: #6c757d;
    padding: 6px 0;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cal-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 8px;
    font-size: .9rem;
    color: #212529;
    transition: background .12s ease;
}

.cal-cell.active {
    background: #c5c6c7 !important;
}

.cal-blank {
    background: transparent;
}

.cal-cell:not(.cal-blank):not(.cal-today) {
    background: #f8f9fa;
}

.cal-cell:not(.cal-blank):not(.cal-today):hover {
    background: #e9ecef;
}

.cal-today {
    background: #212529;
    color: #fff;
    font-weight: 600;
}

.cal-has-event {
    cursor: pointer;
}

.cal-has-event:not(.cal-today) {
    background: #e8f4fd;
    border: 1px solid #90caf9;
}

.cal-has-event:not(.cal-today):hover {
    background: #bbdefb;
}

.cal-has-event.cal-today {
    background: #0d47a1;
}

.cal-day-num {
    font-size: .9rem;
    line-height: 1;
}

.cal-dot {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1976d2;
    margin-top: 3px;
}

.cal-today .cal-dot {
    background: #90caf9;
}

/* ── Sponsor logos ───────────────────────────────────── */
.sponsor-logo-link {
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    transition: box-shadow .15s ease, transform .15s ease;
    text-decoration: none;
}

.sponsor-logo-link:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.sponsor-logo {
    max-height: 80px;
    max-width: 160px;
    object-fit: contain;
}

.sponsor-name-only {
    font-size: 1.1rem;
    padding: 1rem 0;
}
