/*
Theme Name: TechBusinessLive
Author: User
Description: Converted from HTML
Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca&display=swap');

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Lexend Deca', 'Helvetica Neue', Helvetica, sans-serif;
}

:root {
    --primary-red: #EF8326;
    --hover-red: #EF8326;
    --text-main: #212121;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --bg-light: #f5f5f5;
    --container-width: 1140px;
    /* Slightly tighter for that dense feel */
    --font-heading: 'Lexend Deca', 'Helvetica Neue', Helvetica, sans-serif;
    --font-body: 'Lexend Deca', 'Helvetica Neue', Helvetica, sans-serif;
}



body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: #fff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-top: 156px;
    /* Compensate for Fixed Header + Nav + Spacing */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.15s;
}

a:hover {
    color: var(--primary-red);
}

ul,
ol {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border-radius: 4px;
    transition: all 0.2s;
    border: none;
}

/* Top Promo Bar */
.top-promo-bar {
    background-color: #000;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.promo-content {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.promo-link {
    text-decoration: underline;
}

/* Utility Bar */
.utility-bar {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: #666;
    padding: 12px 0;
    position: relative;
    /* For search positioning */
}

/* Search Container */
.search-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid var(--primary-red);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 800;
    /* Below Nav Drawer (900) but above content */
}

.search-container.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.search-container .container {
    display: flex;
    gap: 10px;
}

#search-input {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
}

#search-input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.close-search {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-search:hover {
    color: var(--primary-red);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.utility-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-left span {
    margin-right: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    font-size: 11px;
}

.utility-left a {
    margin-right: 15px;
    color: #555;
    font-weight: 500;
}

.utility-left a.active {
    color: var(--primary-red);
    font-weight: 700;
}

.utility-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.utility-right a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #333;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 0;
}

.mobile-search-btn {
    display: none;
    /* Hidden by default layout */
}

/* Main Header */
.main-header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 4px solid #000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    /* Font styles removed for image logo */
    line-height: 1;
}

.btn-subscribe {
    background-color: var(--primary-red);
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    padding: 14px 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-subscribe:hover {
    background-color: var(--hover-red);
}

/* Navigation */
.main-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 84px;
    /* Sit below the fixed header */
    left: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.nav-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    overflow-x: auto;
}

.nav-list li a {
    display: block;
    padding: 18px 2px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 3px solid transparent;
}

.nav-list li a:hover {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

/* Hide mobile Subscribe button on desktop */
.mobile-subscribe-item {
    display: none;
}

/* Content Grid */
.main-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 340px;
    /* Specific sidebar width */
    gap: 60px;
    /* Wider gap like standard */
    margin-top: 50px;
    margin-bottom: 80px;
}

/* Page Header for Category Pages */
.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-red);
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.page-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Styles for Hero */
.hero-article {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.hero-image {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 2px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.tag {
    color: var(--primary-red);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: inline-block;
    font-family: var(--font-heading);
}

.hero-content h1 {
    font-size: 42px;
    /* Big hero text */
    margin-bottom: 15px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.summary {
    font-size: 20px;
    /* Larger summary text */
    color: #555;
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.4;
}

.meta {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta .author {
    font-weight: 700;
    color: #222;
}

.meta .separator {
    color: #ccc;
}

/* Load More Button - Exact Pattern */
.load-more-container {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #000;
    /* Distinct divider */
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn-outline {
    width: 100%;
    max-width: 150px;
    padding: 12px 20px;
    border: 2px solid #000;
    background: #fff;
    color: #000;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 12px;
    /* Added Radius */
    position: relative;
    overflow: hidden;
}

.btn-outline:hover {
    background: #EF8326;
    /* Darker blue */
    border-color: #EF8326;
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    /* Added Scale Animation */
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.btn-outline:active {
    transform: translateY(-1px) scale(0.98);
}

.archive-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--primary-red);
    text-decoration: underline;
}

.feed-item {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.feed-item:first-child {
    padding-top: 0;
}

.feed-thumb {
    width: 240px;
    /* Fixed sized thumbnail */
    flex-shrink: 0;
}

.feed-thumb img {
    width: 100%;
    height: 160px;
    /* Aspect 3:2 roughly */
    object-fit: cover;
    border-radius: 4px;
    background: #f0f0f0;
}

.feed-content {
    flex-grow: 1;
}

.feed-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.25;
}

.feed-summary {
    font-size: 16px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Top Stories (Sidebar) - NOTE: In some layouts this is a separate module, here treating it as widget 1 */
.sidebar-widget {
    margin-bottom: 50px;
}

.widget-title {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #000;
    padding-bottom: 12px;
    margin-bottom: 25px;
    position: relative;
    font-family: var(--font-heading);
}

.widget-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-red);
    position: absolute;
    bottom: -2px;
    left: 0;
}

/* Sidebar List Styles */
.popular-list {
    counter-reset: popular-counter;
}

.popular-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #222;
}

.popular-list li::before {
    counter-increment: popular-counter;
    content: counter(popular-counter);
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-red);
    font-weight: 900;
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1;
}

/* Newsletter Widget */
.newsletter-widget {
    background: #f8f8f8;
    padding: 30px;
    border: 1px solid #eee;
    text-align: center;
    border-top: 4px solid var(--primary-red);
}

.newsletter-widget h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.newsletter-widget p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

.newsletter-widget input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: inherit;
}

.btn-full {
    width: 100%;
    background-color: var(--primary-red);
    color: #fff;
    padding: 14px;
    text-transform: uppercase;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-full:hover {
    background: var(--hover-red);
}

.btn-success {
    background-color: #2E7D32 !important;
    /* Green 800 */
    pointer-events: none;
    /* Prevent clicks while success */
}

/* Subscribe Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-card {
    background: #fff;
    width: 90%;
    max-width: 480px;
    padding: 40px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.modal-overlay.open .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #000;
}

.modal-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.modal-header p {
    color: #666;
    margin-bottom: 25px;
}

.modal-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 16px;
    font-family: var(--font-body);
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.terms-text {
    font-size: 11px;
    color: #999;
    margin-top: 15px;
    line-height: 1.4;
}

/* Modal Success Message */
.modal-success {
    text-align: center;
    padding: 20px 0;
    animation: fadeInScale 0.4s ease-out;
}

.success-icon {
    margin: 0 auto 10px;
    animation: checkmarkPop 0.5s ease-out 0.2s both;
}

.success-icon svg {
    filter: drop-shadow(0 4px 12px rgba(46, 125, 50, 0.2));
}

.success-loader {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}

.loader-bar {
    height: 100%;
    background: linear-gradient(90deg, #2E7D32, #4CAF50);
    border-radius: 2px;
    animation: loadProgress 3s linear forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes loadProgress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Reading List / Press List */
.simple-list li {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.4;
}

.simple-list a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

.source-tag {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 4px;
}

.view-all {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
}

/* Events Widget */
.event-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: baseline;
}

.event-date {
    font-weight: 700;
    color: #000;
    font-size: 13px;
    width: 50px;
    flex-shrink: 0;
}

.event-list a {
    font-weight: 600;
    font-size: 15px;
}

/* Footer */
.main-footer {
    background: #111;
    color: #fff;
    padding-top: 80px;
    padding-bottom: 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    align-items: center;
}

.footer-logo {
    font-size: 30px;
    font-weight: 900;
    font-family: var(--font-heading);
}

.social-links a {
    color: #fff;
    margin-left: 20px;
    font-weight: 600;
    font-size: 14px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 60px;
    margin-bottom: 40px;
}

.link-column h4 {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.link-column a {
    display: block;
    color: #ddd;
    font-size: 15px;
    margin-bottom: 12px;
}

.link-column a:hover {
    color: #fff;
}

.newsletter-col p {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.newsletter-col form {
    display: flex;
    gap: 10px;
}

.newsletter-col input {
    padding: 10px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    width: 100%;
}

.newsletter-col .btn {
    background: #fff;
    color: #000;
}

.footer-bottom {
    font-size: 13px;
    color: #666;
}

.footer-bottom a {
    color: #888;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 991px) {

    /* Tablet: Stack Sidebar */
    .main-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar-column {
        max-width: 700px;
        margin: 0 auto;
    }

    /* Hide desktop-only ads on tablet */
    .desktop-only {
        display: none !important;
    }



    .hero-content h1 {
        font-size: 36px;
    }

    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    /* Hide mobile Subscribe button on tablet */
    .mobile-subscribe-item {
        display: none;
    }
}

@media (max-width: 767px) {
    /* Mobile: Full Stack */

    /* Hide desktop-only ads on mobile */
    .desktop-only {
        display: none !important;
    }

    /* Header Adjustments */
    .header-grid {
        flex-wrap: wrap;
        gap: 15px;
    }

    .header-left {
        width: 100%;
        justify-content: space-between;
    }

    .header-cta {
        display: none;
        /* Hide header Subscribe on mobile to save space, relies on sidebar/footer */
    }

    .logo img {
        width: 160px;
        /* Increased from 100px for better visibility */
        height: auto;
    }

    /* Mobile Navigation Drawer */
    .main-nav {
        display: none;
        /* Hidden by default */
        position: fixed;
        /* Fixed on mobile too for stability */
        top: 84px;
        /* Match desktop header height for consistency/overlap */
        left: 0;
        width: 100%;
        height: calc(100vh - 84px);
        /* Full height scrollable */
        overflow-y: auto;
        background: #fff;
        border-bottom: 2px solid var(--primary-red);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 900;
    }

    .main-nav.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list li a {
        padding: 12px 20px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }

    /* Show mobile Subscribe button */
    .mobile-subscribe-item {
        display: block;
        padding: 15px 20px;
        border-top: 2px solid #f0f0f0;
    }

    .mobile-subscribe-btn {
        width: 100%;
        display: block;
        padding: 14px 20px;
        font-size: 14px;
    }

    /* Utility Bar Hide/Collapse */
    .utility-bar {
        display: none;
        /* Simplify top bar for mobile */
    }

    .top-promo-bar {
        font-size: 12px;
        text-align: center;
    }

    /* Feed Items: Stack Vertical */
    .feed-item {
        flex-direction: column;
        gap: 15px;
    }

    .feed-thumb {
        width: 100%;
    }

    .feed-thumb img {
        height: auto;
        aspect-ratio: 16/9;
    }

    .feed-content h3 {
        font-size: 20px;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 28px;
    }

    /* Footer */
    .footer-links-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .social-links a {
        margin: 0 10px;
    }
}

/* Hamburger Icon Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

@media (max-width: 767px) {
    .hamburger-menu {
        display: flex;
    }

    /* Mobile Header Controls */
    .mobile-tools {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .mobile-search-btn {
        display: block;
        color: #000;
        padding: 5px;
    }
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Active State (X Icon) */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 767px) {
    .hamburger-menu {
        display: flex;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-red);
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    /* Hidden by default */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.back-to-top:hover {
    background-color: #d76e13;
    /* Darker shade of blue */
    transform: translateY(-3px);
}

.back-to-top:hover svg {
    animation: arrowFloat 0.6s ease-in-out infinite alternate;
}

@keyframes arrowFloat {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-4px);
    }
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 3;
    fill: none;
}