@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================
   Design Tokens & Variables (Premium Light Theme)
   ========================================== */
:root {
    --bg-dark: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.75);
    --border-glass: rgba(15, 23, 42, 0.06);
    --border-glass-hover: rgba(15, 23, 42, 0.12);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-red: #e11d48;
    --accent-blue: #2563eb;
    --accent-purple: #6366f1;
    --accent-pink: #db2777;
    --gradient-primary: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(99, 102, 241, 0.08) 50%, rgba(219, 39, 119, 0.08) 100%);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.12);
    
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    --max-width: 1300px;
    --header-height: 80px;
}

/* ==========================================
   Reset & Base Styles
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Mesh Background Glows (Premium Light Mode Accent Blobs) */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(219, 39, 119, 0.05) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, textarea, select {
    font-family: inherit;
    background: none;
    border: none;
    outline: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* ==========================================
   Typography & Utilities
   ========================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-glass {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
}

.bg-glass:hover {
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    background: var(--gradient-primary);
    color: white !important;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    border: 1.5px solid var(--border-glass-hover);
    color: var(--text-secondary);
    font-weight: 550;
    cursor: pointer;
    background: white;
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    background: var(--bg-dark);
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.red-indicator {
    background-color: var(--accent-red);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ==========================================
   Header & User Authentication Menu
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-normal);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    display: inline-block;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.mobile-only-item {
    display: none;
}


.nav-link {
    font-weight: 550;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* User Menu / Avatar Dropdown */
.user-menu-container {
    position: relative;
}

.nav-signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    border: 1.5px solid var(--border-glass-hover);
    cursor: pointer;
    transition: var(--transition-normal);
}

.nav-signin-btn:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: var(--text-primary);
}

.user-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.15);
    border: 2px solid white;
}

.avatar-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 220px;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
    z-index: 110;
}

.user-menu-container:hover .avatar-dropdown,
.avatar-dropdown.active {
    display: flex;
}

.dropdown-user-info {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--border-glass);
}

.dropdown-user-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dropdown-user-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dropdown-item {
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.dropdown-item.logout-item:hover {
    color: var(--accent-red);
    background: rgba(225, 29, 72, 0.05);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* ==========================================
   Trending Scroller Bar
   ========================================== */
.trending-bar-wrapper {
    margin-top: calc(var(--header-height) + 1.25rem);
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.8rem;
}

.trending-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    overflow: hidden;
}

.trending-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-red);
    white-space: nowrap;
}

.trending-pills {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.2rem 0;
}

.trending-pills::-webkit-scrollbar {
    display: none;
}

.trending-pill {
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 550;
    background: white;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition-normal);
}

.trending-pill:hover {
    border-color: var(--accent-red);
    color: var(--text-primary);
    background: rgba(225, 29, 72, 0.04);
}

/* ==========================================
   Search / Category Filter Row
   ========================================== */
.category-pill {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 550;
    cursor: pointer;
    background: white;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.category-pill:hover {
    border-color: var(--border-glass-hover);
    color: var(--text-primary);
}

.category-pill.active {
    background: var(--text-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.4);
}

/* ==========================================
   Editorial Portal Layout (3 Columns - Light)
   ========================================== */
.portal-section-title {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.5rem;
}

.portal-section-title::before {
    content: '';
    width: 4px;
    height: 1.1rem;
    background: var(--accent-red);
    display: inline-block;
    border-radius: 2px;
}

.portal-grid {
    display: grid;
    grid-template-columns: 0.95fr 2fr 1.1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 3.5rem;
}

/* --- COLUMN 1: Headlines List --- */
.headlines-col {
    display: flex;
    flex-direction: column;
}

.headlines-list {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
}

.headline-item-text {
    padding: 1.1rem 0;
    border-bottom: 1px dashed var(--border-glass);
    transition: var(--transition-fast);
}

.headline-item-text:first-child {
    padding-top: 0;
}

.headline-item-text:last-child {
    border-bottom: none;
}

.headline-item-text a {
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.45;
    color: var(--text-primary);
    display: block;
}

.headline-item-text a:hover {
    color: var(--accent-red);
}

.headline-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    display: block;
}

/* --- COLUMN 2: Highlights Grid --- */
.highlights-col {
    display: flex;
    flex-direction: column;
}

.highlights-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    height: 100%;
}

.highlight-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.highlight-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.hl-img-wrapper {
    height: 165px;
    overflow: hidden;
}

.hl-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.highlight-card:hover .hl-img {
    transform: scale(1.04);
}

.hl-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hl-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.hl-cat {
    color: var(--accent-red);
    font-weight: 700;
    text-transform: uppercase;
}

.hl-title {
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hl-title a:hover {
    color: var(--accent-red);
}

.hl-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
}

/* --- COLUMN 3: Special Picks Sidebar --- */
.special-col {
    display: flex;
    flex-direction: column;
}

.special-picks-box {
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.25rem;
    background: white;
}

.special-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.special-item {
    display: grid;
    grid-template-columns: 75px 1fr;
    gap: 0.8rem;
    align-items: center;
    border-bottom: 1px dashed var(--border-glass);
    padding-bottom: 1.2rem;
}

.special-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.special-thumb {
    width: 75px;
    height: 75px;
    border-radius: 8px;
    object-fit: cover;
}

.special-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

.special-title a:hover {
    color: var(--accent-red);
}

.special-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.3rem;
}

/* ==========================================
   Visual Stories Section (Horizontal Slider)
   ========================================== */
.stories-section {
    margin-bottom: 3.5rem;
}

.stories-slider {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
}

.stories-slider::-webkit-scrollbar {
    height: 4px;
}

.story-card {
    flex: 0 0 160px;
    aspect-ratio: 9/16;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.story-card:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: var(--shadow-md);
}

.story-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.story-card:hover .story-bg-img {
    transform: scale(1.05);
}

.story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(0,0,0,0) 100%);
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.story-title {
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.3;
    color: white;
}

/* Story Modal Overlay */
.story-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.story-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.story-popup-box {
    max-width: 400px;
    width: 90%;
    aspect-ratio: 9/16;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-popup-overlay.active .story-popup-box {
    transform: scale(1);
}

.story-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
}

.story-popup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-popup-content-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 2rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.7) 65%, rgba(0,0,0,0) 100%);
}

.story-popup-tag {
    color: #fda4af;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

.story-popup-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: white;
}

.story-popup-desc {
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* ==========================================
   Video / Case Studies Section (Light)
   ========================================== */
.videos-section {
    margin-bottom: 5rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.video-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-glass);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.video-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-md);
}

.video-thumbnail-wrapper {
    height: 175px;
    position: relative;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.video-card:hover .video-thumbnail {
    transform: scale(1.03);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.35);
    transition: var(--transition-fast);
}

.video-card:hover .video-play-btn {
    background: white;
    color: var(--accent-red);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-body {
    padding: 1.2rem;
}

.video-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.35;
    color: var(--text-primary);
}

.video-title a:hover {
    color: var(--accent-red);
}

/* ==========================================
   Newsletter & Footer
   ========================================== */
.newsletter-section {
    margin-bottom: 5rem;
}

.newsletter-box {
    border-radius: 24px;
    padding: 3.5rem 2rem;
    text-align: center;
    background: white;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
}

.news-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.news-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 2rem auto;
}

.news-form {
    display: flex;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.8rem;
}

.news-input {
    flex: 1;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #f8fafc;
    border: 1.5px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.news-input:focus {
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
    border-color: rgba(225, 29, 72, 0.3);
}

.form-message {
    margin-top: 1rem;
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    color: #10b981;
    display: block;
}

.footer {
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0 2.5rem 0;
    background: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 0.8rem;
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-links-col h4 {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

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

.footer-link:hover {
    color: var(--accent-red);
    padding-left: 3px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.social-link:hover {
    color: var(--accent-red);
    transform: translateY(-2px);
}

/* ==========================================
   Article Detail & Sidebars (Light)
   ========================================== */
.post-layout {
    padding: 8rem 0 6rem 0;
    display: grid;
    grid-template-columns: 3fr 1.15fr;
    gap: 3.5rem;
}

.post-header {
    margin-bottom: 2.5rem;
}

.post-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-top: 1rem;
    margin-bottom: 1.8rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.post-category {
    padding: 0.25rem 0.9rem;
    border-radius: 50px;
    background: rgba(225, 29, 72, 0.08);
    color: var(--accent-red);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.05rem;
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.15);
}

.author-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.author-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.post-hero-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155; /* optimized readable slate-700 */
}

.post-body p {
    margin-bottom: 1.6rem;
}

.post-body h3 {
    font-size: 1.55rem;
    margin: 2.5rem 0 1.1rem 0;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.4rem;
}

.post-body h3::before {
    content: '';
    width: 4px;
    height: 1.1rem;
    background: var(--accent-red);
    display: inline-block;
    border-radius: 1px;
    margin-right: 0.5rem;
}

.post-body ol, .post-body ul {
    margin: 0 0 2rem 1.5rem;
}

.post-body li {
    margin-bottom: 0.6rem;
}

.post-body blockquote {
    border-left: 4px solid var(--accent-red);
    padding: 1.2rem 1.8rem;
    background: rgba(225, 29, 72, 0.02);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.18rem;
    margin: 2.2rem 0;
    color: #1e293b;
}

.info-box {
    background: rgba(37, 99, 235, 0.04);
    border-left: 4px solid var(--accent-blue);
    padding: 1.2rem;
    border-radius: 0 12px 12px 0;
    margin: 2.2rem 0;
    font-size: 1rem;
    color: #1e293b;
}

.post-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
    margin: 3rem 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    background: none;
    box-shadow: none;
}

.action-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--border-glass);
    background: white;
}

.action-item.like-button:hover, .action-item.like-button.liked {
    background: rgba(219, 39, 119, 0.05);
    color: var(--accent-pink);
    border-color: rgba(219, 39, 119, 0.2);
}

.action-item.share-button:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--accent-blue);
    border-color: rgba(37, 99, 235, 0.2);
}

.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sidebar-widget {
    border-radius: 16px;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-glass);
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.toc-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.toc-link:hover, .toc-link.active {
    color: var(--accent-red);
    padding-left: 2px;
}

.share-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.share-btn-vert {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--border-glass);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.share-btn-vert:hover {
    background: white;
    border-color: var(--border-glass-hover);
    transform: translateX(4px);
}

.share-btn-vert.copy:hover { color: var(--accent-purple); }
.share-btn-vert.twitter:hover { color: #1da1f2; }
.share-btn-vert.linkedin:hover { color: #0077b5; }

.comments-section {
    margin-top: 3.5rem;
}

.comments-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.comment-input, .comment-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.92rem;
    background: white;
    border: 1px solid var(--border-glass);
}

.comment-textarea {
    min-height: 100px;
}

.comment-input:focus, .comment-textarea:focus {
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
    border-color: rgba(225, 29, 72, 0.3);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-card {
    border-radius: 12px;
    padding: 1.2rem;
    background: white;
    border: 1px solid var(--border-glass);
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}

.comment-author {
    font-weight: 700;
}

.comment-date {
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================
   Creator Studio Dashboard (write.html)
   ========================================== */
.studio-layout {
    padding: 8rem 0 6rem 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3.5rem;
}

.studio-editor {
    background: white;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
}

.studio-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.92rem;
    font-weight: 600;
}

.studio-input, .studio-select, .studio-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #f8fafc;
    border: 1px solid var(--border-glass);
}

.studio-textarea {
    min-height: 300px;
    resize: vertical;
}

.studio-input:focus, .studio-select:focus, .studio-textarea:focus {
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
    border-color: rgba(225, 29, 72, 0.3);
}

.preview-container {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    align-self: start;
    border-radius: 16px;
    padding: 2rem;
    max-height: 80vh;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 350px;
    color: var(--text-muted);
    text-align: center;
}

.preview-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.preview-article-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.preview-article-img {
    border-radius: 12px;
    margin: 1.25rem 0;
    width: 100%;
    max-height: 250px;
    object-fit: cover;
}

.preview-article-body {
    font-size: 0.98rem;
    color: var(--text-secondary);
}

/* ==========================================
   Authentication & Profile Modals (Overlay Styles)
   ========================================== */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.auth-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal-box {
    max-width: 440px;
    width: 90%;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-glass);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.auth-modal-overlay.active .auth-modal-box {
    transform: scale(1);
}

.auth-tab-row {
    display: flex;
    gap: 1rem;
    border-bottom: 1.5px solid var(--border-glass);
    margin-bottom: 1.8rem;
    padding-bottom: 0.4rem;
}

.auth-tab-btn {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    padding-bottom: 0.5rem;
    position: relative;
}

.auth-tab-btn.active {
    color: var(--text-primary);
}

.auth-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-red);
}

/* User Dashboard Profile Modal (Larger) */
.profile-modal-box {
    max-width: 800px;
    width: 95%;
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-glass);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.auth-modal-overlay.active .profile-modal-box {
    transform: scale(1);
}

.profile-dashboard-layout {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.profile-details-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid var(--border-glass);
    padding-right: 2rem;
}

.profile-large-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    border: 3px solid white;
    margin-bottom: 1rem;
}

.profile-saved-lists {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.list-sub-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.list-sub-section h4 {
    font-size: 1rem;
    color: var(--text-primary);
    border-bottom: 1.5px solid var(--border-glass);
    padding-bottom: 0.4rem;
    margin-bottom: 0.5rem;
}

.profile-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 180px;
    overflow-y: auto;
}

.profile-list-link {
    font-size: 0.88rem;
    color: var(--accent-blue);
    font-weight: 550;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-list-link:hover {
    color: var(--accent-red);
}

/* ==========================================
   Responsive Adaptations
   ========================================== */
@media (max-width: 1200px) {
    .portal-grid {
        grid-template-columns: 1.3fr 1.7fr;
    }
    .headlines-col { grid-column: 1; }
    .highlights-col { grid-column: 2; }
    .special-col { grid-column: 1 / -1; }
    .special-picks-box { margin-top: 1rem; }
    .special-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .special-item { border-bottom: none; padding-bottom: 0; }
    .highlights-cards-grid { grid-template-columns: 1fr 1fr; }
    .highlight-card:last-child { display: none; }
    .videos-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 1024px) {
    .post-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .post-sidebar { flex-direction: row; flex-wrap: wrap; }
    .sidebar-widget { flex: 1; min-width: 250px; }
    .studio-layout { grid-template-columns: 1fr; }
    .preview-container { position: static; max-height: none; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .mobile-menu-btn { display: block; }
    
    /* Header layout space improvements */
    #nav-subscribe-btn { display: none !important; }
    .mobile-only-item { display: block !important; }
    .logo { font-size: 1.05rem !important; }
    .logo img { height: 38px !important; width: 38px !important; }
    .nav-menu-wrapper { gap: 1rem; }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 2.2rem;
        transition: var(--transition-normal);
        z-index: 99;
        border-top: 1px solid var(--border-glass);
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.active { left: 0; }
    
    .portal-grid { grid-template-columns: 1fr; gap: 2rem; }
    .headlines-col, .highlights-col, .special-col { grid-column: 1; }
    .highlights-cards-grid { grid-template-columns: 1fr; }
    .highlight-card:last-child { display: flex; }
    .special-list { grid-template-columns: 1fr; gap: 1.2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .news-form { flex-direction: column; border-radius: 8px; gap: 0.8rem; }
    .news-input { width: 100%; }
    .news-form .btn-primary { width: 100%; }
    .post-title { font-size: 2.2rem; }
    
    .profile-dashboard-layout {
        grid-template-columns: 1fr;
    }
    .profile-details-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
        padding-right: 0;
        padding-bottom: 1.5rem;
    }
    
    /* Horizontal Swiping Categories */
    .categories-container {
        overflow-x: auto !important;
        white-space: nowrap;
        width: 100% !important;
        padding: 0.4rem 0 !important;
        flex: none !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .categories-container::-webkit-scrollbar {
        display: none !important;
    }
    .category-pill {
        display: inline-block;
        flex: none;
    }
    .search-box {
        max-width: 100% !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
    }
    
    /* Case Studies Grid Collapse */
    .videos-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .trending-pills {
        flex: 1 !important;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .portal-section-title { font-size: 1.3rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1.2rem; text-align: center; }
    .post-title { font-size: 1.8rem; }
    
    /* Modal container paddings fit */
    .auth-modal-box, .profile-modal-box {
        padding: 1.8rem 1.1rem !important;
        width: 92% !important;
    }
    .profile-large-avatar {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

