/* Tech Pulse – Dark Theme */

.pulse-hero {
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), 
                url('/tech_pulse/media/tech_pulse_hero.jpg') center/cover no-repeat;
    color: white;
    padding: 6rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.pulse-hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(102, 0, 204, 0.4);
}

.pulse-hero p {
    font-size: 1.35rem;
    max-width: 720px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Main Grid */
.pulse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.pulse-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.pulse-card:hover {
    transform: translateY(-6px);
    border-color: #6600cc;
    box-shadow: 0 12px 30px rgba(102, 0, 204, 0.25);
}

.pulse-card-content {
    padding: 1.75rem;
    color: #e0e0e0;
}

.pulse-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.75rem;
}

.external-repost {
    border-left: 5px solid #6600cc;
    background: #1f1b2e;
}

/* Filters */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2.5rem 0;
}

.chip {
    padding: 10px 20px;
    border: 1px solid #444;
    border-radius: 9999px;
    cursor: pointer;
    background: #1a1a1a;
    color: #ccc;
    transition: all 0.2s;
}

.chip.active {
    background: #6600cc;
    color: white;
    border-color: #6600cc;
}

/* Load More */
.load-more {
    display: block;
    margin: 3.5rem auto;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: var(--color-accent);
    color: var(--color-text-primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.load-more:hover {
    background-color: var(--color-accent-hover);
}

/* Typography tweaks */
.pulse-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.35rem;
    line-height: 1.3;
}

.pulse-card p {
    color: #bbb;
    line-height: 1.55;
}

.pulse-card img {
    transition: transform 0.4s ease;
}

.pulse-card:hover img {
    transform: scale(1.05);
}

/* =============================================
   CORPORATE CTA BUTTON – Aligned with viable.works
   ============================================= */

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--color-accent);
    color: var(--color-text-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-family: "Open Sans", Arial, sans-serif;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    background-color: var(--color-accent-hover);
}

/* Variant for smaller buttons inside cards */
.cta-button.small {
    padding: 0.5rem 1.2rem;
    font-size: 0.93rem;
}

/* =============================================
   FEATURED CAROUSEL – FIXED BOUNDING BOX
   ============================================= */

#featured-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
    height: 520px;
    background: #1a1a1a;
}

.featured-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: none;
    display: flex;
    flex-direction: column;
}

.featured-slide.active {
    opacity: 1;
    display: flex;
}

.featured-slide img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.featured-slide .pulse-card-content {
    flex: 1;
    padding: 2rem;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-slide .pulse-card-content h3 {
    margin-bottom: 1rem;
}

/* Navigation arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
}

.carousel-nav.prev { left: 20px; }
.carousel-nav.next { right: 20px; }

/* Button positioning */
.cta-button {
    margin-top: auto;
}