/* Base Styles */
:root {
    --primary-color: #6c5ce7;
    --secondary-color: #00b894;
    --accent-color: #fd79a8;
    --text-color: #2d3436;
    --light-text: #636e72;
    --bg-color: #f5f5f5;
    --dark-bg: #2d3436;
    --card-bg: #ffffff;
    --border-color: #dfe6e9;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --error-color: #d63031;
    --header-height: 80px;
    --footer-bg: #2d3436;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
}

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

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

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

h4 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

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

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

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.center {
    text-align: center;
    margin: 2rem 0;
}

/* Header */
header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

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

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    padding: 10px 0;
    position: relative;
}

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

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

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

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: white;
    padding: 160px 0 100px;
    text-align: center;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 52, 54, 0.7);
}

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

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

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

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature-card .icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Latest Posts Section */
.latest-posts {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.latest-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

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

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

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

.post-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.post-date {
    display: block;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

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

.post-card p {
    color: var(--light-text);
    margin-bottom: 1rem;
}

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

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

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

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

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

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

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

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.newsletter-form button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0 24px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
    color: white;
    margin-bottom: 1.5rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-contact svg {
    margin-right: 10px;
}

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

.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%;
    color: white;
    transition: var(--transition);
}

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

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

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.cookie-content p {
    flex: 1;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
    background-image: url('images/page-header-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 52, 54, 0.7);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

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

/* Blog Posts Page */
.blog-posts {
    padding: 80px 0;
}

.post-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.pagination a.active,
.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination a.next {
    width: auto;
    padding: 0 1rem;
}

/* Single Blog Post */
.blog-post {
    padding: 80px 0;
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 3rem 0;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    position: relative;
}

.post-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 52, 54, 0.7);
    border-radius: 8px;
}

.post-header .container {
    position: relative;
    z-index: 1;
}

.post-meta {
    margin-bottom: 1rem;
}

.post-meta span {
    margin: 0 0.5rem;
}

.post-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

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

.content-body {
    max-width: 800px;
    margin: 0 auto;
}

.content-body h3 {
    margin-top: 2rem;
}

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

.tags span {
    font-weight: 600;
}

.tags a {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--bg-color);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.share-post {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

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

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

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

.author-bio {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 3rem 0;
}

.author-bio img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

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

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

.author-social a {
    color: var(--light-text);
}

.author-social a:hover {
    color: var(--primary-color);
}

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

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

.comments-section {
    max-width: 800px;
    margin: 0 auto;
}

.comments-section h3 {
    margin-bottom: 1.5rem;
}

.comments-list {
    margin-bottom: 2rem;
}

.comment {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.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;
    align-items: center;
    margin-bottom: 0.5rem;
}

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

.comment-date {
    font-size: 0.9rem;
    color: var(--light-text);
}

.comment-actions {
    margin-top: 0.5rem;
}

.reply-btn {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.comment-form h3 {
    margin-bottom: 1rem;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

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

.form-group.checkbox input {
    width: auto;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

/* About Page */
.about-content {
    padding: 80px 0;
}

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

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

.mission, .vision {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

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

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

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

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

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

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

.team-member h3 {
    margin-top: 1rem;
    margin-bottom: 0.3rem;
}

.team-member p {
    color: var(--light-text);
    padding: 0 1rem 1.5rem;
}

.values-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.value-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.value-card .icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.partners {
    padding: 80px 0;
    background-color: var(--bg-color);
    text-align: center;
}

.partners h2 {
    margin-bottom: 2rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.partner img {
    max-width: 150px;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Contact Page */
.contact-content {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info h2 {
    margin-bottom: 2rem;
}

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

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

.info-content h3 {
    margin-bottom: 0.3rem;
}

.contact-form-container h2 {
    margin-bottom: 1.5rem;
}

.map-section {
    padding: 40px 0 80px;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

/* Thank You Popup */
.thank-you-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.thank-you-popup.show {
    opacity: 1;
    visibility: visible;
}

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

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
}

.success-icon {
    color: var(--success-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .post-header h2 {
        font-size: 2rem;
    }
    
    .post-meta span {
        display: block;
        margin: 0.3rem 0;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .comment {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 1rem;
    }
    
    .newsletter-form button {
        border-radius: 4px;
        width: 100%;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    header .container {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    header {
        height: auto;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .page-header {
        padding: 100px 0 40px;
    }
}
