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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

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

/* Header */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a73e8;
}

.logo i {
    font-size: 1.8rem;
}

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

.main-nav a {
    font-weight: 500;
    color: #555;
    position: relative;
}

.main-nav a:hover {
    color: #1a73e8;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a73e8;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.search-toggle, .mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #555;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.search-toggle:hover, .mobile-menu-toggle:hover {
    background: #f0f0f0;
    color: #1a73e8;
}

.mobile-menu-toggle {
    display: none;
}

/* Search Overlay */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-overlay form {
    display: flex;
    gap: 10px;
}

.search-overlay input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.search-overlay button {
    padding: 12px 25px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-overlay button:hover {
    background: #1557b0;
}

.close-search {
    background: #f0f0f0 !important;
    color: #333 !important;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1001;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

/* Ad Containers */
.ad-container {
    text-align: center;
    margin: 20px auto;
    overflow: hidden;
}

.ad-label {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.top-banner, .bottom-banner {
    max-width: 728px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
}

.sidebar-ad {
    margin-bottom: 30px;
}

.sidebar-sky {
    margin: 30px auto;
}

.native-ad {
    margin: 30px 0;
}

.in-content-ad {
    margin: 30px auto;
    max-width: 468px;
}

/* Main Layout */
.main-content {
    padding: 40px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-thumb {
    height: 200px;
    overflow: hidden;
}

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

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

.blog-content {
    padding: 20px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

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

.blog-category {
    color: #1a73e8;
    font-weight: 500;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #222;
}

.blog-title a:hover {
    color: #1a73e8;
}

.blog-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1a73e8;
    font-weight: 500;
    font-size: 0.9rem;
}

.read-more:hover {
    gap: 10px;
}

/* Featured Post */
.featured-post {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.featured-image {
    height: 100%;
    min-height: 350px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
    width: fit-content;
}

.featured-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #222;
}

.featured-excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.featured-meta {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 0.9rem;
}

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

.widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: #1a73e8;
}

/* Popular Posts */
.popular-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

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

.popular-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-content h4 {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px;
}

.popular-content h4 a:hover {
    color: #1a73e8;
}

.popular-date {
    font-size: 0.8rem;
    color: #999;
}

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

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: #1a73e8;
    color: #fff;
}

.category-list .count {
    background: #1a73e8;
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.category-list a:hover .count {
    background: #fff;
    color: #1a73e8;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f0f0f0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #555;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #1a73e8;
    color: #fff;
}

/* Single Post */
.single-post {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.post-header {
    padding: 40px 40px 0;
}

.post-thumbnail {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin: 30px -40px;
    width: calc(100% + 80px);
}

.post-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    gap: 25px;
    color: #666;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.post-meta i {
    margin-right: 8px;
    color: #1a73e8;
}

.post-content {
    padding: 0 40px 40px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.post-content h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 35px 0 20px;
    color: #222;
}

.post-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #222;
}

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

.post-content ul, .post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

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

.post-content blockquote {
    border-left: 4px solid #1a73e8;
    padding: 20px 30px;
    margin: 30px 0;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

.post-content img {
    border-radius: 12px;
    margin: 30px 0;
}

.post-tags {
    padding: 0 40px 40px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-tags span {
    background: #f0f0f0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Author Box */
.author-box {
    margin: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    gap: 20px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.author-info p {
    color: #666;
    font-size: 0.95rem;
}

/* Comments Section */
.comments-section {
    padding: 40px;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.comment-form {
    margin-bottom: 40px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
}

.btn-primary {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    padding: 0 40px 40px;
}

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

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    padding: 60px 0;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}

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

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

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

.pagination a,
.pagination span {
    padding: 10px 18px;
    border-radius: 8px;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #1a73e8;
    color: #fff;
}

/* Footer */
.main-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 60px;
}

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

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section p {
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #1a73e8;
}

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

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

.social-links a:hover {
    background: #1a73e8;
    transform: translateY(-3px);
}

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

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.newsletter-form input::placeholder {
    color: #888;
}

.newsletter-form button {
    padding: 12px 20px;
    background: #1a73e8;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #4285f4;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: #888;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .widget {
        margin-bottom: 0;
    }
    
    .sidebar-sky {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 200px;
    }
    
    .featured-content {
        padding: 25px;
    }
    
    .featured-title {
        font-size: 1.4rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 1.6rem;
    }
    
    .post-header,
    .post-content,
    .post-tags,
    .author-box,
    .comments-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .post-thumbnail {
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        height: 250px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .top-banner, .bottom-banner {
        display: none;
    }
}
