/*
Theme Name: TechCrunch Inspired
Theme URI: https://example.com/techcrunch-inspired
Author: Your Name
Author URI: https://example.com
Description: A TechCrunch-inspired WordPress theme compatible with Avada
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techcrunch-inspired
Tags: news, blog, two-columns, right-sidebar, custom-header, custom-menu, featured-images, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

:root {
    --tc-primary: #0F1115;
    --tc-secondary: #191919;
    --tc-accent: #dfc27d;
    --tc-light: #ffffff;
    --tc-light2: #f5f5f5;
    --tc-dark: #000000;
    --tc-gray-100: #f7f7f7;
    --tc-gray-200: #eaeaea;
    --tc-gray-300: #dddddd;
    --tc-gray-400: #cccccc;
    --tc-gray-500: #aaaaaa;
    --tc-gray-600: #888888;
    --tc-gray-700: #666666;
    --tc-gray-800: #444444;
    --tc-gray-900: #222222;
    --tc-gray-1000: #cddeca;
    --tc-border-radius: 4px;
    --tc-transition: all 0.3s ease;
}

/* Base Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--tc-light);
    background-color: #008400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.5em;
    color: var(--tc-light);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

a {
    color: var(--tc-light2);
    text-decoration: none;
    transition: var(--tc-transition);
}

a:hover {
    color: var(--tc-accent);
}

/* Layout */
.tc-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header Styles */
.tc-site-header {
    background-color: rgba(000, 222, 000, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.tc-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.tc-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.tc-logo {
    flex-shrink: 0;
    max-width: 200px;
}

.tc-logo img,
.tc-logo .custom-logo {
    max-width: 200px;
    width: 200;
    height: auto;
    background: transparent;
}

.tc-site-title {
    color: var(--tc-light);
    font-size: 1.5rem;
    font-weight: 700;
}

.tc-main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tc-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--tc-light);
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.tc-menu-icon,
.tc-menu-icon::before,
.tc-menu-icon::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    transition: transform 0.3s ease;
    position: relative;
}

.tc-menu-icon::before,
.tc-menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.tc-menu-icon::before {
    top: -8px;
}

.tc-menu-icon::after {
    bottom: -8px;
}

.tc-menu-toggle[aria-expanded="true"] .tc-menu-icon {
    transform: rotate(45deg);
}

.tc-menu-toggle[aria-expanded="true"] .tc-menu-icon::before {
    transform: rotate(-90deg) translate(-8px, 0);
}

.tc-menu-toggle[aria-expanded="true"] .tc-menu-icon::after {
    transform: rotate(-90deg) translate(8px, 0);
}

.tc-main-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.tc-main-nav li {
    position: relative;
}

.tc-main-nav .menu-item-has-children > a {
    padding-right: 1.5rem;
}

.tc-main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: var(--tc-border-radius);
    padding: 0.5rem 0;
    z-index: 100;
}

.tc-main-nav .menu-item-has-children:hover > .sub-menu {
    display: block;
}

.tc-main-nav .sub-menu li {
    margin: 0;
}

.tc-main-nav .sub-menu a {
    color: var(--tc-dark);
    padding: 0.5rem 1rem;
    display: block;
    font-size: 0.9rem;
}

.tc-main-nav .sub-menu a:hover {
    background-color: var(--tc-gray-100);
    color: var(--tc-accent);
}

.tc-main-nav a {
    color: var(--tc-dark);
    font-weight: 500;
    padding: 0.5rem;
    display: block;
    position: relative;
    text-decoration: none;
}

.tc-main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--tc-light);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.tc-main-nav a:hover::after,
.tc-main-nav .current-menu-item a::after {
    transform: scaleX(1);
    transform-origin: left;
}

.tc-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tc-search-toggle {
    background: none;
    border: none;
    color: var(--tc-light);
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.tc-search-toggle:hover {
    color: var(--tc-accent);
}

.tc-social-icons {
    display: flex;
    gap: 0.75rem;
}

.tc-social-icon {
    color: var(--tc-light);
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.tc-social-icon:hover {
    color: var(--tc-accent);
}

.tc-search-bar {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.tc-search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.tc-search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--tc-border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--tc-light);
    font-size: 1rem;
}

.tc-search-submit {
    padding: 0.75rem 1.5rem;
    background-color: var(--tc-accent);
    color: var(--tc-light);
    border: none;
    border-radius: var(--tc-border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tc-search-submit:hover {
    background-color: var(--tc-secondary);
}

@media (max-width: 768px) {
    .tc-menu-toggle {
        display: flex;
    }

    .tc-main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .tc-main-nav.active {
        display: flex;
    }

    .tc-main-nav a {
        color: var(--tc-dark);
        padding: 0.75rem;
    }

    .tc-main-nav .sub-menu {
        position: static;
        box-shadow: none;
        background-color: transparent;
        padding-left: 1rem;
    }

    .tc-social-icons {
        display: none;
    }
}

/* Hero Section */
.tc-hero-section {
    margin-top: 32px;
    background-color: rgba(000, 084, 000, 1);
  
}

.tc-hero-article {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--tc-border-radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tc-hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: rgba(000, 144, 000, 1);
}

.tc-hero-image {
    position: relative;
    height: 100%;
    min-height: 40px;
}

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

.tc-hero-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tc-post-meta {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.tc-category-tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--tc-accent);
    color: var(--tc-light);
    border-radius: var(--tc-border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 12px;
}

.tc-post-date {
    color: var(--tc-light);
    font-size: 0.875rem;
}

.tc-hero-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.tc-hero-title a {
    color: var(--tc-light);
}

.tc-hero-title a:hover {
    color: var(--tc-accent);
}

.tc-hero-excerpt {
    color: var(--tc-light);
    margin-bottom: 24px;
}

.tc-post-author {
    display: flex;
    align-items: center;
}

.tc-author-avatar {
    margin-right: 12px;
}

.tc-author-avatar img {
    border-radius: 50%;
}

.tc-author-name {
    font-weight: 500;
    color: var(--tc-light);
}

/* Featured Stories Section */
.tc-featured-stories {
    margin-top: 32px;
    margin-bottom: 32px;
    background-color: var(--tc-light);
    padding: 32px;
    border-radius: var(--tc-border-radius);
}

.tc-section-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 8px;
}

.tc-section-title h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--tc-light2);
}

.tc-more-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tc-dark);
}

.tc-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tc-featured-article {
    background-color: var(--tc-gray-1000);
    border-radius: var(--tc-border-radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: var(--tc-transition);
    margin-bottom: 24px;
}

.tc-featured-article:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.tc-featured-image {
    position: relative;
    height: 180px;
}

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

.tc-featured-image .tc-post-meta {
    position: absolute;
    bottom: 12px;
    left: 12px;
    margin-bottom: 0;
}

.tc-featured-content {
    padding: 16px;
}

.tc-featured-title {
    font-size: 1.125rem;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--tc-dark);
}

.tc-featured-title a {
    color: var(--tc-dark);
}

.tc-featured-title a:hover {
    color: var(--tc-accent);
}

.tc-post-meta-bottom {
    display: flex;
    align-items: center;
    color: var(--tc-gray-600);
    font-size: 0.75rem;
}

.tc-post-meta-bottom span:not(:last-child)::after {
    content: '•';
    margin: 0 6px;
}

/* Footer */
.tc-site-footer {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--tc-light);
    margin-top: 48px;
}

.tc-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 16px 24px;
}

.tc-footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 24px;
}

.tc-footer-widget-title {
    color: var(--tc-light);
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.tc-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tc-footer-menu li {
    margin-bottom: 8px;
}

.tc-footer-menu a {
    color: var(--tc-light);
}

.tc-footer-menu a:hover {
    color: var(--tc-accent);
}

.tc-footer-social {
    display: flex;
    margin-top: 16px;
}

.tc-footer-social .tc-social-icon {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    margin-right: 8px;
    margin-left: 0;
    color: var(--tc-light);
}

.tc-footer-social .tc-social-icon:hover {
    background-color: var(--tc-accent);
}

.tc-footer-form .form-group {
    margin-bottom: 12px;
}

.tc-footer-form input[type="email"] {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--tc-light);
    padding: 8px 12px;
    border-radius: var(--tc-border-radius);
}

.tc-footer-form input[type="submit"] {
    width: 100%;
    background-color: var(--tc-accent);
    border: none;
    color: var(--tc-light);
    padding: 8px 12px;
    border-radius: var(--tc-border-radius);
    cursor: pointer;
    transition: var(--tc-transition);
}

.tc-footer-form input[type="submit"]:hover {
    background-color: var(--tc-secondary);
}

.tc-copyright-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

.tc-footer-bottom-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tc-footer-bottom-menu li {
    margin-left: 16px;
}

.tc-footer-bottom-menu a {
    color: var(--tc-light);
}

.tc-footer-bottom-menu a:hover {
    color: var(--tc-accent);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .tc-featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .tc-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tc-footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tc-hero-container {
        grid-template-columns: 1fr;
    }
    
    .tc-hero-image {
        min-height: 300px;
    }
    
    .tc-featured-grid {
        grid-template-columns: 1fr;
    }
    
    .tc-menu-toggle {
        display: block;
    }
    
    .tc-main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(000, 084, 000, 1);
        padding: 16px;
        flex-direction: column;
    }
    
    .tc-main-nav.active {
        display: flex;
    }
    
    .tc-main-nav a {
        color: var(--tc-dark);
        padding: 0.75rem;
    }
    
    .tc-copyright-bar {
        flex-direction: column;
        text-align: center;
    }
    
    .tc-footer-bottom-menu {
        margin-top: 16px;
        justify-content: center;
    }
    
    .tc-footer-bottom-menu li:first-child {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .tc-footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .tc-hero-content {
        padding: 24px 16px;
    }
    
    .tc-hero-title {
        font-size: 1.75rem;
    }
}