/* ==========================================
   SPH Media Top Stories - Straits Times Style
   ========================================== */

   :root {
    --sph-blue: #b10542;
    --sph-red: #D71920;
    --text-primary: #222;
    --text-secondary: #666;
    --border-color: #e5e5e5;
    --bg-light: #f8f9fa;
    --font-serif: 'PT Serif', serif;
    --font-sans: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    background: #fff;
}


/* ==========================================
   HEADER
   ========================================== */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.sph-logo {
    height: 35px;
    width: auto;
}

.logo {
    width: 150px;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-login,
.btn-subscribe,
.btn-menu {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-subscribe {
    background: var(--sph-blue);
    color: #fff;
    border-color: var(--sph-blue);
}

.btn-subscribe:hover {
    background: #002b5c;
    border-color: #002b5c;
    color: #fff;
}

.btn-login:hover,
.btn-menu:hover {
    border-color: var(--text-primary);
}

/* ==========================================
   NAVIGATION
   ========================================== */

.main-nav {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    border-bottom-color: var(--sph-red);
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Story */
.hero-story {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-excerpt {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-images {
    margin-top: 1.5rem;
}

.hero-images img {
    width: 100%;
    border-radius: 4px;
}

/* Secondary Stories */
.secondary-stories {
    margin-bottom: 10px;
    padding-bottom: 10px;
   
}

.story-card {
    margin-bottom: 1.5rem;
}

.story-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.story-title:hover {
    color: var(--sph-blue);
    cursor: pointer;
}

.story-card img {
    width: 100%;
    margin-top: 0.75rem;
    border-radius: 4px;
}

/* Section Blocks */


.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    font-size: 1.2rem;
}

/* Featured Story */
.featured-story {
    background: #fff;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.story-title-large {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.story-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Grid Stories */
.grid-story {
    margin-bottom: 1rem;
}

.grid-story img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.grid-story-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0;
}

.grid-story-title:hover {
    color: var(--sph-blue);
    cursor: pointer;
}

/* ==========================================
   SIDEBAR
   ========================================== */

.sidebar {
    padding-left: 2rem;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-title {
    font-family: var(--font-sans);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Trending */
.trending-item {
    margin-bottom: 1rem;
}

.trending-item .badge {
    background: var(--bg-light);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    border: 1px solid var(--border-color);
}

.trending-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-light);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

/* Sidebar Stories */
.sidebar-story {
    margin-bottom: 1.5rem;
}

.sidebar-story img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.sidebar-story-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0;
}

.sidebar-story-title:hover {
    color: var(--sph-blue);
    cursor: pointer;
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
    background: var(--bg-light);
    padding: 2rem 0;
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
}

.site-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

.site-footer a:hover {
    color: var(--sph-blue);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 991px) {
    .sidebar {
        padding-left: 0;
        margin-top: 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .story-title-large {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .header-actions {
        gap: 0.5rem;
    }

    .btn-login,
    .btn-subscribe,
    .btn-menu {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .nav-links {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        white-space: nowrap;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .story-title {
        font-size: 1.1rem;
    }

    .story-title-large {
        font-size: 1.3rem;
    }

    .grid-story-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .btn-login span,
    .btn-subscribe span {
        display: none;
    }

    .sph-logo {
        height: 28px;
    }
}

@media (max-width: 576px) {
    .logo {
        width: 100px;
    }
}