/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333333;
    --light-text: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #7f8c8d;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --border-radius: 4px;
    --box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

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

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

a:hover {
    color: var(--accent-color);
}

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

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

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

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-submit {
    background-color: var(--accent-color);
    width: 100%;
    padding: 1rem;
}

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

.btn-cookie {
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-cookie:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

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

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

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

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

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 8rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(rgba(44,62,80,0.8), rgba(44,62,80,0.8)), url('images/2.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 5rem 0;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.page-banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Posts Section */
.featured-posts {
    padding: 5rem 0;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.post-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-info {
    padding: 1.5rem;
}

.post-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.post-info p {
    color: var(--dark-gray);
    margin-bottom: 1.25rem;
}

.read-more {
    display: inline-block;
    font-weight: 600;
    color: var(--secondary-color);
    position: relative;
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.read-more:hover:after {
    margin-left: 10px;
}

.view-all {
    text-align: center;
    margin-top: 3rem;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--light-gray);
    padding: 4rem 0;
    text-align: center;
}

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

.newsletter p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.email-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.email-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.email-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 4rem 0 2rem;
}

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

.footer-column h3 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column p {
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.8);
}

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

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

.footer-column ul li a {
    color: rgba(255,255,255,0.8);
}

.footer-column ul li a:hover {
    color: var(--light-text);
}

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

.social-icon {
    width: 20px;
    height: 20px;
    fill: var(--light-text);
    transition: var(--transition);
}

.social-icons 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);
}

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

/* Blog Posts Page */
.blog-content {
    padding: 4rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.blog-post {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-image {
    overflow: hidden;
}

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

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

.post-content {
    padding: 2rem;
}

.post-content h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.post-summary {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.post-summary h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.post-summary ul {
    margin-bottom: 0;
}

/* Single Blog Post */
.blog-post-single {
    padding: 4rem 0;
}

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

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

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

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

.post-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.post-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h4 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.image-with-caption {
    margin: 2rem 0;
}

.image-with-caption img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.caption {
    text-align: center;
    font-style: italic;
    color: var(--dark-gray);
    margin-top: 0.75rem;
}

.author-bio {
    display: flex;
    align-items: center;
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
}

.author-bio img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 1.5rem;
}

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

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--medium-gray);
    border-bottom: 1px solid var(--medium-gray);
}

.related-posts {
    margin-top: 3rem;
}

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

.related-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-post-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.related-post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-post-card h4 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.1rem;
}

.related-post-card a {
    display: block;
    padding: 0 1rem 1rem;
    font-weight: 600;
}

/* About Page */
.about-content {
    padding: 4rem 0;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.about-intro h2 {
    margin-bottom: 1.5rem;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.mission, .vision {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

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

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

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

.team-member {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px 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;
    font-size: 1.2rem;
}

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

.team-member p:first-of-type {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.testimonials {
    margin-top: 4rem;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

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

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

.testimonial-content {
    position: relative;
    padding-left: 2rem;
}

.testimonial-content:before {
    content: '"';
    font-size: 3rem;
    color: var(--secondary-color);
    position: absolute;
    left: -0.5rem;
    top: -1rem;
}

.testimonial-author {
    margin-top: 1.5rem;
    text-align: right;
}

/* Contact Page */
.contact-content {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info h2, 
.contact-form-container h2,
.map-container h2 {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.icon {
    margin-right: 1.5rem;
    background-color: var(--light-gray);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon {
    width: 20px;
    height: 20px;
    fill: var(--secondary-color);
}

.info-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.social-connect {
    margin-top: 2.5rem;
}

.contact-form {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

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

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

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

.form-group textarea {
    resize: vertical;
}

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

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

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

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

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

.modal-btn {
    margin-top: 1rem;
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 1.5rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

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

.cookie-buttons {
    margin: 1.5rem 0;
}

.cookie-more-info {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cookie-more-info a {
    color: var(--light-text);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .mission-vision,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post {
        grid-template-columns: 1fr;
    }
    
    .related-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .email-form input[type="email"] {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    .email-form button {
        border-radius: var(--border-radius);
    }
    
    .related-post-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 0.75rem 0.5rem;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cookie-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-cookie {
        margin: 0;
    }
}
