:root {
    --primary-color: #f75c03;
    --secondary-color: #3e4a59;
    --dark-bg: #1a1f24;
    --light-bg: #f5f7fa;
    --text-main: #333;
    --text-muted: #666;
    --white: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --hover-shadow: 0 15px 35px rgba(247, 92, 3, 0.18);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 800;
}

/* ── Hero ─────────────────────────────────── */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-image: url('../img/building.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26,31,36,0.5), rgba(26,31,36,0.82));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInDown 1s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ── Container ────────────────────────────── */
.container {
    max-width: 1200px;
    margin: -50px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

/* ── Info card ────────────────────────────── */
.info-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    margin-bottom: 50px;
    border-top: 5px solid var(--primary-color);
}

.info-card h2 {
    color: var(--secondary-color);
    font-size: 1.9rem;
    margin-bottom: 16px;
}

.address-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--primary-color);
    transition: opacity 0.2s;
}

.address-link::before {
    content: '📍 ';
}

.address-link:hover {
    opacity: 0.75;
}

/* ── Contact section ──────────────────────── */
.contact-section { margin-bottom: 50px; }

.contact-section h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.contact-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--card-shadow);
    text-align: center;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
}

.contact-icon { font-size: 2.8rem; margin-bottom: 14px; }

.contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s;
    word-break: break-all;
}

.contact-value:hover { color: var(--primary-color); }

/* ── Committee section ────────────────────── */
.committee-section { margin-top: 40px; }
.committee-section h3 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.committee-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.committee-member {
    background: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #eee;
    min-width: 200px;
    transition: transform 0.2s;
}
.committee-member:hover {
    transform: translateY(-3px);
}
.member-name {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 6px;
    font-size: 1.05rem;
}
.member-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── News section ─────────────────────────── */
.news-section { margin-bottom: 50px; }

.news-section h2 {
    color: var(--secondary-color);
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
}

.no-news { text-align: center; color: var(--text-muted); }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.news-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--secondary-color);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-left-color: var(--primary-color);
}

/* Thumbnail image on card */
.news-card-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.news-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.25rem;
    color: var(--dark-bg);
    margin-bottom: 10px;
    line-height: 1.35;
}

.news-content {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex: 1;
    margin: 0 0 14px;
}

.news-read-more {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.news-card:hover .news-read-more { opacity: 0.75; }

/* ── Image count badge on card ────────────── */
.news-card-img {
    position: relative;
}

.img-count-badge {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(26,31,36,0.72);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.3px;
}

/* ── Modal overlay ────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 31, 36, 0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: var(--white);
    border-radius: 20px;
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from { transform: translateY(40px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: var(--light-bg);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    color: var(--secondary-color);
    transition: background 0.2s, color 0.2s;
    z-index: 10;
    padding: 0;
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
}

.modal-image-wrap {
    width: 100%;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    max-height: 380px;
}

.modal-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: 380px;
}

.modal-body {
    padding: 36px 40px 40px;
}

.modal-date {
    font-size: 0.88rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.modal-title {
    font-size: 1.9rem;
    color: var(--dark-bg);
    margin-bottom: 20px;
    line-height: 1.25;
}

.modal-content-text {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Prevent body scroll when modal is open */
body.modal-open { overflow: hidden; }

/* ── Modal gallery ────────────────────────── */
.modal-gallery {
    position: relative;
    width: 100%;
    background: #111;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gallery-img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    display: block;
}

@keyframes galleryFade {
    from { opacity: 0.4; transform: scale(0.98); }
    to   { opacity: 1;   transform: scale(1); }
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.18);
    border: none;
    color: #fff;
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: background 0.2s;
    z-index: 5;
}

.gallery-arrow:hover { background: rgba(247, 92, 3, 0.85); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 5;
}

.gallery-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.gallery-dot.active {
    background: var(--primary-color);
    transform: scale(1.25);
}

/* ── Footer ───────────────────────────────── */
footer {
    background: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    font-size: 0.95rem;
    position: relative;
    z-index: 4;
}

footer a { color: #aaa; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--primary-color); }

/* ── Animations ───────────────────────────── */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p  { font-size: 1.1rem; }
    .container       { margin-top: -30px; }
    .info-card       { padding: 25px 20px; }
    .modal-body      { padding: 24px 22px 28px; }
    .modal-title     { font-size: 1.5rem; }
}
