/* Base Styles */
:root {
    --primary: #4e6bff;
    --primary-dark: #3a56d4;
    --secondary: #ff6b6b;
    --dark: #2d3748;
    --darker: #1a202c;
    --light: #f7fafc;
    --gray: #e2e8f0;
    --dark-gray: #a0aec0;
    --text: #4a5568;
    --text-dark: #2d3748;
    --white: #ffffff;
    --black: #000000;
}

* {
    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);
    background-color: var(--light);
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

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

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

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

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

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

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

.section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--dark);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

/* Header Styles */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo span {
    color: var(--primary);
}

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

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    font-weight: 600;
    color: var(--text);
    transition: color 0.3s ease;
}

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

.header-cta {
    margin-left: 2rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 10rem 0 5rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--darker);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--white);
}

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

.feature-card {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--text);
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--light);
}

.about .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.about-content {
    flex: 1;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.about-list {
    list-style: none;
    margin: 2rem 0;
}

.about-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.about-list i {
    color: var(--primary);
    margin-right: 0.8rem;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--white);
}

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

.service-card {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card p {
    color: var(--text);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.service-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(3px);
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 0;
    background-color: var(--light);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(78, 107, 255, 0.9);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.portfolio-link {
    color: var(--white);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.portfolio-link:hover {
    transform: scale(1.1);
}

.portfolio-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Blog Section */
.blog-preview {
    padding: 5rem 0;
    background-color: var(--white);
}

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

.blog-card {
    background-color: var(--light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.blog-content h3 a:hover {
    color: var(--primary);
}

.blog-excerpt {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--dark-gray);
}

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

.blog-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: var(--light);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 0 1rem;
}

.testimonial-content {
    font-style: italic;
    color: var(--text);
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: -1.5rem;
    left: -1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

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

.testimonial-author h4 {
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

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

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

.cta .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.cta .btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
}

.cta .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Footer */
.main-footer {
    background-color: var(--darker);
    color: var(--white);
    padding: 4rem 0 0;
}

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

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

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

.footer-col p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

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

.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary);
}

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

.contact-info i {
    margin-right: 0.8rem;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container, .about .container {
        flex-direction: column;
    }
    
    .hero-content, .about-content, .about-image {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-buttons, .about-list {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 3rem;
    }
    
    .about-image {
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav li {
        margin: 0.5rem 0;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .portfolio-filter {
        flex-wrap: wrap;
    }
}
/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Testimonial slider */
.testimonial-slider {
    position: relative;
}

.testimonial-card {
    display: none;
}

.testimonial-card:first-child {
    display: block;
}

/* Form error styling */
.error {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-top: 0.3rem;
    display: none;
}

input.error-input, textarea.error-input {
    border-color: var(--secondary) !important;
}
.newsletter {
    background-color: var(--light);
    padding: 3rem 0;
    text-align: center;
}

.newsletter h2 {
    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: 0.8rem 1rem;
    border: 1px solid var(--gray);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 4px 4px 0;
}

.newsletter-message {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    display: none;
}

.newsletter-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.newsletter-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}
/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

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

.product-image {
    height: 200px;
    overflow: hidden;
}

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

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

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.product-price {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
}

.product-rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: var(--primary-dark);
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 900px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark);
}

.modal-body {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.modal-images {
    flex: 1;
}

.modal-images img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.modal-info {
    flex: 1;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.modal-price {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-selector button {
    width: 30px;
    height: 30px;
    background-color: var(--gray);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    padding: 0.3rem;
    border: 1px solid var(--gray);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }
}
/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

/* Auth Modal */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.auth-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
}

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

.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray);
}

.auth-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-gray);
    position: relative;
}

.auth-tab.active {
    color: var(--primary);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

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

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

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-size: 1rem;
}

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

/* User Profile (when logged in) */
.user-profile {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-weight: bold;
}

.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    background: none;
    border: none;
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 150px;
    display: none;
    z-index: 100;
}

.user-dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text);
}

.user-dropdown-menu a:hover {
    background-color: var(--light);
    color: var(--primary);
}

.user-dropdown:hover .user-dropdown-menu {
    display: block;
}
/* Blog Listing */
.blog-listing {
    padding: 4rem 0;
}

.blog-listing .subtitle {
    color: var(--text);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.blog-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.blog-filters .filter-btn {
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid var(--gray);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

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

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

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.blog-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-content h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.blog-meta {
    display: flex;
    gap: 0.5rem;
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-card-content p {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.read-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(3px);
}

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

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

.blog-post-meta {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-post-meta .blog-category {
    position: static;
}

.blog-post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.blog-post-image {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

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

.blog-post-body {
    max-width: 800px;
    margin: 3rem auto;
    line-height: 1.7;
}

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

.blog-post-body h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem;
}

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

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

.blog-post-body pre {
    background-color: #f6f8fa;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-post-body code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f6f8fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-post-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--text);
    font-style: italic;
}

.blog-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-not-found {
    text-align: center;
    padding: 4rem 0;
}

.blog-not-found h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.blog-not-found p {
    margin-bottom: 2rem;
    color: var(--text);
}

@media (max-width: 768px) {
    .blog-post-header h1 {
        font-size: 2rem;
    }
    
    .blog-post-body {
        margin: 2rem auto;
    }
    
    .blog-post-body h2 {
        font-size: 1.5rem;
    }
}