/*
Theme Name: Amomama Clone
Theme URI: https://example.com/amomama-clone
Author: Antigravity
Author URI: https://example.com
Description: A pixel-perfect WordPress clone of AmoMama.com — a women's entertainment media site. Features a modern magazine layout with ad-ready slots, category section blocks, hero grid, and mobile-optimized single post view.
Version: 2.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amomama
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --primary-color: #EC5725;
    --primary-dark: #D93802;
    --dark-bg: #292929;
    --text-main: #292929;
    --text-muted: #757575;
    --bg-main: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-peach: #FEE2D9;
    --border-light: #EAEAEA;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --shadow-card: 0 -2px 20px rgba(51, 51, 51, 0.08);
    --font-stack: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --container-width: 1160px;
    --container-wide: 1200px;
    --sidebar-width: 300px;
    --content-width: 782px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-stack);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* =============================================
   LAYOUT CONTAINERS
   ============================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 16px;
}

/* =============================================
   HEADER — Exact Amomama Match
   ============================================= */
.site-header {
    background-color: var(--dark-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 56px;
    display: flex;
    align-items: center;
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    max-width: var(--container-wide);
    margin: 0 auto;
}

.site-logo img {
    border-radius: 0;
    height: 23px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.header-actions img {
    border-radius: 0;
}

/* Hamburger Icon */
.hamburger-btn {
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 18px;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* =============================================
   CATEGORY NAVIGATION — White Pill Bar
   ============================================= */
.category-nav-wrapper {
    background-color: #FFFFFF;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.category-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 4px;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    display: inline-block;
    padding: 8px 16px;
    background-color: #EEEEEE;
    color: var(--text-main);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-transform: capitalize;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.cat-pill.active,
.cat-pill:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

/* =============================================
   HOMEPAGE — HERO SECTION
   ============================================= */
.home-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 992px) {
    .home-hero {
        grid-template-columns: 2fr 1fr;
        gap: 30px;
    }
}

/* Main Hero Card — Text top, Image bottom */
.hero-main {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-main .hero-text {
    padding: 24px 24px 20px;
}

.hero-main .hero-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.hero-main .hero-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.hero-main .hero-date {
    font-size: 12px;
    color: var(--text-muted);
}

.hero-main .hero-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
    color: var(--text-main);
    margin-bottom: 12px;
}

.hero-main .hero-title a {
    color: inherit;
    text-decoration: none;
}

.hero-main .hero-title a:hover {
    color: var(--primary-color);
}

.hero-main .hero-excerpt {
    font-size: 16px;
    line-height: 24px;
    color: var(--text-main);
    margin-bottom: 0;
}

.hero-main .hero-image {
    margin-top: auto;
}

.hero-main .hero-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
    border-radius: 0;
}

/* Sidebar Stack Cards */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.sidebar-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sidebar-card .meta-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-card .meta-date {
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-card .card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: var(--text-main);
}

.sidebar-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.sidebar-card .card-title a:hover {
    color: var(--primary-color);
}

/* =============================================
   HOMEPAGE — CATEGORY SECTION BLOCK
   Peach background, "Category" + "See all", 3-col grid
   ============================================= */
.category-section {
    background-color: var(--bg-peach);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin-bottom: 30px;
}

.category-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}

.category-section-header h2 {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-main);
    margin: 0;
}

.category-section-header .see-all {
    font-size: 16px;
    color: #BD2F00;
    font-weight: 600;
    text-decoration: none;
}

.category-section-header .see-all:hover {
    text-decoration: underline;
}

/* Grid Cards */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Standard Grid Card — Image top, Title bottom */
.grid-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.grid-card .card-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
    border-radius: 0;
}

.grid-card .card-body {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.grid-card .card-title {
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    color: var(--text-main);
    margin: 0;
}

.grid-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.grid-card .card-title a:hover {
    color: var(--primary-color);
}

/* =============================================
   AD SLOTS — Reusable containers for ads
   ============================================= */
.ad-slot {
    text-align: center;
    margin: 30px 0;
    clear: both;
    overflow: hidden;
}

.ad-slot-label {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

/* Horizontal line decorators around ad label */
.ad-slot-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.ad-slot-divider::before,
.ad-slot-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-light);
}

.ad-slot-divider span {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

/* Common slot sizes */
.ad-slot-banner {
    display: block;
    margin: 0 auto;
    text-align: center;
}

.ad-slot-sidebar {
    display: block;
    margin-bottom: 20px;
    text-align: center;
}

.ad-slot-incontent {
    display: block;
    margin: 20px auto;
    text-align: center;
}

/* Bottom sticky native ad bar (MGID-style) */
.ad-slot-sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px 16px;
    min-height: 60px;
    display: none;
    /* Hidden by default, show when ad code is inserted */
}

.ad-slot-sticky-bottom.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================
   SINGLE POST — Article Layout with Sidebar
   ============================================= */
.single-post .main-content {
    background-color: #FAFAFA;
    /* Very light gray to pop the white shadow */
}

.single-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px 0 60px;
}

@media (min-width: 992px) {
    .single-layout {
        grid-template-columns: minmax(0, var(--content-width)) var(--sidebar-width);
        gap: 40px;
    }
}

/* Article Content Column */
.article-content {
    min-width: 0;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

/* Featured Image */
.article-featured-image {
    margin-bottom: 24px;
}

.article-featured-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0;
}

.article-featured-image figcaption {
    font-size: 14px;
    color: #888;
    padding: 8px 0;
    line-height: 1.4;
}

/* Article Title */
.article-title-single {
    font-size: 29px;
    font-weight: 700;
    line-height: 40.6px;
    color: #292929;
    margin-bottom: 20px;
    font-family: var(--font-stack);
}

/* Author & Share Row */
.article-author-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-details .author-name {
    font-size: 18px;
    font-weight: 700;
    color: #292929;
}

.author-details .author-name a {
    color: inherit;
}

.author-details .article-date-time {
    font-size: 13px;
    color: var(--text-muted);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.85;
    color: #fff;
}

.share-btn-copy {
    background-color: #666;
}

.share-btn-email {
    background-color: #D44638;
}

.share-btn-flipboard {
    background-color: #E12828;
}

.share-btn-twitter {
    background-color: #000;
}

.share-btn-facebook {
    background-color: #1877F2;
}

.share-btn-facebook-full {
    border-radius: 20px;
    padding: 0 16px;
    width: auto;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* Lead Paragraph */
.article-lead {
    font-size: 24px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.6;
    color: #292929;
    margin-bottom: 24px;
}

/* Article Body Content */
.entry-content {
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
    color: #292929;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.entry-content p {
    margin-bottom: 16px;
}

.entry-content h2 {
    font-size: 27px;
    font-weight: 700;
    margin: 32px 0 32px;
    line-height: 37.8px;
    text-align: center;
    color: #292929;
}

.entry-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 24px 0 12px;
}

.entry-content img {
    margin: 24px 0;
    border-radius: 0;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 16px 24px;
    margin: 24px 0;
    background: #fafafa;
    font-style: italic;
}

.entry-content iframe,
.entry-content embed,
.entry-content object {
    max-width: 100%;
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--primary-dark);
}

.entry-content strong {
    font-weight: 700;
}

/* Image Captions within content */
.wp-caption {
    max-width: 100%;
    margin: 24px 0;
}

.wp-caption img {
    margin: 0;
}

.wp-caption-text {
    font-size: 14px;
    color: #888;
    padding: 8px 0;
    line-height: 1.4;
}

/* Post Tags */
.post-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tags a {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.post-tags a:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    position: relative;
}

.sidebar-widget {
    margin-bottom: 30px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.sidebar-widget-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* Top News Widget */
.top-news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.top-news-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.top-news-item:first-child {
    padding-top: 0;
}

.top-news-item:last-child {
    border-bottom: none;
}

.top-news-item .news-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 4px;
}

.top-news-item .news-title a {
    color: inherit;
    text-decoration: none;
}

.top-news-item .news-title a:hover {
    color: var(--primary-color);
}

.top-news-item .news-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Sticky sidebar */
@media (min-width: 992px) {
    .sidebar-sticky {
        position: sticky;
        top: 76px;
    }
}

/* =============================================
   RELATED ARTICLES — Bottom of Single Post
   ============================================= */
.related-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.related-articles h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.related-item .related-text {
    flex: 1;
}

.related-item-featured {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 24px;
}

.related-item-featured .related-image {
    width: 100%;
}

.related-item-featured .related-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
}

.related-item .related-text .related-title,
.related-item-featured .related-text .related-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #2271b1;
}

.related-item .related-text .related-title a,
.related-item-featured .related-text .related-title a {
    color: inherit;
    text-decoration: none;
}

.related-item .related-text .related-title a:hover,
.related-item-featured .related-text .related-title a:hover {
    color: var(--primary-color);
}

.related-item .related-text .related-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.related-item .related-image {
    flex-shrink: 0;
    width: 160px;
}

.related-item .related-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 8px;
}

/* =============================================
   STORIES CATEGORY — Mobile Feed Layout
   ============================================= */
.custom-stories-container {
    background-color: var(--bg-main);
    padding: 12px 0;
    /* Remove left/right padding to make cards edge-to-edge */
    min-height: 100vh;
}

.stories-feed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Gap between edge-to-edge cards */
    max-width: 800px;
    margin: 0 auto;
}

/* Story Card */
.story-card {
    background-color: #ffffff;
    border-radius: 24px;
    /* Large pill-like rounded corners */
    box-shadow: none;
    /* Flatter design for mobile */
    padding: 20px 16px 0;
    /* Text padding */
    overflow: hidden;
    margin: 0;
    /* Touch edges */
}

.story-card-header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.story-card-category {
    font-size: 11px;
    font-weight: 700;
    line-height: 15.4px;
    color: var(--primary-dark);
    text-transform: uppercase;
    text-decoration: none;
}

.story-card-date {
    font-size: 12px;
    font-weight: 400;
    line-height: 19.2px;
    color: var(--text-muted);
}

.story-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.story-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    color: var(--text-main);
    margin-bottom: 12px;
}

.story-card-excerpt {
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: var(--text-main);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .story-card-title {
        font-size: 28px;
        line-height: 36px;
    }

    .story-card-excerpt {
        font-size: 18px;
        line-height: 27px;
    }
}

.story-card-image {
    margin: 0 -16px;
    /* Offset the card padding to make image full width */
    position: relative;
    display: block;
}

.story-card-image img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
    border-radius: 0;
    /* Card overflow: hidden handles the bottom rounding */
}

/* =============================================
   ARCHIVE / INDEX PAGES — Card Grid
   ============================================= */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
}

.archive-description {
    color: var(--text-muted);
    font-size: 18px;
    margin-top: 10px;
}

.archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 600px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Pagination */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.nav-links .page-numbers {
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
    background: var(--primary-color);
    color: #fff;
}

/* =============================================
   404 PAGE
   ============================================= */
.error-404-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 20px;
}

.error-404-content .error-code {
    font-size: 120px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
}

.error-404-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.error-404-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.btn-home {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-home:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* =============================================
   STATIC PAGE
   ============================================= */
.page-content-single {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    max-width: 800px;
    margin: 40px auto;
}

.page-content-single h1 {
    font-size: 36px;
    margin-bottom: 24px;
    font-weight: 700;
}

.page-content-single .entry-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* =============================================
   SEARCH RESULTS
   ============================================= */
.search-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.search-header h1 span {
    color: var(--primary-color);
}

/* =============================================
   FOOTER — Dark themed
   ============================================= */
.site-footer {
    background-color: var(--dark-bg);
    color: #FFF;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 2fr;
    }
}

.footer-logo {
    font-family: 'Brush Script MT', cursive, sans-serif;
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-links h4 {
    margin-bottom: 15px;
    color: #FFF;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
    }
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #555;
    color: #FFF;
    font-size: 20px;
    transition: background-color 0.2s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

/* =============================================
   MAIN CONTENT WRAPPER
   ============================================= */
.main-content {
    padding: 30px 0;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */
@media (max-width: 768px) {
    .home-hero {
        margin-left: -16px;
        /* Offset .container padding */
        margin-right: -16px;
        margin-top: -12px;
        margin-bottom: 20px;
        gap: 12px;
    }

    .hero-main {
        border-radius: 0 0 24px 24px;
        /* Only round bottom so it merges with header */
        box-shadow: none;
    }

    .hero-main .hero-text {
        padding: 20px 16px 12px;
    }

    .hero-main .hero-title {
        font-size: 22px;
        line-height: 28px;
        margin-bottom: 12px;
    }

    .hero-sidebar {
        border-radius: 24px;
        background: #fff;
        box-shadow: none;
        margin-bottom: 12px;
    }

    .single-layout {
        padding-top: 16px;
        gap: 24px;
    }

    .article-content,
    .page-content-single {
        margin-left: -16px;
        margin-right: -16px;
        border-radius: 0;
        box-shadow: none;
        padding: 24px 16px;
    }

    .article-title-single {
        font-size: 24px;
    }

    .category-section {
        padding: 20px;
    }

    .share-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .article-author-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-main .hero-excerpt {
        font-size: 14px;
        line-height: 21px;
    }

    .category-section-header h2 {
        font-size: 20px;
    }
}