/* Base Styles and Reset */
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #f1c40f;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --background-color: #f9f9f9;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --border-radius: 5px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-headings: 'Montserrat', sans-serif;
}

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

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

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

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

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

ul {
    list-style: none;
}

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

button, .btn {
    cursor: pointer;
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    text-align: center;
}

button:hover, .btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #dfe6e9;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

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

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

nav a:hover::after {
    width: 100%;
}

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

nav a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background-color: white;
    margin: 2rem 0;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-height: 400px;
    margin: 0 auto;
}

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

.featured-posts h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.featured-posts h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

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

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

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

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

/* Newsletter Section */
.newsletter {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    margin: 3rem 0;
    text-align: center;
}

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

.newsletter p {
    margin-bottom: 2rem;
    color: #bdc3c7;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 2rem 1rem 2rem;
}

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

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column p {
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

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

.footer-column ul li a {
    color: #bdc3c7;
}

.footer-column ul li a:hover {
    color: white;
}

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

.social-links 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-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-links svg {
    fill: white;
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 1rem 2rem;
    z-index: 9999;
    display: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-policy {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.cookie-policy a {
    color: var(--accent-color);
}

.cookie-policy a:hover {
    text-decoration: underline;
}

/* About Page Styles */
.page-header {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.about-text h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.about-text p, .about-text ul {
    margin-bottom: 1.5rem;
    color: #666;
}

.about-text ul {
    list-style-type: disc;
    padding-left: 2rem;
}

.about-text ul li {
    margin-bottom: 0.5rem;
}

.team-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.team-section {
    padding: 3rem 2rem;
    background-color: #f5f5f5;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.team-member h3 {
    margin: 1rem 0 0.25rem;
    font-size: 1.3rem;
}

.team-member p {
    padding: 0 1rem 1.5rem;
    color: #666;
}

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

/* Contact Page Styles */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

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

.contact-info {
    padding: 2rem;
    background-color: var(--dark-color);
    color: white;
}

.contact-info h3 {
    color: white;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item svg {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.info-item p, .info-item address {
    color: #bdc3c7;
    font-style: normal;
}

.contact-form-container {
    padding: 2rem;
}

.contact-form-container h3 {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.contact-form-container h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.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 #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.map-section {
    padding: 3rem 2rem;
    background-color: #f5f5f5;
}

.map-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

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

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

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
}

.close-modal:hover {
    color: black;
}

.modal-icon {
    margin: 1rem auto;
}

.modal h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

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

.close-btn {
    background-color: var(--success-color);
}

.close-btn:hover {
    background-color: #27ae60;
}

/* Blog Post Styles */
.post-content-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

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

.post-header {
    padding: 2rem;
}

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

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

.post-meta span {
    display: flex;
    align-items: center;
}

.post-body {
    padding: 0 2rem 2rem;
}

.post-body p {
    margin-bottom: 1.5rem;
    color: #444;
}

.post-body h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--dark-color);
}

.post-body h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: var(--dark-color);
}

.post-body h4 {
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
    color: var(--dark-color);
}

.post-body ul, .post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: #444;
}

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

.post-body ul {
    list-style-type: disc;
}

.post-body ol {
    list-style-type: decimal;
}

.post-tags {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.post-tags span {
    font-weight: 600;
    margin-right: 0.5rem;
}

.post-tags a {
    display: inline-block;
    background-color: #f1f1f1;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
}

.sidebar-widget h3 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.related-posts ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-posts li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
}

.related-posts li a:hover {
    color: var(--primary-color);
}

.related-posts img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.newsletter-widget p {
    margin-bottom: 1.5rem;
    color: #666;
}

.post-navigation {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.post-navigation-links {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

.prev-post, .next-post {
    max-width: 45%;
    color: var(--text-color);
}

.prev-post {
    text-align: left;
}

.next-post {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.nav-title {
    font-weight: 600;
}

.prev-post:hover .nav-title,
.next-post:hover .nav-title {
    color: var(--primary-color);
}

.comments-section {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.comments-section h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.comment {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.comment.reply {
    margin-top: 2rem;
    margin-left: 2rem;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-header h4 {
    margin-bottom: 0;
}

.comment-date {
    font-size: 0.9rem;
    color: #666;
}

.reply-btn {
    background: none;
    color: var(--primary-color);
    padding: 0;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: normal;
    margin-top: 0.5rem;
}

.reply-btn:hover {
    color: var(--secondary-color);
    background: none;
    box-shadow: none;
    transform: none;
}

.add-comment {
    margin-top: 3rem;
}

.add-comment h3 {
    margin-bottom: 1.5rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.comparison-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.comparison-table tr:hover {
    background-color: #f9f9f9;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding: 2rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .post-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
        gap: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .post-navigation-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .prev-post, .next-post {
        max-width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 576px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .comment {
        flex-direction: column;
        gap: 1rem;
    }
    
    .comment.reply {
        margin-left: 0;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Light effect on button hover */
.btn:hover, button:hover {
    box-shadow: 0 0 15px var(--primary-color);
}
