/* CSS Variables for PerthNow Color Scheme */
:root {
    --primary-red: #ed1c24;
    --black: #000000;
    --gray: #666666;
    --white: #ffffff;
    --light-gray: #f2f2f2;
    --blue: #007bff;
    --dark-gray: #333333;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo h1 {
    color: var(--primary-red);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* Search Form */
.search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-red);
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #d41920;
}

/* Navigation */
.nav-desktop {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-red);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--black);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger span.active:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger span.active:nth-child(2) {
    opacity: 0;
}

.hamburger span.active:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-mobile {
    display: none;
    background-color: var(--white);
    border-top: 1px solid var(--light-gray);
}

.nav-list-mobile {
    list-style: none;
    padding: 1rem;
}

.nav-list-mobile li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.nav-list-mobile li:last-child {
    border-bottom: none;
}

/* Hero Section */
.hero {
    margin-bottom: 3rem;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-main {
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
}

.hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red), #d41920);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-icon {
    font-size: 4rem;
    color: var(--white);
    opacity: 0.3;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.hero-content {
    color: var(--white);
    max-width: 600px;
}

.breaking-news {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-btn {
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-block;
}

.hero-btn:hover {
    background-color: #d41920;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(237, 28, 36, 0.3);
}

/* Hero Thumbnails */
.hero-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.thumbnail-icon {
    font-size: 2rem;
    color: var(--white);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.weather-bg { background: linear-gradient(135deg, #4A90E2, #357ABD); }
.property-bg { background: linear-gradient(135deg, #50C878, #3CB371); }
.business-bg { background: linear-gradient(135deg, #FF6B35, #E55A2B); }

.thumbnail-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 1rem;
    z-index: 2;
}

.thumbnail-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.thumbnail-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 12px;
    overflow: hidden;
}

.thumbnail-link:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.thumbnail-link:hover .thumbnail-icon {
    transform: scale(1.15) rotate(-5deg);
    opacity: 1;
}

.date {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.breadcrumb-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #d41920;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--gray);
    font-weight: 500;
}

/* Article Page Styles */
.article-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.article-full {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.article-header {
    padding: 2rem 2rem 1rem;
}

.article-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-badge {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.article-date {
    color: var(--gray);
    font-size: 0.875rem;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--black);
}

.article-meta-full {
    display: flex;
    gap: 2rem;
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.publish-time, .read-time {
    display: flex;
    align-items: center;
}

.article-featured-image {
    position: relative;
    margin-bottom: 2rem;
}

.article-featured-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.featured-icon {
    font-size: 6rem;
    color: var(--white);
    opacity: 0.3;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.metro-featured-bg { background: linear-gradient(135deg, var(--primary-red), #d41920); }
.glory-featured-bg { background: linear-gradient(135deg, #F39C12, #E67E22); }

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 1rem;
    font-size: 0.875rem;
}

.article-content-full {
    padding: 0 2rem 2rem;
}

.article-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 2rem;
    font-weight: 500;
}

.article-content-full h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
    color: var(--black);
}

.article-content-full p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--black);
}

.article-list {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.article-quote {
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-red);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.6;
}

.article-conclusion {
    background-color: var(--light-gray);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.article-footer {
    padding: 2rem;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-label {
    font-weight: 500;
    color: var(--gray);
}

.article-tag {
    background-color: var(--light-gray);
    color: var(--black);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.article-tag:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-label {
    font-weight: 500;
    color: var(--gray);
}

.share-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.share-link:hover {
    color: #d41920;
    text-decoration: underline;
}

/* Related Articles */
.related-articles {
    margin-top: 3rem;
}

.related-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--black);
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 0.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-article {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.related-article:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.related-article:hover .related-icon {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
}

.related-image-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-icon {
    font-size: 2.5rem;
    color: var(--white);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.transport-related-bg { background: linear-gradient(135deg, #3498DB, #2980B9); }
.cbd-related-bg { background: linear-gradient(135deg, #9B59B6, #8E44AD); }
.property-related-bg { background: linear-gradient(135deg, #50C878, #3CB371); }
.stadium-related-bg { background: linear-gradient(135deg, #1ABC9C, #16A085); }
.wafl-related-bg { background: linear-gradient(135deg, #E67E22, #D35400); }
.sport-related-bg { background: linear-gradient(135deg, #F39C12, #E67E22); }

.related-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.related-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--black);
    line-height: 1.4;
}

.related-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Logo Link */
.logo-link {
    text-decoration: none;
    color: var(--primary-red);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Articles Section */
.news-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--black);
    border-bottom: 3px solid var(--primary-red);
    padding-bottom: 0.5rem;
}

.section-link {
    text-decoration: none;
    color: var(--black);
    transition: color 0.3s ease;
}

.section-link:hover {
    color: var(--primary-red);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), #ff4757);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 1;
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-image-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.article-icon {
    font-size: 3rem;
    color: var(--white);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.article-card:hover .article-icon {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
}

.council-bg { background: linear-gradient(135deg, #9B59B6, #8E44AD); }
.transport-bg { background: linear-gradient(135deg, #3498DB, #2980B9); }
.community-bg { background: linear-gradient(135deg, #E74C3C, #C0392B); }
.sport-bg { background: linear-gradient(135deg, #F39C12, #E67E22); }
.stadium-bg { background: linear-gradient(135deg, #1ABC9C, #16A085); }
.wafl-bg { background: linear-gradient(135deg, #E67E22, #D35400); }
.movie-bg { background: linear-gradient(135deg, #9B59B6, #8E44AD); }
.music-bg { background: linear-gradient(135deg, #E91E63, #C2185B); }
.art-bg { background: linear-gradient(135deg, #FF9800, #F57C00); }
.mining-bg { background: linear-gradient(135deg, #607D8B, #455A64); }
.tech-bg { background: linear-gradient(135deg, #00BCD4, #0097A7); }
.retail-bg { background: linear-gradient(135deg, #FF5722, #E64A19); }
.food-bg { background: linear-gradient(135deg, #FFC107, #FFA000); }
.wellness-bg { background: linear-gradient(135deg, #4CAF50, #388E3C); }
.travel-bg { background: linear-gradient(135deg, #2196F3, #1976D2); }

.article-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.article-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--black);
    line-height: 1.4;
}

.article-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray);
}

.author {
    font-weight: 500;
}

.read-more {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.read-more:hover {
    color: #d41920;
    text-decoration: underline;
    transform: translateX(4px);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--black);
}

/* Popular Stories */
.popular-stories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-story {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.popular-story:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.story-image-placeholder {
    width: 100px;
    height: 70px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-icon {
    font-size: 1.5rem;
    color: var(--white);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.weather-small-bg { background: linear-gradient(135deg, #4A90E2, #357ABD); }
.property-small-bg { background: linear-gradient(135deg, #50C878, #3CB371); }
.traffic-small-bg { background: linear-gradient(135deg, #FF6B35, #E55A2B); }
.business-small-bg { background: linear-gradient(135deg, #607D8B, #455A64); }

.story-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--black);
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.story-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
    padding: 0.25rem;
    margin: -0.25rem;
}

.story-link:hover {
    transform: translateX(4px) scale(1.01);
    background: rgba(237, 28, 36, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.story-link:hover h4 {
    color: var(--primary-red);
}

.story-link:hover .story-icon {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
}

/* Advertisement */
.ad-placeholder-content {
    width: 100%;
    height: 250px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--light-gray), #e0e0e0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--gray);
}

.ad-icon {
    font-size: 3rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.ad-text {
    color: var(--gray);
    font-weight: 500;
    font-size: 1.125rem;
}

/* Subscribe Form */
.subscribe-form p {
    margin-bottom: 1rem;
    color: var(--gray);
}

.subscribe-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.subscribe-input:focus {
    border-color: var(--primary-red);
}

.subscribe-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
    background-color: #d41920;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.footer-section {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.25rem;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.social-link {
    color: var(--white);
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    background-color: var(--primary-red);
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 0.8rem;
    white-space: nowrap;
    line-height: 1.2;
}

.social-link:hover {
    background-color: #d41920;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    display: block;
    color: #ccc;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.footer-link:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    flex-wrap: wrap;
    gap: 1rem;
    clear: both;
}

.footer-bottom p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-bottom .footer-link {
    display: inline;
    margin-bottom: 0;
}

.back-to-top {
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background-color: #d41920;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .hero-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .logo {
        text-align: center;
    }
    
    .search-container {
        margin: 0;
        max-width: none;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .hamburger {
        display: flex;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .nav-mobile.active {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-thumbnails {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-section {
        min-height: auto;
        align-items: center;
    }
    
    .social-links {
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-bottom p {
        justify-content: center;
        text-align: center;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .hero-overlay {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-content h3 {
        font-size: 1.125rem;
    }
} 