/* TEXO App - Content Page Styles (News, Videos, etc) */

/* Global Font Family */
* {
    font-family: "Inter", sans-serif !important;
    font-weight: 500;
}

body, h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", sans-serif !important;
    font-weight: 500;
}

/* Hide images until page fully loads to prevent oversized flash */
img {
    opacity: 0;
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

body.loaded img {
    opacity: 1;
}

/* Hide loading stripes/zebra pattern */
*,
*::before,
*::after {
    background-image: none !important;
}

body::before,
body::after,
html::before,
html::after,
.wp-block-cover__background,
.wp-block-cover__gradient-background,
.table-striped tbody tr:nth-of-type(odd),
.carousel-indicators,
.progress-bar-striped {
    display: none !important;
    background: none !important;
}

html,
body {
    background: #000 !important;
    background-image: none !important;
}

/* Slide up animation */
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hide default WordPress elements */
.page-template-page-content .site-header,
.page-template-page-content .site-footer,
.page-template-page-news .site-header,
.page-template-page-news .site-footer,
.page-template-page-videos .site-header,
.page-template-page-videos .site-footer,
.page-template-page-recruitment .site-header,
.page-template-page-recruitment .site-footer,
#wpadminbar {
    display: none !important;
}

.page-template-page-content body,
.page-template-page-news body,
.page-template-page-videos body,
.page-template-page-recruitment body {
    margin: 0 !important;
    padding: 0 !important;
    background: #000;
}

.content-wrap {
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    position: relative;
    background: #000 !important;
    overflow: hidden;
    opacity: 1;
}

.content-bg {
    position: absolute;
    left: -10px;
    top: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background: #000 !important;
}

.content-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

/* Back Button */
.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 13px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.back-btn img {
    width: 29px;
    height: 20px;
}

/* Page Header */
.page-header {
    position: relative;
    z-index: 10;
    padding: 75px 20px 20px;
    background: rgba(0, 0, 0, 0.7);
}

.page-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-icon {
    width: 42px;
    height: 42px;
    padding: 9px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.header-icon img {
    width: 100%;
    height: 100%;
}

.header-title {
    flex: 1;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Content Area */
.content-area {
    position: relative;
    z-index: 1;
    height: calc(100vh - 149px - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    animation: slideUp 0.5s ease-out forwards;
}

.content-area iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.scroll-content {
    padding: 20px;
    color: #fff;
}

.scroll-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Submenu Cards */
.submenu-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.submenu-card {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submenu-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.submenu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.submenu-icon img {
    width: 160px;
    height: auto;
}

/* RSS Feed Styles */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.news-item h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.news-item h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item h3 a:hover {
    color: #ff5100;
}

.news-date {
    display: block;
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

.news-item p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* News Grid Layout with Images */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.news-grid-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-grid-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.news-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-grid-item:hover .news-image img {
    transform: scale(1.1);
}

.news-grid-item .news-content {
    padding: 15px;
}

.news-grid-item h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.3;
    color: #fff;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-grid-item .news-date {
    display: block;
    color: #999;
    font-size: 11px;
    margin-bottom: 8px;
}

.news-grid-item p {
    color: #ccc;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News Popup Modal */
.news-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    position: relative;
    width: 95%;
    height: 90%;
    max-width: 800px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 81, 0, 0.9);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #ff5100;
    transform: rotate(90deg);
}

.popup-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* News Feed List Layout (Single Column) */
.news-feed-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-feed-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.news-feed-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.news-rss-icon {
    text-align: center;
    padding: 20px 0 15px;
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crt-icon-rss {
    width: 40px;
    height: 40px;
    fill: #fff;
    opacity: 1 !important;
}

.news-feed-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.news-feed-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.news-feed-item:hover .news-feed-image img {
    transform: scale(1.05);
}

.news-feed-content {
    padding: 20px;
    text-align: center;
}

.news-feed-title {
    color: #ff5100;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.news-feed-excerpt {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}
.news-feed-divider {
    height: 2px;
    background: #ff5100;
    margin: 0 0 15px 0;
    width: 100%;
}

.news-feed-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #999;
    font-size: 12px;
    flex-wrap: nowrap;
}

.news-source {
    color: #ff5100;
    font-weight: 600;
    white-space: nowrap;
    flex: 0 0 auto;
}

.news-time {
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.news-share-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    flex: 0 0 auto;
}

.news-share-btn svg {
    stroke: #ff5100;
}

.news-share-btn:hover {
    transform: scale(1.2);
}

.news-share-btn:hover svg {
    stroke: #fff;
}

/* News Modal with Navigation */
.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.modal-content-wrapper {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 70vh;
    z-index: 100000;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #ff5100;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #fff;
    color: #ff5100;
    transform: rotate(90deg);
}

.modal-content {
    width: 100%;
    max-height: 70vh;
    background: #fff;
    border-radius: 12px;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-news-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.modal-rss-icon {
    width: 40px;
    height: 40px;
    margin: 20px 0 15px;
    flex-shrink: 0;
}

.modal-rss-icon svg {
    width: 100%;
    height: 100%;
    fill: #fff;
    background: #ff5100;
    border-radius: 50%;
    padding: 8px;
}

.modal-image {
    width: 100%;
    margin-bottom: 15px;
}

.modal-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.modal-video-player {
    width: 100%;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.modal-video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-text-content {
    padding: 0 20px 30px;
    width: 100%;
    text-align: center;
}

.modal-title {
    color: #ff5100;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.modal-excerpt {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-height: none;
}

.modal-divider {
    width: 100%;
    height: 3px;
    background: #ff5100;
    margin: 0 0 20px 0;
}

.modal-goto-btn {
    background: #ff5100;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.modal-goto-btn:hover {
    background: #ff6a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 81, 0, 0.3);
}

.modal-goto-btn svg {
    stroke: #fff;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100001;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

@media (max-width: 768px) {
    .modal-nav {
        width: 40px;
        height: 40px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
}

/* ==================== SOCIAL MEDIA PAGE ==================== */
/* Elfsight widget customization */
.elfsight-app-bd8f083b-cd0a-4165-813e-534ccd51ecc5 {
    width: 100% !important;
    height: 100% !important;
    min-height: calc(100vh - 200px) !important;
}

.eapps-social-feed-posts-item {
    display: block !important;
}

.eapps-widget {
    height: 100% !important;
}

.eapps-social-feed-posts {
    max-height: none !important;
}

/* Orange Load More button */
.ButtonBase__Overlay-sc-p43e7i-4,
.es-button-base-overlay {
    background-color: #ff5100 !important;
    color: white !important;
}

.ButtonBase__Ellipsis-sc-p43e7i-5,
.es-button-base-ellipsis {
    color: white !important;
}

.ButtonBase__Overlay-sc-p43e7i-4:hover,
.es-button-base-overlay:hover {
    background-color: #e64800 !important;
}

/* ==================== VACANCIES PAGE ==================== */
.vacancies-container {
    background: transparent;
    padding: 20px;
}

.oscp-job-listing,
.oscp-job-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ff5100;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.oscp-job-title,
.oscp-job-listing h3 {
    color: #ff5100 !important;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.oscp-job-link,
.oscp-apply-btn,
.oscp-view-btn {
    background: #ff5100 !important;
    color: #fff !important;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.oscp-job-link:hover,
.oscp-apply-btn:hover,
.oscp-view-btn:hover {
    background: #e64800 !important;
}

/* ==================== SERVICES LIST PAGE ==================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
}

.service-card {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 150px;
    position: relative;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.service-card-icon {
    margin-bottom: 15px;
}

.service-card-icon img {
    width: 66px;
    height: auto;
}

.service-card-label {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ==================== SERVICE DETAIL PAGE ==================== */
.service-flexible-content {
    padding: 0;
}

.flex-content-block {
    border-bottom: 2px solid #fff;
    padding: 20px;
}

.flex-content-block:last-child {
    border-bottom: none;
}

/* Multi Column Layout */
.flex-multi-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flex-column {
    color: #b1b1b1;
    line-height: 1.6;
}

.texo-dash {
    width: 35px;
    background-color: #FF5100;
    height: 1px;
    padding: 0;
    margin: 10px 0;
}

.flex-column h1,
.flex-column h2,
.flex-column h3,
.flex-column h4 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 10px;
}

.flex-column h1 { font-size: 30px; }
.flex-column h2 { font-size: 30px; }
.flex-column h3 { font-size: 30px; }
.flex-column h4 { font-size: 30px; }

.flex-column p {
    margin-bottom: 15px;
    color: #b1b1b1;
    font-size: 20px;
}

.flex-column ul,
.flex-column ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.flex-column img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* List Content Layout */
.flex-list-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.list-title-column {
    display: flex;
    align-items: flex-start;
}

.list-title-column h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.list-items-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-items-column li {
    color: #ff5100;
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-left: 0;
}

.listing-items li:last-child {
    margin-bottom: 0;
}

/* Single Column Text Layout */
.flex-single-column {
    display: block;
}

.single-column-content {
    color: #b1b1b1;
    line-height: 1.6;
}

.single-column-content h1,
.single-column-content h2,
.single-column-content h3,
.single-column-content h4 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 10px;
}

.single-column-content h1 { font-size: 30px; }
.single-column-content h2 { font-size: 30px; }
.single-column-content h3 { font-size: 30px; }
.single-column-content h4 { font-size: 30px; }

.single-column-content p {
    margin-bottom: 15px;
    color: #b1b1b1;
    font-size: 20px;
}

.single-column-content ul,
.single-column-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.single-column-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.single-column-content a {
    color: #ff5100;
    text-decoration: none;
}

.single-column-content a:hover {
    text-decoration: underline;
}

/* Button Styles */
.btn-outline-texo,
.btn-outline-primary {
    display: inline-block;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    color: #ff5100 !important;
    background-color: transparent;
    border: 2px solid #ff5100;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    vertical-align: middle;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline-texo:hover,
.btn-outline-primary:hover {
    color: #fff !important;
    background-color: #ff5100;
    border-color: #ff5100;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 81, 0, 0.3);
}

.service-featured-image {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.service-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 1 !important;
}

/* Legacy service detail content styles */
.service-detail-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin: 20px;
    line-height: 1.6;
}

.service-detail-content h1,
.service-detail-content h2,
.service-detail-content h3 {
    color: #ff5100;
    margin-top: 20px;
    margin-bottom: 10px;
}

.service-detail-content h1 {
    font-size: 24px;
}

.service-detail-content h2 {
    font-size: 20px;
}

.service-detail-content h3 {
    font-size: 18px;
}

.service-detail-content p {
    color: #333;
    margin-bottom: 15px;
}

.service-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.service-detail-content a {
    color: #ff5100;
    text-decoration: underline;
}

.service-detail-content ul,
.service-detail-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
    color: #333;
}

/* ==================== PRIVACY PAGE ==================== */
.page-template-page-privacy .content-area {
    top: 0;
    height: calc(100vh - 60px);
    padding: 20px;
}

/* ==================== CONTACT PAGE ==================== */
.text-orange {
    color: #ff5100;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 10px;
}

.text-white {
    color: #fff;
    font-size: 18px;
    line-height: 1.8;
}

.text-white a {
    color: #ff5100;
    text-decoration: none;
    transition: all 0.3s ease;
}

.text-white a:hover {
    color: #fff;
    text-decoration: underline;
}

.border-top-orange {
    border-top: 2px solid #ff5100;
    margin: 30px 0;
}

.texo-wp-form {
    margin-top: 20px;
}

.texo-wp-form .wpforms-field {
    margin-bottom: 15px;
}

.texo-wp-form input[type="text"],
.texo-wp-form input[type="email"],
.texo-wp-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.texo-wp-form input::placeholder,
.texo-wp-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.texo-wp-form label {
    color: #fff;
    font-size: 14px;
    margin-bottom: 5px;
}

.texo-wp-form .wpforms-field-checkbox label {
    color: #fff;
    font-size: 13px;
}

