/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --dark-bg: #2a2a2a;
    --header-bg: #1f1f1f;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background: #fff;
}

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

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

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

/* Header & Navigation */
.header {
    background: var(--header-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.8rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--secondary-color);
    font-size: 1.6rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.8rem 1.2rem;
    display: block;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 500px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?w=1600&h=900&fit=crop') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    z-index: 1;
    max-width: 700px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

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

.btn-secondary:hover {
    background: #000;
    transform: translateY(-2px);
}

/* Sections */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Featured Section */
.featured-section {
    padding: 50px 0;
    background: #fff;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.featured-small-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.featured-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.featured-card.large {
    min-height: 520px;
}

.featured-card.large .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
    color: white;
    padding: 30px;
}

.featured-card.large h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.featured-card.large .category {
    background: var(--secondary-color);
}

.featured-card.large .meta {
    color: rgba(255,255,255,0.85);
    margin-bottom: 15px;
}

.featured-card.large .meta span {
    margin: 0 8px;
}

.featured-card.large .read-more {
    color: white;
}

.featured-card.small {
    min-height: 250px;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-card.large img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.card-content {
    padding: 20px;
}

.featured-card.small .card-content {
    padding: 18px;
}

.category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--secondary-color);
    color: white;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.featured-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.3;
    font-weight: 700;
}

.featured-card.small h3 {
    font-size: 1rem;
}

.meta {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.meta i {
    margin-right: 5px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more i {
    transition: var(--transition);
}

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

/* Categories Section */
.categories-section {
    padding: 50px 0;
    background: #fff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.category-card {
    background: var(--light-gray);
    padding: 30px 15px;
    text-align: center;
    border-radius: 8px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    background: white;
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-card i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Latest Posts */
.latest-posts {
    padding: 50px 0;
    background: var(--light-gray);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

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

.text-center {
    text-align: center;
}

/* Page Header */
.page-header {
    background: var(--primary-color);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Blog Layout */
.blog-section {
    padding: 40px 0;
    background: var(--light-gray);
}

.blog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.widget {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.widget h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.search-form {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    font-size: 0.9rem;
}

.search-form input:focus {
    outline: none;
}

.search-form button {
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--secondary-color);
}

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

.category-list li {
    padding: 0;
    margin-bottom: 8px;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--light-gray);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.category-list a:hover {
    background: var(--secondary-color);
    color: white;
}

.category-list a span {
    font-size: 0.85rem;
    opacity: 0.7;
}

.recent-posts .post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

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

.recent-posts img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.recent-posts h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.3;
    font-weight: 600;
}

.recent-posts h4 a:hover {
    color: var(--secondary-color);
}

.recent-posts .meta {
    font-size: 0.75rem;
}

/* Blog Main */
.blog-main {
    min-height: 600px;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.filter-info {
    font-size: 0.9rem;
    color: #666;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-size: 0.9rem;
    color: #666;
}

.sort-options select {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    background: white;
}

.sort-options select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination button {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Article Page */
.article-page {
    padding: 60px 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.article-header {
    margin-bottom: 40px;
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.article-header img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 20px;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content h2 {
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin: 20px 0 20px 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.share-section {
    margin: 50px 0;
    padding: 30px;
    background: var(--light-gray);
    border-radius: 10px;
}

.share-section h3 {
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.pinterest { background: #bd081c; }
.share-btn.linkedin { background: #0077b5; }

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

.related-articles {
    margin-top: 60px;
}

.related-articles h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* Products */
.products-section {
    padding: 50px 0;
    background: var(--light-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

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

.product-info {
    padding: 18px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
}

.product-rating {
    color: #ffa500;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.product-rating span {
    color: #666;
    margin-left: 5px;
}

.product-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-price {
    font-size: 1.4rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

/* Contact Page */
.contact-section {
    padding: 60px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-details {
    margin: 40px 0;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.contact-item h3 {
    margin-bottom: 5px;
}

.social-section h3 {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

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

.social-links.large a {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
}

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

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

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

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

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

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

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* About Page */
.about-section {
    padding: 60px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text h3 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text ul {
    margin: 20px 0 20px 30px;
}

.about-text li {
    margin-bottom: 10px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: rgba(255,255,255,0.75);
    padding: 50px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 25px;
    font-size: 1.15rem;
    color: white;
    font-weight: 600;
}

.footer-col p {
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.7;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px;
    border: none;
    border-radius: 5px;
}

.newsletter-form button {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
    margin-top: 40px;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.back-to-top.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 968px) {
    .blog-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .contact-layout,
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .posts-grid,
    .articles-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.3);
        padding: 0;
    }
    
    .nav-menu a {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle span {
        background: white;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-card.large {
        min-height: 400px;
    }
    
    .featured-small-grid {
        grid-template-rows: auto;
        gap: 15px;
    }
    
    .featured-card.small {
        min-height: 200px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .posts-grid,
    .articles-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 350px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .posts-grid,
    .articles-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
    }
}


/* Additional Styling Enhancements */

/* Card hover effects */
.post-card .card-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Improved spacing */
.post-card .card-content {
    padding: 18px;
}

.post-card .card-content h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* Better meta styling */
.post-card .meta {
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* Social links styling */
.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Newsletter form improvements */
.newsletter-form input {
    transition: border-color 0.3s ease;
}

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

/* Improved button styling */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Article page improvements */
.article-header h1 {
    line-height: 1.3;
}

.article-content h2 {
    font-size: 1.8rem;
    line-height: 1.3;
}

.article-content p {
    text-align: justify;
}

/* Product features styling */
.product-features {
    margin: 15px 0;
}

/* Contact form improvements */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Stats card improvements */
.stat-card {
    border: 1px solid var(--border-color);
}

/* Footer improvements */
.footer-bottom {
    font-size: 0.9rem;
}

/* Responsive text */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
}

@media (max-width: 968px) {
    .featured-card.large h3 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .sort-options {
        width: 100%;
    }
    
    .sort-options select {
        flex: 1;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .back-to-top,
    .share-section,
    .sidebar {
        display: none;
    }
    
    .article-content {
        max-width: 100%;
    }
}


/* Homepage Layout with Sidebar */
.main-content-section {
    padding: 40px 0;
    background: var(--light-gray);
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.main-content {
    min-width: 0;
}

/* Home Sidebar */
.home-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

/* Social Widget */
.social-widget {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-widget h3 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.2);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.social-box {
    background: rgba(255,255,255,0.15);
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-box:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.social-box i {
    font-size: 1.5rem;
}

.social-box .count {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

.social-box .label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
}

.social-box.facebook { border-left: 3px solid #3b5998; }
.social-box.twitter { border-left: 3px solid #1da1f2; }
.social-box.instagram { border-left: 3px solid #e4405f; }
.social-box.youtube { border-left: 3px solid #ff0000; }

/* Popular Posts Widget */
.popular-posts .post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

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

.popular-posts img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.popular-posts h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.3;
    font-weight: 600;
}

.popular-posts h4 a:hover {
    color: var(--secondary-color);
}

.popular-posts .meta {
    font-size: 0.75rem;
}

/* Category List in Sidebar */
.widget .category-list {
    list-style: none;
}

.widget .category-list li {
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
}

.widget .category-list li:last-child {
    border-bottom: none;
}

.widget .category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--text-color);
    background: transparent;
}

.widget .category-list a:hover {
    color: var(--secondary-color);
    padding-left: 10px;
    background: transparent;
}

.widget .category-list a i {
    margin-right: 10px;
    width: 18px;
    color: #666;
}

.widget .category-list a:hover i {
    color: var(--secondary-color);
}

.widget .category-list a span {
    font-size: 0.85rem;
    color: #999;
    background: var(--light-gray);
    padding: 2px 8px;
    border-radius: 3px;
    min-width: 30px;
    text-align: center;
}

.widget .category-list a:hover span {
    background: var(--secondary-color);
    color: white;
}

/* Newsletter Widget */
.newsletter-widget {
    background: var(--primary-color);
    color: white;
}

.newsletter-widget h3 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.2);
}

.newsletter-widget p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.newsletter-widget .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-widget input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.newsletter-widget input::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-widget .btn {
    width: 100%;
}

/* Ad Widget */
.ad-widget {
    background: var(--light-gray);
    border: 2px dashed var(--border-color);
}

.ad-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.ad-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.ad-placeholder p {
    font-size: 0.9rem;
}

/* Latest Grid */
.latest-section {
    margin: 40px 0;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Category Section */
.category-section {
    margin: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.view-all {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    color: var(--primary-color);
}

.view-all i {
    transition: var(--transition);
}

.view-all:hover i {
    transform: translateX(3px);
}

.category-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Compact Post Card */
.compact-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.compact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

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

.compact-card .card-content {
    padding: 15px;
}

.compact-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--primary-color);
}

.compact-card h4 a:hover {
    color: var(--secondary-color);
}

.compact-card .meta {
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* Responsive for Homepage */
@media (max-width: 1024px) {
    .content-with-sidebar {
        grid-template-columns: 1fr 280px;
    }
    
    .latest-grid,
    .category-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .home-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .latest-grid,
    .category-posts {
        grid-template-columns: 1fr;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
}


/* Template-specific Enhancements */

/* Widget styling improvements */
.widget.categories-widget .category-list a {
    background: transparent;
}

/* Social widget enhancements */
.social-widget {
    background: var(--primary-color);
    border: none;
}

/* Newsletter widget dark theme */
.newsletter-widget {
    background: #2a2a2a;
}

/* Improved card shadows */
.post-card,
.featured-card,
.compact-card {
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.post-card:hover,
.featured-card:hover,
.compact-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Better spacing for sections */
.featured-section,
.latest-section,
.category-section {
    margin-bottom: 50px;
}

/* Improved meta information */
.meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.meta > * {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Enhanced category badges */
.category {
    font-weight: 700;
    letter-spacing: 0.8px;
}

/* Better read more links */
.read-more {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Improved widget headers */
.widget h3 {
    font-size: 1.15rem;
    text-transform: capitalize;
}

/* Better footer links */
.footer-col ul li a {
    position: relative;
}

.footer-col ul li a::before {
    content: '›';
    margin-right: 8px;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Enhanced social links in footer */
.footer .social-links a {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.footer .social-links a:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Improved newsletter form in footer */
.footer .newsletter-form input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
}

.footer .newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.footer .newsletter-form input:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--secondary-color);
}

/* Better button styling */
.btn {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.85rem;
}

/* Enhanced hero section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Improved pagination */
.pagination button {
    font-weight: 600;
}

/* Better form styling */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
    font-family: inherit;
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}


/* Legal Pages Styling */
.legal-content {
    padding: 60px 0;
    background: #fff;
}

.legal-text {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.legal-text h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 25px 0 15px;
}

.legal-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.legal-text ul {
    margin: 15px 0 20px 30px;
    line-height: 1.8;
}

.legal-text li {
    margin-bottom: 10px;
    color: #555;
}

.legal-text a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.legal-text a:hover {
    color: var(--primary-color);
}

.legal-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer bottom links */
.footer-bottom a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

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

@media (max-width: 768px) {
    .legal-text {
        padding: 30px 20px;
    }
    
    .legal-text h2 {
        font-size: 1.5rem;
    }
    
    .legal-text h3 {
        font-size: 1.2rem;
    }
}
