/*
Theme Name: Detak Media
Theme URI: https://detak.media
Author: Detak Media Team
Author URI: https://detak.media
Description: WordPress Classic Theme for Detak Media - Modern news portal with responsive design, based on Next.js headless frontend architecture. Features hero section, horizontal scroll posts, and category grid layout.
Version: 1.3.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: detak-media
Tags: blog, news, magazine, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready, responsive-design
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 CSS Reset & Normalize
2.0 Design System Variables
3.0 Typography
4.0 Layout & Grid
5.0 Header & Navigation
6.0 Hero Section
7.0 Recent Posts Section
8.0 Category Grid Section
9.0 Content & Posts
10.0 Sidebar & Widgets
11.0 Footer
12.0 Utilities
13.0 Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 CSS Reset & Normalize
--------------------------------------------------------------*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
nav,
section {
    display: block;
}

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

/*--------------------------------------------------------------
2.0 Design System Variables
--------------------------------------------------------------*/
:root {
    /* Brand Colors - Detak Media Red Theme */
    --brand-50: #fef2f2;
    --brand-100: #fee2e2;
    --brand-200: #fecaca;
    --brand-300: #fca5a5;
    --brand-400: #f87171;
    --brand-500: #ef4444;
    --brand-600: #dc2626;
    --brand-700: #b91c1c;
    --brand-800: #991b1b;
    --brand-900: #7f1d1d;

    /* Primary colors for easy access */
    --color-primary: #dc2626;
    --color-primary-hover: #b91c1c;

    /* Gray Palette */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic Colors */
    --color-text: #111827;
    --color-text-light: #6b7280;
    --color-background: #ffffff;
    --color-border: #e5e7eb;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: 'Merriweather', Georgia, Cambria, "Times New Roman", Times, serif;

    /* Layout */
    --container-max-width: 1200px;
    --container-padding: 1rem;

    /* Transitions */
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/*--------------------------------------------------------------
3.0 Typography
--------------------------------------------------------------*/
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

/* Paragraphs */
.post-content p {
    font-family: var(--font-sans);
    color: var(--gray-800);
    line-height: 1.75;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin: 0 0 1.5rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover,
a:focus {
    color: var(--color-primary-hover);
}

::selection {
    background-color: rgba(220, 38, 38, 0.2);
    color: inherit;
}

/*--------------------------------------------------------------
4.0 Layout & Grid
--------------------------------------------------------------*/
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

.container-custom {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto;
    clip-path: none;
    color: var(--color-primary);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Single Post Article */
.single-post {
    background-color: #ffffff;
    font-family: var(--font-sans);
}

/*--------------------------------------------------------------
5.0 Header & Navigation
--------------------------------------------------------------*/
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.site-header .container-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex: 0 0 auto;
}

.site-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text);
}

.site-title a {
    color: var(--color-text);
}

.site-title a:hover {
    color: var(--color-primary);
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 0.375rem;
    transition: all var(--transition-base);
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item>a {
    background-color: var(--brand-50);
    color: var(--color-primary);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 0.375rem;
    color: var(--color-text);
    font-weight: 500;
}

.menu-toggle:hover {
    background-color: var(--gray-50);
}

/*--------------------------------------------------------------
6.0 Hero Section
--------------------------------------------------------------*/
.hero-section {
    margin: 3rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* Main Featured Post */
.hero-featured {
    position: relative;
    display: block;
    min-height: 500px;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: var(--gray-900);
}

.hero-featured-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-featured:hover .hero-featured-image img {
    transform: scale(1.05);
}

.hero-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.hero-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: #ffffff;
    z-index: 10;
}

.hero-category-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
}

.hero-featured-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: #ffffff !important;
    transition: color var(--transition-base);
}

.hero-featured:hover .hero-featured-title {
    color: var(--brand-200) !important;
}

.hero-featured-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #d1d5db;
}

/* Trending Sidebar */
.hero-trending {
    display: flex;
    flex-direction: column;
}

.hero-trending-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hero-trending-accent {
    width: 4px;
    height: 1.5rem;
    background-color: var(--color-primary);
}

.hero-trending-title {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    color: var(--color-text);
}

.hero-trending-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-trending-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
    transition: transform var(--transition-base);
}

.hero-trending-item:hover {
    transform: translateX(4px);
}

.hero-trending-list li:last-child .hero-trending-item {
    border-bottom: none;
}

.hero-trending-number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 0.5rem;
}

.hero-trending-content {
    flex: 1;
    min-width: 0;
}

.hero-trending-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: var(--color-text-light);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.hero-trending-category {
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-trending-item-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color var(--transition-base);
}

.hero-trending-item:hover .hero-trending-item-title {
    color: var(--color-primary);
}

/*--------------------------------------------------------------
7.0 Recent Posts Section
--------------------------------------------------------------*/
.recent-scroll-section {
    padding: 2rem 0;
    margin: 2rem 0;
    border-top: 4px solid rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}

.recent-scroll-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0 var(--container-padding) 0.75rem;
    border-bottom: 2px solid var(--color-primary);
}

.recent-scroll-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 0;
}

.recent-scroll-hint {
    display: none;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-400);
}

.recent-scroll-wrapper {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0 var(--container-padding) 1.5rem;
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for Desktop */
.recent-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.recent-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.recent-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

.recent-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Firefox */
.recent-scroll-wrapper {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) var(--gray-100);
}

.recent-scroll-card {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    aspect-ratio: 3 / 4;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: var(--gray-900);
    scroll-snap-align: start;
    display: block;
}

.recent-scroll-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.recent-scroll-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: all 0.7s ease;
}

.recent-scroll-card:hover .recent-scroll-card-image img {
    transform: scale(1.1);
    opacity: 1;
}

.recent-scroll-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    opacity: 0.9;
}

.recent-scroll-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    z-index: 10;
}

.recent-scroll-card-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.25rem;
    margin-bottom: 0.375rem;
}

.recent-scroll-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff !important;
    margin: 0 0 0.25rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.recent-scroll-card-date {
    font-size: 0.6875rem;
    color: #d1d5db;
    font-weight: 500;
}

/*--------------------------------------------------------------
8.0 Category Grid Section
--------------------------------------------------------------*/
.category-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.category-section {
    display: flex;
    flex-direction: column;
}

.category-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
}

.category-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 0;
}

.category-section-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-base);
}

.category-section-link:hover {
    color: var(--color-primary-hover);
}

.category-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* First Post - Vertical Card */
.category-first-post {
    display: block;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.category-first-post-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: var(--gray-100);
    margin-bottom: 0.75rem;
}

.category-first-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-first-post:hover .category-first-post-image img {
    transform: scale(1.05);
}

.category-first-post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: var(--color-text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.category-first-post-category {
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-first-post-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color var(--transition-base);
}

.category-first-post:hover .category-first-post-title {
    color: var(--color-primary);
}

/* Remaining Posts - Horizontal Cards */
.category-post-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.category-post-item:last-child {
    border-bottom: none;
}

.category-post-content {
    flex: 1;
    min-width: 0;
}

.category-post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: var(--color-text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.category-post-category {
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-post-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color var(--transition-base);
}

.category-post-item:hover .category-post-title {
    color: var(--color-primary);
}

.category-post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: var(--gray-100);
}

.category-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-post-item:hover .category-post-thumbnail img {
    transform: scale(1.05);
}

/*--------------------------------------------------------------
9.0 Content & Posts
--------------------------------------------------------------*/
.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    margin: 0 0 1rem;
    font-size: 2.5rem;
    line-height: 1.2;
}

.entry-meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.entry-content {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.entry-content img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/*--------------------------------------------------------------
10.0 Sidebar & Widgets
--------------------------------------------------------------*/
.widget-area {
    margin-top: 2rem;
}

.widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--gray-50);
    border-radius: 0.5rem;
}

.widget-title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

/*--------------------------------------------------------------
11.0 Footer
--------------------------------------------------------------*/
.site-footer {
    margin-top: auto;
    padding: 3rem 0 2rem;
    background-color: var(--gray-50);
    color: var(--gray-600);
    border-top: 1px solid var(--gray-200);
}

/* Footer Grid - 3 Columns */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 3rem;
    margin-bottom: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Column 1: Logo & Description */
.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    max-height: 2.5rem;
    width: auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 0.5rem;
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.footer-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-600);
    margin: 0 0 1.5rem;
}

/* Column Headers with Horizontal Line */
.footer-column-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-column-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--gray-900);
    margin: 0;
    margin-right: 1rem;
    white-space: nowrap;
}

.footer-header-line {
    height: 2px;
    background-color: var(--color-primary);
    flex: 1;
    border-radius: 9999px;
}

/* Footer Menus */
.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu-list li {
    margin-bottom: 0.75rem;
}

.footer-menu-list a {
    color: var(--gray-500);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition-base);
    display: inline-block;
}

.footer-menu-list a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* Prose Styling for Post Content */
.post-content {
    font-family: var(--font-sans);
    color: var(--gray-800);
    word-break: break-word;
}

.footer-menu-empty {
    font-size: 0.875rem;
    color: var(--gray-400);
    font-style: italic;
    margin: 0;
}

/* Copyright Section */
.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}


/*--------------------------------------------------------------
12.0 Utilities
--------------------------------------------------------------*/
.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/*--------------------------------------------------------------
13.0 Responsive
--------------------------------------------------------------*/
@media screen and (min-width: 768px) {
    .recent-scroll-hint {
        display: block;
    }

    .recent-scroll-card {
        width: 200px;
    }
}

@media screen and (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-featured {
        min-height: 400px;
    }

    .category-grid-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .main-navigation {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation.toggled {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-top: 1px solid var(--color-border);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .main-navigation.toggled ul {
        flex-direction: column;
        padding: 1rem;
    }

    .main-navigation.toggled li {
        width: 100%;
    }

    .main-navigation.toggled a {
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-featured {
        min-height: 300px;
    }

    .hero-featured-content {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
    }

    .site-header {
        padding: 0.75rem 0;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .hero-section {
        margin: 1.5rem 0;
    }

    .recent-scroll-section {
        padding: 1.5rem 0;
        margin: 1.5rem 0;
    }

    .category-grid-wrapper {
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .site-footer {
        padding: 2rem 0 1rem;
    }
}