/*
Theme Name: Island Pulse
Theme URI: https://islandpulse.com
Author: IllusionX Media
Author URI: https://www.facebook.com/illusionxmedia/
Description: A vibrant Caribbean news and business directory theme crafted by IllusionX Media.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: island-pulse
*/

:root {
    --brand-primary: #0f4a47;
    --brand-primary-dark: #0b3533;
    --brand-accent: #e26d1c;
    --brand-highlight: #f4c95d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

html,
body {
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.icon {
    width: 1em;
    height: 1em;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* News Ticker */
.news-ticker {
    background: var(--brand-accent);
    color: white;
    padding: 10px 0;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding: 0 50px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ticker-item a {
    color: white;
    text-decoration: none;
}

.ticker-icon {
    width: 10px;
    height: 10px;
}

.ticker-item a:hover {
    text-decoration: underline;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--brand-primary-dark);
    color: white;
    padding: 8px 0;
    font-size: 13px;
    text-align: center;
}

.header-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.header-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon-calendar,
.icon-clock {
    width: 18px;
    height: 18px;
}

.header-main {
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--brand-primary);
}

.logo-media {
    display: flex;
    align-items: center;
    flex: 0 0 200px;
    max-width: 200px;
    height: 96px;
    overflow: hidden;
}

.logo-media img {
    position: inherit;
    display: block;
    width: 80%;
    height: auto;
    transform-origin: left center;
}

.logo-text {
    display: none;
    font-size: 28px;
    line-height: 1;
    color: var(--brand-primary);
}

.logo-text span {
    color: var(--brand-accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 6px;
}

.nav-toggle .icon {
    width: 24px;
    height: 24px;
}

.nav-toggle .icon-close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
    display: none;
}

.primary-nav {
    display: flex;
    align-items: center;
}

.primary-nav.is-open {
    display: flex;
}

.primary-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.primary-nav a {
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
    color: var(--brand-primary);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    transform: translateY(-2px);
    color: var(--brand-accent);
}

.nav-title-text {
    display: inline-flex;
    gap: 0.08em;
}

.nav-title-char {
    display: inline-block;
    line-height: 1;
}

.nav-title-char--primary {
    color: var(--brand-primary);
}

.nav-title-char--accent {
    color: var(--brand-accent);
}

.nav-title-char--space {
    min-width: 0.4em;
    color: transparent;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box input {
    padding: 8px 15px;
    border: 2px solid #ddd;
    border-radius: 20px;
    outline: none;
    width: 200px;
}

.search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.search-submit:hover,
.search-submit:focus {
    background: var(--brand-primary-dark);
}

/* Hero Section */
.hero {
    background: white;
    margin: 20px 0;
    padding: 30px;
    border-radius: 8px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-main {
    position: relative;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.hero-main:hover {
    transform: scale(1.02);
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
}

.hero-category {
    display: inline-block;
    background: var(--brand-accent);
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-title a {
    color: white;
    text-decoration: none;
}

.hero-meta {
    font-size: 13px;
    opacity: 0.9;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-small {
    position: relative;
    height: 215px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.hero-small:hover {
    transform: scale(1.02);
}

.hero-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-small .hero-overlay {
    padding: 20px;
}

.hero-small .hero-title {
    font-size: 18px;
}

/* Picture of the Day */
.picture-day {
    margin: 40px 0;
}

.picture-day-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 30px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.picture-day-media {
    position: relative;
    min-height: 320px;
}

.picture-day-image {
    display: block;
    height: 100%;
}

.picture-day-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.picture-day-image.is-placeholder {
    pointer-events: none;
}

.picture-day-content {
    padding: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.picture-day-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--brand-accent);
}

.picture-day-kicker .icon-camera {
    width: 20px;
    height: 20px;
}

.picture-day h2 {
    font-size: 32px;
    line-height: 1.2;
    color: #1a1a1a;
}

.picture-day-meta {
    font-size: 14px;
    color: #616161;
}

.picture-day-excerpt {
    font-size: 16px;
    color: #424242;
}

.picture-day .btn {
    align-self: flex-start;
}

/* About Section */
.about-snippet {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #1b7067 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.about-snippet h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.about-snippet p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: var(--brand-primary);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    transition: transform 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--brand-accent);
}

.section-header h2 {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
}

.section-header a {
    color: var(--brand-accent);
    text-decoration: none;
    font-weight: 600;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: white;
    background: var(--brand-primary);
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.news-category.entertainment { background: var(--brand-accent); }
.news-category.sports {
    background: var(--brand-highlight);
    color: var(--brand-primary-dark);
}
.news-category.international { background: var(--brand-primary-dark); }

.news-card h3 {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #333;
}

.news-card h3 a {
    color: #333;
    text-decoration: none;
}

.news-card h3 a:hover {
    color: var(--brand-accent);
}

.news-date {
    font-size: 12px;
    color: #999;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 8px 0;
}

/* ============================================
   PAGE TEMPLATES STYLES
   ============================================ */

/* Page Header (used across all pages) */
.page-header {
    text-align: center;
    padding: 60px 0 40px;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 900;
    color: var(--brand-primary);
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: #666;
}

/* News Page Styles */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 25px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #ddd;
}

.filter-tab:hover {
    background: #f5f5f5;
    border-color: var(--brand-accent);
}

.filter-tab.active {
    background: var(--brand-accent);
    color: white;
    border-color: var(--brand-accent);
}

.pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 20px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--brand-accent);
    color: white;
}

.pagination .current {
    background: var(--brand-accent);
    color: white;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #999;
}

/* Directory Page Styles */
.directory-banner {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #1b7067 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 15px;
    margin: 40px 0;
    text-align: center;
}

.banner-heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.icon-heading {
    width: 32px;
    height: 32px;
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.95;
}

.directory-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.directory-cat-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.directory-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: clamp(2.75rem, 2.2rem + 1.5vw, 4rem);
}

.cat-icon .cat-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 1;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'EmojiOne Color', 'Twemoji Mozilla', sans-serif;
}

.directory-cat-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.directory-cat-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.cat-link {
    color: var(--brand-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.cat-link:hover {
    color: var(--brand-primary);
}

.featured-businesses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.business-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.business-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.business-info {
    padding: 20px;
}

.business-category {
    display: inline-block;
    background: var(--brand-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.business-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.business-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.business-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: #999;
}

.business-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon-meta {
    width: 16px;
    height: 16px;
}

/* About Page Styles */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0 60px;
}

.about-main {
    background: white;
    padding: 40px;
    border-radius: 10px;
}

.about-section {
    margin-bottom: 40px;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h2 {
    font-size: 32px;
    color: var(--brand-accent);
    margin-bottom: 20px;
    font-weight: 800;
}

.about-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.coverage-item {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.coverage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: clamp(2.5rem, 2rem + 1vw, 3.25rem);
}

.coverage-icon .cat-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 1;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'EmojiOne Color', 'Twemoji Mozilla', sans-serif;
}

.coverage-item h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.coverage-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    color: #333;
}

.values-list li:last-child {
    border-bottom: none;
}

.values-list strong {
    color: var(--brand-primary);
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
}

.sidebar-box h3 {
    font-size: 20px;
    color: var(--brand-accent);
    margin-bottom: 15px;
    font-weight: 700;
}

.facts-list {
    list-style: none;
    padding: 0;
}

.facts-list li {
    padding: 8px 0;
    font-size: 15px;
    color: #666;
}

.facts-list strong {
    color: #333;
}

.sidebar-box p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.sidebar-box p:last-child {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.social-btn:hover {
    transform: translateY(-1px);
}

.social-btn.facebook:hover {
    background: #1877f2;
    color: #fff;
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

/* Default Page Template Styles */
.page-content-wrapper {
    max-width: 900px;
    margin: 60px auto;
}

.page-article {
    background: white;
    padding: 60px;
    border-radius: 10px;
}

.page-article .page-header h1 {
    font-size: 48px;
    color: var(--brand-accent);
    margin-bottom: 30px;
    font-weight: 900;
}

.page-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.page-content p {
    margin-bottom: 20px;
}

.page-content h2 {
    font-size: 32px;
    color: var(--brand-primary);
    margin: 40px 0 20px;
    font-weight: 700;
}

.page-content h3 {
    font-size: 24px;
    color: #333;
    margin: 30px 0 15px;
    font-weight: 600;
}

/* ============================================
   SINGLE ARTICLE STYLES
   ============================================ */

.single-story {
    padding: clamp(32px, 5vw, 72px) 0 clamp(48px, 8vw, 96px);
}

.single-story .single-post {
    background: #ffffff;
    border-radius: 16px;
    padding: clamp(24px, 4vw, 48px);
    margin-bottom: clamp(40px, 6vw, 72px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.08);
}

.breadcrumb {
    font-size: 14px;
    color: #999;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--brand-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
    color: var(--brand-primary);
}

.breadcrumb span:last-child {
    color: #666;
}

.single-header {
    margin-bottom: 26px;
}

.post-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: var(--brand-primary);
    padding: 6px 14px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}

.post-category.entertainment { background: var(--brand-accent); }
.post-category.sports {
    background: var(--brand-highlight);
    color: var(--brand-primary-dark);
}
.post-category.international { background: var(--brand-primary-dark); }

.post-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #333;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-featured-image {
    margin: clamp(24px, 4vw, 40px) 0;
    border-radius: 14px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2 {
    font-size: clamp(26px, 3.2vw, 36px);
    margin: 38px 0 18px;
    color: var(--brand-accent);
}

.post-content h3 {
    font-size: clamp(22px, 2.6vw, 28px);
    margin: 30px 0 15px;
    color: var(--brand-primary);
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: clamp(32px, 5vw, 48px) 0;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.post-tags svg {
    color: var(--brand-accent);
}

.post-tags a {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid var(--brand-accent);
    border-radius: 999px;
    color: var(--brand-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags a:hover,
.post-tags a:focus-visible {
    background: var(--brand-accent);
    color: #ffffff;
    border-color: var(--brand-accent);
}

.post-share {
    margin: clamp(40px, 6vw, 60px) 0 0;
    padding: clamp(22px, 3.5vw, 32px);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(15, 74, 71, 0.08) 0%, rgba(226, 109, 28, 0.12) 100%);
}

.post-share h3 {
    font-size: 20px;
    margin-bottom: 18px;
    color: #333;
    font-weight: 700;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.share-btn:hover,
.share-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.share-btn.facebook {
    background: #1877f2;
    color: #ffffff;
}

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

.related-posts {
    margin: 0;
    padding-bottom: clamp(16px, 4vw, 32px);
}

.related-posts h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--brand-accent);
    margin-bottom: 24px;
    text-align: left;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}


/* ============================================
   FOOTER STYLES - REDESIGNED (REPLACED)
   ============================================ */

.footer {
    background: #0d2221;
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--brand-primary);
    margin-bottom: 15px;
}

.footer-logo-text {
    display: inline-flex;
    font-size: 26px;
    line-height: 1;
    color: var(--brand-primary);
}

.footer-logo-text span {
    color: var(--brand-accent);
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.6;
    color: #aaa;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s;
    color: white;
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.facebook:hover {
    background: #145dbf;
    transform: translateY(-3px);
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(188, 24, 136, 0.4);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--brand-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    color: #999;
    font-size: 13px;
}

.footer-bottom p {
    margin: 5px 0;
}

.footer-links-inline {
    margin: 10px 0;
}

.footer-links-inline a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links-inline a:hover {
    color: white;
}

.footer-credit {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.footer-credit a {
    color: var(--brand-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-credit a:hover {
    color: var(--brand-primary);
}

/* ============================================
   RESPONSIVE (GLOBAL + SINGLE POST & FOOTER)
   ============================================ */

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .primary-nav {
        display: none;
        width: 100%;
    }

    .primary-nav.is-open {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: -10px;
    }

    .primary-nav ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .primary-nav a {
        width: 100%;
        padding: 8px 0;
    }

    .header-content {
        align-items: flex-start;
    }

    .search-box {
        width: 100%;
    }

    .search-box form {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .picture-day-inner {
        grid-template-columns: 1fr;
    }

    .picture-day-content {
        padding: 30px;
    }

    .picture-day-media {
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .logo-media {
        display: none;
    }

    .logo-text {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Hero adjustments */
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-main {
        height: 300px;
    }

    .hero-small {
        height: 250px;
    }

    /* News grid */
    .news-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .primary-nav {
        align-items: center;
    }

    .primary-nav ul {
        align-items: center;
    }

    .primary-nav a {
        text-align: center;
    }

    .picture-day {
        margin: 30px 0;
    }

    .picture-day h2 {
        font-size: 26px;
    }

    .picture-day-excerpt {
        font-size: 15px;
    }

    /* About page */
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .coverage-grid {
        grid-template-columns: 1fr;
    }

    /* Page article */
    .page-article {
        padding: 30px 20px;
    }
    
    .page-article .page-header h1 {
        font-size: 32px;
    }

    /* Single post responsive */
    .single-story {
        padding: 24px 0 56px;
    }

    .single-post {
        padding: 26px 20px;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    }

    .post-title {
        font-size: 26px;
    }

    .post-content {
        font-size: 16px;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .post-tags {
        gap: 8px;
    }

    .post-share {
        padding: 20px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
        width: 100%;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (prefers-reduced-data: reduce) {
    .logo-media {
        display: none;
    }

    .logo-text {
        display: inline-flex;
        align-items: center;
    }
}
