/*
Theme Name: FeedWorldTech
Theme URI: https://feedtechie.blog/
Author: FeedTechie Team
Author URI: https://feedtechie.blog/
Description: FeedWorldTech is a fast, clean and modern WordPress theme built for technology blogs, gadget reviews, AI news and startup coverage. Designed for feedtechie.blog with SEO-friendly markup, responsive layout and category-based homepage.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: feedworldtech
Tags: blog, news, technology, custom-menu, featured-images, responsive-layout, translation-ready
*/

/* =========================================
   1. RESET & BASE
========================================= */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: #f5f7fa;
    color: #1c1f26;
    line-height: 1.7;
    font-size: 16px;
}

a {
    color: #0b63f6;
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: #0748c2; }

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

ul, ol { padding-left: 1.2em; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 .5em;
    color: #10131a;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }

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

/* =========================================
   2. TOPBAR
========================================= */
.ftw-topbar {
    background: #10131a;
    color: #b8c0cc;
    font-size: 13px;
    padding: 6px 0;
}
.ftw-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ftw-topbar a { color: #b8c0cc; }
.ftw-topbar .ftw-social a { margin-left: 12px; color: #fff; }

/* =========================================
   3. HEADER
========================================= */
.ftw-header {
    background: #ffffff;
    border-bottom: 1px solid #e6e9ee;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}
.ftw-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.ftw-logo {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.5px;
    color: #10131a;
}
.ftw-logo span { color: #0b63f6; }
.ftw-logo img { max-height: 48px; }

.ftw-search-form {
    display: flex;
    align-items: center;
    background: #f0f2f5;
    border-radius: 30px;
    padding: 6px 6px 6px 16px;
    flex: 1;
    max-width: 320px;
}
.ftw-search-form input[type="search"] {
    border: none;
    background: transparent;
    flex: 1;
    outline: none;
    font-size: 14px;
}
.ftw-search-form button {
    background: #0b63f6;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
}

/* =========================================
   4. NAVIGATION
========================================= */
.ftw-nav {
    background: #10131a;
}
.ftw-nav .container { display: flex; align-items: center; justify-content: space-between; }
.ftw-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.ftw-nav li { position: relative; }
.ftw-nav li a {
    display: block;
    padding: 14px 18px;
    color: #e6e9ee;
    font-weight: 600;
    font-size: 14.5px;
}
.ftw-nav li a:hover,
.ftw-nav li.current-menu-item > a {
    background: #0b63f6;
    color: #fff;
}
.ftw-nav ul ul {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #1a1e28;
    min-width: 220px;
    box-shadow: 0 10px 20px rgba(0,0,0,.2);
    z-index: 99;
}
.ftw-nav ul li:hover > ul { display: block; }
.ftw-nav ul ul li a { padding: 12px 18px; border-bottom: 1px solid #2a2f3a; }

.ftw-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 10px 18px;
    cursor: pointer;
}

/* =========================================
   5. LAYOUT
========================================= */
.ftw-content-wrap {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 34px;
    padding: 40px 0;
}
@media (max-width: 900px) {
    .ftw-content-wrap { grid-template-columns: 1fr; }
}

/* =========================================
   6. HERO / FEATURED SECTION
========================================= */
.ftw-hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin: 30px 0;
}
.ftw-hero-main {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    color: #fff;
}
.ftw-hero-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.1) 60%);
}
.ftw-hero-main .ftw-hero-text {
    position: relative;
    z-index: 2;
    padding: 30px;
}
.ftw-hero-main .ftw-cat {
    background: #0b63f6;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .5px;
}
.ftw-hero-main h2 { color: #fff; font-size: 1.7rem; margin: 12px 0 6px; }
.ftw-hero-side { display: flex; flex-direction: column; gap: 18px; }
.ftw-hero-side-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 190px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    color: #fff;
}
.ftw-hero-side-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.05) 70%);
}
.ftw-hero-side-item .ftw-hero-text { position: relative; z-index: 2; padding: 16px; }
.ftw-hero-side-item h3 { color: #fff; font-size: 1.05rem; margin: 6px 0 0; }

/* =========================================
   7. POST CARDS
========================================= */
.ftw-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #10131a;
    margin-bottom: 22px;
    padding-bottom: 8px;
}
.ftw-section-title h2 { margin: 0; font-size: 1.4rem; }
.ftw-section-title a { font-size: 13px; font-weight: 700; }

.ftw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) { .ftw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ftw-grid { grid-template-columns: 1fr; } }

.ftw-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(16,19,26,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.ftw-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(16,19,26,.12); }
.ftw-card-thumb { height: 190px; overflow: hidden; }
.ftw-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ftw-card-body { padding: 16px 18px 20px; }
.ftw-card .ftw-cat {
    display: inline-block;
    background: #e8f0fe;
    color: #0b63f6;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.ftw-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.ftw-card h3 a { color: #10131a; }
.ftw-card h3 a:hover { color: #0b63f6; }
.ftw-meta { font-size: 12.5px; color: #767c88; }
.ftw-excerpt { font-size: 14px; color: #4a4f59; margin-top: 8px; }

/* List style post (for archive/blog list) */
.ftw-post-list-item {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(16,19,26,.06);
    margin-bottom: 24px;
}
.ftw-post-list-item .ftw-card-thumb { height: 100%; min-height: 170px; }
.ftw-post-list-item .ftw-card-body { padding: 20px 22px; }
@media (max-width: 640px) {
    .ftw-post-list-item { grid-template-columns: 1fr; }
    .ftw-post-list-item .ftw-card-thumb { height: 200px; }
}

/* =========================================
   8. SINGLE POST
========================================= */
.ftw-single-header .ftw-cat { margin-bottom: 10px; display: inline-block; }
.ftw-single-header h1 { font-size: 2rem; margin-bottom: 14px; }
.ftw-single-thumb { border-radius: 14px; overflow: hidden; margin: 20px 0; }
.ftw-entry-content { font-size: 17px; color: #262b33; }
.ftw-entry-content p { margin: 0 0 20px; }
.ftw-entry-content h2 { margin-top: 34px; }
.ftw-entry-content h3 { margin-top: 26px; }
.ftw-entry-content blockquote {
    border-left: 4px solid #0b63f6;
    background: #f0f4ff;
    padding: 14px 20px;
    margin: 24px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}
.ftw-entry-content ul, .ftw-entry-content ol { margin-bottom: 20px; }
.ftw-tags { margin: 30px 0; }
.ftw-tags a {
    display: inline-block;
    background: #f0f2f5;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin: 0 6px 6px 0;
    color: #4a4f59;
}
.ftw-author-box {
    display: flex;
    gap: 16px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(16,19,26,.06);
    align-items: center;
}
.ftw-author-box img { width: 64px; height: 64px; border-radius: 50%; }
.ftw-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 30px 0;
}
.ftw-post-nav a {
    background: #fff;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(16,19,26,.06);
    color: #10131a;
    font-size: 14px;
}
.ftw-post-nav span { display: block; font-size: 11px; color: #0b63f6; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }

/* =========================================
   9. SIDEBAR / WIDGETS
========================================= */
.ftw-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(16,19,26,.06);
}
.ftw-widget h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid #0b63f6;
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.ftw-widget ul { list-style: none; padding: 0; margin: 0; }
.ftw-widget ul li { padding: 9px 0; border-bottom: 1px solid #f0f2f5; }
.ftw-widget ul li:last-child { border-bottom: none; }
.ftw-widget ul li a { color: #262b33; font-size: 14px; font-weight: 600; }
.ftw-widget ul li a:hover { color: #0b63f6; }
.ftw-tag-cloud a {
    display: inline-block;
    background: #f0f2f5;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    margin: 0 6px 6px 0;
}
.ftw-newsletter { background: #10131a; color: #fff; }
.ftw-newsletter h3 { color: #fff; border-color: #0b63f6; }
.ftw-newsletter input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    margin-bottom: 10px;
}
.ftw-newsletter button {
    width: 100%;
    padding: 10px;
    background: #0b63f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* =========================================
   10. PAGINATION
========================================= */
.ftw-pagination { display: flex; gap: 8px; margin: 30px 0; flex-wrap: wrap; }
.ftw-pagination a, .ftw-pagination span {
    background: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(16,19,26,.06);
}
.ftw-pagination .current { background: #0b63f6; color: #fff; }

/* =========================================
   11. FOOTER
========================================= */
.ftw-footer {
    background: #10131a;
    color: #b8c0cc;
    margin-top: 40px;
    padding-top: 50px;
}
.ftw-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid #262b33;
}
@media (max-width: 800px) { .ftw-footer-grid { grid-template-columns: 1fr 1fr; } }
.ftw-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.ftw-footer ul { list-style: none; padding: 0; margin: 0; }
.ftw-footer ul li { margin-bottom: 10px; }
.ftw-footer ul li a { color: #b8c0cc; font-size: 14px; }
.ftw-footer ul li a:hover { color: #0b63f6; }
.ftw-footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
}
.ftw-footer-logo { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.ftw-footer-logo span { color: #0b63f6; }
.ftw-social-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #1a1e28;
    border-radius: 50%;
    margin-right: 8px;
    color: #fff;
}

/* =========================================
   12. MISC / UTILITY
========================================= */
.ftw-breadcrumb { font-size: 13px; color: #767c88; margin-bottom: 14px; }
.ftw-breadcrumb a { color: #767c88; }
.screen-reader-text { position: absolute; left: -9999px; }
.ftw-page-title { font-size: 1.9rem; margin-bottom: 10px; }
.ftw-comments { margin-top: 40px; }
table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
table th, table td { border: 1px solid #e6e9ee; padding: 10px; text-align: left; }

@media (max-width: 900px) {
    .ftw-nav ul { display: none; flex-direction: column; width: 100%; }
    .ftw-nav ul.ftw-nav-open { display: flex; }
    .ftw-nav ul ul { position: static; box-shadow: none; }
    .ftw-menu-toggle { display: block; }
    .ftw-hero { grid-template-columns: 1fr; }
}
