﻿:root {
    --primary: #1B3F8B;
    --primary-dark: #0F2C66;
    --accent: #f4b400;
    --text: #1a1a1a;
    --bg-soft: #f4f6fb;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text);
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
}

    .skip-link:focus {
        top: 0;
    }

/* NAV */
header {
    position: relative;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--primary);
    color: white;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 80px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

    .nav-links a, .nav-links button {
        color: white;
        background: none;
        border: none;
        font: inherit;
        cursor: pointer;
    }

/* Dropdown */
.dropdown {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s ease;
    z-index: 2000; /* ensures dropdown always on top */
}

    .sub-menu a {
        color: var(--primary);
        display: block;
        padding: 10px;
    }

        /* HOVER EFFECT */
        .sub-menu a:hover {
            background: #f0f4fb;
        }

/*.dropdown.open .sub-menu {
    display: block;
}*/

/* SHOW DROPDOWN */
.dropdown:hover .sub-menu,
.dropdown:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* HERO */
/*.hero {
    height: 420px;
    background: url('/images/laredofiredept.jpeg') center/cover no-repeat;
    position: relative;
}*/
.hero {
    height: 420px;
    background-image: url('/images/3.jpg');
    background-repeat: no-repeat;
    background-size: 100% 100%; /* Forces the image to fit the box exactly */
    background-position: center;
    position: relative;
}

.hero-overlay {
   /* background: rgba(0,0,0,0.6);*/
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    color: white;
    max-width: 600px;
}

/* CARDS */

.quick-cards .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f4f6fb;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    transition: 0.25s;
    border: none !important;
}

.icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e6ecf8;
    color: #1B3F8B;
    margin: 0 auto;
}
.quick-cards a.card {
    text-decoration: none; /* remove underline */
    color: inherit; /* remove blue text */
}
.quick-cards .card span {
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
}

.quick-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: -80px auto 40px;
    max-width: 1200px;
    padding: 0 30px;
    position: relative;
    z-index: 20;
}


/* FOOTER */
footer {
    background: linear-gradient(to right,var(--primary),var(--primary-dark));
    color: white;
    padding: 15px 30px;
}

.footer-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-info {
    margin-left: auto;
    display: flex;
    gap: 20px;
}

/* Focus styles */
a:focus, button:focus {
    outline: 3px solid var(--accent);
}


/* NEWS */
/* SECTION HEADER */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.news-heading .events-heading {
    font-size: 18px;
}

.view-all {
    margin-top: 8px;
    display: inline-block;
    padding: 12px 14px;
    background: #5757FF;
    color: #ffffff;
    border-radius: 20px;
    font-size: 18px;
    text-decoration: none;
    width: 140px;
    align-self: flex-end; /* 🔥 RIGHT ALIGN */
}

/* GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 20px 30px;
}

/* CARD */
.news-card {
    display: flex;
    gap: 15px;
    background: #ffffff; /* pure white for best contrast */
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    transition: 0.25s;
}

    .news-card:hover {
        transform: translateY(-4px);
    }

/* DATE BOX */
.date-box {
    background: #0F2C66; /* darker blue */
    color: #ffffff;
    border-radius: 12px;
    width: 60px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

    .date-box strong {
        font-size: 20px;
    }

/* CONTENT */
.news-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-date {
    font-size: 12px;
    color: #4b5563; /* darker gray */
}

.news-title {
    text-decoration: none;
    color: #111827; /* near-black */
}

    .news-title:hover {
        color: #0F2C66;
    }

/* BUTTON */
.btn {
    margin-top: 8px;
    display: inline-block;
    padding: 6px 14px;
    background: #5757FF;
    color: #ffffff;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    width: 80px;
    align-self: flex-end; /* 🔥 RIGHT ALIGN */
}

/* EVENTS */
/* EVENTS LIST */
.events {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 30px;
}

/* EVENT CARD */
.event {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(90deg, #eef2f9, #e4ebf7);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    transition: 0.25s;
}

    .event:hover {
        transform: translateY(-3px);
    }

/* DATE BLOCK */
.event-date {
    background: #0F2C66; /* WCAG safe */
    color: #ffffff;
    border-radius: 12px;
    width: 60px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

    .event-date strong {
        font-size: 18px;
    }

/* CONTENT */
.event-content {
    display: flex;
    flex-direction: column;
}

/* TITLE */
.event-title {
    color: #111827;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

    .event-title:hover {
        color: #1B3F8B;
    }

/* TIME */
.event-time {
    font-size: 14px;
    color: #374151;
}


/* Calendar container */

    .day:focus {
        outline: 2px solid #1B3F8B;
    }

    /* Event highlight */
    .day.has-event {
        background: #e6ecf8;
        font-weight: bold;
    }

    /* Selected */
    .day.active {
        background: #1B3F8B;
        color: white;
    }

/* WRAPPER */
.events-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    padding: 20px 30px;
}

/* CALENDAR BOX */
.calendar-box {
    background: #f4f6fb;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* HEADER */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

    .calendar-header button {
        background: #e6ecf8;
        border: none;
        padding: 6px 10px;
        border-radius: 8px;
        cursor: pointer;
    }


/* EVENTS SIDE */
.event {
    display: flex;
    gap: 15px;
    align-items: center;
    background: linear-gradient(90deg, #eef2f9, #e4ebf7);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 10px;
}

/* DATE */
.event-date {
    background: #0F2C66;
    color: white;
    border-radius: 12px;
    width: 60px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



/* Focus visible */
:focus-visible {
    outline: 3px solid #f4b400;
    outline-offset: 2px;
}

/* Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

/* Day buttons */
.day {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
}

    /* Selected */
    .day[aria-selected="true"] {
        background: #3b5dbf;
        color: #fff;
    }

    /* Today */
    .day[aria-current="date"] {
        border: 2px solid #3b5dbf;
    }

    /* Event day */
    .day.has-event::after {
        content: "•";
        display: block;
        font-size: 10px;
        line-height: 0;
        color: #3b5dbf;
    }


