/* General Reset */
body, h1, h2, p, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    background-color: #333; /* Matches the bottom page border color */
    color: #333;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 5%;
    margin: 0 auto;
}

/* Reusable centered section style */
.centered-section {
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
    padding: 40px 5%;
}

.centered-section h2 {
    margin-bottom: 20px;
    font-size: 2em;
}

.centered-section p {
    font-size: 1.2em;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #005bb5;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #e1be58;
}

/* New Button Style for KEMsDiscovery link */
.btn-nav {
    display: inline-block;
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.btn-nav:hover {
    background-color: #45a049;
}

/* Hero Section */
.hero {
    background: url('images/hexagon_hero3.webp') no-repeat center top;
    background-size: contain;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    position: relative;
    padding-bottom: 40px;
}

.hero .text-container {
    width: 60%;
    max-width: 700px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.hero h2 {
    font-size: 1.8vw;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1vw;
    color: #333;
}

.hero .btn {
    background-color: #e1be58;
    color: black;
    padding: 10px 20px;
    font-size: 0.9vw;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: center;
}

.hero .btn:hover {
    background-color: #cc8400;
    transform: scale(1.05);
}

/* About / Mission Section */
.about {
    padding: 60px 20px;  /* No background color here! */
}

.about .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about .text-box {
    background-color: #f4f4f4;  /* Light grey box */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about .text-box h2 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #005bb5;  /* Match your header blue (optional) */
}

.about .text-box p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}
.content-box {
    background-color: #f4f4f4;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.content-box h2 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #005bb5;
}

.content-box p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}
/* Articles Section */
.articles-list {
    padding: 40px 20px;
    /* background: #f0f8ff; */ /* REMOVE or COMMENT THIS OUT */
    text-align: center;
}

.articles-list h2 {
    font-size: 2.2vw;
    margin-bottom: 20px;
    color: #005bb5;
}

.articles-list p {
    font-size: 1vw;
    margin-bottom: 10px;
}

.articles-list ul {
    list-style: none;
    padding: 0;
}

.articles-list ul li {
    margin: 10px 0;
}

.articles-list ul li a {
    font-size: 1.1vw;
    color: #ffa500;
    text-decoration: none;
}

.articles-list ul li a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.form-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.contact-form h2 {
    font-size: 2.5vw;
    margin-bottom: 20px;
    color: #005bb5;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 1.8vw;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    background-color: #005bb5;
    color: white;
    padding: 15px;
    font-size: 1.5vw;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #003f88;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

footer a {
    color: #ffa500;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn {
        font-size: 0.9rem;
    }

    .hero .text-container {
        width: 90%;
        padding: 15px;
        height: auto;
    }

    .about h2, .contact-form h2 {
        font-size: 1.8rem;
    }

    .articles-list h2 {
        font-size: 1.8rem;
    }

    .articles-list p {
        font-size: 1rem;
    }

    .contact-form input, .contact-form textarea {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero .text-container {
        padding: 10px;
    }
}

/* Articles Content Box — with scroll and link styling */
.articles-list .content-box {
    background-color: #f4f4f4;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-height: 500px; /* Adjust height if needed */
    overflow-y: auto;  /* Adds scroll bar when needed */
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.articles-list .content-box h2 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #005bb5;
}

.articles-list .content-box p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.articles-list .content-box h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #005bb5;
}

/* Style the article list links */
.articles-list .content-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.articles-list .content-box ul li {
    margin-bottom: 12px;
}

.articles-list .content-box ul li a {
    font-weight: bold;
    color: #000; /* Black text */
    text-decoration: none;
}

.articles-list .content-box ul li a:hover {
    text-decoration: underline;
}
.toolkit {
    padding: 40px 20px;
    text-align: center;
}
/* Book link styling */
.book-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.book-link:hover {
    color: #ffa500; /* Your site gold/orange */
    opacity: 0.8;
}

/* -------------------------
   Responsive enhancements
------------------------- */

@media (max-width: 768px) {

    /* Header stacks */
    header .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    header nav ul li {
        margin: 0;
    }

    /* Hero adjustments */
    .hero {
        height: auto;
        padding: 40px 10px;
        background-size: cover;
    }

    .hero .text-container {
        width: 90%;
        padding: 20px;
    }

    .hero h2 {
        font-size: 6vw;  /* fluid on small screens */
    }

    .hero p {
        font-size: 4.5vw;
    }

    .hero .btn {
        font-size: 4vw;
        padding: 10px 20px;
    }

    /* Teaser banner */
    .teaser-banner p {
        font-size: 1.1em;
        padding: 0 10px;
    }

    /* Footer adjustments */
    footer .container {
        text-align: center;
    }
}

/* Even smaller phones */
@media (max-width: 480px) {

    .hero h2 {
        font-size: 7vw;
    }

    .hero p {
        font-size: 5vw;
    }

    .hero .btn {
        font-size: 5vw;
        padding: 10px 15px;
    }
}
