/* Red & White Theme for BSI Segment Manager */

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white;
    color: black;
    line-height: 1.6;
}

.bsi-landing-body {
    background: white;
    color: black;
}

.bsi-landing-page {
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Segments Base Styles */
.bsi-segment {
    padding: 3rem 0;
    background: white;
    color: black;
}

/* Red Background Segments (2, 4, 6, 8) */
.bsi-segment.seg-2,
.bsi-segment.seg-4,
.bsi-segment.seg-6,
.bsi-segment.seg-8 {
    background: red;
    color: white;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Red segments heading colors */
.bsi-segment.seg-2 h1,
.bsi-segment.seg-2 h2,
.bsi-segment.seg-2 h3,
.bsi-segment.seg-4 h1,
.bsi-segment.seg-4 h2,
.bsi-segment.seg-4 h3,
.bsi-segment.seg-6 h1,
.bsi-segment.seg-6 h2,
.bsi-segment.seg-6 h3,
.bsi-segment.seg-8 h1,
.bsi-segment.seg-8 h2,
.bsi-segment.seg-8 h3 {
    color: white;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Hero Section */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.hero-text h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-text p {
    color: white;
}

.hero-image {
    text-align: center;
}

.profile-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seg-4 .post-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    margin-bottom: 0.5rem;
    color: inherit;
}

.seg-4 .post-title {
    color: white;
}

.post-meta {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.post-excerpt {
    margin-bottom: 1.5rem;
    color: inherit;
}

.seg-4 .post-excerpt {
    color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn--primary {
    background: red;
    color: white;
}

.btn--primary:hover {
    background: darkred;
}

.btn--secondary {
    background: white;
    color: red;
    border: 2px solid red;
}

.btn--secondary:hover {
    background: red;
    color: white;
}

.seg-4 .btn--secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.seg-4 .btn--secondary:hover {
    background: white;
    color: red;
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Section Footer */
.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Special Links */
.special-links-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.special-link {
    display: block;
    padding: 1rem;
    background: white;
    color: red;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    border: 2px solid red;
    transition: all 0.3s ease;
}

.seg-6 .special-link {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.special-link:hover,
.seg-6 .special-link:hover {
    background: white;
    color: red;
    border-color: white;
}

/* Stories Grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.story-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.story-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.story-content {
    padding: 1rem;
}

.story-title {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.story-meta {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-block {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-block:hover {
    transform: translateY(-5px);
}

.video-block a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-block img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.video-block h3 {
    padding: 1rem;
    margin: 0;
}

/* Biography Content */
.bio-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .video-grid,
    .posts-grid,
    .stories-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .bsi-segment {
        padding: 2rem 0;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}
/* Live thumbnail styling */
.slide-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
}

.story-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.thumbnail-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.slide-badge {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Hover effects */
.eco-slide-card:hover .slide-thumbnail {
    transform: scale(1.05);
}

/* Enhanced stories grid for multiple eco slides */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Responsive adjustments for many items */
@media (max-width: 1200px) {
    .stories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .stories-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .stories-grid {
        grid-template-columns: 1fr;
    }
}

/* Counter badge for showing total count */
.eco-slides-section h3::after {
    content: " (" attr(data-count) " slides)";
    color: #666;
    font-weight: normal;
    font-size: 0.9em;
}


/* Fix post title link color */
.post-title a {
  color: inherit !important;        /* same color as parent (black or white) */
  text-decoration: none !important; /* remove underline */
  font-weight: bold;
}

.post-title a:hover {
  color: #ffeb3b !important;        /* yellow hover */
  text-decoration: none !important; /* no underline on hover */
}




