/* Global Styles */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #e07a5f;
    --accent-color: #81b29a;
    --text-color: #333;
    --light-text: #f8f9fa;
    --dark-bg: #2b2d42;
    --light-bg: #f8f9fa;
    --medium-bg: #e9ecef;
    --border-color: #dee2e6;
    --success-color: #81b29a;
    --warning-color: #f2cc8f;
    --error-color: #e07a5f;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

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

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

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

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

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

ul {
    list-style: none;
}

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

p {
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
}

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

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

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

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

nav ul {
    display: flex;
}

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

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    color: var(--dark-bg);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
    background-color: rgba(74, 111, 165, 0.1);
}

.social-icons a {
    margin-left: 1rem;
    color: var(--dark-bg);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

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

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

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

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

.page-banner p {
    font-size: 1.2rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Main Content Sections */
main {
    padding: 3rem 5%;
}

.featured-posts {
    margin-bottom: 4rem;
}

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

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

.post-card {
    background: 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-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

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

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #666;
    margin-top: 1rem;
}

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

.post-meta i {
    margin-right: 0.3rem;
}

/* Subscription Section */
.subscription {
    background-color: var(--dark-bg);
    padding: 4rem 0;
    color: white;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.subscription-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.subscription p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

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

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

.subscriber-count {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Blog Page Styles */
.blog-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

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

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

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

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

.sidebar {
    position: sticky;
    top: 100px;
}

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

.sidebar-widget h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: block;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.category-list a:hover,
.category-list a.active {
    color: var(--secondary-color);
    padding-left: 0.5rem;
}

.popular-posts {
    display: grid;
    gap: 1rem;
}

.popular-post {
    display: flex;
    gap: 1rem;
}

.popular-post img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.popular-post h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.popular-post span {
    font-size: 0.8rem;
    color: #666;
}

.sidebar-subscribe {
    display: grid;
    gap: 1rem;
}

.sidebar-subscribe input {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* About Page Styles */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-intro {
    margin-bottom: 4rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

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

.about-text p:last-child {
    margin-bottom: 0;
}

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

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

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

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

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

.value-card p {
    margin-bottom: 0;
}

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

.team-member {
    background: 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%;
    height: 300px;
    object-fit: cover;
}

.team-member h3 {
    margin: 1rem 0 0.3rem;
    padding: 0 1.5rem;
}

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

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

.member-social {
    display: flex;
    padding: 0 1.5rem 1.5rem;
    gap: 1rem;
}

.member-social a {
    color: var(--dark-bg);
    font-size: 1.2rem;
}

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

.join-us {
    background-color: var(--primary-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    color: white;
    text-align: center;
}

.join-content h2 {
    color: white;
}

/* Contact Page Styles */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.contact-details {
    margin: 2rem 0;
}

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

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 40px;
    text-align: center;
}

.contact-item h3 {
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
}

.contact-item p {
    margin-bottom: 0;
    color: #666;
}

.social-connect h3 {
    margin-bottom: 1rem;
}

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

.social-icons-large a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: var(--transition);
}

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

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

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

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

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

.form-group .required {
    color: var(--error-color);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.checkbox-group input {
    width: auto;
    margin-right: 0.5rem;
}

.submit-btn {
    grid-column: 1 / -1;
    justify-self: start;
}

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

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

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

.placeholder-map {
    position: relative;
    width: 100%;
    height: 400px;
}

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

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2rem;
    text-align: center;
}

.map-overlay p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

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

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.modal-content h2 {
    margin-bottom: 1rem;
}

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

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

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

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

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

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

.post-featured-image {
    margin-bottom: 2rem;
}

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

.post-content-full {
    padding: 0 2rem 2rem;
}

.post-content-full h2 {
    margin-top: 2rem;
    font-size: 1.8rem;
}

.post-content-full h3 {
    margin-top: 1.5rem;
    font-size: 1.4rem;
}

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

.post-content-full ul li,
.post-content-full ol li {
    margin-bottom: 0.5rem;
}

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

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

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

.image-caption {
    background: var(--medium-bg);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-bottom: 0;
}

.tip-box {
    background-color: var(--accent-color);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.tip-box h4 {
    display: flex;
    align-items: center;
    color: white;
    margin-bottom: 0.5rem;
}

.tip-box h4 i {
    margin-right: 0.5rem;
}

.tip-box p {
    margin-bottom: 0;
}

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

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1.5rem;
}

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

.author-info p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
}

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

.post-tags a {
    display: inline-block;
    background-color: var(--medium-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0 0.5rem 0.5rem 0;
    transition: var(--transition);
}

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

.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
}

.post-comments {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

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

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

.comment:last-of-type {
    border-bottom: none;
}

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

.comment-content {
    flex: 1;
}

.comment-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-info h4 {
    margin-bottom: 0;
    margin-right: 1rem;
}

.comment-info span {
    font-size: 0.85rem;
    color: #666;
}

.comment-content p {
    margin-bottom: 1rem;
}

.reply-btn {
    background: none;
    color: var(--primary-color);
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
}

.reply-btn:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.comment-form .form-group:last-of-type {
    grid-column: 1 / -1;
}

.post-sidebar {
    position: sticky;
    top: 100px;
}

.related-posts {
    display: grid;
    gap: 1rem;
}

.related-post {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    align-items: center;
}

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

.related-post h4 {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-bg);
    color: white;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
    max-width: 1200px;
    padding: 1rem;
    text-align: center;
}

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

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

.btn-cookie {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie.accept {
    background-color: var(--success-color);
    color: white;
}

.btn-cookie.customize {
    background-color: var(--warning-color);
    color: var(--text-color);
}

.btn-cookie.decline {
    background-color: var(--error-color);
    color: white;
}

.btn-cookie:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

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

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

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    padding-left: 0.5rem;
}

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

.footer-section .social-icons a {
    color: white;
    opacity: 0.8;
}

.footer-section .social-icons a:hover {
    opacity: 1;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .post-container,
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
    
    .post-sidebar,
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .social-icons {
        margin-top: 1rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post {
        grid-template-columns: 1fr;
    }
    
    .blog-post img {
        height: 200px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .comment {
        flex-direction: column;
        gap: 1rem;
    }
    
    .comment-form,
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form input {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    .subscribe-form button {
        border-radius: var(--border-radius);
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-navigation a {
        width: 100%;
        text-align: center;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin: 0 0 1rem 0;
    }
}
