/* Stories Sections CSS */
/* Add this to /wp-content/themes/divi-child/css/stories-sections.css */

:root {
    --primary-green: #101010;
    --dark-green: #101010;
    --accent-green: #101010;
    --text-dark: #101010;
    --text-light: #101010;
    --background-light: #F5F5F5;
    --white: #FFFFFF;
}

/* Hero Section */
.stories-hero {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 80px 20px;
}

.stories-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(122, 155, 90, 0.7), rgba(122, 155, 90, 0.3));
}

.stories-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--white);
}

.stories-hero .breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.stories-hero .hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    max-width: 700px;
}

.stories-hero .hero-button {
    display: inline-block;
    padding: 14px 40px;
    background: var(--white);
    color: var(--primary-green);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.stories-hero .hero-button:hover {
    background: var(--accent-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.section-label {
    font-size: 14px;
    color: var(--primary-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.section-button {
    padding: 12px 30px;
    background: var(--primary-green);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.section-button:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

/* Featured Stories Section */
.stories-featured-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.stories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.story-card.featured {
    grid-row: span 2;
}

.story-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.story-card .story-image {
    position: relative;
    overflow: hidden;
}

.story-card.featured .story-image {
    height: 400px;
}

.story-card.regular .story-image {
    height: 120px;
}

.story-card .story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.story-card .story-content {
    padding: 20px;
}

.story-card.regular .story-content {
    padding: 15px;
}

.story-card .story-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.story-card.regular .story-title {
    font-size: 16px;
}

.story-card .story-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.story-card .story-title a:hover {
    color: var(--primary-green);
}

.story-card .story-excerpt {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.story-card .story-meta {
    font-size: 13px;
    color: var(--primary-green);
    font-weight: 600;
}

/* Grid Section */
.stories-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background: var(--background-light);
}

.grid-container {
    display: grid;
    gap: 30px;
}

.grid-container.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-container.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.grid-card .grid-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.grid-card .grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.grid-card .grid-content {
    padding: 20px;
}

.grid-card .grid-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.grid-card .grid-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.grid-card .grid-title a:hover {
    color: var(--primary-green);
}

.grid-card .grid-date {
    font-size: 13px;
    color: var(--text-light);
}

/* Highlight Stories Section */
.stories-highlight {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.stories-highlight .section-header {
    align-items: center;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.highlight-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.highlight-card .highlight-link {
    display: block;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.highlight-card .highlight-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.highlight-card .highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.highlight-card:hover .highlight-image img {
    transform: scale(1.1);
}

.highlight-card .highlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
}

.highlight-card .highlight-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
}

.highlight-card .highlight-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--white);
    transition: color 0.3s ease;
}

.highlight-card:hover .highlight-title {
    color: var(--accent-green);
}

.highlight-card .highlight-excerpt {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    opacity: 0.9;
}

.highlight-card .highlight-meta {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Footer Section */
.stories-cta-footer {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    margin-top: 60px;
}

.stories-cta-footer .cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.stories-cta-footer .cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.stories-cta-footer .cta-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 40px 0;
    line-height: 1.3;
}

.stories-cta-footer .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.stories-cta-footer .cta-button {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stories-cta-footer .cta-button.primary {
    background: var(--primary-green);
    color: var(--white);
}

.stories-cta-footer .cta-button.primary:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 155, 90, 0.4);
}

.stories-cta-footer .cta-button.secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.stories-cta-footer .cta-button.secondary:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .story-card.featured {
        grid-row: span 1;
    }
    
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-container.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stories-hero .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .highlight-grid,
    .grid-container.columns-2,
    .grid-container.columns-3 {
        grid-template-columns: 1fr;
    }
    
    .stories-cta-footer .cta-title {
        font-size: 28px;
    }
    
    .stories-cta-footer .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}