/* Basic Reset & General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-padding {
    padding-top: 20px;
    padding-bottom: 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* remove extra space below image */
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

h1,
h2,
h3 {
    margin-bottom: 0.75em;
    color: #2c3e50;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.75em;
}

h3 {
    font-size: 1.5em;
}

ul {
    list-style: none;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #007bff;
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s ease-in-out;
}

.skip-link:focus {
    top: 0;
}

/* Header & Navigation */
header {
    background: #34495e;
    color: #ecf0f1;
    padding: 1em 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo h1 {
    margin: 0;
    font-size: 1.5em;
}

header .logo h1 a {
    color: #ecf0f1;
    text-decoration: none;
}

header .nav-links {
    display: flex;
}

header .nav-links li {
    margin-left: 20px;
    position: relative;
    /* For submenu positioning */
}

header .nav-links a {
    color: #ecf0f1;
    padding: 0.5em;
    display: block;
}

header .nav-links a:hover {
    background-color: #4a627a;
    border-radius: 4px;
    text-decoration: none;
}

/* Submenu */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #4a627a;
    min-width: 200px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 0.5em 0;
}

.nav-links li:hover>.submenu {
    /* Show submenu on hover */
    display: block;
}

.submenu li {
    margin: 0;
}

.submenu li a {
    padding: 0.5em 1em;
    white-space: nowrap;
}

.submenu li a:hover {
    background-color: #5c7a99;
}


.nav-toggle {
    /* Hamburger menu button */
    display: none;
    /* Hidden on larger screens */
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.hamburger {
    /* Visual for hamburger */
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: white;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Hero Section */
.hero img {
    width: 100%;
    max-height: 450px;
    /* As per original img tag */
    object-fit: cover;
    /* Ensure image covers the area well */
}

/* Image Gallery */
.image-gallery {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Blog Posts */
.blog-posts {
    margin-bottom: 30px;
}

.blog-post-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.blog-post-item img {
    margin-bottom: 15px;
    border-radius: 4px;
}

.blog-post-item .post-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}

.blog-post-item .post-meta span {
    margin-right: 10px;
}

.blog-post-item .read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #007bff;
    color: white;
    border-radius: 4px;
    text-decoration: none;
}

.blog-post-item .read-more:hover {
    background: #0056b3;
}

/* Quote Section */
.quote-section {
    background: #e9ecef;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    text-align: center;
}

.quote-section blockquote {
    font-style: italic;
    font-size: 1.2em;
    margin: 0;
}

.quote-section blockquote footer {
    font-style: normal;
    font-size: 0.9em;
    margin-top: 10px;
    color: #555;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 2em 0;
    text-align: center;
}

.footer-widgets {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
    margin-bottom: 20px;
    text-align: left;
}

.footer-widgets .widget {
    flex: 1;
    min-width: 200px;
    /* Minimum width before wrapping */
    margin: 10px;
}

.footer-widgets .widget h3 {
    color: #ecf0f1;
    margin-bottom: 10px;
}

.footer-widgets ul li a {
    color: #bdc3c7;
    display: block;
    padding: 0.3em 0;
}

.footer-widgets ul li a:hover {
    color: #fff;
}

.social-links li {
    display: inline-block;
    /* For horizontal social links */
    margin-right: 10px;
}

.copyright p {
    margin: 5px 0;
    font-size: 0.9em;
}

.copyright a {
    color: #ecf0f1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-toggle {
        display: block;
        /* Show hamburger */
        position: absolute;
        top: 1.2em;
        right: 20px;
    }

    header .nav-links {
        display: none;
        /* Hide nav links by default on mobile */
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    header .nav-links.nav-links-visible {
        /* Class to show nav links when toggled */
        display: flex;
    }

    header .nav-links li {
        margin: 0;
        width: 100%;
    }

    header .nav-links li a {
        padding: 1em;
        border-bottom: 1px solid #4a627a;
    }

    .submenu {
        /* Adjust submenu for mobile */
        position: static;
        /* No longer absolute */
        background: #5c7a99;
        /* Slightly different background for clarity */
        box-shadow: none;
        padding-left: 1em;
        /* Indent submenu items */
    }

    .nav-links li:hover>.submenu {
        display: block;
        /* Ensure it always displays if parent is visible */
    }


    .footer-widgets {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-widgets .widget {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.3em;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        /* Single column for smallest screens */
    }
}