/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s, text-decoration 0.3s;
}

a:hover {
    color: #003d7a;
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logo img {
    height: 50px;
    width: auto;
    margin-right: 1rem;
    border-radius: 8px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0056b3;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0056b3;
    transition: width 0.3s;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a.active {
    color: #0056b3;
}

/* Hero Section */
.hero {
    background-color: #0056b3;
    color: #fff;
    padding: 5rem 0;
    text-align: center;
    background-image: linear-gradient(135deg, #0056b3, #004494);
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.05)" points="0,100 100,0 100,100"/></svg>');
    background-size: cover;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 .icon {
    margin-right: 0.75rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Page Banner (for other pages) */
.page-banner {
    background-color: #0056b3;
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
    background-image: linear-gradient(135deg, #0056b3, #004494);
    position: relative;
    overflow: hidden;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-banner h1 .icon {
    margin-right: 0.75rem;
}

.page-banner p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Main Content */
main {
    padding: 3rem 0;
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-gap: 2.5rem;
}

/* Section Headers */
h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #0056b3;
    display: flex;
    align-items: center;
}

h2 .icon {
    margin-right: 0.75rem;
    color: #0056b3;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    color: #333;
    display: flex;
    align-items: center;
}

h3 .icon {
    margin-right: 0.5rem;
    color: #0056b3;
}

/* Featured Posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-gap: 2rem;
}

.post-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: #666;
}

.read-more {
    display: inline-block;
    color: #0056b3;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #003d7a;
}

/* Sidebar */
.sidebar {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    align-self: start;
    position: sticky;
    top: 100px;
}

.email-signup {
    margin-bottom: 2rem;
}

.email-signup h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
}

.email-signup .icon {
    margin-right: 0.5rem;
}

.email-form {
    display: flex;
    flex-direction: column;
}

.email-form input {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.email-form input:focus {
    border-color: #0056b3;
}

.email-form button {
    padding: 0.75rem 1rem;
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.email-form button:hover {
    background-color: #003d7a;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.footer-logo p {
    margin: 0;
    opacity: 0.7;
}

.footer-links h4, .footer-legal h4, .footer-contact h4, .footer-social h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.1rem;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a, .footer-legal ul li a {
    color: #ccc;
    transition: color 0.3s;
    text-decoration: none;
}

.footer-links ul li a:hover, .footer-legal ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: #ccc;
    display: flex;
    align-items: center;
}

.footer-contact .icon {
    margin-right: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 1000;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.cookie-content p {
    margin-bottom: 1.25rem;
    max-width: 800px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-buttons button {
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

#accept-all {
    background-color: #0056b3;
    color: #fff;
    border: none;
}

#accept-all:hover {
    background-color: #003d7a;
}

#customize, #decline {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

#customize:hover, #decline:hover {
    background-color: #e9ecef;
}

.cookie-content a {
    text-decoration: underline;
    color: #0056b3;
}

/* Team Grid (About Page) */
.about-intro {
    margin-bottom: 3rem;
}

.team-section {
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 2rem;
}

.team-member {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-member h3 {
    margin: 1.25rem 0 0.5rem;
    color: #333;
    display: block;
    justify-content: center;
}

.team-member p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

.team-member p:first-of-type {
    color: #0056b3;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 2rem;
}

.value-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #0056b3;
    display: block;
}

.value-card p {
    margin: 0;
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 2.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    color: #0056b3;
    margin-bottom: 1rem;
}

.info-card h3 {
    margin: 0 0 1rem 0;
    color: #333;
    display: block;
    text-align: center;
}

.info-card p {
    margin: 0;
}

.social-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.social-section h3 {
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
}

.social-section .social-icons {
    justify-content: center;
}

.contact-form-section {
    margin-bottom: 2.5rem;
}

.contact-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0056b3;
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.checkbox-group label {
    margin: 0;
    font-weight: 400;
}

.submit-btn {
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #003d7a;
}

.map-container {
    margin-bottom: 2.5rem;
}

.map-placeholder {
    background-color: #f0f0f0;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.map-placeholder p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-style: italic;
    color: #666;
}

/* Modal (Thank You) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #333;
}

.success-icon {
    color: #28a745;
    margin-bottom: 1.5rem;
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    display: block;
    text-align: center;
}

.modal p {
    margin-bottom: 2rem;
}

.modal-btn {
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-btn:hover {
    background-color: #003d7a;
}

/* Blog Post Page */
.post-container {
    grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
}

.blog-post {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.post-header {
    margin-bottom: 2rem;
}

.post-header .post-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    height: 400px;
}

.post-header h1 {
    font-size: 2.25rem;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    color: #333;
}

.post-meta {
    display: flex;
    gap: 2rem;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.post-content {
    line-height: 1.7;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1.25rem;
    display: block;
}

.post-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    display: block;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content a {
    text-decoration: underline;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.related-posts {
    margin-bottom: 2rem;
}

.related-posts ul {
    list-style: none;
    padding: 0;
}

.related-posts li {
    margin-bottom: 1rem;
}

.related-posts a {
    display: block;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.related-posts a:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    main {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .post-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-top: 2.5rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 1rem;
    }
    
    .hero, .page-banner {
        padding: 3rem 0;
    }
    
    .hero h1, .page-banner h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .post-header .post-image {
        height: 300px;
    }
    
    .post-header h1 {
        font-size: 1.75rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .posts-grid, .team-grid, .info-grid, .values-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul li {
        margin: 0 0.5rem;
    }
    
    .hero h1, .page-banner h1 {
        font-size: 1.75rem;
        flex-direction: column;
    }
    
    .hero h1 .icon, .page-banner h1 .icon {
        margin: 0 0 0.75rem 0;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .post-header .post-image {
        height: 250px;
    }
}
