/*
Theme Name: TelecomByte Premium
Theme URI: https://telecombyte.com/theme
Author: Dipak Kumar Satapathy
Description: An ultra-lightweight, SEO-compliant, Core Web Vitals optimized WordPress magazine theme built specifically for TelecomByte. Features a modern horizontal row layout, automated Table of Contents, native NewsArticle schema, custom key highlights, and integrated ad slots.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: telecombyte
*/

/* --- 1. CORE RESET & REFRESHED TYPE STACK --- */
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1e293b; /* Premium dark slate text */
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: #0066cc;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Precise Editorial Headings Configuration */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #0f172a; /* Midnight navy slate */
    font-weight: 800; /* Crisp extra-bold modern editorial aesthetic */
    line-height: 1.25;
    margin-top: 0;
    letter-spacing: -0.025em; /* Clean condensed spacing */
}

/* --- 2. STRUCTURAL GRID LAYOUT --- */
.site-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.main-content {
    flex: 1;
    max-width: 1240px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 2.5rem;
}
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- 3. HEADER BRANDING & BREAKING TICKER --- */
.breaking-ticker-wrap {
    background: #111111;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.breaking-badge {
    background: #d32f2f;
    color: white;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    border-radius: 2px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.breaking-pulse {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.ticker-content {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-container a {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0c1a30;
}
.logo-container span {
    color: #0066cc;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.75rem;
}
.main-navigation a {
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.main-navigation a:hover {
    color: #0066cc;
    text-decoration: none;
}

/* --- 4. BENTO & HORIZONTAL LIST LAYOUT CONTROLS --- */
.list-stream-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.list-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}
.list-row-title a {
    color: #0f172a;
    transition: color 0.2s;
}
.list-row-title a:hover {
    color: #0066cc;
}

/* --- 5. EDITORIAL SINGLE READ VIEWS --- */
.entry-header {
    margin-bottom: 1.5rem;
}
.entry-title {
    font-size: 2.4rem;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 0.75rem 0;
    font-weight: 800;
}
.entry-meta {
    font-size: 0.9rem;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
.telecombyte-highlights-box {
    border-left: 4px solid #0066cc;
    background: #f0f7ff;
    padding: 1.25rem;
    margin: 1.75rem 0;
    border-radius: 0 8px 8px 0;
}
.telecombyte-highlights-box h4 {
    margin: 0 0 0.75rem 0;
    color: #0066cc;
    font-size: 1.05rem;
    font-weight: 700;
}
.telecombyte-highlights-box ul {
    margin: 0;
    padding-left: 1.2rem;
}
.telecombyte-highlights-box li {
    margin-bottom: 0.5rem;
    color: #334155;
}

/* Auto Table of Contents Engine Card Box */
.telecombyte-toc-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1.25rem;
    margin: 2rem 0;
}
.telecombyte-toc-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.telecombyte-toc-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}
.telecombyte-toc-item {
    margin-bottom: 0.4rem;
    padding-left: 0.5rem;
}
.telecombyte-toc-item.toc-h3 {
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

/* --- 6. SIDEBAR COMPLEMENTARY STYLING --- */
.sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01);
}
.widget-title {
    font-size: 1.1rem;
    font-weight: 700 !important;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

/* --- 7. CLEAN ALIGNMENTS & WEB VITALS CLEARANCES --- */
.entry-content::after, 
.page-content::after, 
.comment-content::after {
    content: "";
    display: table;
    clear: both;
}
.alignleft { float: left; margin: 0.5rem 1.5rem 1.5rem 0; }
.alignright { float: right; margin: 0.5rem 0 1.5rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; text-align: center; }

/* Site Footer Base */
.site-footer {
    background: #0c1a30;
    color: #94a3b8;
    padding: 2.5rem 1.5rem;
    font-size: 0.9rem;
    border-top: 4px solid #0066cc;
    margin-top: auto;
}
.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
@media (max-width: 640px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}
.footer-nav a {
    color: #94a3b8;
}
.footer-nav a:hover {
    color: #ffffff;
}
/* --- Professional Comment Form Styling --- */
.comment-respond {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}
.comment-reply-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.comment-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 1rem;
    font-family: inherit;
}
.comment-form-author, .comment-form-email {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.comment-form input[type="text"], 
.comment-form input[type="email"] {
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}
.form-submit #submit {
    background-color: #0F172A;
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s;
}
.form-submit #submit:hover {
    background-color: #0066cc;
}