/* Augusta Life - Main Stylesheet
   Built on Bootstrap 5 with custom brand styling
*/

/* ==========================================================================
   Champie Font Family
   ========================================================================== */

@font-face {
    font-family: 'Champie';
    src: url('../fonts/ChampieTrial-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Champie';
    src: url('../fonts/ChampieTrial-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Champie';
    src: url('../fonts/ChampieTrial-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Champie';
    src: url('../fonts/ChampieTrial-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Champie';
    src: url('../fonts/ChampieTrial-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Champie';
    src: url('../fonts/ChampieTrial-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
    font-family: var(--font-body);
    font-size: 1.5rem; /* 17px - 1pt larger than default 16px */
    color: var(--color-gray-800);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-navy);
}

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-sky);
}

/* ==========================================================================
   Color Utilities
   ========================================================================== */

.bg-navy { background-color: var(--color-navy) !important; }
.bg-blue { background-color: var(--color-blue) !important; }
.bg-sky { background-color: var(--color-sky) !important; }

.text-navy { color: var(--color-navy) !important; }
.text-blue { color: var(--color-blue) !important; }
.text-sky { color: var(--color-sky) !important; }

.hover-sky:hover { color: var(--color-sky) !important; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-navy {
    background-color: var(--color-navy);
    border-color: var(--color-navy);
    color: white;
}

.btn-navy:hover {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    color: white;
}

/* Accent button - left border style */
.btn-accent {
    background-color: var(--color-gold);
    border: none;
    border-left: 4px solid var(--color-navy);
    color: var(--color-navy);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.6rem 1.25rem;
    border-radius: 0;
    transition: all 0.2s ease;
}

.btn-accent:hover {
    background-color: var(--color-coral);
    border-left-color: var(--color-navy);
    color: var(--color-navy);
    transform: translateX(3px);
}

.btn-gold,
.btn.btn-gold {
    --bs-btn-bg: var(--color-gold);
    --bs-btn-color: var(--color-navy);
    --bs-btn-border-color: var(--color-gold);
    --bs-btn-hover-bg: #e6b800;
    --bs-btn-hover-color: var(--color-navy);
    --bs-btn-hover-border-color: #e6b800;
    --bs-btn-active-bg: #d4a000;
    --bs-btn-active-color: var(--color-navy);
    --bs-btn-active-border-color: #d4a000;
    font-weight: 600;
}

.text-gold {
    color: var(--color-gold) !important;
}

.btn-sky {
    background-color: var(--color-sky);
    border-color: var(--color-sky);
    color: white;
}

.btn-sky:hover {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    color: white;
}

.btn-outline-navy {
    border-color: var(--color-navy);
    color: var(--color-navy);
}

.btn-outline-navy:hover {
    background-color: var(--color-navy);
    color: white;
}

/* ==========================================================================
   Newsletter Bar
   ========================================================================== */

.newsletter-bar {
    font-size: var(--text-sm);
}

.newsletter-bar .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.newsletter-bar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-bar .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-sky);
    box-shadow: none;
}

/* ==========================================================================
   Navbar - Visit Augusta Inspired
   ========================================================================== */

nav.navbar,
.navbar.navbar-dark,
.navbar.navbar-expand-lg {
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    z-index: 1000;
}

.navbar > .container {
    align-items: stretch;
}

.navbar-brand {
    position: relative;
    z-index: 1001;
    padding: 0 !important;
    margin: 0 !important;
}

/* Logo with dark background - Visit Augusta style */
.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px 20px 40px;
    min-width: 250px;
}

.logo-bg {
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(13, 30, 41);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.logo-img {
    position: relative;
    z-index: 2;
    height: 100px;
    width: auto;
    display: block;
}

.navbar-collapse {
    align-self: center;
}

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

.nav-link,
.navbar-dark .nav-link,
.navbar .nav-link {
    font-family: var(--font-body);
    font-weight: 700 !important;
    font-size: var(--text-lg) !important;
    color: rgb(75, 184, 224) !important;
    padding: 0.75rem 1.25rem !important;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active,
.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus {
    color: white !important;
}

/* Mobile toggle button */
.navbar-toggler {
    border: 2px solid rgb(75, 184, 224) !important;
    padding: 0.5rem;
    margin: 1rem 0;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(75, 184, 224)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: var(--color-gray-100);
    color: var(--color-blue);
}

/* ==========================================================================
   Hero Sections - Visit Augusta Inspired
   ========================================================================== */

.hero-wrapper {
    position: relative;
}

.hero-wrapper > nav.navbar,
.hero-wrapper > .navbar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
}

.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 550px;
    padding-top: 160px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 58, 95, 0.6),
        rgba(30, 58, 95, 0.75)
    );
}

/* Top-only gradient for clean image pages (blog list, etc.) */
.hero-top-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(
        to bottom,
        rgba(30, 58, 95, 0.85) 0%,
        rgba(30, 58, 95, 0.5) 50%,
        transparent 100%
    );
    z-index: 1;
}

/* Artistic grunge texture strip at top of hero */
.hero-artistic-strip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    z-index: 2;
    background-image: url('/media/grain_grunge_texture.jpg');
    background-size: auto 140px;
    background-repeat: repeat-x;
    background-position: center top;
    mix-blend-mode: multiply;
}

/* Post hero specific styles */
.post-hero {
    min-height: 520px;
}

/* ==========================================================================
   Meet the Writer Section
   ========================================================================== */

.writer-image-wrapper {
    position: relative;
    padding: 20px;
}

.writer-image {
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.writer-image-accent {
    position: absolute;
    width: 60px;
    height: 100%;
    z-index: 1;
}

.writer-image-accent--navy {
    right: -10px;
    top: 0;
    background-color: var(--color-navy);
}

.writer-image-accent--gold {
    right: -25px;
    top: 15px;
    width: 20px;
    height: 80%;
    background-color: var(--color-gold);
}

.writer-image-dots {
    position: absolute;
    left: -15px;
    bottom: 0;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(var(--color-navy) 2px, transparent 2px);
    background-size: 10px 10px;
    z-index: 1;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Bold Hero Title - Bebas Neue Style */
.hero-title {
    font-family: var(--font-champie);
    font-size: var(--text-7xl);
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Colorful Geometric Shapes at Bottom */
.hero-shapes {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 3;
    display: flex;
    overflow: hidden;
}

.hero-shape {
    flex: 1;
    position: relative;
}

.hero-shape::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
}

/* Different shapes for each color block */
.hero-shape--sky::before {
    background: var(--color-sky);
    clip-path: polygon(0 60%, 100% 30%, 100% 100%, 0 100%);
}

.hero-shape--teal::before {
    background: var(--color-teal);
    clip-path: polygon(0 40%, 100% 50%, 100% 100%, 0 100%);
}

.hero-shape--coral::before {
    background: var(--color-coral);
    clip-path: polygon(0 30%, 100% 60%, 100% 100%, 0 100%);
}

.hero-shape--gold::before {
    background: var(--color-gold);
    clip-path: polygon(0 50%, 100% 20%, 100% 100%, 0 100%);
}

.hero-shape--blue::before {
    background: var(--color-blue);
    clip-path: polygon(0 20%, 100% 45%, 100% 100%, 0 100%);
}

/* ==========================================================================
   Category Tiles
   ========================================================================== */

.category-tile {
    position: relative;
    height: 280px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.category-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13, 30, 41, 0.9) 0%,
        rgba(13, 30, 41, 0.4) 50%,
        rgba(13, 30, 41, 0.2) 100%
    );
    transition: background var(--transition-base);
}

.category-tile:hover .category-tile-overlay {
    background: linear-gradient(
        to top,
        rgba(13, 30, 41, 0.95) 0%,
        rgba(13, 30, 41, 0.5) 50%,
        rgba(13, 30, 41, 0.3) 100%
    );
}

.category-tile-icon {
    position: relative;
    z-index: 2;
    color: var(--color-sky);
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    width: fit-content;
}

.category-tile-content {
    position: relative;
    z-index: 2;
}

.category-tile-title {
    font-family: var(--font-champie);
    font-weight: 700;
    font-size: var(--text-xl);
    color: white;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.category-tile-desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* ==========================================================================
   Cards - Blog Post Cards
   ========================================================================== */

.card {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.3;
}

.card-title a {
    color: var(--color-navy);
}

.card-title a:hover {
    color: var(--color-blue);
}

.card-category {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-sky);
    margin-bottom: 0.5rem;
}

.card-excerpt {
    color: var(--color-gray-600);
    font-size: var(--text-sm);
}

.card-meta {
    font-size: var(--text-xs);
    color: var(--color-gray-500);
}

/* Featured Post Card (larger) */
.card-featured {
    height: 100%;
}

.card-featured .card-img-top {
    height: 300px;
}

.card-featured .card-title {
    font-size: var(--text-2xl);
}

/* Sponsored Label */
.sponsored-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: var(--text-xs);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Blog Post Detail - Visit Augusta Style
   ========================================================================== */

.post-header {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 3rem;
    background-size: cover;
    background-position: center;
}

.post-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(30, 58, 95, 0.9) 0%,
        rgba(30, 58, 95, 0.5) 50%,
        rgba(30, 58, 95, 0.2) 100%
    );
}

.post-header-content {
    position: relative;
    z-index: 2;
}

.post-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-meta {
    color: rgba(255, 255, 255, 0.8);
}

.post-content {
    font-size: var(--text-lg);
    line-height: 1.8;
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.post-content blockquote {
    border-left: 4px solid var(--color-sky);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-gray-600);
}

/* Markdown-specific styles */
.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content ul li::marker {
    color: var(--color-sky);
}

.post-content ol li::marker {
    color: var(--color-navy);
    font-weight: 600;
}

.post-content pre {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.post-content code {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.875em;
}

.post-content hr {
    border: none;
    border-top: 2px solid var(--color-gray-200);
    margin: 2.5rem 0;
}

/* Tables */
.post-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-size: var(--text-base);
    display: table;
    overflow-x: auto;
}

.post-content table thead {
    background-color: var(--color-navy);
    color: white;
}

.post-content table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    border: 1px solid var(--color-gray-300);
}

.post-content table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-300);
}

.post-content table tbody tr:nth-child(odd) {
    background-color: rgba(30, 58, 95, 0.03);
}

.post-content table tbody tr:hover {
    background-color: rgba(30, 58, 95, 0.05);
}

/* Responsive tables - wrap on mobile */
@media (max-width: 768px) {
    .post-content table {
        font-size: var(--text-sm);
    }

    .post-content table th,
    .post-content table td {
        padding: 0.5rem 0.75rem;
    }
}

/* Anchor links for headings */
.post-content .anchor-link {
    margin-left: 0.5rem;
    opacity: 0;
    color: var(--color-gray-400);
    transition: opacity var(--transition-fast);
}

.post-content h2:hover .anchor-link,
.post-content h3:hover .anchor-link,
.post-content h4:hover .anchor-link {
    opacity: 1;
}

.post-content .anchor-link:hover {
    color: var(--color-sky);
}

/* Table of Contents */
.toc-nav {
    font-size: var(--text-sm);
}

.toc-nav ul ul {
    padding-left: 1rem;
    margin-top: 0.25rem;
}

.toc-nav a {
    color: var(--color-gray-600);
}

.toc-nav a:hover {
    color: var(--color-sky);
}

/* Figure captions */
.post-content figure {
    margin: 2rem 0;
}

.post-content figcaption {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    text-align: center;
    margin-top: 0.5rem;
}

/* Footnotes */
.post-content .footnote {
    font-size: var(--text-sm);
}

.post-content .footnote-ref {
    font-size: 0.75em;
    vertical-align: super;
    color: var(--color-sky);
}

.post-content .footnote-backref {
    color: var(--color-sky);
}

/* ==========================================================================
   Category Landing Pages
   ========================================================================== */

.category-hero {
    min-height: 350px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar-widget {
    background: var(--color-gray-100);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem; /* Smaller font for sidebar */
}

.sidebar-widget h5 {
    font-size: 1.125rem; /* Smaller heading */
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-sky);
}

.sidebar-widget h6 {
    font-size: 1rem; /* Smaller subheading */
}

.sidebar-widget p {
    font-size: 0.875rem; /* Smaller paragraph text */
}

.sidebar-widget .small {
    font-size: 0.8125rem; /* Even smaller for small text */
}

.sidebar-widget .card-body {
    font-size: 0.875rem; /* Smaller font for card content */
}

.sidebar-widget .card-title,
.sidebar-widget .fw-medium {
    font-size: 0.9375rem; /* Slightly smaller titles */
}

/* Breadcrumbs - smaller text */
nav.mb-3 {
    font-size: 0.875rem; /* 14px */
}

/* Post meta - smaller text */
.post-meta-below {
    font-size: 0.875rem; /* 14px */
}

/* ==========================================================================
   Ad Slots
   ========================================================================== */

.ad-slot {
    text-align: center;
    margin: 1.5rem 0;
}

.ad-slot img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.ad-label {
    font-size: var(--text-xs);
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   Events
   ========================================================================== */

.event-card {
    border-radius: var(--radius-md);
    background: white;
    transition: all var(--transition-fast);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.event-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.event-card .card-title a {
    transition: color var(--transition-fast);
}

.event-card:hover .card-title a {
    color: var(--color-navy) !important;
}

.event-card .col-4 {
    overflow: hidden;
}

.event-card img {
    transition: transform var(--transition-fast);
}

.event-card:hover img {
    transform: scale(1.05);
}

.event-date {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    background: var(--color-sky);
    border-radius: var(--radius-md);
    color: white;
}

.event-date-day {
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1;
}

.event-date-month {
    font-size: var(--text-xs);
    text-transform: uppercase;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    font-size: 0.875rem; /* 14px - smaller footer text */
}

.footer h6 {
    font-size: 1rem; /* 16px - footer headings */
}

.footer a {
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--color-sky) !important;
}

.footer .small {
    font-size: 0.8125rem; /* 13px - even smaller text */
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.section-title {
    font-size: var(--text-3xl);
    position: relative;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--color-sky), var(--color-blue));
    border-radius: var(--radius-full);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-navy), var(--color-sky));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-gray-300);
    border-top-color: var(--color-sky);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 991.98px) {
    .newsletter-bar .row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-title {
        font-size: var(--text-5xl);
    }

    .hero-shapes {
        height: 60px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-shapes {
        height: 40px;
    }

    .logo-img {
        height: 60px;
    }

    .logo-container {
        padding: 10px 20px 15px 20px;
    }

    .logo-bg {
        top: -40px;
    }
}

@media (max-width: 991.98px) {
    .logo-img {
        height: 80px;
    }

    .logo-container {
        padding: 10px 25px 15px 25px;
    }

    .navbar-collapse {
        background: rgb(13, 30, 41);
        padding: 1rem;
        border-radius: var(--radius-lg);
        margin-top: 0.5rem;
    }

    .navbar > .container {
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    .post-header {
        min-height: 40vh;
    }

    .post-title {
        font-size: var(--text-2xl);
    }

    .section-title {
        font-size: var(--text-2xl);
    }
}

/* ==========================================================================
   Email Subscription Popup
   ========================================================================== */

.email-popup-dialog {
    max-width: 880px;
}

.email-popup-content {
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(30, 58, 95, 0.35);
    position: relative;
}

.email-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-navy);
    transition: all var(--transition-fast);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.email-popup-close:hover {
    background: var(--color-coral);
    color: white;
    transform: rotate(90deg);
}

.email-popup-inner {
    display: flex;
    min-height: 480px;
}

/* Image Side */
.email-popup-image {
    flex: 0 0 45%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.email-popup-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 58, 95, 0.3) 0%,
        rgba(30, 58, 95, 0.6) 100%
    );
}

/* Geometric shapes in popup */
.email-popup-shapes {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
}

.popup-shape {
    position: absolute;
}

.popup-shape--coral {
    bottom: 0;
    left: 0;
    width: 120px;
    height: 120px;
    background: var(--color-coral);
    clip-path: polygon(0 100%, 100% 100%, 0 0);
    opacity: 0.9;
}

.popup-shape--gold {
    top: 30%;
    right: 0;
    width: 60px;
    height: 80px;
    background: var(--color-gold);
    clip-path: polygon(100% 0, 100% 100%, 0 50%);
    opacity: 0.9;
}

.popup-shape--teal {
    bottom: 25%;
    left: 0;
    width: 8px;
    height: 100px;
    background: var(--color-teal);
    opacity: 0.9;
}

/* Form Side */
.email-popup-form-side {
    flex: 1;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
}

.email-popup-form-content {
    max-width: 340px;
    width: 100%;
    position: relative;
}

/* Decorative dots */
.popup-dots {
    position: absolute;
    top: -2rem;
    right: -2rem;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(var(--color-sky) 2px, transparent 2px);
    background-size: 8px 8px;
    opacity: 0.4;
}

.email-popup-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-sky);
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.email-popup-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 2px;
    background: var(--color-gold);
}

.email-popup-title {
    font-family: var(--font-champie);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.email-popup-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.email-popup-input-group {
    margin-bottom: 1rem;
}

.email-popup-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background: white;
    color: var(--color-gray-800);
    transition: all var(--transition-fast);
}

.email-popup-input:focus {
    outline: none;
    border-color: var(--color-sky);
    box-shadow: 0 0 0 4px rgba(75, 184, 224, 0.1);
}

.email-popup-input::placeholder {
    color: var(--color-gray-400);
}

.email-popup-submit {
    width: 100%;
    padding: 1rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-gold);
    color: var(--color-navy);
    border: none;
    border-left: 4px solid var(--color-navy);
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.email-popup-submit:hover {
    background: var(--color-coral);
    border-left-color: var(--color-navy);
    transform: translateX(4px);
}

.email-popup-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.email-popup-submit-icon {
    font-size: 1.25rem;
    transition: transform var(--transition-fast);
}

.email-popup-submit:hover .email-popup-submit-icon {
    transform: translateX(4px);
}

.email-popup-privacy {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--color-gray-500);
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Bottom accent bar */
.email-popup-accent-bar {
    position: absolute;
    bottom: -3rem;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--color-sky) 0%,
        var(--color-teal) 25%,
        var(--color-coral) 50%,
        var(--color-gold) 75%,
        var(--color-blue) 100%
    );
}

/* Modal backdrop enhancement */
.modal-backdrop.show {
    opacity: 0.7;
}

/* Popup animation */
.email-popup-dialog .modal-content {
    animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive - Tablet */
@media (max-width: 991.98px) {
    .email-popup-dialog {
        max-width: 600px;
        margin: 1rem;
    }

    .email-popup-inner {
        min-height: auto;
    }

    .email-popup-image {
        flex: 0 0 40%;
    }

    .email-popup-form-side {
        padding: 2rem;
    }

    .email-popup-title {
        font-size: 2.25rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 767.98px) {
    .email-popup-dialog {
        max-width: calc(100% - 2rem);
        margin: 1rem;
    }

    .email-popup-inner {
        flex-direction: column;
    }

    .email-popup-image {
        flex: none;
        height: 180px;
    }

    .popup-shape--coral {
        width: 80px;
        height: 80px;
    }

    .popup-shape--gold {
        width: 40px;
        height: 60px;
        top: 20%;
    }

    .email-popup-form-side {
        padding: 2rem 1.5rem;
    }

    .email-popup-form-content {
        max-width: 100%;
    }

    .popup-dots {
        display: none;
    }

    .email-popup-title {
        font-size: 2rem;
    }

    .email-popup-subtitle {
        font-size: 0.9375rem;
    }

    .email-popup-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
    }
}
