/* Basic Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #444;
    background-color: #f4f4f4;
}

/* Heading Styles */
h2 {
    color: #222;
    font-size: 35px;
    line-height: 1.2em;
    margin-bottom: .5em;
}

h3 {
    color: #222;
    font-size: 25px;
    margin-bottom: .5em;
}

h4 {
    color: #222;
    font-size: 20px;
    margin-bottom: .5em;
}

p, ul, ol {
    margin-bottom: 1em;
}

ul, ol {
    margin-left: 2em;
}

/* Header */
header {
    background: #2B6CD9;
    color: #fff;
    padding: 1em 20px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.logo, .logo:visited {
    font-size: 25px;
    color: #fff;
    text-decoration: none;
}

/* Navigation Styles */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

nav ul li {
    display: inline;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5em 1em;
    transition: background 0.3s;
}

nav a:hover {
    background-color: #555;
    border-radius: 5px;
}

/* Section Styles */
section {
    padding: 100px 0;
    background-color: #fff;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    margin-top: 1em;
    padding: 12px 30px;
    color: #fff;
    background-color: #2B6CD9;
    border: none;
    border-radius: 5px;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Adds side padding within the container */
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.hero h1 {
    font-size: 50px;
    line-height: 1.2em;
    text-align: center;
}

.hero p {
    max-width: 700px;
    font-size: 18px;
    text-align: center;
    margin-bottom: 0;
}

/* Center Content */
.center-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Hero Featured Image */
.hero img {
    margin-top: 50px;
    border-radius: 8px;
    box-shadow: 0px 4px 12px 0px #00000070;
    width: 100%;
    height: auto;
    max-width: 1000px;
}

/* Content Boxes Container */
.content-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 22B6CD9em;
}

.content-box {
    flex: 1;
    padding: 20px;
    border: 1px solid #ddd; /* Light grey border */
    border-radius: 5px;
    background-color: #fff;
    text-align: center;
    min-width: 350px;
}

.content-box p {
    margin-bottom: 0;
}

/* Article Content */
.article-content {
    max-width: 900px;
    font-size: 18px;
}

.article-content img {
    width: 100%;
    height: auto;
}

/* Bottom CTA */
.bottom-cta {
    background-color: #2B6CD9;
}

.bottom-cta .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.bottom-cta .container h2 {
    color: #fff;
}

.bottom-cta .container p {
    font-size: 18px;
    max-width: 700px;
    text-align: center;
}

/* Bottom CTA Button */
.bottom-cta-button {
    display: inline-block;
    margin-top: 1em;
    padding: 12px 24px;
    color: #444;
    background-color: #fff;
    border: none;
    border-radius: 5px;
    text-align: center;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.bottom-cta-button:hover {
    background-color: #fff;
}

/* Footer */
footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: #fff;
    color: #444;
    text-align: center;
    padding: 2em 0;
}

/* === LIGHTBOX OVERLAY === */
#lightbox {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  /* === LIGHTBOX ACTIVE STATE === */
  #lightbox.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  /* === LIGHTBOX CONTENT === */
  #lightbox .content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  /* === ANIMATE CONTENT WHEN LIGHTBOX SHOWS === */
  #lightbox.show .content {
    transform: translateY(0);
    opacity: 1;
  }
  
  /* === CLOSE BUTTON === */
  #lightbox .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
  }
  
  /* === ACTION BUTTON (OPTIONAL STYLES) === */
  #lightbox .action {
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    background-color: #0073e6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  #lightbox .action:hover {
    background-color: #005bb5;
  }

/* Mobile-specific styles */
@media (max-width: 768px) {
    /* Show the hamburger icon and hide the menu initially */
    #menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        margin-left: auto;
    }

    /* Hamburger icon lines */
    #menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #fff;
    }

    /* Hide the nav menu initially on mobile */
    #mobile-menu {
        display: none;
        flex-direction: column;
        background-color: #fff;
        color: #444;
        width: 100%;
        padding: 15px;
        position: absolute;
        top: 50px;
        left: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    #mobile-menu a {
        color: #444;
    }

    #mobile-menu ul {
        flex-direction: column;
        width: 100%;
    }

    #mobile-menu ul li {
        margin: 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 35px;
    }

    h2 {
        font-size: 30px;
    }

    section {
        padding: 50px 0;
    }
}

/* Hide the hamburger icon on desktop */
@media (min-width: 769px) {
    #menu-toggle {
        display: none;
    }
}