/*
Theme Name:        Corpwhizz
Theme URI:         https://corpwhizz.com
Author:            Corpwhizz
Author URI:        https://corpwhizz.com
Description:       Fast Reads. Smart Business. A modern Indian business news portal theme with multi-section layout, stock ticker widgets, pharma section, featured carousel, and latest news grid.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       corpwhizz
Tags:              news, business, magazine, one-column, custom-header, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, translation-ready
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f8f8f8;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* === DESIGN TOKENS === */
:root {
    --brand-green:   #1a8a3e;
    --brand-dark:    #141414;
    --brand-orange:  #ff6d00;
    --brand-blue:    #0057cc;
    --ticker-up:     #1a8a3e;
    --ticker-down:   #cc2200;
    --nav-bg:        #1e1e1e;
    --text-main:     #1a1a1a;
    --text-muted:    #6b7280;
    --text-light:    #9ca3af;
    --border-light:  #e5e7eb;
    --bg-light:      #f3f4f6;
    --white:         #ffffff;
    --container:     1280px;
}

/* === LAYOUT === */
.corpwhizz-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

.cw-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cw-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cw-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cw-grid-5 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
/* === SECTION BADGE === */
.cw-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.cw-section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}
.cw-badge {
    display: inline-block;
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.cw-badge--green  { background: var(--brand-green); }
.cw-badge--blue   { background: var(--brand-blue); }
.cw-badge--lightblue   { background-color: #50EBD8; }
.cw-badge--orange { background: var(--brand-orange); }
.cw-badge--dark   { background: #374151; }
.cw-badge--gray   { background: var(--nav-bg); }

/* === CARD SHARED === */
.cw-card-img {
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s ease;
}
.cw-card-img-wrap { overflow: hidden; border-radius: 4px; margin-bottom: 8px; }
.cw-card-img-wrap:hover .cw-card-img { transform: scale(1.05); }

.cw-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cw-card-title:hover { color: var(--brand-green); }
.cw-card-date  { font-size: 12px; color: var(--text-light); margin-top: 4px; display: block; }
.cw-card-meta  { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.cw-card-excerpt { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* === THUMB ARTICLE (small) === */
.cw-thumb-article {
    display: flex;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 12px;
}
.cw-thumb-article-item {
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 12px;
}
.cw-thumb-article-right {
    width:140px !important;
}
.cw-thumb-article-item-right {
	min-height:55px;
}
.cw-thumb-article:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
/*.cw-thumb-article img { width: 80px; height: 56px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }*/
.cw-thumb-article img { width: 250px; height: 170px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.cw-thumb-article .cw-card-title { font-size: 16px; -webkit-line-clamp: 10; }

.cw-thumb-article-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.cw-thumb-article-item img { object-fit: cover; border-radius: 3px; flex-shrink: 0; height:210px; }
.cw-thumb-article-item .cw-card-title { font-size: 16px; -webkit-line-clamp: 10; }

/* === UTILITIES === */
.cw-divider { border: none; border-top: 1px solid var(--border-light); margin: 0; }
.cw-section  { padding: 10px 0; }
.hero-section, .mainsection1  { padding: 20px 0 0 0; }
.bp15 {padding-bottom : 25px !important}
