/* ========================================
   FRESH CONTENT DISPLAY CSS - JUNGLE LEELAA
   ========================================
   
   Fresh, flat design matching slider styling
   Uses Poppins font family and minimal styling
   INHERITS ALL COLORS AND VARIABLES FROM THEME4.CSS
   ======================================== */

/* ========================================
   FONT IMPORTS & BASE STYLES
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ========================================
   CSS VARIABLES - INHERIT FROM THEME4.CSS
   ======================================== */
/* All colors and variables are inherited from theme4.css .dark class */
/* Only defining fresh-specific layout variables */

:root {
    /* Typography - Matching slider */
    --fresh-font: 'Poppins', sans-serif;
    --fresh-font-size-base: 16px;
    --fresh-font-size-lg: 18px;
    --fresh-font-size-xl: 24px;
    --fresh-font-size-2xl: 32px;
    --fresh-font-size-3xl: 48px;
    
    /* Spacing - Clean and minimal */
    --fresh-spacing-xs: 0.5rem;
    --fresh-spacing-sm: 1rem;
    --fresh-spacing-md: 1.5rem;
    --fresh-spacing-lg: 2rem;
    --fresh-spacing-xl: 3rem;
    --fresh-spacing-2xl: 4rem;
    
    /* Layout */
    --fresh-max-width: 1200px;
    --fresh-border-radius: 0; /* Flat design - no rounded corners */
    --fresh-transition: all 0.3s ease;
}

/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */
/* Only reset box-sizing for fresh content elements */
.fresh-content-section * {
    box-sizing: border-box;
}

/* ========================================
   TYPOGRAPHY - FLAT & CLEAN
   ======================================== */
/* Fresh content specific typography - only applies to fresh content sections */
.fresh-content-section h1, .fresh-content-section h2, .fresh-content-section h3, .fresh-content-section h4, .fresh-content-section h5, .fresh-content-section h6 {
    font-family: var(--fresh-font);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--fresh-spacing-sm);
    color: var(--foreground);
    text-transform: none;
    text-shadow: none;
}

.fresh-content-section h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--fresh-spacing-md);
    color: var(--foreground);
}

.fresh-content-section h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
    color: var(--section-title-color);
    text-align: left; /* FIXED: Changed from center to left */
    display: block;
    width: 100%;
}

.fresh-content-section h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--foreground);
}

.fresh-content-section h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    color: var(--foreground);
}

.fresh-content-section p {
    margin-bottom: 0.75rem;
    line-height: var(--line-height-normal);
    color: var(--muted-foreground);
}

/* ========================================
   FRESH CONTENT SECTIONS - DESIGN 3: MODERN GRID (ENHANCED)
   ======================================== */
.fresh-content-section {
    max-width: 1400px;
    margin: 0 auto 0 auto;
    padding: 2rem;
    background: var(--background);
    border: none;
    position: relative;
    overflow: hidden;
}

/* Add subtle grid pattern */
.fresh-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 98%, #14FF72 100%),
        linear-gradient(0deg, transparent 98%, #14FF72 100%);
    background-size: 50px 50px;
    opacity: 0.1;
    pointer-events: none;
}

/* Fresh content sections - no bottom margin to touch footer */
.fresh-content-section:last-child {
    margin-bottom: 0;
}

/* ========================================
   FRESH TITLES - DESIGN 3: ENHANCED TYPOGRAPHY
   ======================================== */
.fresh-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 3rem;
    text-align: center;
    display: block;
    width: 100%;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Add gradient underline */
.fresh-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #14FF72, transparent);
}

/* Specific styling for fresh content titles to prevent conflicts */
.fresh-content-title {
    font-size: 2.8rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin-bottom: 3rem !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    position: relative !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
}

.fresh-content-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #14FF72, transparent);
}

/* ========================================
   SECTION TITLES - MOVED FROM THEME4.CSS
   ======================================== */
.section-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    color: var(--section-title-color);
    margin-bottom: 1.5rem;
    text-align: left; /* FIXED: Changed from center to left */
    display: block;
    width: 100%;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

@media (max-width: 768px) {
    .section-title {
        font-size: var(--font-size-2xl);
        text-align: center; /* Center on mobile only */
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: var(--font-size-xl);
    }
}

/* ========================================
   SAFARI HEADER GROUP - NEW STRUCTURE
   ======================================== */
.safari-header-group {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    position: relative;
}

.safari-header-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, #14FF72, transparent);
}

.content-section-1 {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    max-width: 100%;
    box-sizing: border-box;
}

.content-section-1:first-child {
    margin-top: 0;
}

.content-section-1:not(:first-child) {
    margin-top: 0.5rem;
}

.content-section-1-row {
    margin-bottom: 1rem;
}

.content-section-1-text {
    text-align: left;
    max-width: 800px;
    margin: 0;
}

/* ========================================
   ROW HEADER CLASSES - UPDATED
   ======================================== */
.row-header {
    margin-bottom: 2rem;
    text-align: left;
}

.row-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    color: var(--foreground);
    margin-bottom: 0.25rem;
    text-align: left;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Remove the old underline from row-title */
.row-title::after {
    display: none;
}

.row-subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    color: var(--primary);
    margin-bottom: 0.25rem;
    text-align: left;
}

.row-description {
    font-size: var(--font-size-lg);
    color: var(--muted-foreground);
    line-height: 1.4;
    text-align: left;
    margin-bottom: 0;
}

/* ========================================
   FRESH CONTENT WRAPPER - DESIGN 3: ENHANCED GRID
   ======================================== */
.fresh-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

/* ========================================
   FRESH TEXT - DESIGN 3: ENHANCED TYPOGRAPHY
   ======================================== */
.fresh-text {
    font-family: var(--fresh-font);
    font-size: 16px;
    line-height: 1.7;
    color: #FFFFFF;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}

.fresh-text p {
    margin-bottom: 1.5rem;
    color: #CCCCCC;
    font-size: 18px;
}

.fresh-text ul,
.fresh-text ol {
    margin: 2rem 0;
    padding-left: 0;
    list-style: none;
}

.fresh-text li {
    margin-bottom: 1rem;
    color: #FFFFFF;
    position: relative;
    padding: 1rem 1.5rem;
    background: rgba(20, 255, 114, 0.1);
    border-left: 4px solid #14FF72;
    font-weight: 500;
    transition: all 0.3s ease;
}

.fresh-text li:hover {
    background: rgba(20, 255, 114, 0.15);
    transform: translateX(5px);
}

.fresh-text li::before {
    content: '';
    display: none;
}

/* Enhanced text elements */
.fresh-text strong {
    color: #14FF72;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(20, 255, 114, 0.3);
}

.fresh-text em {
    color: #CCCCCC;
    font-style: italic;
    font-weight: 400;
}

.fresh-text h3 {
    color: #14FF72;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid rgba(20, 255, 114, 0.3);
    padding-bottom: 0.5rem;
}

.fresh-text h4 {
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 1.5rem 0 0.5rem 0;
}

.fresh-text blockquote {
    border-left: 4px solid #14FF72;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #CCCCCC;
    background: rgba(20, 255, 114, 0.05);
    padding: 1rem;
}

/* ========================================
   FRESH IMAGES - DESIGN 3: ENHANCED DISPLAY
   ======================================== */
.fresh-image {
    margin: 0;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    border: 3px solid #14FF72;
    height: 100%;
    min-height: 400px;
    box-shadow: 0 0 30px rgba(20, 255, 114, 0.3);
}

.fresh-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(20, 255, 114, 0.2), transparent, rgba(20, 255, 114, 0.2));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fresh-image:hover::before {
    opacity: 1;
}

.fresh-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: none;
    border: none;
    transition: transform 0.3s ease;
}

.fresh-image:hover img {
    transform: scale(1.03);
}

/* ========================================
   FRESH BUTTONS - DESIGN 3: ENHANCED
   ======================================== */
.fresh-content-section .fresh-btn {
    display: inline-block !important;
    padding: 12px 20px !important;
    background: #14FF72 !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    margin-top: 1rem !important;
    cursor: pointer !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.fresh-content-section .fresh-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.fresh-content-section .fresh-btn:hover::before {
    left: 100%;
}

.fresh-content-section .fresh-btn:hover {
    background: #00FF66 !important;
    transform: translateY(-2px) !important;
}

.fresh-content-section .fresh-btn:focus {
    outline: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2), 0 0 0 3px rgba(20, 255, 114, 0.3) !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .fresh-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .fresh-content-section {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .fresh-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .fresh-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .fresh-text li {
        padding: 0.8rem 1rem;
    }
    
    .fresh-image {
        min-height: 300px;
    }
    
    /* Safari header group mobile styles */
    .safari-header-group {
        text-align: center;
        padding-bottom: 0.75rem;
    }
    
    .safari-header-group::after {
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        background: linear-gradient(90deg, transparent, #14FF72, transparent);
    }
    
    .row-title,
    .row-subtitle,
    .row-description {
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --fresh-font-size-3xl: 28px;
        --fresh-font-size-2xl: 24px;
        --fresh-font-size-xl: 18px;
        --fresh-spacing-lg: 1rem;
        --fresh-spacing-xl: 1.5rem;
        --fresh-spacing-2xl: 2rem;
    }
    
    .fresh-content-section {
        padding: 0 var(--fresh-spacing-xs);
        margin-bottom: 1.5rem;
    }
}
