﻿:root {
    --navy: #30495f;
    --dark-blue: #293d52;
    --maroon: #7b303a;
    --gold: #b7a978;
    --background: #f4f1eb;
    --card: #ffffff;
    --border: #d8d1c4;
    --text: #263238;
    --muted: #66727b;
    --tab: #687985;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* General */
body {
    margin: 0;
    background: var(--background);
    color: var(--text);
}
.panel{background-color:unset !important;}
.txtsmall_color2 {
    vertical-align: middle;
}

.txtsmall_color3 {
    line-height: 26px;
}

.txtmedium {
    text-align: center !important;
}

strong {
    color: #ffffff !important;
    font-weight: bold;
    vertical-align: middle;
}

/* Language switch */
.language-switch {
    margin-bottom: 12px;
    text-align: right;
    font-size: 14px;
}

.language-switch a {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    background-color: #f5f7f9;
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.language-switch a:hover {
    background-color: #e6ebef;
    color: var(--maroon);
    text-decoration: none;
}

.language-switch a.language-active {
    background-color: var(--maroon);
    color: #ffffff;
}

.language-separator {
    margin: 0 4px;
    color: #9aa2a8;
}

/* Hero */
.hero {
    padding: 32px 15px;
    background: linear-gradient(135deg, #263f55, #385a73);
    color: #ffffff;
    text-align: center;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 30px;
    direction: rtl;
}

.hero h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    opacity: 0.93;
}

/* Page container */
.page-container {
    width: min(1250px, 94%);
    margin: 28px auto 60px;
}

/* Tabs */
.tabs-heading {
    margin: 0 0 12px;
    color: var(--maroon);
    font-size: 18px;
    text-align: center;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.tab {
    min-width: 200px;
    padding: 12px 14px;
    border-radius: 4px;
    background: var(--tab);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tab:hover {
    background: var(--navy);
    color: #ffffff;
    transform: translateY(-2px);
}

.tab.active {
    background: var(--maroon);
    box-shadow: 0 3px 10px rgba(123, 48, 58, 0.28);
}

/* Section header */
.section-header {
    margin-bottom: 22px;
    padding: 18px 20px;
    border-right: 7px solid var(--gold);
    border-radius: 20px;
    background: var(--navy);
    color: #ffffff;
    text-align: center;
}

.section-header h1,
.section-header h2 {
    color: #ffffff;
}

.section-header h1 {
    margin: 0;
    font-size: 25px;
    direction: rtl;
    line-height: 1.5;
}

.section-header h2 {
    margin: 6px 0 0;
    font-size: 16px;
    font-weight: 500;
}

.section-header .status {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 13px;
    border-radius: 20px;
    background: var(--gold);
    font-size: 13px;
}

/* Status titles */
.status-title-ar,
.status-title-en {
    margin: 5px;
    padding: 5px;
    color: var(--dark-blue);
}

.status-title-ar {
    direction: rtl;
}

/* Investment items */
.items-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    direction: rtl;
}

.item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    height: 242px;
    margin: 12px 0;
    border-radius: 12px;
    background: var(--dark-blue);
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.11);
    transition: transform 0.2s ease, box-shadow 0.2s ease;



}

.item-card a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.item-card:hover {
    color: white !important;
    text-decoration: none;
    padding-bottom: 4px;
    position: relative;
    display: inline-block;

    transition: color 0.25s ease, opacity 0.25s ease;
    opacity: 0.9;

}

.item-card:active {
    border-color: #b7a978;
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.item-card:focus-within {
    border-color: #b7a978;
    outline: 3px solid rgba(183, 169, 120, 0.35);
    outline-offset: 2px;
}

/* Images */
.image-link {
    position: relative;
    display: block;
    height: 215px;
    background: #e7e4dc;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-image {
    position: absolute;
    right: 9px;
    bottom: -8px;
    width: 68px;
    height: 68px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #ffffff;
    object-fit: contain;
}

.item-logo {

    margin-top: 12px;
    object-fit: contain;
}

.imgs {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.imgs:hover {
    opacity: 1;
}

/* Item content */
.divider {
    width: 94%;
    margin: 12px auto;
    border-top: 4px solid #ffffff;
}

.item-content {
    padding: 10px 18px 20px;
    line-height: 1.8;
}

.item-title-ar,
.description {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: bold;
    line-height: 2;
}

.item-title-ar {
    direction: rtl;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
}

.item-title-en {
    min-height: 42px;
    margin: 8px 0 12px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

/* Details button */
.details-button {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 4px;
    background: var(--maroon);
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
}

.details-button:hover {
    background: #5e202a;
    color: #ffffff;
}

/* Empty data message */
.empty-message {
    display: inline-block;
    width: 96%;
    padding: 38px 20px;
    border: 1px solid var(--navy);
    border-radius: 47px;
    background: #ffffff;
    color: red;
    direction: ltr;
    line-height: 2.8;
    text-align: center;
}

.empty-message::before {
    content: "⚠";
    margin-right: 8px;
    color: #f39c12;
    font-size: 1.4em;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #000000;
}

th,
td {
    padding: 4px 7px !important;
    border: 1px solid #000000;
    text-align: center;
    vertical-align: middle !important;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Responsive table wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 600px;
}

.table-responsive th,
.table-responsive td {
    padding: 8px !important;
    word-wrap: break-word;
}

/* Tablet */
@media (max-width: 1000px) {
    .items-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tab {
        min-width: 180px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .items-grid {
        grid-template-columns: 1fr;
        width:90%;
    }

    .tab {
        width: 100%;
        min-width: 0;
    }

    .hero h1 {
        font-size: 24px;
    }

    .section-header h1 {
        font-size: 21px;
    }

    .item-card {
        max-width: 100%;
    }
}








/* Small mobile table layout */
@media (max-width: 576px) {
    .table-responsive table,
    .table-responsive tbody,
    .table-responsive tr,
    .table-responsive td {
        display: block;
        width: 100%;
    }

    .table-responsive tr {
        margin-bottom: 12px;
        padding: 8px;
        border: 1px solid #dddddd;
        border-radius: 4px;
    }

    .table-responsive td {
        padding: 6px 0 !important;
        border: 0;
        text-align: left;
    }

    .table-responsive td:first-child {
        margin-bottom: 4px;
        font-weight: bold;
    }
}