/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: #2c3e50;
}

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

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

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo a {
    color: white;
}

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

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

nav ul li a {
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

/* Buttons */
.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #2980b9;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://picsum.photos/id/2/5000/3333');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

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

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Blog Posts */
.blog-posts {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #2c3e50;
}

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

.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

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

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

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

.post-content {
    padding: 1.5rem;
}

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

.post-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

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

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

.post-excerpt {
    margin-bottom: 1rem;
    color: #555;
}

.read-more {
    color: #3498db;
    font-weight: 500;
}

/* Single Post Page */
.single-post {
    padding: 3rem 0;
}

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

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

.post-header .post-meta {
    justify-content: center;
}

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* About Page */
.about-section {
    padding: 3rem 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.about-img {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

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

.about-text {
    flex: 1;
}

.team {
    margin-top: 3rem;
}

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

.team-member {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid #f1f1f1;
}

/* Contact Page */
.contact-section {
    padding: 3rem 0;
}

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

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

.contact-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

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

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
}

/* Privacy Page */
.privacy-section {
    padding: 3rem 0;
}

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

.privacy-content h2 {
    margin: 2rem 0 1rem;
    color: #2c3e50;
}

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

.privacy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

/* Newsletter */
.newsletter {
    background: #2c3e50;
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-top: 20px;
}

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

.newsletter p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

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

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

.newsletter-form button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #2980b9;
}

/* Footer */
footer {
    background: #34495e;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

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

.footer-links a {
    color: white;
    margin: 0 1rem;
}

.footer-links a:hover {
    color: #3498db;
}

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

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin: 0 0.5rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 5px;
        margin-bottom: 0.5rem;
    }

    .newsletter-form button {
        border-radius: 5px;
        padding: 0.8rem;
    }
}








/* Additional Styles */
.featured-post {
    margin-bottom: 3rem;
}

.featured-post .post-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.sidebar {
    margin-top: 3rem;
}

.widget {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f1f1;
}

.recent-posts-list {
    list-style: none;
}

.recent-post-item {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

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

.recent-post-content h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.recent-post-meta {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.categories-list, .tags-list {
    list-style: none;
}

.categories-list li, .tags-list li {
    margin-bottom: 0.5rem;
}

.categories-list a, .tags-list a {
    display: block;
    padding: 0.5rem;
    background: #f5f5f5;
    border-radius: 5px;
    transition: all 0.3s;
}

.categories-list a:hover, .tags-list a:hover {
    background: #3498db;
    color: white;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-list li {
    margin-bottom: 0;
}

.tags-list a {
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
}

.archive-list {
    list-style: none;
}

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

.archive-list a {
    display: block;
    padding: 0.5rem;
    border-left: 3px solid #3498db;
    background: #f5f5f5;
}

.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.search-form button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0 1.2rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.comments-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
    margin-bottom: 2rem;
}

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

.comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

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

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.comment-author {
    font-weight: bold;
    color: #2c3e50;
}

.comment-reply {
    color: #3498db;
    font-size: 0.9rem;
}

.comment-form {
    margin-top: 2rem;
}

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

.reaction-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.reaction-btn:hover {
    background: #e0e0e0;
}

.reaction-btn.like.active {
    color: #3498db;
}

.reaction-btn.dislike.active {
    color: #e74c3c;
}

/* Layout with Sidebar */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* Archive Page */
.archive-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* Search Results */
.search-results-count {
    margin-bottom: 2rem;
    color: #7f8c8d;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .featured-post .post-card {
        grid-template-columns: 1fr;
    }
}






/* Modern Comment Form Styles */
.comment-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    margin-top: 3rem;
    border: 1px solid #f0f0f0;
}

.comment-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 0.75rem;
}

.comment-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    border-radius: 3px;
}

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

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #34495e;
    font-size: 0.95rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #3498db;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-submit-btn {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.comment-submit-btn:active {
    transform: translateY(0);
}

.comment-submit-btn svg {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.comment-login-prompt a {
    color: #3498db;
    font-weight: 500;
}

/* Floating Labels Alternative */
.comment-form.floating-labels .form-group {
    margin-bottom: 2rem;
}

.comment-form.floating-labels label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    margin-bottom: 0;
    padding: 0 0.5rem;
    background: #fafafa;
    color: #7f8c8d;
    transition: all 0.2s ease;
    pointer-events: none;
}

.comment-form.floating-labels input:focus + label,
.comment-form.floating-labels textarea:focus + label,
.comment-form.floating-labels input:not(:placeholder-shown) + label,
.comment-form.floating-labels textarea:not(:placeholder-shown) + label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.8rem;
    background: #fff;
    color: #3498db;
}

.comment-form.floating-labels input,
.comment-form.floating-labels textarea {
    padding: 1.2rem 1rem 0.8rem;
}

/* Social Login Options */
.social-login-options {
    margin: 1.5rem 0;
    text-align: center;
}

.social-login-title {
    position: relative;
    margin-bottom: 1.5rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.social-login-title::before,
.social-login-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #eee;
}

.social-login-title::before {
    left: 0;
}

.social-login-title::after {
    right: 0;
}

.social-login-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: transform 0.3s ease;
}

.social-login-btn:hover {
    transform: translateY(-3px);
}

.social-login-btn.google {
    background: #db4437;
}

.social-login-btn.twitter {
    background: #1da1f2;
}

.social-login-btn.facebook {
    background: #1877f2;
}

.social-login-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}


/* Additional styles for posts page */
.posts-header {
    text-align: center;
    margin-bottom: 3rem;
}

.posts-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.posts-header p {
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto;
}

.posts-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-group select, .filter-group input {
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.filter-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.filter-btn:hover {
    background: #2980b9;
}

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

.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

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

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

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

.post-content {
    padding: 1.5rem;
}

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

.post-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.post-excerpt {
    margin-bottom: 1rem;
    color: #555;
}

.read-more {
    color: #3498db;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

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

.page-link {
    display: inline-block;
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #3498db;
}

.page-link.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

@media (max-width: 768px) {
    .posts-filters {
        flex-direction: column;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
}
