/* Variables */
:root {
    --color-primary: #2a9d8f;
    --color-primary-light: #57c4b8;
    --color-primary-dark: #1e7d73;
    --color-secondary: #e9c46a;
    --color-secondary-light: #f4d58d;
    --color-secondary-dark: #deb13d;
    --color-accent: #e76f51;
    --color-dark: #264653;
    --color-grey-light: #f8f9fa;
    --color-grey-medium: #e9ecef;
    --color-grey-dark: #495057;
    --color-white: #ffffff;
    --font-main: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-grey-dark);
    background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

p {
    margin-bottom: 1.5rem;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

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

button {
    cursor: pointer;
    font-family: var(--font-main);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 50px;
    width: auto;
}

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

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

nav ul li a {
    color: var(--color-grey-dark);
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

nav ul li a:hover {
    color: var(--color-primary);
}

nav ul li a.active {
    color: var(--color-primary);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(135deg, rgba(42, 157, 143, 0.9) 0%, rgba(38, 70, 83, 0.8) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

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

/* Page Banner */
.page-banner {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 0;
    text-align: center;
    position: relative;
}

.page-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(135deg, rgba(42, 157, 143, 0.9) 0%, rgba(38, 70, 83, 0.8) 100%);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.page-banner p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Main Content */
main {
    padding: 3rem 0;
}

/* Featured Posts Section */
.featured-posts, .latest-posts {
    margin-bottom: 3rem;
}

.featured-posts h2, .latest-posts h2 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.featured-posts h2::after, .latest-posts h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
}

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

/* Post Card */
.post-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.post-content p {
    color: var(--color-grey-dark);
    margin-bottom: 1.5rem;
}

.read-more {
    margin-top: auto;
    color: var(--color-primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--color-primary-dark);
    transform: translateX(5px);
}

/* Newsletter Section */
.newsletter {
    background-color: var(--color-grey-light);
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: var(--border-radius);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 1rem;
}

.newsletter p {
    margin-bottom: 1.5rem;
}

.newsletter form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter input {
    flex-grow: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-grey-medium);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
}

.newsletter button {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.newsletter button:hover {
    background-color: var(--color-primary-dark);
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

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

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

.footer-links h3, .footer-legal h3, .footer-contact h3 {
    color: var(--color-white);
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
}

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

footer ul li {
    margin-bottom: 0.75rem;
}

footer a {
    color: var(--color-grey-light);
    transition: var(--transition);
}

footer a:hover {
    color: var(--color-secondary);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.footer-social a:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-social svg {
    color: var(--color-white);
    width: 20px;
    height: 20px;
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

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

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

.cookie-buttons button {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1rem;
    border: none;
    transition: var(--transition);
}

#acceptCookies {
    background-color: var(--color-primary);
    color: var(--color-white);
}

#acceptCookies:hover {
    background-color: var(--color-primary-dark);
}

#customizeCookies, #rejectCookies {
    background-color: var(--color-grey-light);
    color: var(--color-grey-dark);
    border: 1px solid var(--color-grey-medium);
}

#customizeCookies:hover, #rejectCookies:hover {
    background-color: var(--color-grey-medium);
}

.cookie-more-info {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Single Post */
.post-single {
    max-width: 900px;
    margin: 0 auto;
}

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

.post-meta {
    font-size: 0.95rem;
    color: var(--color-grey-dark);
    margin-bottom: 1.5rem;
}

.post-meta span {
    margin-right: 1.5rem;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
}

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

.post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    margin-top: 1.75rem;
    margin-bottom: 1rem;
}

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

.post-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem;
    background-color: var(--color-grey-light);
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

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

.post-content blockquote cite {
    display: block;
    font-size: 0.9rem;
    color: var(--color-grey-dark);
    text-align: right;
    font-style: normal;
    font-weight: 500;
}

.post-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-grey-medium);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.post-tags span {
    font-weight: 600;
}

.post-tags a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--color-grey-light);
    border-radius: 50px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.post-tags a:hover {
    background-color: var(--color-primary-light);
    color: var(--color-white);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-share span {
    font-weight: 600;
}

.post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--color-grey-light);
    border-radius: 50%;
    transition: var(--transition);
}

.post-share a:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.post-share a svg {
    width: 18px;
    height: 18px;
    color: var(--color-grey-dark);
}

.post-share a:hover svg {
    color: var(--color-white);
}

.related-posts {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-grey-medium);
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Debt Table */
.debt-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.debt-table th, .debt-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-grey-medium);
}

.debt-table th {
    background-color: var(--color-grey-light);
    font-weight: 600;
}

.debt-table tbody tr:hover {
    background-color: rgba(42, 157, 143, 0.05);
}

/* About Page */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-image img {
    border-radius: var(--border-radius);
}

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

.team-member {
    text-align: center;
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-member img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--color-primary-light);
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-member p:first-of-type {
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

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

.value-card {
    text-align: center;
    background-color: var(--color-white);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--color-primary);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

/* Contact Page */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.info-card {
    display: flex;
    margin-bottom: 2rem;
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(42, 157, 143, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--color-primary);
}

.info-text h3 {
    margin-bottom: 0.5rem;
}

.info-text p {
    margin-bottom: 0.5rem;
    color: var(--color-grey-dark);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-grey-medium);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.2);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-group.checkbox input {
    width: auto;
    margin-top: 0.3rem;
}

.form-actions {
    text-align: center;
}

.form-actions button {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.form-actions button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(42, 157, 143, 0.2);
}

.map-container {
    margin-top: 3rem;
}

.map {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1010;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-grey-dark);
    transition: var(--transition);
}

.close-button:hover {
    color: var(--color-primary);
}

.thank-you-message {
    text-align: center;
}

.thank-you-message svg {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.thank-you-message h2 {
    margin-bottom: 1rem;
}

.thank-you-message p {
    margin-bottom: 1.5rem;
}

.thank-you-message button {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.thank-you-message button:hover {
    background-color: var(--color-primary-dark);
}

/* Semi-transparent blocks */
.featured-posts, .latest-posts, .about-intro, .team-section, .values-section, .contact-section, .map-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* Responsive design */
@media (max-width: 991px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .about-intro {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 1rem 20px;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 0.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .post-tags, .post-share {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 576px) {
    .posts-grid, .team-grid, .values-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .cookie-content {
        padding: 1rem;
    }
}
