/* ============================================================
   Template 1: Serenity — Clean/Modern Minimal
   Color: #2563EB blue, #1e293b dark, white background
   ============================================================ */

:root {
    --blue:       #2563EB;
    --blue-dark:  #1d4ed8;
    --blue-light: #dbeafe;
    --dark:       #1e293b;
    --mid:        #64748b;
    --light:      #f8fafc;
    --white:      #ffffff;
    --border:     #e2e8f0;
    --shadow:     0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.04);
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--dark);
    background: var(--white);
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* ── Navbar ── */
#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background .3s ease, box-shadow .3s ease;
    background: transparent;
    padding: 1.25rem 0;
}

#mainNav.scrolled {
    background: var(--white);
    box-shadow: 0 1px 0 var(--border);
    padding: .75rem 0;
}

#mainNav .navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    transition: color .3s;
}

#mainNav.scrolled .navbar-brand { color: var(--dark); }

#mainNav .nav-link {
    color: rgba(255,255,255,.85);
    font-weight: 500;
    font-size: .95rem;
    padding: .4rem .9rem !important;
    transition: color .3s;
    text-decoration: none;
}

#mainNav.scrolled .nav-link { color: var(--mid); }
#mainNav .nav-link:hover { color: var(--white); }
#mainNav.scrolled .nav-link:hover { color: var(--blue); }

#mainNav .btn-nav-login {
    background: var(--blue);
    color: var(--white) !important;
    border-radius: 6px;
    padding: .45rem 1.1rem !important;
    font-weight: 600;
    transition: background .2s;
}

#mainNav .btn-nav-login:hover { background: var(--blue-dark); }

.navbar-toggler {
    border: none;
    background: rgba(255,255,255,.15);
    border-radius: 6px;
    padding: .4rem .6rem;
}
#mainNav.scrolled .navbar-toggler { background: var(--border); }
.navbar-toggler-icon { font-size: 1.25rem; line-height: 1; }

.nav-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* No community photo yet: the blue overlay below over the base colour.
       To add one: background-image: url('/custom/images/<file>'); */
    background-size: cover;
    background-position: center;
    background-color: var(--blue);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,.82) 0%, rgba(15,23,42,.65) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    padding: 2rem 1rem;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem 1rem;
    margin-bottom: 1.25rem;
    color: rgba(255,255,255,.9);
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -.02em;
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,.8);
    max-width: 540px;
    margin: 0 auto 2rem;
    line-height: 1.65;
}

.hero .btn-hero {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--white);
    color: var(--blue);
    font-weight: 700;
    font-size: 1rem;
    padding: .8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: box-shadow .2s, transform .2s;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

.hero .btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    color: var(--blue-dark);
}

.hero .btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    padding: .8rem 2rem;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,.5);
    text-decoration: none;
    transition: border-color .2s, background .2s;
    margin-left: .75rem;
}

.hero .btn-hero-ghost:hover {
    border-color: var(--white);
    background: rgba(255,255,255,.1);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.6);
    font-size: .8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
    transition: color .2s;
}

.hero-scroll:hover { color: rgba(255,255,255,.9); }

.hero-scroll .scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: .4; transform: scaleY(1); }
    50%       { opacity: 1;  transform: scaleY(1.2); }
}

/* ── Sections ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--light); }

.section-label {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: .5rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 .5rem;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--mid);
    max-width: 520px;
    margin: 0 0 3rem;
    line-height: 1.65;
}

/* ── Announcement Cards ── */
.announcement-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--blue);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    transition: box-shadow .2s, transform .2s;
}

.announcement-card:hover {
    box-shadow: 0 4px 24px rgba(37,99,235,.12);
    transform: translateX(2px);
}

.announcement-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .6rem;
}

.announcement-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.announcement-card-date {
    font-size: .8rem;
    color: var(--mid);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.announcement-card-body {
    font-size: .93rem;
    color: var(--mid);
    line-height: 1.65;
}

.announcement-preview { margin: 0; }

.announcement-full {
    display: none;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
    font-size: .93rem;
    color: var(--dark);
    line-height: 1.7;
}

.btn-read-more {
    background: none;
    border: none;
    color: var(--blue);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    padding: .35rem 0 0;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: gap .15s;
}

.btn-read-more:hover { gap: .55rem; }

/* ── Events ── */
.event-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    transition: box-shadow .2s, transform .2s;
    margin-bottom: 1.25rem;
}

.event-card:hover {
    box-shadow: 0 4px 24px rgba(37,99,235,.1);
    transform: translateY(-2px);
}

.event-date-badge {
    min-width: 72px;
    background: var(--blue);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem .75rem;
    text-align: center;
    flex-shrink: 0;
}

.event-date-badge .month {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .8;
    line-height: 1;
    margin-bottom: .2rem;
}

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

.event-date-badge .year {
    font-size: .68rem;
    opacity: .7;
    margin-top: .2rem;
}

.event-body {
    padding: 1.1rem 1.4rem;
    flex: 1;
}

.event-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 .35rem;
}

.event-meta {
    font-size: .82rem;
    color: var(--mid);
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .5rem;
}

.event-desc {
    font-size: .88rem;
    color: var(--mid);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Documents ── */
.documents-list { list-style: none; padding: 0; margin: 0; }

.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: .75rem;
    transition: box-shadow .2s;
    text-decoration: none;
    color: var(--dark);
}

.document-item:hover {
    box-shadow: 0 4px 20px rgba(37,99,235,.1);
    color: var(--dark);
}

.document-icon {
    width: 40px;
    height: 40px;
    background: var(--blue-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue);
    font-size: 1.2rem;
}

.document-info { flex: 1; min-width: 0; }

.document-name {
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-desc {
    font-size: .82rem;
    color: var(--mid);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-dl {
    color: var(--blue);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ── Empty States ── */
.empty-state {
    text-align: center;
    padding: 3.5rem 2rem;
    color: var(--mid);
}

.empty-state .empty-icon {
    font-size: 2.5rem;
    color: var(--border);
    margin-bottom: 1rem;
    display: block;
}

.empty-state p {
    font-size: .95rem;
    margin: 0;
}

/* ── CTA Band ── */
.cta-section {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    padding: 5rem 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    margin: 0 0 .75rem;
    letter-spacing: -.02em;
}

.cta-section p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.8);
    margin: 0 0 2rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--white);
    color: var(--blue);
    font-weight: 700;
    font-size: 1rem;
    padding: .85rem 2.25rem;
    border-radius: 8px;
    text-decoration: none;
    transition: box-shadow .2s, transform .2s;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    color: var(--blue-dark);
}

/* ── Footer ── */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.7);
    padding: 3.5rem 0 2rem;
    font-size: .9rem;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .75rem;
    text-decoration: none;
}

.footer-desc {
    font-size: .88rem;
    color: rgba(255,255,255,.5);
    line-height: 1.6;
    max-width: 280px;
}

.footer-heading {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 1rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }

.footer-links li { margin-bottom: .45rem; }

.footer-links a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.footer-links a:hover { color: var(--white); }

.footer-social {
    display: flex;
    gap: .6rem;
    margin-top: .5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.07);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    font-size: 1rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.footer-social a:hover {
    background: var(--blue);
    color: var(--white);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .82rem;
    color: rgba(255,255,255,.35);
}

.footer-legal-links { display: flex; gap: 1.25rem; }

.footer-legal-links a {
    color: rgba(255,255,255,.35);
    text-decoration: none;
    transition: color .2s;
    cursor: pointer;
}

.footer-legal-links a:hover { color: rgba(255,255,255,.7); }

/* ── Legal Modals ── */
.legal-modal-body {
    max-height: 65vh;
    overflow-y: auto;
    font-size: .9rem;
    line-height: 1.7;
    color: var(--dark);
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .section { padding: 3.5rem 0; }
    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }

    .event-card { flex-direction: column; }
    .event-date-badge { flex-direction: row; gap: .5rem; padding: .75rem 1rem; min-width: unset; }
    .event-date-badge .month { margin-bottom: 0; }
    .event-date-badge .day { font-size: 1.5rem; }

    .btn-hero-ghost { margin-left: 0; margin-top: .75rem; }

    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-legal-links { flex-wrap: wrap; }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1rem 1.25rem;
        border-radius: 10px;
        margin-top: .75rem;
        box-shadow: 0 4px 24px rgba(0,0,0,.1);
    }
    #mainNav .nav-link { color: var(--dark) !important; }
    #mainNav .nav-link:hover { color: var(--blue) !important; }
}
