/*
Theme Name: RowHome Magazine
Theme URI: https://rowhomemag.com
Author: RowHome Magazine LLC
Author URI: https://rowhomemag.com
Description: A modern, magazine-style WordPress theme for Philadelphia RowHome Magazine featuring department-based navigation, article grids, and responsive design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rowhome-magazine
Tags: magazine, news, blog, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* ===========================
   CSS Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: clamp(13px, 1vw + 0.5rem, 16px);
    scroll-behavior: smooth;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    color: #333333;
    background-color: #f5f5f5;
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#page {
    max-width: 1400px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Lazy loading optimization */
img[loading="lazy"] {
    content-visibility: auto;
}

/* Loading placeholder for images */
img:not([src]):not([srcset]) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Performance optimization for background images */
.article-image,
.hero-carousel img,
.business-image-grid img {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Smooth image loading */
img {
    opacity: 0;
    animation: fadeIn 0.3s ease-in forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

a:hover {
    opacity: 0.8;
}

/* Touch-friendly targets */
@media (hover: none) and (pointer: coarse) {
    a, button, .clickable {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}


/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

h1 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.25rem); }
h5 { font-size: clamp(0.95rem, 1.25vw, 1.1rem); }
h6 { font-size: clamp(0.85rem, 1vw, 1rem); }

/* ===========================
   Layout Utilities
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 30px);
    width: 100%;
}

.full-width {
    width: 100%;
}

/* Fluid Spacing */
section {
    margin-bottom: clamp(20px, 4vw, 40px);
}

.section-header {
    margin: clamp(20px, 3vw, 30px) 0 clamp(15px, 2vw, 20px);
    padding-left: 15px;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #FF0000;
}

.section-header.yellow::before {
    background-color: #FFD700;
}

.section-header.pink::before {
    background-color: #FF69B4;
}

.section-header.teal::before {
    background-color: #5f8a8b;
}

/* ===========================
   Header Styles
   =========================== */
.site-header {
    background-color: #000000;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar {
    background-color: #1a1a1a;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.top-bar-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.subscribe-btn {
    font-family: 'Instrument Serif', Georgia, serif;
    background-color: #FF0000;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.subscribe-btn:hover {
    background-color: #cc0000;
}

.login-link {
    color: #ffffff;
    font-size: 0.875rem;
}

.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.quick-links {
    display: flex;
    gap: 15px;
    font-size: 0.875rem;
}

.quick-links a {
    color: #ffffff;
}

.search-icon {
    cursor: pointer;
    font-size: 1.2rem;
}

/* Main Header */
.main-header {
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Header Search Bar - positioned left */
.header-search {
    position: absolute;
    left: clamp(15px, 3vw, 30px);
    top: 50%;
    transform: translateY(-50%);
}

.header-search-form {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.header-search-form:hover,
.header-search-form:focus-within {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: color 0.2s ease;
}

.header-search-btn:hover {
    color: #ffffff;
}

.header-search-input {
    background: transparent;
    border: none;
    padding: 8px 12px 8px 0;
    color: #ffffff;
    font-size: 0.85rem;
    width: 120px;
    outline: none;
    font-family: 'Instrument Serif', Georgia, serif;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.header-search-input:focus {
    width: 160px;
}

/* Header Action Buttons - positioned right */
.main-header .header-actions {
    position: absolute;
    right: clamp(15px, 3vw, 30px);
    top: 50%;
    transform: translateY(-50%);
}

/* Header Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-subscribe {
    background-color: #5f8a8b;
    color: #ffffff;
    padding: 10px 18px;
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-subscribe:hover {
    background-color: #4a7071;
    opacity: 1;
}

.btn-login {
    background-color: #ffffff;
    color: #333333;
    padding: 10px 18px;
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-login:hover {
    background-color: #f5f5f5;
    border-color: #999999;
    opacity: 1;
}

.btn-logout {
    background-color: transparent;
    color: #666666;
    padding: 10px 12px;
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-logout:hover {
    color: #FF0000;
    opacity: 1;
}

/* ── User Avatar Menu (logged-in header) ───────────────────────────── */

.user-menu-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.user-avatar-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;
}

.user-avatar-btn:hover,
.user-avatar-btn[aria-expanded="true"] {
    border-color: #5f8a8b;
}

.user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.user-avatar-initial {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #5f8a8b;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.is-open {
    display: block;
}

.user-dropdown-header {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

.user-dropdown-name {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #333;
}

.user-dropdown-email {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
    word-break: break-all;
}

.user-dropdown-item {
    display: block;
    padding: 10px 16px;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.user-dropdown-item:hover {
    background-color: #f5f5f5;
    color: #000;
}

.user-dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 0;
}

.user-dropdown-logout {
    color: #cc0000;
}

.user-dropdown-logout:hover {
    background-color: #fff5f5;
    color: #cc0000;
}

/* Mobile user info in hamburger menu */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.mobile-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-user-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
}

.site-logo a {
    display: inline-block;
}

.logo-image {
    height: clamp(30px, 5vw, 50px);
    width: auto;
    max-width: 100%;
    display: block;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    font-family: 'Instrument Serif', Georgia, serif;
}

.logo-tagline {
    font-size: 0.75rem;
    color: #cccccc;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Department Navigation */
.department-nav {
    background-color: #000000;
    border-bottom: none;
    position: relative;
    overflow: visible;
    z-index: 1001;
    -webkit-overflow-scrolling: touch;
}

.department-nav::-webkit-scrollbar {
    height: 4px;
}

.department-nav::-webkit-scrollbar-track {
    background: transparent;
}

.department-nav::-webkit-scrollbar-thumb {
    background-color: #333333;
    border-radius: 2px;
}

.department-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: min-content;
}

.department-menu .menu-item {
    position: static;
    flex-shrink: 0;
}

.department-menu .menu-item > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    color: #ffffff;
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.department-menu .menu-item > a:hover,
.department-menu .menu-item.active > a,
.department-menu .menu-item.dropdown-open > a {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: #ffffff;
}

.dropdown-icon {
    margin-left: 2px;
    transition: transform 0.3s ease;
    fill: #ffffff;
}

.department-menu .menu-item:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu - Full Width Mega Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1000;
}

.menu-item:hover > .dropdown-menu,
.menu-item.dropdown-open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    display: flex;
    padding: 30px 50px;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.dropdown-section {
    display: flex;
    flex-direction: column;
    min-width: 140px;
}

.dropdown-section-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.3px;
    color: #666666;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    text-transform: none;
}

.dropdown-item {
    padding: 8px 0;
    color: #333333;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
}

.dropdown-item:hover {
    color: #000000;
    text-decoration: underline;
    opacity: 1;
}

/* People Dropdown - Match Standard Dropdown Styling */
.people-dropdown-menu {
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
}

.people-dropdown-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 40px;
    padding: 30px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.people-grid-section {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.topics-section {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.featured-section {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.people-section-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.3px;
    color: #666666;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    text-transform: none;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.people-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 2px;
}

.people-item:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.people-image-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 8px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    margin-left: auto;
    margin-right: auto;
}

.people-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.people-item:hover .people-image {
    filter: grayscale(0%);
}

.people-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: 50%;
}

.people-name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #333333;
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
    word-wrap: break-word;
    padding: 0 4px;
}

.people-item:hover .people-name {
    color: #000000;
    text-decoration: underline;
}

/* Topics Section */
.topics-section-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.3px;
    color: #666666;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    text-transform: none;
}

.topics-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.topic-button {
    padding: 8px 0;
    color: #333333;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    text-transform: none;
}

.topic-button:hover {
    color: #000000;
    text-decoration: underline;
    opacity: 1;
}

/* Featured Section */
.featured-section-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.3px;
    color: #666666;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    text-transform: none;
}

.featured-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.featured-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.featured-carousel::-webkit-scrollbar {
    height: 6px;
}

.featured-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.featured-carousel::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.featured-carousel::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.featured-card {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.featured-card:hover {
    transform: translateY(-3px);
}

.featured-card-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 12px;
    background-color: #f5f5f5;
}

.featured-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.featured-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.featured-card-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #333333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card:hover .featured-card-title {
    color: #000000;
    text-decoration: underline;
}

/* Responsive adjustments for People dropdown */
@media (max-width: 1024px) {
    .people-dropdown-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .people-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px 15px;
    }
    
    .people-image-wrapper {
        width: 100px;
        height: 100px;
    }
    
}

@media (max-width: 768px) {
    .people-dropdown-content {
        padding: 30px 20px;
    }
    
    .people-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 15px;
    }
    
    .people-image-wrapper {
        width: 90px;
        height: 90px;
    }
    
    .people-name {
        font-size: 0.85rem;
        max-width: 120px;
    }
    
    
    .featured-card {
        flex: 0 0 240px;
    }
    
    .featured-card-image-wrapper {
        height: 150px;
    }
}

/* ===========================
   Advertisement Banners
   =========================== */
.ad-banner {
    background-color: #5f8a8b;
    text-align: center;
    padding: clamp(30px, 5vw, 60px) clamp(15px, 3vw, 30px);
    margin: clamp(15px, 2.5vw, 25px) 0;
}

/* Google AdSense container styles */
.adsense-container {
    background-color: transparent;
    padding: clamp(15px, 2.5vw, 30px) clamp(10px, 2vw, 20px);
}

.adsense-container .adsbygoogle {
    display: block;
    margin: 0 auto;
}

/* Ensure ads don't break layout */
.adsbygoogle {
    display: block;
    text-align: center;
}

.ad-banner-label {
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 300;
    letter-spacing: clamp(1px, 0.15vw, 2px);
    margin-bottom: 10px;
}

/* Hide label when ads are displayed */
.adsense-container .ad-banner-label {
    display: none;
}

.sidebar-ad {
    height: 100%;
}

.vertical-ad {
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* ===========================
   Hero Carousel
   =========================== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: clamp(300px, 50vw, 500px);
    overflow: hidden;
    margin-bottom: clamp(20px, 3vw, 40px);
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    will-change: opacity;
}

.carousel-slide.active {
    opacity: 1;
}

/* Optimize carousel images for performance */
.carousel-slide img {
    object-position: center;
    transform: translateZ(0);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 70%, transparent 100%);
    color: #ffffff;
    padding: clamp(30px, 5vw, 60px) clamp(20px, 4vw, 40px) clamp(25px, 3vw, 40px);
}

.carousel-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: clamp(1px, 0.2vw, 3px);
}

.carousel-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    margin-bottom: 10px;
}

.carousel-meta {
    font-size: clamp(0.75rem, 1.5vw, 0.95rem);
    font-style: italic;
    opacity: 0.9;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: #FF0000;
    transform: scale(1.2);
}

/* ===========================
   Section Headers
   =========================== */
.section-header {
    position: relative;
    margin: 30px 0 20px;
    padding-left: 15px;
}

.section-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 25px;
    margin-bottom: 40px;
}

.section-with-shared-banner {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 25px;
    margin-bottom: 40px;
}

.main-content-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.shared-sidebar-ad {
    height: 100%;
    position: sticky;
    top: 120px;
}

.section-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.2vw, 2.5px);
    color: #000000;
}

.hotspots-decorative-title {
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 3rem;
    color: #FF0000;
    text-align: center;
    margin: 20px 0 30px;
    font-weight: normal;
    border-top: 2px solid #000000;
    border-bottom: 2px solid #000000;
    padding: 15px 0;
}

.hotspots-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.hotspots-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

.hotspots-text h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hotspots-text p {
    margin-bottom: 15px;
}

.hotspots-image {
    width: 100%;
}

.hotspots-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ===========================
   Business Section
   =========================== */
.business-featured-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: clamp(20px, 3vw, 40px);
    margin-bottom: clamp(20px, 3vw, 40px);
    align-items: start;
}

.business-title-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 0;
}

.business-large-title {
    font-family: 'Instrument Serif', 'Didot', 'Bodoni MT', serif;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 300;
    line-height: 0.9;
    letter-spacing: clamp(-1px, -0.15vw, -2px);
    margin-bottom: clamp(15px, 2vw, 25px);
    color: #000000;
}

.business-subtitle {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: #666666;
    border-top: 1px solid #000000;
    padding-top: 15px;
}

.highlight-text {
    font-style: italic;
    color: #999999;
}

.business-logo {
    margin-top: auto;
}

.business-logo img {
    max-width: 200px;
    height: auto;
}

.business-images {
    display: flex;
    align-items: flex-start;
}

.business-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

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

.business-text-content {
    font-size: 0.9rem;
    line-height: 1.7;
    columns: 3;
    column-gap: 30px;
    margin-top: 20px;
}

.business-text-content p {
    margin-bottom: 15px;
}

/* ===========================
   Health Section
   =========================== */
.health-section .article-author-avatar {
    width: 60px;
    height: 60px;
    margin-top: 15px;
}

/* ===========================
   Real Estate Section
   =========================== */
.section-tagline {
    text-align: center;
    font-style: italic;
    font-size: 1.1rem;
    color: #666666;
    margin: 20px 0 40px;
    padding: 20px 0;
    border-top: 1px dotted #999999;
    border-bottom: 1px dotted #999999;
}

.real-estate-card .article-image {
    height: 200px;
}

.real-estate-card .article-content {
    padding: 15px;
}

.real-estate-card .article-author-avatar {
    width: 60px;
    height: 60px;
    float: left;
    margin-right: 12px;
    margin-bottom: 10px;
}

.real-estate-card .article-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
}

.real-estate-card .article-subtitle {
    font-size: 0.75rem;
    color: #999999;
    margin-bottom: 8px;
    font-weight: 500;
}

.real-estate-card .article-excerpt {
    font-size: 0.8rem;
    color: #666666;
    line-height: 1.5;
}

/* ===========================
   Menu Section
   =========================== */
.menu-decorative-title {
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 3rem;
    color: #FFD700;
    text-align: center;
    margin: 20px 0 30px;
    font-weight: normal;
    border-top: 2px solid #7CB342;
    border-bottom: 2px solid #7CB342;
    padding: 15px 0;
}

.menu-card .article-image {
    height: 200px;
}

.menu-card .article-content {
    padding: 15px;
}

.menu-card .article-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.menu-card .article-excerpt {
    font-size: 0.8rem;
    color: #666666;
    line-height: 1.6;
}

/* ===========================
   Brides Guide Section
   =========================== */
.brides-featured-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(20px, 3vw, 40px);
    margin-bottom: clamp(30px, 4vw, 50px);
    background-color: #f5f5f5;
    padding: clamp(20px, 3vw, 40px);
}

.brides-featured-image {
    width: 100%;
}

.brides-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.brides-featured-text h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #000000;
}

.brides-featured-text h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #666666;
    font-weight: 500;
}

.brides-featured-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #333333;
}

.brides-grid-with-banner {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 25px;
    position: relative;
}

.brides-image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    position: relative;
}

.brides-grid-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #cccccc;
}

.brides-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.philly-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    pointer-events: none;
}

.philly-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #DC143C;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Brush Script MT', cursive;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid #ffffff;
}

.brides-sidebar-banner {
    height: 100%;
}

/* ===========================
   Article Cards
   =========================== */
.article-grid {
    display: grid;
    gap: clamp(15px, 2vw, 25px);
    margin-bottom: clamp(30px, 4vw, 50px);
}

.article-grid.grid-1-3 {
    grid-template-columns: 2fr 1fr;
}

.article-grid.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}

.article-grid.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.article-grid.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-card {
    background-color: #ffffff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    will-change: transform;
}

.article-card.with-vertical-label {
    border-left: none;
}

.vertical-label {
    position: absolute;
    left: 0;
    top: 0;
    background-color: #FF0000;
    color: #ffffff;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 15px 8px;
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 10;
}

.vertical-label-green {
    background-color: #7CB342;
}

/* Hover effects - desktop only */
@media (hover: hover) and (pointer: fine) {
    .article-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
}

/* Active state for touch devices */
@media (hover: none) and (pointer: coarse) {
    .article-card:active {
        transform: scale(0.98);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #cccccc;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.article-content {
    padding: 15px;
}

.article-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    float: left;
    margin-right: 12px;
    margin-bottom: 10px;
}

.article-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-text {
    overflow: hidden;
}

.article-category {
    display: inline-block;
    background-color: #FF0000;
    color: #ffffff;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.article-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.article-excerpt {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-meta {
    font-size: 0.75rem;
    color: #999999;
    font-style: italic;
}

.article-author {
    font-weight: 600;
    color: #333333;
}

/* Featured Article */
.featured-article {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.featured-article .article-image {
    height: 100%;
}

.featured-article .article-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
    color: #ffffff;
    padding: 30px;
}

.featured-article .article-title {
    font-size: 1.8rem;
    color: #ffffff;
}

.featured-article .article-excerpt {
    color: #cccccc;
}

.featured-article .article-meta {
    color: #aaaaaa;
}

/* ===========================
   Music & Art Section
   =========================== */
.music-art-section {
    margin-bottom: 40px;
}

.music-art-layout {
    display: grid;
    grid-template-columns: minmax(200px, 300px) 1fr;
    gap: clamp(20px, 2.5vw, 30px);
    margin-bottom: clamp(20px, 3vw, 40px);
}

.music-art-banner-left {
    height: 100%;
    min-height: clamp(400px, 50vw, 600px);
}

.music-art-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(15px, 2vw, 25px);
}

.vertical-label-teal {
    background-color: #5f8a8b;
}

/* ===========================
   Multi-Column Sections
   =========================== */
.multi-column-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.column-stack .article-card {
    margin-bottom: 20px;
}

.column-stack .article-card:last-child {
    margin-bottom: 0;
}

/* ===========================
   Writers Block Section
   =========================== */
.writers-block-section {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
}

.writers-block-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
    gap: clamp(20px, 3vw, 35px);
    margin-top: clamp(15px, 2vw, 25px);
}

.writers-block-card {
    display: grid;
    grid-template-columns: minmax(150px, 200px) 1fr;
    gap: clamp(15px, 2vw, 25px);
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: clamp(15px, 2vw, 25px);
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}

.writers-block-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.writers-block-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #cccccc;
}

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

.writers-block-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.writers-block-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #000000;
}

.writers-block-excerpt {
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 12px;
    flex-grow: 1;
}

.writers-block-meta {
    font-size: 0.75rem;
    color: #999999;
    font-style: italic;
}

/* ===========================
   Magazine Ads Directory
   =========================== */
.magazine-ads-section {
    margin: 40px 0 60px;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
}

.magazine-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr));
    gap: clamp(10px, 1.5vw, 20px);
    margin-top: clamp(15px, 2vw, 25px);
}

.magazine-ad-item {
    background-color: #ffffff;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.magazine-ad-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.magazine-ad-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Old Magazine Ads styles (keeping for backward compatibility) */
.magazine-ads {
    background-color: #f5f5f5;
    padding: 60px 0;
    margin: 60px 0;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.ad-item {
    background-color: #ffffff;
    padding: 30px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ad-item img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
    background-color: #000000;
    color: #cccccc;
}

.footer-top {
    padding: clamp(40px, 6vw, 70px) 0;
    background-color: #000000;
}

.footer-three-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(30px, 5vw, 70px);
    align-items: start;
}

/* Footer Newsletter */
.footer-newsletter {
    color: #ffffff;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo-image {
    max-height: 80px;
    width: auto;
}

.footer-newsletter h3 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-newsletter-form {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
}

.footer-newsletter-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ffffff;
    background-color: #ffffff;
    color: #000000;
    font-size: 0.85rem;
    border-radius: 20px 0 0 20px;
}

.footer-newsletter-input::placeholder {
    color: #999999;
}

.footer-newsletter-submit {
    background-color: #ffffff;
    color: #000000;
    padding: 10px 20px;
    border: 1px solid #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.85rem;
    border-radius: 0 20px 20px 0;
}

.footer-newsletter-submit:hover {
    background-color: #f0f0f0;
}

.footer-consent {
    font-size: 0.7rem;
    color: #cccccc;
    line-height: 1.4;
}

.footer-consent a {
    color: #ffffff;
    text-decoration: underline;
}

/* Footer Center - Staff & Social */
.footer-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.footer-staff {
    margin-bottom: 30px;
}

.footer-staff-names {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 10px;
    font-style: italic;
}

.footer-staff-subtitle {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 0.85rem;
    color: #cccccc;
    line-height: 1.6;
}

.footer-social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-social-icon {
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    background-color: #ffffff;
    color: #000000;
}

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

/* Footer Links Column */
.footer-links-column {
    display: flex;
    justify-content: flex-end;
}

.footer-links {
    list-style: none;
    text-align: right;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ffffff;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #cccccc;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #c9302c;
    padding: 25px 0;
    text-align: center;
}

.copyright {
    font-size: 0.75rem;
    color: #ffffff;
    line-height: 1.6;
}

.copyright a {
    color: #ffffff;
    text-decoration: underline;
}

.copyright a:hover {
    opacity: 0.8;
}

/* Old Newsletter styles (keeping for backward compatibility) */
.newsletter-section {
    background-color: #FFD700;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.newsletter-section h2 {
    color: #000000;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.newsletter-submit {
    background-color: #000000;
    color: #ffffff;
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.85rem;
}

.newsletter-submit:hover {
    background-color: #FF0000;
}

.newsletter-consent {
    font-size: 0.75rem;
    color: #333333;
    margin-top: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #FF0000;
}

/* ===========================
   Responsive Design
   =========================== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    body {
        padding: 0 20px;
    }
    
    .container {
        padding: 0 40px;
    }
}

/* Medium Desktop (1024px - 1399px) */
@media (min-width: 1024px) and (max-width: 1399px) {
    .article-grid.grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .magazine-ads-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Large Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .article-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brides-image-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-three-column {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Tablets and Small Desktops (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .container {
        padding: 0 clamp(20px, 4vw, 40px);
    }
}

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
    .multi-column-section {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-ad {
        display: none;
    }
    
    .hotspots-content {
        grid-template-columns: 1fr;
    }
    
    .section-with-shared-banner {
        grid-template-columns: 1fr;
    }
    
    .shared-sidebar-ad {
        display: none;
    }
    
    .business-featured-layout {
        grid-template-columns: 1fr;
    }
    
    .business-image-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .business-text-content {
        columns: 2;
    }
    
    .brides-grid-with-banner {
        grid-template-columns: 1fr;
    }
    
    .brides-sidebar-banner {
        display: none;
    }
    
    .brides-image-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .music-art-layout {
        grid-template-columns: 1fr;
    }
    
    .music-art-banner-left {
        display: none;
    }
    
    .music-art-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .writers-block-grid {
        grid-template-columns: 1fr;
    }
    
    .magazine-ads-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-three-column {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-center {
        order: 3;
    }
    
    .footer-links-column {
        justify-content: flex-start;
        order: 2;
    }
    
    .footer-links {
        text-align: left;
    }
}

/* Small Tablets (600px - 767px) */
@media (max-width: 767px) and (min-width: 600px) {
    .article-grid.grid-2,
    .article-grid.grid-3,
    .article-grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .music-art-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Landscape mobile optimization */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-carousel {
        height: clamp(250px, 40vh, 350px);
    }
    
    .carousel-content {
        padding: 30px 20px 20px;
    }
    
    .footer-top {
        padding: 40px 0;
    }
}

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
    #page {
        box-shadow: none;
    }
    
    /* Improve text readability on mobile */
    body {
        font-size: clamp(14px, 3.5vw, 16px);
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        padding: 0 15px;
    }

    /* Hide the inline search bar on mobile — use the search toggle icon instead */
    .header-search {
        display: none;
    }

    .site-logo {
        text-align: center;
        order: 1;
        flex: 1;
    }

    .main-header .header-actions {
        position: static;
        transform: none;
        order: 2;
        flex-shrink: 0;
    }

    .logo-image {
        height: 30px;
        margin: 0 auto;
    }

    .header-actions {
        width: auto;
        justify-content: flex-end;
        gap: 4px;
    }

    /* Hide full-text buttons and avatar dropdown on mobile — they live in the hamburger menu */
    .btn-subscribe,
    .btn-login,
    .btn-logout,
    .user-menu-wrapper {
        display: none;
    }

    .logo-text {
        font-size: 1.5rem;
    }
    
    .department-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .department-menu {
        overflow-x: auto;
    }
    
    .department-menu .menu-item > a {
        padding: 10px 12px;
        font-size: 0.75rem;
        color: #ffffff;
    }
    
    /* Mobile dropdown adjustments */
    .dropdown-menu {
        position: absolute;
        left: 0 !important;
        right: 0;
        width: 100vw;
        max-height: 70vh;
        overflow-y: auto;
        transform: translateY(-10px) !important;
    }

    .menu-item:hover > .dropdown-menu,
    .menu-item.dropdown-open > .dropdown-menu {
        transform: translateY(0) !important;
    }
    
    .dropdown-content {
        flex-direction: column;
        padding: 20px;
        gap: 25px;
    }
    
    .dropdown-section {
        min-width: 100%;
    }
    
    .dropdown-section-title {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .dropdown-item {
        font-size: 0.85rem;
        padding: 6px 0;
    }
    
    .department-nav {
        overflow-x: auto;
    }
    
    .carousel-title {
        font-size: 1.4rem;
    }
    
    .carousel-content {
        padding: 20px 15px 15px;
    }
    
    .carousel-meta {
        font-size: 0.75rem;
    }
    
    .article-grid.grid-1-3,
    .article-grid.grid-4,
    .article-grid.grid-3,
    .article-grid.grid-2 {
        grid-template-columns: 1fr;
    }
    
    .multi-column-section {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .featured-article {
        height: 350px;
    }
    
    .featured-article .article-title {
        font-size: 1.2rem;
    }
    
    .article-title {
        font-size: 1rem;
    }
    
    .article-excerpt {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .article-content {
        padding: 12px;
    }
    
    .article-image {
        height: 180px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.15rem; }
    h4 { font-size: 1rem; }
    
    .section-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-ad {
        display: none;
    }
    
    .section-with-shared-banner {
        grid-template-columns: 1fr;
    }
    
    .shared-sidebar-ad {
        display: none;
    }
    
    .hotspots-decorative-title {
        font-size: 2rem;
        padding: 10px 0;
    }
    
    .hotspots-content {
        grid-template-columns: 1fr;
    }
    
    .vertical-label {
        font-size: 0.65rem;
        padding: 10px 6px;
    }
    
    .business-featured-layout {
        grid-template-columns: 1fr;
    }
    
    .business-large-title {
        font-size: 3rem;
    }
    
    .business-subtitle {
        font-size: 0.75rem;
    }
    
    .business-image-grid {
        grid-template-columns: 1fr;
    }
    
    .business-text-content {
        columns: 1;
    }
    
    .article-grid.grid-4 {
        grid-template-columns: 1fr;
    }
    
    .section-tagline {
        font-size: 0.95rem;
        margin: 15px 0 25px;
        padding: 15px 0;
    }
    
    .menu-decorative-title {
        font-size: 2rem;
        padding: 10px 0;
    }
    
    .brides-featured-content {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .brides-grid-with-banner {
        grid-template-columns: 1fr;
    }
    
    .brides-sidebar-banner {
        display: none;
    }
    
    .brides-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .philly-logo {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    
    .brides-featured-text h3 {
        font-size: 1.4rem;
    }
    
    .brides-featured-text h4 {
        font-size: 1rem;
    }
    
    .music-art-layout {
        grid-template-columns: 1fr;
    }
    
    .music-art-banner-left {
        display: none;
    }
    
    .music-art-cards {
        grid-template-columns: 1fr;
    }
    
    .writers-block-grid {
        grid-template-columns: 1fr;
    }
    
    .writers-block-card {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .writers-block-image {
        height: 180px;
    }
    
    .magazine-ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .footer-three-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-center {
        order: 3;
    }
    
    .footer-links-column {
        justify-content: flex-start;
        order: 2;
    }
    
    .footer-links {
        text-align: left;
    }
    
    .footer-newsletter-form {
        flex-direction: column;
    }
    
    .footer-newsletter-input,
    .footer-newsletter-submit {
        border-radius: 20px;
    }
    
    .footer-staff-names {
        font-size: 1.4rem;
    }
    
    .footer-staff-subtitle {
        font-size: 0.8rem;
    }
    
    .footer-social-icon {
        width: 45px;
        height: 45px;
    }
    
    .copyright {
        font-size: 0.7rem;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.text-center {
    text-align: center;
}

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }

.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

.pt-20 { padding-top: 20px; }
.pt-40 { padding-top: 40px; }
.pt-60 { padding-top: 60px; }

.pb-20 { padding-bottom: 20px; }
.pb-40 { padding-bottom: 40px; }
.pb-60 { padding-bottom: 60px; }

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

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #FF0000;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Remove default focus for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* ===========================
   Mobile Hamburger Menu
   =========================== */

/* Hide mobile-only elements on desktop */
.mobile-nav-actions {
    display: none;
}

.btn-search-toggle {
    display: none;
}

.btn-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.btn-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.btn-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    /* Hide Subscribe/Login and inline search at the same breakpoint the hamburger appears */
    .btn-subscribe,
    .btn-login,
    .btn-logout {
        display: none;
    }

    .header-search {
        display: none;
    }

    .btn-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-menu-toggle {
        display: flex;
    }

    .department-nav {
        display: none;
        overflow-x: visible;
    }

    .department-nav.mobile-nav-open {
        display: block;
    }

    .department-nav.mobile-nav-open .mobile-nav-actions {
        display: flex;
    }

    /* Mobile nav action links (subscribe/login inside hamburger) */
    .mobile-nav-actions {
        flex-direction: column;
        border-bottom: 2px solid #333;
        padding: 0;
    }

    .mobile-nav-actions a {
        display: block;
        padding: 14px 16px;
        color: #ffffff;
        text-decoration: none;
        font-family: 'Montserrat', sans-serif;
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        border-bottom: 1px solid #1a1a1a;
        transition: background-color 0.2s ease;
    }

    .mobile-nav-actions a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .mobile-nav-actions .mobile-subscribe-link {
        background-color: #5f8a8b;
    }

    .mobile-nav-actions .mobile-subscribe-link:hover {
        background-color: #4a7071;
    }

    .department-nav.mobile-nav-open .department-menu {
        flex-direction: column;
        align-items: stretch;
        min-width: 0;
        overflow-x: visible;
    }

    .department-nav.mobile-nav-open .menu-item > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid #1a1a1a;
    }

    .department-nav.mobile-nav-open .dropdown-menu {
        position: static;
        width: 100%;
        max-height: none;
        transform: none !important;
        display: none;
    }

    .department-nav.mobile-nav-open .menu-item.dropdown-open > .dropdown-menu {
        display: block;
    }
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #FF0000;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* ===========================
   Performance Optimizations
   =========================== */

/* Reduce motion for accessibility and performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Hardware acceleration for animations */
.article-card,
.carousel-slide {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Content visibility for off-screen content */
.article-card,
.magazine-ad-item,
.brides-grid-image {
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}

/* Optimize scrolling */
* {
    -webkit-overflow-scrolling: touch;
}


/* Smooth scrolling for mobile */
@media (max-width: 767px) {
    html {
        scroll-behavior: smooth;
    }
    
    /* Better tap highlight for mobile */
    a, button {
        -webkit-tap-highlight-color: rgba(95, 138, 139, 0.2);
    }
    
    /* Prevent pull-to-refresh on iOS (optional) */
    body {
        overscroll-behavior-y: contain;
    }
}

/* ===========================
   Legal Pages (Privacy, Terms)
   =========================== */
.legal-page-hero {
    background-color: #000000;
    color: #ffffff;
    padding: 50px 0 40px;
}
.legal-page-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #aaaaaa;
    margin-bottom: 10px;
}
.legal-page-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 10px;
}
.legal-page-meta { color: #aaaaaa; font-size: 0.9rem; }
.legal-page-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 50px;
    padding: 50px 0 70px;
    align-items: start;
}
@media (max-width: 900px) {
    .legal-page-layout { grid-template-columns: 1fr; }
    .legal-page-sidebar { display: none; }
}
.legal-page-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333333;
