/**
 * Marthoma Church Theme - News Single Page Styles
 *
 * Clean, modern design matching the site's Elementor design patterns.
 *
 * @package MarthomaChurch
 */

/* ==========================================
   LAYOUT CONTAINER
   ========================================== */

/* Override theme defaults for news single */
.news-single.site-main {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
    overflow-x: hidden;
}

/* Make site-content allow overlapping header */
body.single-marthoma_news #content.site-content {
    margin-top: 0;
    padding-top: 0;
    overflow: visible;
}


.news-single {
    background-color: #ffffff;
}

.news-single-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.news-single-hero {
    position: relative;
    background-color: #F4F3F8;
    padding-bottom: 80px;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -200px;
    padding-top: calc(200px + 80px); /* Header overlap + content padding */
}

.news-single-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-single-hero-content {
    max-width: 700px;
}

/* Meta (Date & Source) */
.news-single-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.news-single-date {
    font-family: var(--marthoma-font-body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: #707070;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-single-separator {
    color: #D0D5DD;
}

.news-single-source {
    font-family: var(--marthoma-font-body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: #375EFB;
}

/* Title */
.news-single-title {
    font-family: var(--marthoma-font-heading, 'Montserrat', sans-serif);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    color: #04141E;
    margin: 0 0 20px 0;
}

/* Excerpt */
.news-single-excerpt {
    font-family: var(--marthoma-font-body, 'Inter', sans-serif);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #707070;
    margin: 0;
}

/* ==========================================
   ARTICLE CONTENT
   ========================================== */

.news-single-article {
    padding: 60px 0;
}

/* Featured Image */
.news-single-featured-image {
    margin-bottom: 50px;
    border-radius: 16px;
    overflow: hidden;
}

.news-single-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Body */
.news-single-body {
    max-width: 700px;
    margin: 0 auto;
}

.news-single-content {
    font-family: var(--marthoma-font-body, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: #04141E;
}

.news-single-content p {
    margin-bottom: 1.5em;
}

.news-single-content p:last-child {
    margin-bottom: 0;
}

.news-single-content h2,
.news-single-content h3,
.news-single-content h4 {
    font-family: var(--marthoma-font-heading, 'Montserrat', sans-serif);
    font-weight: 700;
    color: #04141E;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.news-single-content h2 {
    font-size: 28px;
}

.news-single-content h3 {
    font-size: 22px;
}

.news-single-content h4 {
    font-size: 18px;
}

.news-single-content ul,
.news-single-content ol {
    margin: 0 0 1.5em 1.5em;
    padding: 0;
}

.news-single-content li {
    margin-bottom: 0.5em;
}

.news-single-content a {
    color: #375EFB;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.news-single-content a:hover {
    color: #04141E;
}

.news-single-content blockquote {
    margin: 2em 0;
    padding: 20px 30px;
    border-left: 4px solid #375EFB;
    background-color: #F4F3F8;
    font-style: italic;
    color: #04141E;
}

.news-single-content blockquote p:last-child {
    margin-bottom: 0;
}

.news-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

/* Responsive Embeds (YouTube, Vimeo, etc.) */
.news-single-content iframe {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5em 0;
}

.news-single-content .wp-block-embed,
.news-single-content .embed-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 1.5em 0;
    border-radius: 8px;
}

.news-single-content .wp-block-embed iframe,
.news-single-content .embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

/* External Link Button */
.news-single-external {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #E0E0E0;
}

.news-single-external-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--marthoma-font-body, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background-color: #375EFB;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.news-single-external-link:hover {
    background-color: #04141E;
    transform: translateY(-2px);
}

.news-single-external-link svg {
    transition: transform 0.3s ease;
}

.news-single-external-link:hover svg {
    transform: translate(2px, -2px);
}

/* ==========================================
   SHARE SECTION
   ========================================== */

.news-single-share {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #E0E0E0;
}

.news-single-share-label {
    font-family: var(--marthoma-font-body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: #707070;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-single-share-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-single-share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #F4F3F8;
    color: #04141E;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.news-single-share-link:hover {
    background-color: #375EFB;
    color: #ffffff;
}

/* ==========================================
   BACK TO NEWS
   ========================================== */

.news-single-back {
    padding: 40px 0;
    background-color: #F4F3F8;
    width: 100%;
}

.news-single-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--marthoma-font-body, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #04141E;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-single-back-link:hover {
    color: #375EFB;
}

.news-single-back-link svg {
    transition: transform 0.3s ease;
}

.news-single-back-link:hover svg {
    transform: translateX(-4px);
}

/* ==========================================
   RELATED NEWS
   ========================================== */

.news-single-related {
    padding: 80px 0;
    background-color: #ffffff;
    width: 100%;
}

.news-single-related-title {
    font-family: var(--marthoma-font-heading, 'Montserrat', sans-serif);
    font-size: 28px;
    font-weight: 700;
    color: #04141E;
    margin: 0 0 40px 0;
}

.news-single-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Related Card - Matches News Archive Design */
.news-related-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 15px;
}

.news-related-card-line {
    width: 2px;
    min-height: 104px;
    height: 100%;
    background-color: #D0D5DD;
    flex-shrink: 0;
}

.news-related-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    min-height: 104px;
}

.news-related-card-date {
    font-family: var(--marthoma-font-body, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 500;
    color: #707070;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.news-related-card-title {
    font-family: var(--marthoma-font-heading, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #072538;
    text-transform: uppercase;
    margin: 0;
    flex: 1;
}

.news-related-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-related-card-title a:hover {
    color: #375EFB;
}

.news-related-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--marthoma-font-body, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #072538;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: auto;
    padding-top: 15px;
}

.news-related-card-link:hover {
    color: #375EFB;
}

.news-related-card-link svg {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.news-related-card-link:hover svg {
    transform: translate(2px, -2px);
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

/* Large Tablet (1024px and below) */
@media (max-width: 1024px) {
    .news-single-hero {
        margin-top: -160px;
        padding-top: calc(160px + 60px);
        padding-bottom: 60px;
        min-height: 50vh;
    }

    .news-single-title {
        font-size: 36px;
    }

    .news-single-excerpt {
        font-size: 16px;
    }

    .news-single-article {
        padding: 50px 0;
    }

    .news-single-featured-image {
        margin-bottom: 40px;
    }

    .news-single-content {
        font-size: 15px;
    }

    .news-single-content h2 {
        font-size: 24px;
    }

    .news-single-content h3 {
        font-size: 20px;
    }

    .news-single-related {
        padding: 60px 0;
    }

    .news-single-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .news-single-hero {
        margin-top: -120px;
        padding-top: calc(120px + 50px);
        padding-bottom: 50px;
        min-height: 45vh;
    }

    .news-single-meta {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 15px;
    }

    .news-single-date,
    .news-single-source {
        font-size: 13px;
    }

    .news-single-title {
        font-size: 28px;
    }

    .news-single-excerpt {
        font-size: 15px;
    }

    .news-single-article {
        padding: 40px 0;
    }

    .news-single-featured-image {
        margin-bottom: 30px;
        border-radius: 12px;
    }

    .news-single-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .news-single-content h2 {
        font-size: 22px;
    }

    .news-single-content h3 {
        font-size: 18px;
    }

    .news-single-content blockquote {
        padding: 15px 20px;
        margin: 1.5em 0;
    }

    .news-single-external {
        margin-top: 30px;
        padding-top: 30px;
    }

    .news-single-external-link {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .news-single-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-top: 40px;
    }

    .news-single-back {
        padding: 30px 0;
    }

    .news-single-related {
        padding: 50px 0;
    }

    .news-single-related-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .news-single-related-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .news-single-hero {
        margin-top: -100px;
        padding-top: calc(100px + 40px);
        padding-bottom: 40px;
        min-height: 40vh;
    }

    .news-single-hero-inner,
    .news-single-container {
        padding: 0 15px;
    }

    .news-single-date,
    .news-single-source {
        font-size: 12px;
    }

    .news-single-title {
        font-size: 24px;
    }

    .news-single-excerpt {
        font-size: 14px;
    }

    .news-single-article {
        padding: 30px 0;
    }

    .news-single-featured-image {
        margin-bottom: 25px;
        border-radius: 10px;
    }

    .news-single-content {
        font-size: 14px;
    }

    .news-single-content h2 {
        font-size: 20px;
    }

    .news-single-content h3 {
        font-size: 17px;
    }

    .news-single-content h4 {
        font-size: 16px;
    }

    .news-single-external-link {
        font-size: 14px;
        padding: 12px 20px;
    }

    .news-single-share-label {
        font-size: 13px;
    }

    .news-single-share-link {
        width: 36px;
        height: 36px;
    }

    .news-single-share-link svg {
        width: 16px;
        height: 16px;
    }

    .news-single-back-link {
        font-size: 14px;
    }

    .news-single-related {
        padding: 40px 0;
    }

    .news-single-related-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .news-related-card-line {
        min-height: 80px;
    }

    .news-related-card-content {
        min-height: 80px;
    }

    .news-related-card-title {
        font-size: 13px;
    }

    .news-related-card-link {
        font-size: 14px;
        padding-top: 12px;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .news-single-external-link,
    .news-single-external-link svg,
    .news-single-share-link,
    .news-single-back-link,
    .news-single-back-link svg,
    .news-related-card-link,
    .news-related-card-link svg,
    .news-related-card-title a {
        transition: none;
    }

    .news-single-external-link:hover {
        transform: none;
    }
}
