/*
Theme Name: India Shorts
Theme URI: https://indiashorts.com
Author: Vipul
Author URI: https://indiashorts.com
Description: Custom news theme for India Shorts
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: indiashorts
*/


/* ============================================
   INDIA SHORTS - MAIN STYLESHEET
   Header, Footer & Base Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary-red: #e62b34;
    --primary-red-hover: #cc252d;
    --dark-bg: #333333;
    --darker-bg: #2a2a2a;
    --text-dark: #333333;
    --text-body: #444444;
    --text-gray: #555555;
    --text-light: #888888;
    --text-muted: #999999;
    --border-color: #e8e8e8;
    --border-light: #f0f0f0;
    --bg-light: #f8f8f8;
    --white: #ffffff;
    --black: #333333;
    --font-main: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.12);
    --transition: 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--white);
    font-weight: 400;
}

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

a:hover {
    color: var(--primary-red);
}

ul, ol {
    list-style: none;
}

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

/* Global image container placeholders - gray bg while images load */
.article-image,
.item-image,
.card-image,
.card-thumb,
.related-card .card-image {
    background-color: #f0f0f0;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-dark);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   HEADER STYLES
   ============================================ */

.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo a {
    display: block;
}

.logo img {
    height: 60px;
    width: auto;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Google Source Button */
.google-source-btn a {
    display: flex;
    align-items: center;
    background: var(--white);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 8px;
    gap: 12px;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all var(--transition);
}

.google-source-btn a:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    color: var(--text-dark);
}

.gs-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gs-icon svg {
    width: 28px;
    height: 28px;
}

.gs-text {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-dark);
}

/* Navigation */
.main-nav {
    background: var(--dark-bg);
    position: relative;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--white);
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: background var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li:hover > a {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.nav-menu > li > a i.fa-chevron-down {
    font-size: 9px;
    opacity: 0.7;
}

/* Dropdown - Desktop */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 1000;
    border-top: 3px solid var(--primary-red);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 18px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition);
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    background: var(--primary-red);
    color: var(--white);
    padding-left: 22px;
}

/* Search Button */
.nav-search {
    padding: 0 10px;
}

.search-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 15px;
    padding: 13px 5px;
    transition: color var(--transition);
}

.search-btn:hover {
    color: var(--primary-red);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 22px;
    padding: 10px;
    cursor: pointer;
    margin-right: 10px;
}

.menu-toggle i {
    display: block;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.site-main {
    min-height: 60vh;
}

/* ============================================
   FOOTER STYLES - Professional News Footer
   ============================================ */

.site-footer {
    background: var(--dark-bg);
    color: #cccccc;
    margin-top: 25px;
}

/* Footer Top - Trending/Quick Links */
.footer-top {
    background: var(--darker-bg);
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
}

.footer-trending {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-trending-label {
    background: var(--primary-red);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-trending-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-trending-links a {
    color: #aaaaaa;
    font-size: 12px;
    transition: color var(--transition);
}

.footer-trending-links a:hover {
    color: var(--primary-red);
}

/* Footer Main */
.footer-main {
    padding: 35px 0 25px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
    gap: 25px;
}

/* Footer About */
.footer-about {
    padding-right: 15px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-desc {
    font-size: 12.5px;
    line-height: 1.7;
    color: #999999;
    margin-bottom: 18px;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.social-icon {
    width: 34px;
    height: 34px;
    background: #2a2a2a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cccccc;
    font-size: 14px;
    transition: all var(--transition);
}

.social-icon:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

/* Footer Links */
.footer-links h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    padding-bottom: 8px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--primary-red);
}

.footer-links ul li {
    margin-bottom: 6px;
}

.footer-links ul li a {
    color: #999999;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
}

.footer-links ul li a i {
    font-size: 8px;
    color: var(--primary-red);
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 4px;
}

/* Footer Bottom */
.footer-bottom {
    background: var(--darker-bg);
    padding: 12px 0;
    border-top: 1px solid #2a2a2a;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    font-size: 12px;
    color: #777777;
}

.footer-bottom-links {
    display: flex;
    gap: 18px;
}

.footer-bottom-links a {
    font-size: 11px;
    color: #777777;
    transition: color var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary-red);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.category-tag {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    padding: 3px 7px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.2;
}

.section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--primary-red);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.article-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.article-meta .author {
    color: var(--text-gray);
    font-weight: 500;
}

/* Line Clamp for Headlines */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Image Hover Effect */
.img-hover {
    overflow: hidden;
}

.img-hover img {
    transition: transform 0.3s ease;
}

.img-hover:hover img {
    transform: scale(1.05);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .footer-about {
        grid-column: span 3;
        padding-right: 0;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .footer-logo {
        justify-content: center;
        display: flex;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-desc {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
    }
    
    .logo img {
        height: 38px;
    }
    
    /* Show hamburger menu on mobile */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide nav menu by default on mobile */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu > li {
        width: 100%;
    }
    
    .nav-menu > li > a {
        padding: 12px 20px;
        border-bottom: 1px solid #333;
        justify-content: space-between;
    }
    
    /* Mobile Dropdown - FIXED: Lighter background for visibility */
    .dropdown {
        position: static;
        box-shadow: none;
        border-top: none;
        background: #3a3a3a; /* Lighter grey - more visible */
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 100%;
    }
    
    .has-dropdown.active .dropdown {
        display: block;
    }
    
    /* Mobile submenu items - improved styling */
    .dropdown li a {
        padding: 12px 20px 12px 35px;
        color: #e0e0e0; /* Lighter text */
        border-bottom: 1px solid #4a4a4a; /* Lighter border */
        font-size: 14px;
    }
    
    .dropdown li a:hover {
        background: var(--primary-red);
        color: var(--white);
        padding-left: 40px;
    }
    
    .dropdown li:last-child a {
        border-bottom: none;
    }
    
    /* Footer grid for mobile - 2 columns, left aligned */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .footer-about {
        grid-column: span 2;
    }
    
    /* Footer links left aligned and 2 columns */
    .footer-links {
        text-align: left;
    }
    
    .footer-links h4::after {
        left: 0;
        transform: none;
    }
    
    .footer-links ul li a {
        justify-content: flex-start;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-trending {
        flex-direction: column;
        text-align: center;
    }
    
    .gn-text {
        display: none;
    }
    
    .google-news-btn a {
        padding: 8px;
    }
    
    .gn-icon {
        width: 32px;
        height: 32px;
    }
    
    .gs-text {
        display: none;
    }
    
    .google-source-btn a {
        padding: 8px 12px;
    }
}

@media (max-width: 576px) {
    /* Keep 2 columns for footer links on small mobile */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .footer-about {
        grid-column: span 2;
        text-align: center;
    }
    
    /* Footer links stay left aligned and 2 columns */
    .footer-links {
        text-align: left;
    }
    
    .footer-links h4 {
        font-size: 12px;
    }
    
    .footer-links h4::after {
        left: 0;
        transform: none;
    }
    
    .footer-links ul li a {
        justify-content: flex-start;
        font-size: 11px;
    }
}

/* ============================================
   Add Search Modal Styles
   ============================================ */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.search-form {
    display: flex;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    padding: 20px;
    font-size: 18px;
    border: none;
    outline: none;
}

.search-form button {
    padding: 20px 30px;
    background: #e62b34;
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.close-search {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* Screen Reader Text - Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}




/* ============================================
   TABLE STYLES - India Shorts Theme
   ============================================ */

article table,
.single-post table,
.post table,
.page table,
.article-content table,
.entry-content table,
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

article thead,
.single-post thead,
.post thead,
.page thead,
.article-content thead,
.entry-content thead,
.post-content thead {
    background: var(--secondary-color);
}

article th,
.single-post th,
.post th,
.page th,
.article-content th,
.entry-content th,
.post-content th {
    color: #ffffff;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 3px solid var(--primary-color);
}

article td,
.single-post td,
.post td,
.page td,
.article-content td,
.entry-content td,
.post-content td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    line-height: 1.6;
}

article tbody tr:nth-child(even),
.single-post tbody tr:nth-child(even),
.post tbody tr:nth-child(even),
.page tbody tr:nth-child(even),
.article-content tbody tr:nth-child(even),
.entry-content tbody tr:nth-child(even),
.post-content tbody tr:nth-child(even) {
    background: var(--bg-light);
}

article tbody tr:hover,
.single-post tbody tr:hover,
.post tbody tr:hover,
.page tbody tr:hover,
.article-content tbody tr:hover,
.entry-content tbody tr:hover,
.post-content tbody tr:hover {
    background: #ffebee;
}

article tbody tr:last-child td,
.single-post tbody tr:last-child td,
.post tbody tr:last-child td,
.page tbody tr:last-child td,
.article-content tbody tr:last-child td,
.entry-content tbody tr:last-child td,
.post-content tbody tr:last-child td {
    border-bottom: none;
}

article td:first-child,
.single-post td:first-child,
.post td:first-child,
.page td:first-child,
.article-content td:first-child,
.entry-content td:first-child,
.post-content td:first-child {
    font-weight: 600;
    color: var(--text-color);
}

/* Responsive Tables */
@media (max-width: 768px) {
    article table,
    .single-post table,
    .post table,
    .page table,
    .article-content table,
    .entry-content table,
    .post-content table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    article th,
    .single-post th,
    .post th,
    .page th,
    .article-content th,
    .entry-content th,
    .post-content th,
    article td,
    .single-post td,
    .post td,
    .page td,
    .article-content td,
    .entry-content td,
    .post-content td {
        padding: 10px 12px;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    article th,
    .single-post th,
    .post th,
    .page th,
    .article-content th,
    .entry-content th,
    .post-content th,
    article td,
    .single-post td,
    .post td,
    .page td,
    .article-content td,
    .entry-content td,
    .post-content td {
        padding: 8px 10px;
        font-size: 12px;
    }
}