/* ==========================================================================
   JCM UNIFORM STYLESHEET (jcmstyle.css)
   ========================================================================== */

/* COLOR PALETTE & VARIABLES */
:root {
    --bg-primary: #e9ecef;       /* Primary light background */
    --bg-secondary: #f8f9fa;     /* Secondary light background */
    --card-bg: #ffffff;          /* Clean white card backgrounds */
    
    --text-primary: #003f88;     /* Primary brand color for text/headers */
    --text-body: #2b2d42;        /* High-contrast readable body text */
    --text-muted: #5c677d;       /* Secondary/muted text */
    --text-light: #ffffff;       /* Pure white text for dark elements */
    
    --accent-main: #003f88;      /* Core brand accent */
    --accent-hover: #002855;     /* Darker hover state */
    --accent-light: #d0e1fd;     /* Light accent highlights */
    
    --border-color: #ced4da;     /* Standard subtle border */
    --shadow-sm: 0 4px 12px rgba(0, 63, 136, 0.08);
    --shadow-lg: 0 12px 30px rgba(0, 63, 136, 0.12);
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* BASE RESET & TYPOGRAPHY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-body);
    font-size: 16px;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* UNIFORM HEADING SIZES ACROSS ALL PAGES */
h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
}

h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

h4 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.7rem 8%;
    box-shadow: var(--shadow-sm);
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-footer {
    justify-content: center;
    margin-bottom: 10px;
}

.logo-img-nav {
    height: 80px;
}

.logo-img-footer {
    height: 120px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-nav {
    background-color: var(--text-primary);
    color: var(--text-light) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    border: 1px solid var(--text-primary);
}

.btn-nav::after {
    display: none !important;
}

.btn-nav:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--text-light) !important;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* HERO / PAGE BANNER SECTION */
.hero, .page-banner {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 8% 70px;
    background: linear-gradient(180deg, rgba(0,0,0, 0.85) 0%, rgba(100,100,100, 0.58) 100%), 
                url('https://images.unsplash.com/photo-1438232992991-995b7058bbb3?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
    position: relative;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content, .banner-container {
    max-width: 850px;
    position: relative;
    z-index: 1;
}



.badge, .upcoming-badge {
    display: inline-block;
    padding: 6px 18px;
    background: #d0e1fd;
    border: 1px solid #a3c4f3;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.hero p, .page-banner p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* SECTION LAYOUTS */
section {
    padding: 80px 8%;
}

.section-header, .podcast-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2, .section-heading {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2::after, .section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    margin-top: 15px;
}

.content-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 4%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.home-img-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 0px;   
}



/* CARDS & CONTAINERS */
.content-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 35px;
    height: auto !important;
}

.activity-card {
	border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 30px;
    height: auto !important;
	background-image: 
    linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8)), 
    url('https://jesuscentralministries.com/img/evolve-mumbai-2026/10.JPG');

	/* Crucial sizing and positioning properties */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.image-card, .location-card, .sermon-card, 
.intro-card, .form-card, .motto-card, .event-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 30px;
    height: auto !important;
}

.home-img-card:hover, .image-card:hover, .location-card:hover, .activity-card:hover, 
.sermon-card:hover, .content-card:hover, .event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #a3c4f3;
}

.card-content, .location-details, .activity-info, .sermon-info {
    padding: 1.75rem;
}

.activity-info {
	margin-top: 200px;
}

.activity-info > h4,
.activity-info > p {
	color: #ffffff;
}

/* EVENT DETAILS GRID */
.event-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.event-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--text-body);
}

.event-detail-item i {
    color: var(--text-primary);
    font-size: 1.2rem;
}

.subtext-muted {
    color: var(--text-muted);
    font-style: italic;
}

/* GALLERIES & SLIDERS */
.gallery-wrapper {
    position: relative;
    margin-top: 1.8rem;
    width: 100%;
    display: flex;
    align-items: center;
}

.gallery-slider {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px;
    width: 100%;
    scrollbar-width: none;
}

.gallery-slider::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    flex: 0 0 280px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-thumb:hover {
    border-color: var(--text-primary);
    transform: translateY(-4px);
}

.gallery-thumb:hover img {
    transform: scale(1.08);
}

.gallery-thumb::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-size: 1.2rem;
    opacity: 0;
    background: rgba(0, 63, 136, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-thumb:hover::after {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--text-primary);
    color: var(--text-light);
}

.slider-btn.left { left: -15px; }
.slider-btn.right { right: -15px; }

/* LIGHTBOX MODAL */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 1rem;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--text-light);
    font-size: 2.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent-light);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: var(--text-primary);
    color: var(--text-light);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* MOTTO CARD STYLING */
.motto-card {
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 63, 136, 0.9) 0%, rgba(0, 40, 85, 0.9) 100%);
    color: var(--text-light);
}

.motto-card h2 {
    color: var(--text-light);
}

.intro-card p {
    margin-bottom: 1rem;
}

/* GRIDS */
.grid-3, .sermons-grid, .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    height: auto;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.card-grid.reverse {
    grid-template-columns: 1fr 1fr;
}

.card-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.activity-card img {
    width: 100%;
    height: 50%;
    object-fit: cover;
    transition: var(--transition);  
}

.card-image img, .card-img-wrapper img, .image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.image-card {
    height: auto;
    overflow: hidden;
    padding: 0;
}

.image-card:hover .card-img-wrapper img,
.card-image:hover img,
.image-card:hover img {
    transform: scale(1.05);
}

.card-img-wrapper {
    height: 300px;
    overflow: hidden;
}

/* BIBLE QUOTES & HIGHLIGHTS */
blockquote {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--text-primary);
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.highlight-quote {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

.tagline-badge {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* FEATURED BANNER & BELIEFS SECTION */
.faith-banner-card {
    background: linear-gradient(180deg, rgba(0, 63, 136, 0.9) 0%, rgba(0, 40, 85, 0.9) 100%),
                url('https://images.unsplash.com/photo-1510936111840-65e151ad71bb?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
    border-radius: 16px;
    padding: 3.5rem 2.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: left;
}

.faith-banner-card h2, 
.faith-banner-card p {
    color: var(--text-light);
}

.faith-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.faith-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    background: var(--bg-secondary);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.faith-item:hover {
    border-color: #a3c4f3;
    transform: translateY(-2px);
}

.faith-number {
    background-color: var(--text-primary);
    color: var(--text-light);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.faith-details h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faith-details p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-body);
}

/* CLOSING CALLOUT SECTION */
.closing-card {
    background: linear-gradient(180deg, rgba(0, 63, 136, 0.85) 0%, rgba(0, 40, 85, 0.95) 100%),
                url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
    border: 1px solid var(--border-color);
    text-align: center;
    padding: 4.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.closing-card h2 {
    font-size: 2rem;
    color: var(--text-light);
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto;
}

/* BULLET LIST */
.bullet-list {
    list-style: none;
    margin: 1.5rem 0;
}

.bullet-list li {
    font-size: 1.05rem;
    color: var(--text-body);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bullet-list li i {
    color: var(--text-primary);
}

/* BUTTONS & CALL TO ACTIONS */
.btn-primary, .btn-submit, .cta-button, .action-btn, .brick-cta {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background-color: var(--text-primary);
    color: var(--text-light) !important;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.btn-primary:hover, .btn-submit:hover, .cta-button:hover, .action-btn:hover, .brick-cta:hover {
    background-color: var(--accent-hover);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.brick-cta {
    margin-top: 15px;
    padding: 8px 20px;
    font-size: 0.9rem;
}

.cta-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.cta-btn-group {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

/* FORMS */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-body);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 63, 136, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.form-status {
    margin-top: 1rem;
    font-weight: 600;
}

.honeypot-field {
    display: none;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.2rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-top: 4px;
}

.form-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* SERMONS & PODCASTS */
#sermons, #activities {
    background-color: var(--bg-secondary);
	margin-top: 40px;
}

#activities img {
    max-height: 75%;
}

.sermon-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
}

.sermon-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 63, 136, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.play-icon {
    width: 50px;
    height: 50px;
    background-color: var(--text-primary);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sermon-date {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.sermon-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.podcast-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.podcast-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid var(--border-color);
    padding-right: 2.5rem;
}

.podcast-cover {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1;
    border-radius: 12px;
    margin-bottom: 1.2rem;
}

.podcast-episodes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

.episode-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
}

audio {
    width: 100%;
    height: 36px;
    margin-top: 8px;
}

/* MODAL */
.sermon-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.sermon-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 100%;
    max-width: 900px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-light);
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

.video-frame-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-frame-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FOOTER */
footer {
    background-color: var(--card-bg);
    padding: 50px 8% 25px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    margin-bottom: 25px;
}

.footer-locations {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.socials a:hover {
    background-color: var(--text-primary);
    color: var(--text-light);
    transform: translateY(-3px);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hero-tagline {
    font-size: 60pt; font-family: 'Dancing Script', cursive; font-weight: 200; color: #ffffff33;
}

.banner-container > p {
	color: #ffffff;
}

.locations {
  margin: 20px 0;
  display: flex;       /* Turns the container into a flexbox */
  flex-wrap: wrap;     /* Allows cities to drop to the next line dynamically */
  gap: 15px 10px;      /* Fixes overlapping: 15px spacing between rows, 10px between cities */
}

.cities {
  display: inline-block;
  white-space: nowrap; /* Fixes text wrapping: Keeps city names on a single line */
  padding: 10px 30px;
  font-size: 10pt;
  color: var(--text-primary);
  border: 1px solid var(--bg-secondary);
  border-radius: 80px;
  background-color: var(--bg-primary);
  /* Individual margins are removed because 'gap' handles all spacing */
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .card-grid, .card-grid.reverse, .contact-wrapper, .podcast-container, .faith-grid {
        grid-template-columns: 1fr;
    }

    .card-grid.reverse .card-image {
        order: -1;
    }
    
    .hero-tagline {
        font-size: 42pt;
    }
    
    .podcast-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }

    .mobile-toggle {
        display: block;
    }
    
    .hero-tagline {
        font-size: 42pt;
    }
    .activity-card {
        height: 1000px;
    }
    p, h1, h2, h3, h4, h5, div {
        text-align: center;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .faith-item {
        flex-direction: column;
        gap: 0.8rem;
    }

    .intro-card, .form-card, .motto-card, .event-card {
        padding: 1.75rem;
    }

    .gallery-thumb {
        flex: 0 0 200px;
        height: 130px;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}