/* ============================================
   REVVED UP CARS - HOMEPAGE LIGHT THEME
   Professional Automotive News Portal
   Version: 3.0.0
   ============================================ */

/* ============================================
   1. LIGHT THEME FOUNDATION
   ============================================ */

/* Light background on homepage body */
body.home,
body.page-template-default.home {
    background-color: var(--revved-bg-primary) !important;
    color: var(--revved-text-primary) !important;
}

/* Main content wrapper */
.revved-homepage,
.home .site-content,
.home #content,
.home main {
    background-color: var(--revved-bg-primary) !important;
}

/* Container sections */
.home .revved-section,
.home .container,
.home section {
    background-color: transparent !important;
}

/* ============================================
   2. HERO/FEATURED SECTION
   ============================================ */

.revved-overlay-hero {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr !important;
    gap: 20px !important;
    margin-bottom: 48px !important;
}

.revved-overlay-hero .revved-post-item {
    position: relative !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: var(--revved-bg-card) !important;
}

.revved-overlay-hero .revved-post-item:first-child {
    grid-row: span 2 !important;
}

.revved-overlay-hero .revved-thumb {
    height: 100% !important;
    min-height: 280px !important;
}

.revved-overlay-hero .revved-post-item:first-child .revved-thumb {
    min-height: 560px !important;
}

.revved-overlay-hero .revved-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease, opacity 0.3s ease !important;
}

.revved-overlay-hero .revved-post-item:hover .revved-thumb img {
    transform: scale(1.03) !important;
}

/* Hero overlay gradient */
.revved-overlay-hero .revved-post-item::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        to top,
        rgba(26, 31, 26, 0.9) 0%,
        rgba(26, 31, 26, 0.5) 40%,
        transparent 70%
    ) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Hero content positioning */
.revved-overlay-hero .revved-post-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 24px !important;
    z-index: 2 !important;
}

.revved-overlay-hero .revved-post-item:first-child .revved-post-content {
    padding: 32px !important;
}

/* Hero titles - white on overlay */
.revved-overlay-hero .revved-post-title {
    font-family: "DM Sans", sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 12px 0 8px !important;
}

.revved-overlay-hero .revved-post-title a {
    color: #fff !important;
    text-decoration: none !important;
}

.revved-overlay-hero .revved-post-item:first-child .revved-post-title {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
    margin: 16px 0 12px !important;
}

/* Hero category badge */
.revved-overlay-hero .revved-category {
    background: #C5D631 !important;
    color: var(--revved-text-primary) !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Hero meta */
.revved-overlay-hero .revved-post-meta {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13px !important;
}

.revved-overlay-hero .revved-post-meta a {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ============================================
   3. SECTION TITLES - Light Theme
   ============================================ */

.home .revved-section-title-wrap,
.home .revved-section-title,
.home .revved-section-two-title-wrap {
    margin-bottom: 32px !important;
    position: relative !important;
}

.home .revved-section-title-wrap h2,
.home .revved-section-title h2,
.home .revved-section-two-title-wrap h2 {
    font-family: "DM Sans", sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--revved-text-primary) !important;
    margin: 0 !important;
    display: inline-block !important;
    position: relative !important;
    padding-bottom: 12px !important;
}

/* Accent underline */
.home .revved-section-title-wrap h2::after,
.home .revved-section-title h2::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 60px !important;
    height: 4px !important;
    background: linear-gradient(90deg, #C5D631 0%, #9eb029 100%) !important;
    border-radius: 2px !important;
}

/* ============================================
   4. GRID LAYOUTS - Light Cards
   ============================================ */

.home .grid-style-2,
.home .grid-style-3,
.home .grid-style-9,
.home .gid-style-10 {
    display: grid !important;
    gap: 24px !important;
}

.home .grid-style-2 {
    grid-template-columns: repeat(4, 1fr) !important;
}

.home .grid-style-3,
.home .gid-style-10 {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* Grid cards - Light theme */
.home .grid-style-2 .revved-post-item,
.home .grid-style-3 .revved-post-item,
.home .grid-style-9 .revved-post-item,
.home .gid-style-10 .revved-post-item {
    background: var(--revved-bg-card) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(26, 31, 26, 0.06) !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}

.home .grid-style-2 .revved-post-item:hover,
.home .grid-style-3 .revved-post-item:hover,
.home .grid-style-9 .revved-post-item:hover {
    box-shadow: 0 8px 24px rgba(26, 31, 26, 0.12) !important;
    transform: translateY(-4px) !important;
}

/* Card images */
.home .grid-style-2 .revved-thumb,
.home .grid-style-3 .revved-thumb,
.home .grid-style-9 .revved-thumb {
    aspect-ratio: 16/10 !important;
    overflow: hidden !important;
}

.home .grid-style-2 .revved-thumb img,
.home .grid-style-3 .revved-thumb img,
.home .grid-style-9 .revved-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.home .grid-style-2 .revved-post-item:hover img,
.home .grid-style-3 .revved-post-item:hover img {
    transform: scale(1.05) !important;
}

/* Card content */
.home .grid-style-2 .revved-post-content,
.home .grid-style-3 .revved-post-content,
.home .grid-style-9 .revved-post-content {
    padding: 16px 20px 20px !important;
    background: var(--revved-bg-card) !important;
}

.home .grid-style-2 .revved-post-title,
.home .grid-style-3 .revved-post-title,
.home .grid-style-9 .revved-post-title {
    font-family: "DM Sans", sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 8px 0 !important;
}

.home .grid-style-2 .revved-post-title a,
.home .grid-style-3 .revved-post-title a,
.home .grid-style-9 .revved-post-title a {
    color: var(--revved-text-primary) !important;
    text-decoration: none !important;
}

.home .grid-style-2 .revved-post-title a:hover,
.home .grid-style-3 .revved-post-title a:hover {
    color: #647c40 !important;
}

/* Post meta */
.home .revved-post-meta,
.home .revved-post-meta span,
.home .revved-post-meta a {
    color: var(--revved-text-muted) !important;
}

/* Category badges */
.home .revved-category {
    background: #C5D631 !important;
    color: var(--revved-text-primary) !important;
}

/* ============================================
   5. LIST LAYOUTS - Light
   ============================================ */

.home .list-style-1,
.home .list-style-3,
.home .list-style-6 {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.home .list-style-1 .revved-post-item,
.home .list-style-6 .revved-post-item {
    display: flex !important;
    gap: 16px !important;
    background: var(--revved-bg-card) !important;
    border-radius: 10px !important;
    padding: 12px !important;
    box-shadow: 0 1px 4px rgba(26, 31, 26, 0.06) !important;
    transition: box-shadow 0.2s ease !important;
}

.home .list-style-1 .revved-post-item:hover,
.home .list-style-6 .revved-post-item:hover {
    box-shadow: 0 4px 12px rgba(26, 31, 26, 0.1) !important;
}

.home .list-style-1 .revved-thumb,
.home .list-style-6 .revved-thumb {
    width: 100px !important;
    height: 80px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.home .list-style-1 .revved-thumb img,
.home .list-style-6 .revved-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.home .list-style-1 .revved-post-title,
.home .list-style-6 .revved-post-title {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.home .list-style-1 .revved-post-title a,
.home .list-style-6 .revved-post-title a {
    color: var(--revved-text-primary) !important;
}

/* ============================================
   6. DARK ACCENT SECTIONS (Feature sections)
   ============================================ */

.home .revved-dark {
    background: linear-gradient(135deg, #1a1f1a 0%, #2d322d 100%) !important;
    padding: 60px 0 !important;
    margin: 48px 0 !important;
}

.home .revved-dark .revved-post-title a {
    color: #fff !important;
}

.home .revved-dark .revved-section-title-wrap h2 {
    color: #fff !important;
}

/* ============================================
   7. TABS - Light Theme
   ============================================ */

.home .nav-tabs,
.home .revved-tabs {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 24px !important;
    border-bottom: 2px solid var(--revved-border-color) !important;
    padding-bottom: 0 !important;
    flex-wrap: wrap !important;
}

.home .nav-tabs .nav-link,
.home .revved-tabs .nav-link {
    padding: 12px 20px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    margin-bottom: -2px !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--revved-text-muted) !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.home .nav-tabs .nav-link:hover {
    color: var(--revved-text-primary) !important;
}

.home .nav-tabs .nav-link.active {
    color: #647c40 !important;
    border-bottom-color: #647c40 !important;
}

/* ============================================
   8. SIDEBAR WIDGETS - Light
   ============================================ */

.home .sidebar .widget,
.home .revved-sidebar .widget {
    background: var(--revved-bg-card) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 2px 8px rgba(26, 31, 26, 0.06) !important;
}

.home .sidebar .widget-title {
    font-family: "DM Sans", sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--revved-text-primary) !important;
    margin: 0 0 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid var(--revved-border-color) !important;
    position: relative !important;
}

.home .sidebar .widget-title::after {
    content: "" !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 40px !important;
    height: 2px !important;
    background: linear-gradient(90deg, #C5D631, #9eb029) !important;
}

/* ============================================
   9. CAROUSEL - Light Theme
   ============================================ */

.home .slick-arrow,
.home .owl-nav button {
    width: 44px !important;
    height: 44px !important;
    background: var(--revved-bg-card) !important;
    border: 1px solid var(--revved-border-color) !important;
    border-radius: 50% !important;
    color: var(--revved-text-primary) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(26, 31, 26, 0.08) !important;
}

.home .slick-arrow:hover,
.home .owl-nav button:hover {
    background: #C5D631 !important;
    border-color: #C5D631 !important;
    color: var(--revved-text-primary) !important;
}

.home .slick-dots li button,
.home .owl-dot {
    background: #e2e6e5 !important;
}

.home .slick-dots li.slick-active button,
.home .owl-dot.active {
    background: #C5D631 !important;
}

/* ============================================
   10. BREAKING NEWS BAR - Light
   ============================================ */

.home .breaking-news-wrap,
.home .revved-breaking-wrap {
    background: var(--revved-bg-card) !important;
    border-bottom: 1px solid #e2e6e5 !important;
}

.home .breaking-heading,
.home .revved-breaking-label {
    background: #C5D631 !important;
    color: var(--revved-text-primary) !important;
}

.home .breaking-news-wrap a,
.home .revved-breaking-wrap a {
    color: var(--revved-text-primary) !important;
}

/* ============================================
   11. RESPONSIVE
   ============================================ */

@media (max-width: 1199px) {
    .home .grid-style-2 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .revved-overlay-hero {
        grid-template-columns: 1fr !important;
    }
    
    .revved-overlay-hero .revved-post-item:first-child {
        grid-row: span 1 !important;
    }
    
    .revved-overlay-hero .revved-post-item:first-child .revved-thumb {
        min-height: 350px !important;
    }
    
    .home .grid-style-2,
    .home .grid-style-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .home .grid-style-2,
    .home .grid-style-3 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .revved-overlay-hero .revved-post-item:first-child .revved-post-title {
        font-size: 1.35rem !important;
    }
}

@media (max-width: 480px) {
    .revved-overlay-hero .revved-post-item:first-child .revved-thumb {
        min-height: 280px !important;
    }
    
    .home .revved-section-title-wrap h2 {
        font-size: 1.1rem !important;
    }
}

/* ============================================
   12. TEXT READABILITY FIXES
   ============================================ */

/* Force dark text on all light-background cards */
.home .revved-post-content,
.home .grid-style-2 .revved-post-content,
.home .grid-style-3 .revved-post-content,
.home .grid-style-9 .revved-post-content,
.home .gid-style-10 .revved-post-content,
.home .list-style-1 .revved-post-content,
.home .list-style-6 .revved-post-content {
    background: #ffffff !important;
}

.home .revved-post-title a,
.home .grid-style-2 .revved-post-title a,
.home .grid-style-3 .revved-post-title a,
.home .grid-style-9 .revved-post-title a,
.home .gid-style-10 .revved-post-title a {
    color: #1a1f1a !important;
}

.home .revved-post-title a:hover,
.home .grid-style-2 .revved-post-title a:hover,
.home .grid-style-3 .revved-post-title a:hover,
.home .grid-style-9 .revved-post-title a:hover {
    color: #647c40 !important;
}

/* Post meta - muted gray text */
.home .revved-post-meta,
.home .revved-post-meta span,
.home .revved-post-meta a,
.home .revved-post-date,
.home .post-date,
.home .revved-author-name {
    color: #7a847a !important;
}

.home .revved-post-meta a:hover {
    color: #647c40 !important;
}

/* Category badges - always dark text on lime */
.home .revved-category,
.home .category-tag,
.home .cat-name,
.home .revved-cat-name {
    background: #C5D631 !important;
    color: #1a1f1a !important;
}

/* ============================================
   13. ELECTRIC & HYBRID SECTION FIX
   ============================================ */

/* Target Electric & Hybrid and any feature sections */
.home .revved-section[data-id] .revved-post-content,
.home .revved-widget .revved-post-content,
.home [class*="electric"] .revved-post-content,
.home [class*="hybrid"] .revved-post-content,
.home .revved-electric-section .revved-post-content,
.home .revved-electric .revved-post-content {
    background: #ffffff !important;
}

.home .revved-section[data-id] .revved-post-title a,
.home .revved-widget .revved-post-title a,
.home [class*="electric"] .revved-post-title a,
.home [class*="hybrid"] .revved-post-title a {
    color: #1a1f1a !important;
}

.home .revved-section[data-id] .revved-post-meta,
.home .revved-widget .revved-post-meta,
.home [class*="electric"] .revved-post-meta,
.home [class*="hybrid"] .revved-post-meta {
    color: #7a847a !important;
}

/* ============================================
   14. TOP FEATURED CARDS (Hero Section)
   ============================================ */

/* The hero/overlay cards should have WHITE text on dark overlay */
.revved-overlay-hero .revved-post-title a,
.revved-overlay-hero .revved-post-content .revved-post-title a,
.home .revved-overlay-post .revved-post-title a {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

.revved-overlay-hero .revved-post-meta,
.revved-overlay-hero .revved-post-meta a,
.revved-overlay-hero .revved-post-date,
.home .revved-overlay-post .revved-post-meta {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ============================================
   15. FORCE LIGHT BACKGROUNDS GLOBALLY
   ============================================ */

/* Ensure all post items have proper backgrounds */
.home .revved-post-item:not(.revved-overlay-hero .revved-post-item) {
    background: #ffffff !important;
}

/* Section backgrounds */
.home section,
.home .revved-section:not(.revved-dark),
.home .revved-container {
    background-color: transparent !important;
}

/* Make sure content wrappers are light */
.home .revved-content-wrap,
.home .revved-content-area,
.home .row > [class*="col"] {
    background: transparent !important;
}

/* Widget and sidebar text */
.home .widget-title,
.home .sidebar .widget-title {
    color: #1a1f1a !important;
}

.home .widget a,
.home .sidebar a {
    color: #1a1f1a !important;
}

.home .widget a:hover,
.home .sidebar a:hover {
    color: #647c40 !important;
}

/* ============================================
   16. TAB CONTENT FIX
   ============================================ */

.home .tab-content .revved-post-title a,
.home .tab-pane .revved-post-title a {
    color: #1a1f1a !important;
}

.home .tab-content .revved-post-meta,
.home .tab-pane .revved-post-meta {
    color: #7a847a !important;
}

.home .tab-content .revved-post-content,
.home .tab-pane .revved-post-content {
    background: #ffffff !important;
}
