﻿/* Hero Section */
.hero-container {
    display: flex;
    flex-direction: column;
    /*  gap: 1.5rem;*/
    max-width: 100rem;
    margin: 0 auto;
    padding: 1rem;
}

.hero-main {
    width: 100%;
}

.hero-sidebar {
    width: 100%;
}

.hero-card {
    background: #f3f4f6;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 100%;
    min-height: 300px;
}

.hero-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-image-wrapper {
    width: 100%;
}

.hero-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    padding: 1rem;
}

.hero-text-wrapper {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: black;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.hero-description {
    color: #374151;
    line-height: 1.625;
    margin-bottom: 1rem;
}

.hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #6b7280;
}

.hero-dots {
    display: flex;
    gap: 0.25rem;
}

.hero-dot {
    width: 0.25rem;
    height: 0.25rem;
    background: #9ca3af;
    border-radius: 9999px;
}

/* Swiper Styles */
.hero-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

    .hero-swiper .swiper-wrapper {
        height: 100%;
        align-items: stretch;
    }

    .hero-swiper .swiper-slide {
        height: auto;
        display: flex;
    }

        .hero-swiper .swiper-slide .hero-card {
            background-color: #e5e7eb;
            height: 100%;
            width: 100%;
            display: flex;
            flex-direction: column;
        }

/* Swiper Pagination */
.hero-pagination {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    margin-left: -185px !important;
}
@media(max-width:768px){
.hero-pagination {

    margin-left: 0px !important;
   }
}

    .hero-pagination .swiper-pagination-bullet {
        width: 0.5rem;
        height: 0.5rem;
        background: #9ca3af;
        opacity: 0.5;
        margin: 0 0.25rem;
        transition: all 0.3s;
    }

    .hero-pagination .swiper-pagination-bullet-active {
        background: #0a2c48;
        opacity: 1;
        width: 1.5rem;
        border-radius: 0.25rem;
    }

/* Video/Photo Report Card */
.video-photo-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-photo-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.video-photo-tab {
    flex: 1;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.video-photo-tab-inactive {
    color: black;
    background: #f3f4f6;
}

.video-photo-tab-active {
    color: white;
    background: #0a2c48;
}

.video-photo-image-wrapper {
    position: relative;
    flex: 1;
}

.video-photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(67, 98, 119, 0.4);
    padding: 0.75rem 1rem;
}

.video-photo-overlay-text {
    color: white;
    font-weight: 600;
    text-align: center;
}

/* Video/Photo Swiper Styles */
.video-photo-swiper {
    width: 100%;
    height: 100%;
    flex: 1;
    position: relative;
}

    .video-photo-swiper .swiper-wrapper {
        height: 100%;
    }

    .video-photo-swiper .swiper-slide {
        height: 100%;
        display: flex;
    }

        .video-photo-swiper .swiper-slide .video-photo-image-wrapper {
            width: 100%;
            height: 100%;
        }

/* Video/Photo Swiper Pagination */
.video-photo-pagination {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

    .video-photo-pagination .swiper-pagination-bullet {
        width: 0.5rem;
        height: 0.5rem;
        background: rgba(255, 255, 255, 0.5);
        opacity: 0.5;
        margin: 0 0.25rem;
        transition: all 0.3s;
    }

    .video-photo-pagination .swiper-pagination-bullet-active {
        background: white;
        opacity: 1;
        width: 1.5rem;
        border-radius: 0.25rem;
    }

/* Main Content Section */
.main-content-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 100rem;
    margin: 0 auto;
    padding: 1rem;
}

.main-left-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.main-center {
    width: 100%;
}

.main-right-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Sidebar Cards */
.sidebar-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    width: 100%;
}

.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-tab {
    flex: 1;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.sidebar-tab-inactive {
    color: black;
    background: #f3f4f6;
}

.sidebar-tab-active {
    color: white;
    background: #0a2c48;
}

.sidebar-tab-single {
    flex: 1;
    padding: 0.75rem 0.5rem;
    text-align: right;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    background: #0a2c48;
    border: none;
    cursor: pointer;
}

.sidebar-content {
    padding: 1.5rem;
    min-height: 16rem;
    background: #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 400px;
}

.sidebar-dots {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.sidebar-dot {
    width: 0.25rem;
    height: 0.25rem;
    background: #9ca3af;
    border-radius: 9999px;
}

/* News Cards */
.news-card-item {
    background: #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
}

.news-card-content {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.news-card-image-wrapper {
    order: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1rem;
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.news-card-text-wrapper {
    width: 60%;
    order: 2;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.news-card-description {
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.625;
    margin-bottom: 1rem;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #6b7280;
}

.news-card-dots {
    display: flex;
    gap: 0.25rem;
}

.news-card-dot {
    width: 0.25rem;
    height: 0.25rem;
    background: #9ca3af;
    border-radius: 9999px;
}

/* Poll Card */
.poll-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    width: 100%;
}

.poll-header {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.poll-button {
    flex: 1;
    padding: 0.75rem 0.5rem;
    text-align: right;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    background: #0a2c48;
    border: none;
    cursor: pointer;
}

.poll-content {
    padding: 1.5rem;
    min-height: 16rem;
    background: #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 400px;
}

/* Oil Prices Card */
.oil-prices-card {
    max-width: 24rem;
    margin: 0 auto;
    background: #1f2937;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.oil-prices-header {
    background: #111827;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: #9ca3af;
    border-bottom: 1px solid #374151;
}

.oil-prices-list {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.oil-price-item {
    display: flex;
    justify-content: space-between;
}

.oil-price-value-green {
    color: #4ade80;
}

.oil-price-value-red {
    color: #f87171;
}

.oil-price-small {
    font-size: 0.75rem;
}

.oil-prices-link {
    padding: 0 1rem 0.75rem;
}

    .oil-prices-link a {
        font-size: 0.75rem;
        color: #60a5fa;
        text-decoration: underline;
    }

        .oil-prices-link a:hover {
            color: #93c5fd;
        }

.oil-price-value-green {
    color: #4ade80;
}

.oil-price-value-red {
    color: #f87171;
}

.oil-price-small {
    font-size: 0.75rem;
}

.oil-prices-more {
    background: #111827;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    border-top: 1px solid #374151;
}

/* Chart Section */
.chart-section {
    background: #111827;
    padding: 1rem;
    border-top: 1px solid #374151;
}

.chart-controls {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.chart-time-button {
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
}

    .chart-time-button:hover {
        color: white;
    }

.chart-time-button-active {
    color: white;
    font-weight: 700;
}

.chart-tab-button {
    background: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    color: white;
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
}

.chart-tab-inactive {
    background: none;
    color: #9ca3af;
    padding: 0;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

    .chart-tab-inactive:hover {
        color: white;
    }

.chart-tabs {
    display: flex;
    gap: 0.5rem;
}

.chart-tab-button {
    background: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    color: white;
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
}

.chart-tab-inactive {
    background: none;
    color: #9ca3af;
    padding: 0;
}

    .chart-tab-inactive:hover {
        color: white;
    }

.chart-container {
    position: relative;
    height: 8rem;
    margin-bottom: 0.5rem;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.chart-line {
    stroke: #10b981;
    stroke-width: 2;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #9ca3af;
}

.chart-time-labels {
    display: flex;
    justify-content: flex-end;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
    gap: 1rem;
}

.chart-price-label {
    position: absolute;
    font-size: 0.75rem;
}

.chart-price-label-top {
    top: 0.5rem;
    right: 1rem;
    color: #4ade80;
}

.chart-price-label-middle {
    top: 2rem;
    right: 1rem;
    color: white;
}

.chart-price-label-bottom {
    bottom: 0.5rem;
    right: 1rem;
    color: #4ade80;
}

.chart-line {
    stroke: #10b981;
    stroke-width: 2;
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-card-content {
        flex-direction: row;
    }

    .hero-image-wrapper {
        width: 50%;
    }

    .hero-image {
        height: 100%;
    }

    .hero-text-wrapper {
        width: 50%;
    }

    .hero-title {
        font-size: 1rem;
    }

    .hero-button-next,
    .hero-button-prev {
        display: flex;
    }
}

@media (max-width: 767px) {
    .hero-button-next,
    .hero-button-prev {
        display: none;
    }

    .hero-pagination {
        bottom: 0.5rem;
    }

    .news-card-content {
        flex-direction: column;
    }

    .news-card-image-wrapper {
        width: 100%;
        order: 1;
        padding: 1rem;
        height: 12rem;
    }

    .news-card-image {
        height: 100%;
    }

    .news-card-text-wrapper {
        width: 100%;
        order: 2;
        padding: 1rem 1.5rem 1.5rem;
    }

    .news-card-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-container {
        flex-direction: row;
    }

    .hero-main {
        width: 70%;
    }

    .hero-sidebar {
        width: 30%;
    }

    .main-content-container {
        flex-direction: row;
    }

    .main-left-sidebar {
        width: 20%;
    }

    .main-center {
        width: 60%;
    }

    .main-right-sidebar {
        width: 20%;
    }
}

.hero-image,
.video-photo-image,
.news-card-image {
    display: block;
    max-width: 100%;
    object-fit: cover;
}

.swiper,
.swiper-wrapper,
.swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.swiper-slide {
    min-width: 0 !important;
}

.hero-card,
.video-photo-card {
    display: flex;
    flex-direction: column;
    min-height: 1px;
}

.hero-card-content,
.video-photo-swiper .swiper-wrapper {
    align-items: stretch;
}

@media (max-width: 767px) {
    .hero-image {
        padding: 0 !important;
        height: 180px !important;
    }

    .video-photo-image {
        padding: 0 !important;
        height: 160px !important;
    }

    .hero-card-content {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .hero-sidebar,
    .hero-main {
        width: 100% !important;
    }

    .news-card-content {
        flex-direction: column !important;
    }

    .news-card-image-wrapper {
        width: 100% !important;
        padding: 0.5rem !important;
        height: 160px !important;
    }
}

@media (min-width: 992px) {
    .hero-container {
        flex-direction: row !important;
        align-items: stretch !important;
        overflow: visible;
    }

    .hero-main {
        width: 70% !important;
        min-width: 60% !important;
    }

    .hero-sidebar {
        width: 30% !important;
        min-width: 28% !important;
    }
    /* equal height hero card + sidebar card */
    .hero-card,
    .video-photo-card {
        height: 100% !important;
    }
}

.hero-text-wrapper,
.news-card-text-wrapper,
.sidebar-content {
    word-break: normal;
    hyphens: auto;
    direction: rtl;
}

@media (max-width: 420px) {
    .hero-pagination,
    .video-photo-pagination {
        transform: translateX(-50%);
        left: 50%;
        bottom: 0.25rem !important;
        padding-bottom: 0.25rem;
    }
}


/*main*/
@media(max-width:979px) {
    .d-flex {
        display: flex;
        flex-direction: column;
    }

    .order1 {
        order: 1;
    }

    .order2 {
        order: 2;
    }

    .order3 {
        order: 3;
    }
}


/* _block32*/

.main-cards {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.main-cards .main-card {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px;
    background: #eee;
    padding-left: 14px;
    cursor: pointer;
}

.main-cards .main-image-wrapper {
    display: flex;
    width: 35%;
    height: 160px;
}

    .main-cards .main-image-wrapper img {
        width: 100%;
        height: 160px;
        border-radius: 0 !important;
    }

.main-card-context {
    width: 65%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .main-card-context h2 {
        font-size: 14px;
        font-weight: 700;
        margin-top: 2px;
    }

    .main-card-context p {
        color: #666666;
        text-align: justify;
    }

@media(max-width:576px) {


    .main-cards .main-image-wrapper {
        align-items: center;
        width: 35%;
        height: auto;
    }

        .main-cards .main-image-wrapper img {
            width: 100%;
            height: auto;
        }

    .main-card-context {
        gap: 8px;
        justify-content: center;
    }

        .main-card-context h2 {
            margin-top: 0px;
            font-size: 12px;
            font-weight: 700;
            display: -webkit-box;
            line-clamp: 2;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            text-overflow: ellipsis;
            line-height: 1.5;
            overflow: hidden;
        }

        .main-card-context p {
            display: -webkit-box;
            line-clamp: 3;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            text-overflow: ellipsis;
            line-height: 1.5;
            overflow: hidden;
        }
}