/* ===================================
   PROFESSIONAL BLOG CSS - BP FINANS
   Clean, centered blog layout
   =================================== */

/* Variables for consistency */
:root {
    --primary-blue: #00A7E1;
    --primary-dark: #041C2C;
    --accent-yellow: #FFC107;
    --accent-green: #00E676;
    --accent-red: #FF5252;
    --text-white: #ffffff;
    --text-gray: rgba(255, 255, 255, 0.8);
    --text-light-gray: rgba(255, 255, 255, 0.6);
    --background-dark: #0f1419;
    --background-secondary: rgba(4, 28, 44, 0.6);
    --border-blue: rgba(0, 167, 225, 0.3);
    --shadow-blue: rgba(0, 167, 225, 0.2);
}

/* ===================================
   COMPACT BLOG HERO SECTION
   =================================== */

.blog-hero {
    background: linear-gradient(135deg, rgba(4, 28, 44, 0.8), rgba(0, 167, 225, 0.1));
    min-height: calc(100vh - 80px);
    padding: 4rem 0 1.5rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-blue);
}

/* Character styling */
.hero-character {
    position: absolute;
    bottom: 0;
    left: 2rem;
    width: 320px;
    height: auto;
    z-index: 4;
    animation: characterFloat 6s ease-in-out infinite;
}

@keyframes characterFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(0, 167, 225, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.hero-description .highlight {
    color: var(--accent-yellow);
    font-weight: 600;
}

.hero-focus {
    max-width: 800px;
    margin: 1.5rem auto 0;
    background: rgba(0, 167, 225, 0.1);
    border: var(--accent-yellow) 3px solid;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
}

.philosophy-text {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
    text-align: center;
}

.intro-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-yellow), #FF8F00);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.intro-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 193, 7, 0.4);
    text-decoration: none;
    color: #1a1a1a;
}

/* Blog post preview box */
.blog-preview-box {
    position: absolute;
    bottom: 220px;
    left: 220px;
    background: linear-gradient(135deg, rgba(4, 28, 44, 0.95), rgba(4, 28, 44, 0.9));
    border: var(--accent-yellow) 3px solid;
    border-radius: 15px;
    padding: 1.5rem;
    max-width: 260px;
    box-shadow: 0 10px 30px rgba(0, 167, 225, 0.3), 0 0 20px rgba(255, 193, 7, 0.3);
    z-index: 5;
    animation: boxPulse 4s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

@keyframes boxPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.blog-preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.blog-preview-icon {
    background: var(--accent-yellow);
    color: var(--primary-dark);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.blog-preview-label {
    color: var(--accent-yellow);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-preview-title {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-preview-excerpt {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.blog-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-yellow);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-preview-link:hover {
    color: #FFE082;
    text-decoration: none;
    transform: translateX(3px);
}

/* Windows 98 Computer */
.windows-computer {
    position: absolute;
    bottom: 20px;
    right: 620px;
    z-index: 3;
    animation: computerFloat 8s ease-in-out infinite;
    transform: scale(1.7);
}

.computer-monitor {
    right: 90px;
    width: 420px;
    height: 350px;
    margin-bottom: 80px;
    background: linear-gradient(145deg, #e0e0e0, #c0c0c0);
    border-radius: 12px 12px 0 0;
    border: 3px solid #999;
    position: relative;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
}

.computer-screen {
    width: 380px;
    height: 300px;
    background: #008080;
    margin: 15px auto 0;
    border: 2px inset #999;
    position: relative;
    overflow: hidden;
}

.windows-title-bar {
    height: 20px;
    background: linear-gradient(90deg, #008080, #004040);
    display: flex;
    align-items: center;
    padding: 0 5px;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    color: white;
    font-weight: bold;
}

.windows-content {
    padding: 10px;
    height: 280px;
    background: #c0c0c0;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    color: #000;
}

.windows-text {
    background: white;
    border: 1px inset #999;
    padding: 8px;
    height: 260px;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    line-height: 1.3;
}

.typewriter-text {
    border-right: 2px solid #000;
    animation: typewriter 4s steps(60) 1s forwards, blink 1s infinite;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
}

@keyframes typewriter {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: #000; }
    51%, 100% { border-color: transparent; }
}

.computer-base {
    width: 320px;
    height: 30px;
    background: linear-gradient(145deg, #d0d0d0, #a0a0a0);
    border-radius: 0 0 8px 8px;
    border: 2px solid #999;
    margin: -2px auto 0;
}

@keyframes computerFloat {
    0%, 100% { transform: scale(1.7) translateY(0px) rotate(0deg); }
    50% { transform: scale(1.7) translateY(-8px) rotate(1deg); }
}

/* iPhone 1 */
.iphone-classic {
    position: absolute;
    bottom: 180px;
    right: min(180px, 12vw);
    z-index: 3;
    animation: phoneFloat 6s ease-in-out infinite;
    transform: scale(1.9);
}

.iphone-body {
    width: 240px;
    height: 350px;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 25px;
    border: 3px solid #333;
    position: relative;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.4);
}

.iphone-screen {
    width: 200px;
    height: 260px;
    background: #000;
    margin: 25px auto 0;
    border-radius: 8px;
    border: 2px solid #444;
    position: relative;
    overflow: hidden;
}

.iphone-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #4a90e2, #2c5aa0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
    font-family: 'Helvetica', sans-serif;
    font-size: 8px;
    color: white;
    text-align: center;
}

.iphone-title {
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 9px;
}

.iphone-text {
    line-height: 1.2;
    opacity: 0;
    animation: fadeInText 3s ease-in 2s forwards;
}

.iphone-home-button {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #333, #111);
    border-radius: 50%;
    border: 2px solid #555;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes phoneFloat {
    0%, 100% { transform: scale(1.9) translateY(0px) rotate(0deg); }
    50% { transform: scale(1.9) translateY(-6px) rotate(-1deg); }
}

@keyframes fadeInText {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===================================
   BLOG FILTERS & SEARCH
   =================================== */

.blog-filters {
    background: rgba(4, 28, 44, 0.3);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-blue);
    scroll-margin-top: 100px;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.filter-section {
    flex: 1;
}

.filter-section h2 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.category-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    border: 1px solid var(--border-blue);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(0, 167, 225, 0.15);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

.search-section {
    flex-shrink: 0;
    align-self: flex-start;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    min-width: 280px;
}

.search-input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-blue);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.1);
}

.search-input::placeholder {
    color: var(--text-light-gray);
}

.search-btn {
    padding: 0.8rem 1.2rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #0090c1;
    transform: translateY(-1px);
}

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

.blog-content {
    background: #0A1B2A;
    padding: 4rem 0;
    min-height: 800px;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===================================
   FEATURED CONTENT GRID LAYOUT
   =================================== */

.main-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: start;
}

/* Featured Article (stor, til venstre) */
.featured-article {
    background: linear-gradient(135deg, rgba(4, 28, 44, 0.9), rgba(2, 17, 27, 0.9));
    border: 3px solid #00A7E1;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0 20px rgba(0, 167, 225, 0.4);
}

.featured-article:hover {
    transform: translateY(-2px);
    border-color: #00A7E1;
    box-shadow: 0 0 30px rgba(0, 167, 225, 0.6);
}

.featured-content .article-meta {
    margin-bottom: 1rem;
}

.featured-content .article-title {
    color: var(--text-white);
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
}

.featured-content .article-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.featured-content .article-stats {
    margin-bottom: 1.5rem;
}

/* Sidebar med to artikler (høyre side) */
.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.sidebar-article {
    background: linear-gradient(135deg, rgba(4, 28, 44, 0.9), rgba(2, 17, 27, 0.9));
    border: 3px solid #00A7E1;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0 15px rgba(0, 167, 225, 0.4);
}

.sidebar-article:hover {
    transform: translateY(-2px);
    border-color: #00A7E1;
    box-shadow: 0 0 25px rgba(0, 167, 225, 0.6);
}

.sidebar-article .article-meta {
    margin-bottom: 0.75rem;
}

.sidebar-article h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-white);
    font-weight: 600;
}

.sidebar-article .article-excerpt {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.sidebar-article .article-stats-small {
    margin-bottom: 1rem;
}

/* ===================================
   ARTICLES SECTION
   =================================== */

.articles-section {
    margin-top: 1rem;
}

/* 3-kolonne grid for hovedartikler */
.articles-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.article-item {
    background: linear-gradient(135deg, rgba(4, 28, 44, 0.9), rgba(2, 17, 27, 0.9));
    border: 3px solid #00A7E1;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: fit-content;
    box-shadow: 0 0 15px rgba(0, 167, 225, 0.4);
}

.article-item:hover {
    transform: translateY(-4px);
    border-color: #00A7E1;
    box-shadow: 0 0 25px rgba(0, 167, 225, 0.6);
}

.article-image {
    height: 180px;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 167, 225, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-blue);
}

.article-placeholder {
    font-size: 3rem;
    opacity: 0.7;
    filter: drop-shadow(0 0 10px rgba(0, 167, 225, 0.2));
}

.article-item-read-time {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.article-content {
    padding: 1.25rem;
}

.article-item-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-item-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-white);
    font-weight: 600;
}

.article-item-excerpt {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.article-read-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-read-more:hover {
    color: var(--text-white);
    text-decoration: none;
    transform: translateX(3px);
}

.article-read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.article-read-more:hover::after {
    transform: translateX(3px);
}

/* ===================================
   SHARED COMPONENTS
   =================================== */

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid;
}

.date {
    color: var(--text-light-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.article-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.article-stats-small {
    display: flex;
    gap: 1rem;
    color: var(--text-light-gray);
    font-size: 0.85rem;
}

.stat {
    color: var(--text-light-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

.read-more-link {
    color: var(--text-white);
    background: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
}

.read-more-link:hover {
    background: #0090c1;
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 167, 225, 0.3);
}

/* ===================================
   LOAD MORE & NEWSLETTER
   =================================== */

.load-more-section {
    text-align: center;
    margin: 4rem 0;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--primary-blue), #0090c1);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 167, 225, 0.3);
}

.load-more-info {
    color: var(--text-light-gray);
    font-size: 0.9rem;
}

.newsletter-section {
    background: linear-gradient(135deg, rgba(0, 167, 225, 0.1), rgba(0, 167, 225, 0.05));
    border: 1px solid var(--primary-blue);
    border-radius: 15px;
    padding: 3rem;
    margin: 4rem 0;
    text-align: center;
}

.newsletter-title {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.newsletter-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 167, 225, 0.3);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 1rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-input::placeholder {
    color: var(--text-light-gray);
}

.newsletter-btn {
    padding: 1rem 2rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #0090c1;
    transform: translateY(-2px);
}

/* ===================================
   CATEGORY COLORS
   =================================== */

.category[data-category="makro"] {
    color: var(--accent-green);
    border-color: var(--accent-green);
    background: rgba(0, 230, 118, 0.1);
}

.category[data-category="aksjer"] {
    color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    background: rgba(255, 193, 7, 0.1);
}

.category[data-category="psykologi"] {
    color: var(--accent-red);
    border-color: var(--accent-red);
    background: rgba(255, 82, 82, 0.1);
}

.category[data-category="teknologi"] {
    color: #9C27B0;
    border-color: #9C27B0;
    background: rgba(156, 39, 176, 0.1);
}

.category[data-category="personlig"] {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    background: rgba(0, 167, 225, 0.1);
}

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

@media (max-width: 1200px) {
    .main-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-sidebar {
        flex-direction: row;
        gap: 1rem;
    }
    
    .sidebar-article {
        flex: 1;
    }
    
    .articles-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .windows-computer {
        right: 450px;
        bottom: 10px;
        transform: scale(1.4);
    }
    
    .iphone-classic {
        right: min(140px, 10vw);
        bottom: 160px;
        transform: scale(1.7);
    }
}

@media (max-width: 968px) {
    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .search-section {
        align-self: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .category-filters {
        justify-content: center;
        max-width: none;
    }
    
    .featured-sidebar {
        flex-direction: column;
    }
    
    .articles-list {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .featured-content .article-title {
        font-size: 1.6rem;
    }
    
    .windows-computer {
        right: 200px;
        transform: scale(1.3);
        bottom: 80px;
    }
    
    .iphone-classic {
        right: min(80px, 6vw);
        transform: scale(1.5);
        bottom: 120px;
    }
    
    .hero-character {
        width: 280px;
        left: 2rem;
    }
    
    .blog-preview-box {
        left: 160px;
        bottom: 180px;
        max-width: 220px;
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        min-height: calc(100vh - 60px);
        padding: 2rem 0 1.5rem;
    }
    
    .blog-content {
        padding: 3rem 0;
    }
    
    .blog-container {
        padding: 0 1.5rem;
    }
    
    .filter-container {
        gap: 1rem;
        padding: 0 1.5rem;
    }
    
    .hero-focus {
        padding: 1.25rem;
        margin: 1rem auto 0;
    }
    
    .featured-article {
        padding: 1.5rem;
    }
    
    .sidebar-article {
        padding: 1.25rem;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .newsletter-section {
        padding: 2rem;
        margin: 3rem 0;
    }
    
    .newsletter-form {
        flex-direction: column;
        max-width: 400px;
    }
    
    .newsletter-input {
        width: 100%;
    }
    
    .search-box {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .windows-computer {
        right: 180px;
        transform: scale(1.0);
        bottom: 60px;
    }
    
    .iphone-classic {
        right: min(60px, 5vw);
        transform: scale(1.2);
        bottom: 100px;
    }
    
    .hero-character {
        width: 240px;
        left: 2rem;
    }
    
    .blog-preview-box {
        left: 160px;
        bottom: 140px;
        max-width: 200px;
        padding: 1rem;
    }
    
    .hero-content {
        margin-left: 280px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-focus {
        padding: 1rem;
    }
    
    .philosophy-text {
        font-size: 0.9rem;
    }
    
    .featured-article {
        padding: 1.25rem;
    }
    
    .featured-content .article-title {
        font-size: 1.4rem;
    }
    
    .sidebar-article {
        padding: 1rem;
    }
    
    .article-content {
        padding: 0.875rem;
    }
    
    .article-item-title {
        font-size: 1rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .newsletter-section {
        padding: 1.5rem;
    }
    
    .windows-computer {
        right: 120px;
        transform: scale(0.8);
        bottom: 40px;
    }
    
    .iphone-classic {
        right: min(40px, 4vw);
        transform: scale(1.0);
        bottom: 80px;
    }
    
    .hero-character {
        width: 200px;
        left: 1.5rem;
    }
    
    .blog-preview-box {
        left: 130px;
        bottom: 100px;
        max-width: 180px;
        padding: 0.8rem;
    }
    
    .hero-content {
        margin-left: 220px;
    }
}

/* ===================================
   ANIMATIONS AND SMOOTH SCROLL
   =================================== */

html {
    scroll-behavior: smooth;
}

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

.article-item {
    animation: fadeInUp 0.6s ease-out;
}

.article-item:nth-child(1) { animation-delay: 0.1s; }
.article-item:nth-child(2) { animation-delay: 0.2s; }
.article-item:nth-child(3) { animation-delay: 0.3s; }
.article-item:nth-child(4) { animation-delay: 0.4s; }
.article-item:nth-child(5) { animation-delay: 0.5s; }
.article-item:nth-child(6) { animation-delay: 0.6s; }

/* ===================================
   UTILITY CLASSES
   =================================== */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus states for accessibility */
.search-input:focus,
.newsletter-input:focus {
    box-shadow: 0 0 0 2px rgba(0, 167, 225, 0.2);
}

.search-btn:focus,
.newsletter-btn:focus,
.load-more-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 167, 225, 0.4);
}