/* CSS Variables & Reset */
:root {
    --primary-dark: #0a192f;
    --primary-blue: #112240;
    --accent-sky: #64ffda;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --bg-light: #f4f6f8; /* Soft gray for readability in main body if desired, or go full dark. */
    --white: #ffffff;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 30px -15px rgba(2,12,27,0.1);
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: #333;
    line-height: 1.6;
}

/* Header / Ribbon */
.main-header {
    background-color: var(--primary-dark);
    color: var(--text-primary);
    padding: 2rem 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-bottom: 2px solid var(--accent-sky);
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.vol-tag {
    color: var(--accent-sky);
    font-size: 1.2rem;
    font-weight: 400;
    vertical-align: middle;
}

.subtitle {
    font-family: 'Merriweather', serif;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Intro */
.intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.intro h2 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* Sections */
.news-section {
    margin-bottom: 4rem;
    scroll-margin-top: 140px; /* Offset for sticky header */
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.section-header ion-icon {
    font-size: 1.8rem;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    font-weight: 600;
}

/* Specific Header Accents */
.pharma-header { border-color: #e57373; }
.pharma-header ion-icon { color: #e57373; }

.hospital-header { border-color: #4db6ac; }
.hospital-header ion-icon { color: #4db6ac; }

.healthtech-header { border-color: #7986cb; }
.healthtech-header ion-icon { color: #7986cb; }


/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Cards */
.news-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid transparent;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -15px rgba(2,12,27,0.2);
    border-color: rgba(100, 255, 218, 0.3);
}

.news-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-source {
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.news-date {
    color: #999;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.read-more {
    display: inline-block;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.read-more:hover {
    color: #2980b9;
}

/* Scroll Nav / Footer */
.scroll-nav-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.scroll-nav-container.visible {
    opacity: 1;
    pointer-events: auto;
}

.nav-btn, .scroll-up-btn {
    background: var(--primary-dark);
    color: var(--accent-sky);
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s, background 0.2s;
    text-align: center;
    min-width: 100px;
}

.scroll-up-btn {
    background: var(--accent-sky);
    color: var(--primary-dark);
}

.nav-btn:hover {
    background: var(--primary-blue);
    transform: translateX(-5px);
}

.scroll-up-btn:hover {
    background: #fff;
    transform: translateY(-3px);
}

.main-footer {
    background: var(--primary-dark);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title { font-size: 1.8rem; }
    .news-grid { grid-template-columns: 1fr; }
    .scroll-nav-container { bottom: 1rem; right: 1rem; }
    .nav-btn { font-size: 0.8rem; padding: 0.6rem 1rem; min-width: 80px;}
}
