/*
Theme Name: Techniblogs Custom
Theme URI: https://techniblogs.com/
Author: Antigravity
Description: A custom WordPress theme inspired by techniblogs.com layout. It features a clean, responsive layout with a primary content area and a secondary sidebar, perfect for tech news and blogs.
Version: 2.6
License: GNU General Public License v2 or later
Text Domain: techniblogs-custom
*/

/* Reset & Basic Typography */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #555;
    background-color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: #000;
    font-weight: 500;
    font-family: "Oswald", sans-serif;
}

a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #2660ff;
}

.post-meta a {
    font-weight: 700;
    color: #000;
}
.post-meta a:hover {
    color: #2660ff;
}

/* Header */
.site-header {
    background: #fff;
    color: #000;
    padding: 20px 0;
    border-bottom: 1px solid #eaeaea;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
}
.site-branding {
    text-align: center;
}
.site-title a {
    color: #000;
    font-size: 28px;
    font-weight: bold;
}
.site-description {
    color: #555;
    font-size: 14px;
    margin: 0;
}

/* Navigation */
.main-navigation {
    background: #000;
    padding: 15px 0;
}
.main-navigation .header-container {
    display: block;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.main-navigation li {
    margin: 0 15px;
}
.main-navigation a {
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
}
.main-navigation a:hover {
    color: #0af8c5;
}

/* Layout */
.site-content {
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    padding: 0 15px;
}

.primary-content {
    flex: 1;
    margin-right: 30px;
}
.secondary-sidebar {
    width: 330px;
}

/* Home Page Specific Layouts */
.home-section-title {
    font-size: 22px;
    text-transform: uppercase;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}
.home-section-title span {
    border-bottom: 2px solid #2660ff;
    padding-bottom: 11px;
}

.home-grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.home-grid-main {
    flex: 1;
    margin-right: 30px;
}
.home-grid-sidebar {
    width: 350px;
}

/* Main Featured Layout (1 large, 2 small) */
.featured-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}
.featured-large {
    grid-column: 1 / span 2;
    position: relative;
}
.featured-large img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
}
.featured-large-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
.featured-large-content h2 a,
.featured-large-content .post-meta a {
    color: #fff !important;
}
.featured-large-content h2 a {
    font-size: 28px;
}
.featured-small img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}
.featured-small h3 {
    font-size: 18px;
    margin: 10px 0 5px;
}

/* Sidebar List Post */
.list-post {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}
.list-post img {
    width: 110px;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}
.list-post-content {
    flex: 1;
}
.list-post-content .post-meta {
    font-size: 11px;
    margin-bottom: 2px;
}
.list-post-content h4 {
    font-size: 15px;
    margin: 0;
    line-height: 1.3;
}

/* Horizontal Post (Pulse of Progress) */
.horizontal-post {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.horizontal-post img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}
.horizontal-post-content {
    flex: 1;
}

/* Sizzling Subjects (4 column grid) */
.four-col-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    margin-bottom: 40px;
}
.four-col-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}
.four-col-item h3 {
    font-size: 16px;
    margin: 10px 0 5px;
}

/* Exclusive Updates (3 columns) */
.exclusive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 20px;
    margin-bottom: 40px;
}
.exclusive-col-left .list-post {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.exclusive-col-left .list-post img {
    width: 120px;
    height: auto;
    aspect-ratio: 16 / 9;
}
.exclusive-col-center .four-col-item {
    margin-bottom: 20px;
}
.exclusive-col-center .four-col-item img {
    height: 200px;
}
.exclusive-col-right .text-post h3 {
    font-size: 22px;
    margin-top: 0;
}
.exclusive-col-right ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.exclusive-col-right ul li {
    margin-bottom: 15px;
}
.exclusive-col-right ul li h4 {
    margin: 5px 0 0;
    font-size: 16px;
}

/* Posts (Standard) */
.post {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.post-title {
    font-size: 26px;
    margin: 0 0 10px;
    line-height: 1.3;
}
.post-title a {
    color: #333;
}
.post-title a:hover {
    color: #2660ff;
}

/* Category Page Layout */
.category-horizontal-post {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
    align-items: center;
}
.category-horizontal-post:last-child {
    border-bottom: none;
}
.cat-post-image {
    width: 45%;
    flex-shrink: 0;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
}
.cat-post-image a {
    display: block;
    width: 100%;
    height: 100%;
}
.cat-post-image img, .cat-post-image div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cat-post-content {
    flex: 1;
}
.cat-post-content .post-title a:hover {
    color: #2660ff !important;
}
.pagination {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 8px 12px;
    background: #f1f1f1;
    border-radius: 4px;
    color: #000;
}
.pagination .current {
    background: #2660ff;
    color: #fff;
}
.post-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
    font-family: Arial, sans-serif;
}
.post-meta a {
    color: #777;
}
.post-thumbnail img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
    display: block;
}
.post-excerpt {
    font-size: 16px;
    line-height: 1.8;
}

/* Sidebar Widgets */
.widget {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}
.widget-title {
    font-size: 18px;
    border-bottom: 2px solid #2660ff;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.widget ul li:last-child {
    border-bottom: none;
}
.widget ul li a {
    color: #444;
}
.widget ul li a:hover {
    color: #2660ff;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #ddd;
    padding: 60px 0 20px;
    margin-top: 50px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}
.footer-col {
    flex: 1;
    min-width: 250px;
}
.footer-col-1 {
    flex: 2;
    padding-right: 40px;
}
.footer-logo {
    max-width: 250px;
    margin-bottom: 20px;
    height: auto;
}
.footer-site-title {
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
}
.footer-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #bbb;
}
.footer-heading {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 25px;
}
.footer-navigation {
    margin-bottom: 15px;
}
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.footer-menu li {
    margin-bottom: 15px;
}
.footer-menu a {
    color: #fff;
    font-size: 16px;
    text-transform: none;
}
.footer-menu a:hover {
    color: #0af8c5;
}
.footer-social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.footer-social-icons a {
    color: #fff;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    transition: all 0.3s ease;
}
.footer-social-icons a:hover {
    background: #0af8c5;
    color: #1a1a1a;
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 14px;
    color: #777;
}

/* Responsive */
@media (max-width: 992px) {
    .site-content {
        flex-direction: column;
    }
    .primary-content {
        margin-right: 0;
    }
    .secondary-sidebar {
        width: 100%;
        margin-top: 40px;
    }
    .home-grid-wrapper {
        flex-direction: column;
    }
    .home-grid-main {
        margin-right: 0;
    }
    .home-grid-sidebar {
        width: 100%;
        margin-top: 30px;
    }
    .four-col-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .exclusive-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }
    .main-navigation li {
        margin-bottom: 10px;
    }
    .featured-main {
        grid-template-columns: 1fr;
    }
    .featured-large {
        grid-column: 1;
    }
    .horizontal-post {
        flex-direction: column;
    }
    .horizontal-post img {
        width: 100%;
    }
    .category-horizontal-post {
        flex-direction: column;
        align-items: flex-start;
    }
    .cat-post-image {
        width: 100%;
    }
    .four-col-grid {
        grid-template-columns: 1fr;
    }
    .footer-columns {
        flex-direction: column;
    }
    .footer-col-1 {
        padding-right: 0;
    }
}
