/* =========================
   Ilam Parish Council
   Modern Responsive CSS
   ========================= */

/* BASE */
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #eef1f3;
    color: #2b2b2b;
    line-height: 1.6;
}

/* PAGE WRAPPER */
.page {
    max-width: 1100px;
    margin: 30px auto;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    padding: 20px;
}

/* HEADER */
header {
    padding: 30px 20px 10px 20px;
}

header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

header p {
    margin: 6px 0 20px 0;
    font-size: 14px;
    color: #666;
}

/* OLD NAVIGATION */
/*nav {
    background-color: #f7f9fa;
    border-top: 1px solid #e1e5e8;
    border-bottom: 1px solid #e1e5e8;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 12px 20px;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #1f4e79;
}

nav a:hover {
    text-decoration: underline;
}*/

/* NAVBAR */
.navbar {
    background-color: #f7f9fa;
    border-top: 1px solid #e1e5e8;
    border-bottom: 1px solid #e1e5e8;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LINKS */
.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #1f4e79;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* BURGER */
.burger {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1f4e79;
    padding: 0;
}

/* MOBILE */
@media (max-width: 768px) {
    .burger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 15px;
        gap: 15px;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 20px;
    }
}


/* HERO IMAGE */
.hero {
    padding: 25px 20px 10px 20px;
}

.hero img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* MAIN CONTENT */
.main {
    display: flex;
    gap: 40px;
    padding: 20px 20px 40px 20px;
}

/* LEFT COLUMN */
.content {
    flex: 2;
}

.content h2 {
    font-size: 24px;
    font-weight: 500;
    margin-top: 0;
    color: #1f4e79;
}

.content p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

/* RIGHT COLUMN */
.sidebar {
    flex: 1;
    background-color: #f7f9fa;
    padding: 20px;
    border-radius: 8px;
}

.sidebar h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12px;
    color: #333;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    text-decoration: none;
    font-size: 14px;
    color: #1f4e79;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* TWO COLUMN SECTION */
.two-column {
    display: flex;
    gap: 40px;
    padding: 20px 20px 40px 20px;
}

.two-column .column {
    flex: 1;
}

.two-column h1 {
    font-size: 26px;
    font-weight: 500;
    margin-top: 0;
    color: #1f4e79;
}

.two-column h2 {
    font-size: 22px;
    font-weight: 500;
    margin-top: 0;
    color: #1f4e79;
}

.two-column p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.two-column img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* MOBILE STACKING */
@media (max-width: 768px) {
    .two-column {
        flex-direction: column;
    }
}


/* FOOTER */
footer {
    border-top: 1px solid #e1e5e8;
    padding: 15px 20px;
    font-size: 12px;
    color: #777;
    background-color: #fafbfc;
    border-radius: 0 0 6px 6px;
}

/* SLIDER */
.slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1.5 / 1;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f7f9fa;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* =========================
   RESPONSIVE ADJUSTMENTS
   ========================= */

/* Tablets and smaller screens */
@media (max-width: 1024px) {
    header h1 {
        font-size: 28px;
    }

    .main {
        gap: 30px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    header {
        padding: 20px 15px 10px 15px;
    }

    header h1 {
        font-size: 24px;
    }

    header p {
        font-size: 13px;
    }

    nav ul {
        flex-direction: column;
        gap: 12px;
        padding: 10px 15px;
    }

    .main {
        flex-direction: column;
        gap: 20px;
        padding: 20px 15px;
    }

    .sidebar {
        padding: 15px;
    }

    .hero {
        padding: 15px;
    }

    footer {
        padding: 10px 15px;
        font-size: 11px;
    }
}

/* Extra small screens (phones) */
@media (max-width: 480px) {
    .page {
        margin: 10px;
        padding: 10px;
    }

    .content h2 {
        font-size: 20px;
    }

    .content p, .sidebar a {
        font-size: 13px;
    }

    nav a {
        font-size: 13px;
    }
}
