/* =================================================================
 * TCGR Importer styles — render the editable Elementor homepage so it
 * matches the reference (thechristgospelradio.com) exactly.
 *
 * Scope: every block lives under a `.tcgr-elem-section` Elementor section
 * (added via the importer) so these rules never bleed into other pages.
 * =============================================================== */

:root {
    --tcgr-ink: #111827;
    --tcgr-muted: #6b7280;
    --tcgr-line: #e5e7eb;
    --tcgr-burgundy: #7b1538;
    --tcgr-burgundy-dark: #3a091a;
    --tcgr-burgundy-deep: #210510;
    --tcgr-gold: #d4af37;
    --tcgr-gold-light: #f3d76e;
    --tcgr-radius: 10px;
    --tcgr-shadow: 0 18px 38px rgba(17, 24, 39, .12);
    --tcgr-shadow-dark: 0 22px 50px rgba(0, 0, 0, .55);
}

.tcgr-elem-section .tcgr-container {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.tcgr-elem-section h1,
.tcgr-elem-section h2,
.tcgr-elem-section h3,
.tcgr-elem-section h4 {
    font-family: "Playfair Display", Georgia, serif;
    letter-spacing: 0;
    color: var(--tcgr-ink);
    margin: 0;
}

.tcgr-elem-section .tcgr-section-title {
    margin: 8px 0 12px;
    font-size: clamp(30px, 3.4vw, 42px);
    line-height: 1.05;
    font-weight: 800;
}

.tcgr-elem-section .tcgr-section-title.is-light {
    color: #fff;
}

.tcgr-elem-section .tcgr-section-sub {
    max-width: 720px;
    color: var(--tcgr-muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 26px;
}

.tcgr-elem-section .tcgr-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.tcgr-elem-section .tcgr-badge-gold {
    color: var(--tcgr-burgundy-deep);
    background: var(--tcgr-gold);
}

.tcgr-elem-section .tcgr-section-badge {
    margin-bottom: 10px;
}

.tcgr-elem-section .tcgr-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    color: var(--tcgr-burgundy-deep);
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.tcgr-elem-section .tcgr-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(212, 175, 55, .35);
}

.tcgr-elem-section .tcgr-button-gold {
    background: var(--tcgr-gold);
}

.tcgr-elem-section .tcgr-button-gold:hover {
    background: var(--tcgr-gold-light);
}

.tcgr-elem-section .tcgr-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ============================================================
 * 1. HERO
 * ========================================================== */
.tcgr-elem-hero {
    position: relative;
    min-height: 540px;
    color: #fff;
    background-color: var(--tcgr-burgundy-dark);
}

.tcgr-elem-hero:not(.elementor-section) {
    padding: 170px 0 130px;
    background-position: center center;
    background-size: cover;
}

.tcgr-elem-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(33, 5, 16, .92) 0%, rgba(58, 9, 26, .55) 55%, rgba(58, 9, 26, .25) 100%);
    pointer-events: none;
    z-index: 1;
}

.tcgr-elem-hero > .elementor-container,
.tcgr-elem-hero > .tcgr-container {
    position: relative;
    z-index: 2;
}

.tcgr-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 40px;
}

.tcgr-hero-copy h1 {
    margin: 14px 0 16px;
    max-width: 760px;
    color: #fff;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.05;
    font-weight: 800;
}

.tcgr-hero-copy p {
    max-width: 640px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
    line-height: 1.7;
}

.tcgr-hero-cta {
    box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
}

.tcgr-hero-side {
    display: flex;
    justify-content: flex-end;
}

.tcgr-hero-radio {
    display: grid;
    gap: 14px;
    padding: 20px 22px;
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
    min-width: 280px;
}

.tcgr-hero-radio-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 255, 255, .9);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.tcgr-hero-radio-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, .6);
    animation: tcgrPulse 1.6s infinite;
}

@keyframes tcgrPulse {
    0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); }
    70%  { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.tcgr-hero-radio-cta {
    justify-content: center;
}

/* ============================================================
 * 2. PARTNERS
 * ========================================================== */
.tcgr-elem-partners {
    position: relative;
    color: #fff;
    text-align: center;
}

.tcgr-elem-partners:not(.elementor-section) {
    padding: 70px 0 80px;
    background: linear-gradient(180deg, var(--tcgr-burgundy) 0%, var(--tcgr-burgundy-dark) 100%);
}

.tcgr-elem-partners::before,
.tcgr-elem-partners::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: 6px;
    background: linear-gradient(90deg, transparent 0%, var(--tcgr-gold) 50%, transparent 100%);
    opacity: .6;
}

.tcgr-elem-partners::before { top: 0; }
.tcgr-elem-partners::after  { bottom: 0; }

.tcgr-elem-partners .tcgr-section-badge {
    margin-inline: auto;
}

.tcgr-elem-partners .tcgr-section-title.is-light {
    text-align: center;
}

.tcgr-partner-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    margin-top: 32px;
}

.tcgr-partner-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 20px 16px 24px;
    border-radius: var(--tcgr-radius);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    text-decoration: none;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.tcgr-partner-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, .09);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .25);
}

.tcgr-partner-thumb {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--tcgr-gold);
    background: #1a0510;
}

.tcgr-partner-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tcgr-partner-card h3 {
    color: var(--tcgr-gold);
    font-size: 18px;
    line-height: 1.2;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 800;
    margin: 0;
}

.tcgr-partner-card p {
    margin: 0;
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
}

/* ============================================================
 * 3. LATEST NEWS
 * ========================================================== */
.tcgr-elem-news:not(.elementor-section) {
    padding: 80px 0 90px;
    background: #f4f4f6;
}

.tcgr-elem-news .tcgr-section-title {
    color: var(--tcgr-burgundy);
}

.tcgr-elem-news .tcgr-news-head {
    margin-bottom: 24px;
}

.tcgr-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr);
    gap: 24px;
    align-items: start;
}

.tcgr-news-featured-card {
    overflow: hidden;
    border-radius: var(--tcgr-radius);
    background: #fff;
    box-shadow: var(--tcgr-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

.tcgr-news-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px rgba(17, 24, 39, .14);
}

.tcgr-news-featured-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #c9c9c9;
}

.tcgr-news-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.tcgr-news-featured-card:hover .tcgr-news-featured-thumb img {
    transform: scale(1.04);
}

.tcgr-news-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--tcgr-burgundy-deep);
    background: var(--tcgr-gold);
    font-family: Inter, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tcgr-news-featured-body {
    padding: 22px 24px 26px;
}

.tcgr-news-featured-body h3 {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.18;
    color: var(--tcgr-ink);
}

.tcgr-news-featured-body h3 a {
    color: inherit;
    text-decoration: none;
}

.tcgr-news-featured-body h3 a:hover {
    color: var(--tcgr-burgundy);
}

.tcgr-news-featured-body p {
    margin: 10px 0 0;
    color: var(--tcgr-muted);
    line-height: 1.65;
}

.tcgr-news-meta {
    color: var(--tcgr-muted);
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.tcgr-news-list {
    display: grid;
    gap: 14px;
}

.tcgr-news-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
    border-radius: var(--tcgr-radius);
    background: #fff;
    box-shadow: 0 8px 20px rgba(17, 24, 39, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.tcgr-news-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(17, 24, 39, .1);
}

.tcgr-news-row-thumb {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #ddd;
}

.tcgr-news-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tcgr-news-row-thumb span {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    color: var(--tcgr-burgundy-deep);
    background: var(--tcgr-gold);
    font-family: Inter, system-ui, sans-serif;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
}

.tcgr-news-row-body {
    align-self: center;
}

.tcgr-news-row h4 {
    margin: 0 0 6px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 16px;
    line-height: 1.25;
    color: var(--tcgr-ink);
}

.tcgr-news-row h4 a {
    color: inherit;
    text-decoration: none;
}

.tcgr-news-row h4 a:hover {
    color: var(--tcgr-burgundy);
}

/* ============================================================
 * 4. GOSPEL MUSIC
 * ========================================================== */
.tcgr-elem-music:not(.elementor-section) {
    padding: 80px 0 90px;
    background: #fff;
}

.tcgr-elem-music .tcgr-section-title {
    color: var(--tcgr-burgundy);
}

.tcgr-music-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
    margin-top: 26px;
}

.tcgr-music-card {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: var(--tcgr-radius);
    text-align: center;
    text-decoration: none;
    color: var(--tcgr-ink);
    transition: transform .25s ease;
}

.tcgr-music-card:hover {
    transform: translateY(-4px);
}

.tcgr-music-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #1a0510;
    box-shadow: 0 12px 26px rgba(17, 24, 39, .14);
}

.tcgr-music-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.tcgr-music-card:hover .tcgr-music-thumb img {
    transform: scale(1.06);
}

.tcgr-music-card h4 {
    margin: 6px 0 0;
    color: var(--tcgr-burgundy);
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.tcgr-music-card span {
    color: var(--tcgr-muted);
    font-size: 12px;
    font-weight: 600;
}

/* ============================================================
 * 5. DEVOTIONAL
 * ========================================================== */
.tcgr-elem-devotional {
    color: #fff;
}

.tcgr-elem-devotional:not(.elementor-section) {
    padding: 90px 0 100px;
    background: linear-gradient(180deg, var(--tcgr-burgundy-dark) 0%, var(--tcgr-burgundy-deep) 100%);
}

.tcgr-elem-devotional .tcgr-section-title {
    color: #fff;
}

.tcgr-elem-devotional p {
    color: rgba(255, 255, 255, .78);
    max-width: 540px;
    line-height: 1.75;
    font-size: 16px;
    margin: 0 0 24px;
}

.tcgr-devotional-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 44px;
    align-items: center;
}

.tcgr-scripture-card {
    padding: 30px 30px;
    border-radius: var(--tcgr-radius);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(212, 175, 55, .35);
    box-shadow: var(--tcgr-shadow-dark);
    backdrop-filter: blur(6px);
}

.tcgr-scripture-card h3 {
    margin: 14px 0 14px;
    color: var(--tcgr-gold);
    font-size: 22px;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 800;
}

.tcgr-scripture-card blockquote {
    margin: 0;
    padding: 14px 0 0;
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
    line-height: 1.55;
    font-style: italic;
    border-top: 1px solid rgba(212, 175, 55, .35);
}

/* ============================================================
 * 6. CATEGORIES
 * ========================================================== */
.tcgr-elem-categories:not(.elementor-section) {
    padding: 80px 0 90px;
    background: #f4f4f6;
}

.tcgr-elem-categories .tcgr-section-title {
    color: var(--tcgr-burgundy);
    text-align: center;
}

.tcgr-elem-categories .tcgr-section-badge {
    margin-inline: auto;
    display: flex;
}

.tcgr-elem-categories > .elementor-container > .elementor-column > .elementor-widget-wrap {
    align-content: center;
    text-align: center;
}

.tcgr-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    margin-top: 32px;
}

.tcgr-category-card {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 6px;
    text-decoration: none;
    text-align: center;
    color: var(--tcgr-ink);
    transition: transform .25s ease;
}

.tcgr-category-card:hover {
    transform: translateY(-4px);
}

.tcgr-category-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--tcgr-radius);
    background: #c9c9c9;
    box-shadow: var(--tcgr-shadow);
}

.tcgr-category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.tcgr-category-card:hover .tcgr-category-thumb img {
    transform: scale(1.06);
}

.tcgr-category-card h4 {
    margin: 10px 0 0;
    color: var(--tcgr-burgundy);
    font-family: Inter, system-ui, sans-serif;
    font-weight: 800;
    font-size: 18px;
}

.tcgr-category-card span {
    color: var(--tcgr-muted);
    font-size: 13px;
    font-weight: 600;
}

/* ============================================================
 * 7. NEWSLETTER
 * ========================================================== */
.tcgr-elem-newsletter:not(.elementor-section) {
    padding: 80px 0 100px;
    background: #fff;
}

.tcgr-elem-newsletter .tcgr-section-title {
    color: var(--tcgr-burgundy);
}

.tcgr-elem-newsletter p {
    color: var(--tcgr-muted);
    max-width: 520px;
    line-height: 1.7;
    margin: 0;
}

.tcgr-elem-newsletter .wpcf7-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.tcgr-elem-newsletter .wpcf7-form input[type="email"],
.tcgr-elem-newsletter .wpcf7-form input[type="text"] {
    height: 52px;
    padding: 0 18px;
    border: 1px solid var(--tcgr-line);
    border-radius: 999px;
    background: #f7f7f8;
    font: inherit;
}

.tcgr-elem-newsletter .wpcf7-submit {
    height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: var(--tcgr-burgundy);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

/* ============================================================
 * RADIO PLAYER SHORTCODE
 * ========================================================== */
.tcgr-radio-player {
    display: grid;
    gap: 14px;
}

.tcgr-radio-player-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.tcgr-radio-player-title svg,
.tcgr-radio-player .tcgr-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.tcgr-radio-player audio,
.tcgr-radio-player iframe {
    width: 100%;
}

/* ============================================================
 * RESPONSIVE
 * ========================================================== */
@media (max-width: 1080px) {
    .tcgr-hero-grid              { grid-template-columns: 1fr; }
    .tcgr-hero-side              { justify-content: flex-start; }
    .tcgr-news-layout            { grid-template-columns: 1fr; }
    .tcgr-partner-grid           { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tcgr-music-grid             { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tcgr-category-grid          { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tcgr-devotional-grid        { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .tcgr-partner-grid,
    .tcgr-music-grid,
    .tcgr-category-grid          { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .tcgr-elem-hero              { min-height: 480px; }
    .tcgr-hero-copy h1           { font-size: 32px; }

    .tcgr-elem-newsletter .wpcf7-form { grid-template-columns: 1fr; }
}
