/* Homepage Enhancements CSS */
/* Extracted from index.html for better organization */

/* Blog Carousel Styles */
.blog-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    min-height: 450px;
}

.carousel-slide {
    min-width: 100%;
    padding: 0;
    display: flex;
    gap: 30px;
}

.carousel-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 30px;
    width: 100%;
}

.carousel-post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

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

.carousel-post-card:hover .post-excerpt-extended {
    opacity: 1;
    transform: translateY(0);
}

.post-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.carousel-post-card:hover .post-image {
    transform: scale(1.05);
}

.new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff8c42;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

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

.post-content {
    padding: 20px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #4c5fd5;
}

.post-title {
    color: #1a1f71;
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 600;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.post-excerpt-extended {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 31, 113, 0.95), rgba(26, 31, 113, 0.85));
    color: white;
    padding: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.5;
}

.post-link {
    color: #4c5fd5;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.post-link:hover {
    color: #1a1f71;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 31, 113, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-nav:hover {
    background: #1a1f71;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav-prev {
    left: 20px;
}

.carousel-nav-next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: #4c5fd5;
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #1a1f71;
    width: 30px;
    border-radius: 5px;
}

/* Hero Spotlight Styles */
.hero-spotlight {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0f51 0%, #1a1f71 50%, #4c5fd5 100%);
}

.spotlight-carousel {
    position: relative;
    height: 100%;
}

.spotlight-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.spotlight-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px 0;
    color: white;
}

.spotlight-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.spotlight-text {
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.spotlight-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff8c42, #f9c74f);
    color: #1a1f71;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.spotlight-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #f9c74f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.spotlight-subtitle {
    font-size: 1.3rem;
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.5;
}

.spotlight-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.spotlight-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.spotlight-visual {
    position: relative;
    animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.spotlight-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.spotlight-visual:hover .spotlight-image {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.spotlight-book-cover {
    width: 280px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border-radius: 10px;
    margin: 0 auto;
    display: block;
}

.spotlight-testimonial {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #f9c74f;
    backdrop-filter: blur(10px);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.testimonial-author {
    text-align: right;
    font-weight: 600;
    color: #f9c74f;
}

.spotlight-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.spotlight-nav-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.spotlight-nav-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.spotlight-indicators {
    display: flex;
    gap: 10px;
}

.spotlight-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spotlight-dot.active {
    background: #f9c74f;
    width: 30px;
    border-radius: 5px;
}

/* Content Ticker Styles */
.content-ticker {
    background: #0a0f51;
    color: white;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    border-top: 2px solid #f9c74f;
    border-bottom: 2px solid #f9c74f;
}

.ticker-wrapper {
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    animation: scroll-ticker 30s linear infinite;
    white-space: nowrap;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.ticker-item {
    padding: 0 40px;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.ticker-separator {
    color: #f9c74f;
    margin: 0 40px;
    font-weight: bold;
}

.ticker-badge {
    background: #ff8c42;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Featured Story Section */
.featured-story-section {
    padding: 80px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.featured-story-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.featured-header {
    text-align: center;
    margin-bottom: 50px;
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1a1f71, #4c5fd5);
    color: white;
    padding: 8px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.featured-story-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.featured-media {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.featured-video-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,140,66,0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-details h3 {
    font-size: 2.5rem;
    color: #1a1f71;
    margin-bottom: 20px;
    line-height: 1.2;
}

.featured-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
}

.featured-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 30px;
}

/* Dynamic Metrics Dashboard */
.metrics-dashboard {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 0;
    position: relative;
}

.metrics-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.metric-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.metric-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1f71;
    margin-bottom: 5px;
    position: relative;
}

.metric-label {
    color: #666;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-trend {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #28a745;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Time-Based Content */
.time-content {
    padding: 60px 0;
    background: white;
}

.time-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.time-greeting {
    font-size: 2rem;
    color: #1a1f71;
    margin-bottom: 10px;
}

.time-suggestion {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

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

.time-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.time-card:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Mobile responsive styles */
@media (max-width: 1200px) {
    .carousel-posts-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav-prev {
        left: 10px;
    }
    
    .carousel-nav-next {
        right: 10px;
    }
    
    .post-image-container {
        height: 180px;
    }
    
    .carousel-track {
        min-height: auto;
    }
    
    /* Mobile styles for new features */
    .spotlight-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .spotlight-title {
        font-size: 2rem;
    }
    
    .spotlight-visual {
        order: -1;
        margin-bottom: 30px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .time-content-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-story-content {
        grid-template-columns: 1fr;
    }
    
    .featured-media {
        margin-bottom: 30px;
    }
    
    @media (max-width: 600px) {
        .metrics-grid {
            grid-template-columns: 1fr;
        }
    }
}

/* Disable animations when toggled off */
.no-animations * {
    animation: none !important;
    transition: none !important;
}

.no-animations .ticker-content {
    animation: none !important;
}