/* News & Media section: layouts on top of the site theme (css/style.css).
   Layout choices come from Admin → Settings. */

:root {
    --news-accent: #254399;
    --news-accent-text: color-mix(in srgb, var(--news-accent) 45%, #ffffff);
    --news-line: #3a3a3a;
}

/* ---------- Page header ---------- */

.news-subheading {
    max-width: 720px;
    margin: 10px auto 0;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Content / sidebar placement ---------- */

@media (min-width: 992px) {
    .news-sidebar-left .blog-sidebar,
    .news-sidebar-left .blog-single {
        padding-right: 0;
        padding-left: 50px;
    }
}

.news-no-sidebar .blog-sidebar,
.news-no-sidebar .blog-single {
    padding-right: 0;
}

.news-no-sidebar .blog-single {
    max-width: 880px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .blog-sidebar,
    .blog-single {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .sidebar-side {
        margin-top: 50px;
    }
}

/* ---------- News feed ---------- */

.news-feed-wrap {
    container-type: inline-size;
}

.news-feed {
    display: grid;
    gap: 30px;
    margin-bottom: 50px;
}

.news-feed .news-card {
    margin-bottom: 0;
    min-width: 0;
}

.news-card .inner-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card .lower-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    border-bottom-color: var(--news-accent);
}

.news-card .lower-content h3 {
    font-size: 21px;
    line-height: 1.35;
}

.news-card .lower-content .text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.7;
    color: #b5b5b5;
}

.news-card .lower-content .theme-btn {
    margin-top: auto;
}

.news-card .post-info li a {
    color: inherit;
}

/* Uniform image shape (unless "Original" is chosen). */
.news-feed[style*="--news-ratio"] .news-card .image {
    aspect-ratio: var(--news-ratio);
}

.news-feed[style*="--news-ratio"] .news-card .image a,
.news-feed[style*="--news-ratio"] .news-card .image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Posts without a cover image get a branded placeholder in grid/compact layouts. */
.news-card .news-placeholder {
    aspect-ratio: var(--news-ratio, 16 / 9);
}

.news-card .news-placeholder a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1b1b1b 0%, #2d2d2d 100%);
}

.news-card .news-placeholder img,
.news-feed[style*="--news-ratio"] .news-card .news-placeholder img {
    width: 45% !important;
    max-width: 220px;
    height: auto !important;
    object-fit: contain;
    opacity: 0.75;
}

/* Grid layout */
.layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.layout-grid .is-featured {
    grid-column: 1 / -1;
}

.layout-grid .is-featured .lower-content h3 {
    font-size: 28px;
}

.layout-grid.cols-3 .news-card:not(.is-featured) .lower-content h3,
.news-card.is-small .lower-content h3 {
    font-size: 18px;
}

.news-card.is-small .lower-content {
    padding: 20px 20px 22px;
}

.news-card.is-small .lower-content .text {
    -webkit-line-clamp: 3;
    font-size: 14px;
}

/* Large posts layout (one per row, full image) */
.layout-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 50px;
}

.layout-list .news-card .lower-content h3 {
    font-size: 26px;
}

/* Compact layout (image left, text right) */
.layout-compact {
    grid-template-columns: minmax(0, 1fr);
}

.layout-compact .news-card .lower-content {
    border-radius: 0;
}

/* Side-by-side cards when there is room. */
@container (min-width: 620px) {
    .layout-compact .news-card .inner-box,
    .layout-grid .is-featured .inner-box {
        flex-direction: row;
    }

    .layout-compact .news-card .image {
        flex: 0 0 38%;
    }

    .layout-grid .is-featured .image {
        flex: 0 0 58%;
    }

    .layout-compact .news-card .lower-content,
    .layout-grid .is-featured .lower-content {
        justify-content: center;
        border-radius: 0;
    }

    .layout-compact .news-card .lower-content .theme-btn,
    .layout-grid .is-featured .lower-content .theme-btn {
        margin-top: 10px;
    }
}

/* Fewer columns when the content area is narrow (sidebar, tablets, phones). */
@container (max-width: 820px) {
    .layout-grid.cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (max-width: 560px) {
    .layout-grid,
    .layout-grid.cols-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .layout-grid .is-featured .lower-content h3 {
        font-size: 22px;
    }
}

/* ---------- Listing extras ---------- */

.news-search-summary {
    margin-bottom: 30px;
    font-size: 16px;
}

.news-search-summary a {
    color: var(--news-accent-text);
}

.news-empty {
    padding: 40px 0 60px;
}

.news-empty h3 {
    margin-bottom: 10px;
    color: #fff;
}

.news-empty p {
    margin-bottom: 25px;
}

/* ---------- Article page ---------- */

.blog-single .news-block .lower-content {
    border-bottom-color: var(--news-accent);
    padding: 35px 35px 30px;
}

.news-title {
    font-size: 34px;
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.news-lead {
    font-size: 19px;
    line-height: 1.7;
    font-weight: 400;
    color: #dcdcdc;
    margin-bottom: 30px;
}

.news-body {
    font-size: 16px;
    line-height: 1.85;
    color: #c9c9c9;
    overflow-wrap: break-word;
}

.news-body::after {
    content: "";
    display: table;
    clear: both;
}

.news-body p,
.news-body ul,
.news-body ol,
.news-body dl,
.news-body table,
.news-body pre,
.news-body figure,
.news-body details {
    margin-bottom: 22px;
}

.news-body h1,
.news-body h2,
.news-body h3,
.news-body h4,
.news-body h5,
.news-body h6 {
    color: #fff;
    line-height: 1.35;
    margin: 36px 0 14px;
}

.news-body h1 { font-size: 32px; }
.news-body h2 { font-size: 28px; }
.news-body h3 { font-size: 24px; }
.news-body h4 { font-size: 21px; }
.news-body h5 { font-size: 18px; }
.news-body h6 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.05em; }

.news-body > :first-child {
    margin-top: 0;
}

.news-body a {
    color: var(--news-accent-text);
    text-decoration: underline;
}

.news-body strong,
.news-body b {
    color: #fff;
}

.news-body ul,
.news-body ol {
    padding-left: 26px;
}

.news-body ul {
    list-style: disc;
}

.news-body ol {
    list-style: decimal;
}

.news-body li {
    list-style: inherit;
    margin-bottom: 8px;
}

.news-body img,
.news-body video {
    max-width: 100%;
    height: auto;
}

.news-body figure.image {
    display: table;
}

.news-body figure.image.align-center,
.news-body img[style*="margin-left: auto"] {
    margin-left: auto;
    margin-right: auto;
}

.news-body figure.image.align-left {
    float: left;
    margin-right: 25px;
}

.news-body figure.image.align-right {
    float: right;
    margin-left: 25px;
}

.news-body figcaption {
    display: table-caption;
    caption-side: bottom;
    padding-top: 8px;
    font-size: 14px;
    color: #9a9a9a;
    text-align: center;
}

.news-body iframe {
    max-width: 100%;
    border: 0;
}

.news-body iframe[src*="youtube"],
.news-body iframe[src*="vimeo"],
.news-body iframe[src*="dailymotion"] {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.news-body .mce-preview-object,
.news-body .mce-object-iframe {
    display: block;
}

.news-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.news-body th,
.news-body td {
    border: 1px solid var(--news-line);
    padding: 10px 14px;
    vertical-align: top;
}

.news-body th,
.news-body thead td {
    background: #1b1b1b;
    color: #fff;
    font-weight: 600;
}

.news-body caption {
    caption-side: top;
    padding-bottom: 8px;
    color: #fff;
    font-weight: 600;
}

.news-body pre {
    padding: 16px 20px;
    background: #1a1a1a;
    border: 1px solid var(--news-line);
    border-radius: 4px;
    overflow-x: auto;
    color: #e6e6e6;
    font-size: 14px;
    line-height: 1.6;
}

.news-body code {
    font-size: 0.9em;
    color: #e6e6e6;
}

.news-body hr {
    border: 0;
    border-top: 1px solid var(--news-line);
    margin: 36px 0;
}

.news-body details {
    border: 1px solid var(--news-line);
    border-radius: 4px;
    padding: 12px 18px;
}

.news-body summary {
    cursor: pointer;
    color: #fff;
    font-weight: 500;
}

.news-body details[open] summary {
    margin-bottom: 10px;
}

.news-body mark {
    padding: 0 3px;
}

.blog-single .news-body blockquote {
    border-left-color: var(--news-accent);
    max-width: 100%;
    font-size: 19px;
    line-height: 1.6;
}

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

@media (max-width: 767px) {
    .blog-single .news-block .lower-content {
        padding: 25px 20px;
    }

    .news-title {
        font-size: 26px;
    }

    .news-body table {
        display: block;
        overflow-x: auto;
    }

    .news-body figure.image.align-left,
    .news-body figure.image.align-right {
        float: none;
        margin-left: 0;
        margin-right: 0;
    }
}

.news-video {
    position: relative;
    padding-top: 56.25%;
    margin-bottom: 30px;
}

.news-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.news-source {
    margin-top: 10px;
}

.news-back {
    display: inline-block;
    line-height: 40px;
    font-weight: 600;
    color: var(--news-accent-text);
}

.news-preview-banner {
    background: #fff3cd;
    border: 1px solid #ffe08a;
    color: #664d03;
    padding: 12px 18px;
    margin-bottom: 30px;
}

.news-preview-banner a {
    margin-left: 10px;
    color: #664d03;
    text-decoration: underline;
}

/* Related news */
.news-related {
    margin-top: 60px;
}

.news-related-title {
    font-size: 24px;
    color: #fff;
    margin-bottom: 25px;
}

/* ---------- Sidebar ---------- */

.sidebar .latest-news .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar .latest-news .post.no-thumb {
    padding-left: 0;
    min-height: 0;
}

.sidebar .latest-news .post-info {
    color: var(--news-accent-text);
}

.styled-pagination li.active a,
.styled-pagination li a:hover {
    background-color: var(--news-accent);
    border-color: var(--news-accent);
    color: #fff;
}

/* ====================================================================
   Careers
   ==================================================================== */

.careers-section {
    padding: 90px 0 70px;
}

.careers-intro {
    max-width: 900px;
    margin-bottom: 50px;
}

.careers-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 25px;
}

.careers-count {
    font-size: 22px;
    color: #fff;
    margin: 0;
}

.careers-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.careers-filters input,
.careers-filters select {
    height: 44px;
    padding: 0 14px;
    background: #1b1b1b;
    border: 1px solid var(--news-line);
    color: #ddd;
    font-size: 14px;
    max-width: 100%;
}

.careers-filters .theme-btn {
    padding: 10px 22px;
    line-height: 22px;
}

.careers-clear {
    color: var(--news-accent-text);
    font-size: 14px;
}

.careers-empty {
    padding: 30px 0 40px;
    font-size: 16px;
}

.careers-empty h3 {
    color: #fff;
    margin-bottom: 10px;
}

.careers-empty p {
    margin-bottom: 25px;
}

.job-list {
    display: grid;
    gap: 22px;
}

.job-card {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    justify-content: space-between;
    padding: 28px 30px;
    background: #252525;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border-left: 4px solid var(--news-accent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.job-card-main {
    flex: 1 1 420px;
    min-width: 0;
}

.job-card h3 {
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.job-card h3 a {
    color: #fff;
}

.job-card h3 a:hover {
    color: var(--news-accent-text);
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #c9c9c9;
}

.job-meta .fa,
.job-meta .far {
    color: var(--news-accent-text);
    margin-right: 5px;
}

.job-summary {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.job-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
}

.job-date {
    font-size: 13px;
    color: #9a9a9a;
    line-height: 1.6;
}

.job-card-side .theme-btn {
    margin-top: 8px;
}

.careers-general {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    padding: 30px;
    background: #1b1b1b;
    border: 1px dashed var(--news-line);
}

.careers-general h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 6px;
}

.careers-general p {
    margin: 0;
}

/* Job page */
.job-detail {
    margin-bottom: 50px;
}

.job-detail .job-meta {
    margin-bottom: 30px;
    font-size: 15px;
}

.job-summary-box {
    position: sticky;
    top: 110px;
    padding: 30px;
    background: #252525;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border-top: 4px solid var(--news-accent);
}

.job-summary-box h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 18px;
}

.job-summary-box dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    margin-bottom: 25px;
    font-size: 14px;
}

.job-summary-box dt {
    color: #9a9a9a;
    font-weight: 400;
}

.job-summary-box dd {
    margin: 0;
    color: #e6e6e6;
}

.job-share {
    margin: 22px 0 8px;
}

@media (max-width: 991px) {
    .job-summary-box {
        position: static;
        margin-top: 40px;
    }
}

/* Application form */
.apply-box {
    padding: 35px;
    background: #252525;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    scroll-margin-top: 100px;
}

.apply-box h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 25px;
}

.apply-form label {
    display: block;
    margin-bottom: 6px;
    color: #ddd;
    font-size: 14px;
    line-height: 1.5;
}

.apply-form label small {
    color: #9a9a9a;
}

.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"],
.apply-form select,
.apply-form textarea {
    display: block;
    width: 100%;
    height: 48px;
    padding: 10px 15px;
    background: #1b1b1b;
    border: 1px solid var(--news-line);
    color: #eee;
    font-size: 15px;
    line-height: 26px;
}

.apply-form textarea {
    height: auto;
    min-height: 130px;
    resize: vertical;
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
    outline: none;
    border-color: var(--news-accent-text);
}

.apply-form input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px;
    background: #1b1b1b;
    border: 1px dashed var(--news-line);
    color: #ccc;
    font-size: 14px;
}

.apply-consent label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: #bbb;
}

.apply-consent input {
    margin-top: 5px;
    flex: none;
}

.apply-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.apply-errors {
    margin-bottom: 25px;
    padding: 14px 20px;
    background: rgba(220, 53, 69, 0.12);
    border-left: 4px solid #dc3545;
    color: #f5c2c7;
}

.apply-errors ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.apply-errors li {
    list-style: inherit;
}

.careers-lead {
    font-size: 17px;
    margin-bottom: 30px;
}

.careers-lead a {
    color: var(--news-accent-text);
}

.apply-done {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.apply-done-icon {
    display: block;
    margin-bottom: 18px;
    font-size: 56px;
    color: #3fb56b;
}

@media (max-width: 767px) {
    .careers-section {
        padding: 60px 0 50px;
    }

    .job-card,
    .apply-box,
    .job-summary-box {
        padding: 22px 18px;
    }
}
