/* --- Styles for Features Page --- */
.feature-category {
    margin-bottom: 45px;
    text-align: left;
}

html[dir="rtl"] .feature-category {
    text-align: right;
}

.feature-category h2 {
    font-size: 1.6em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color-medium);
    display: inline-block;
}

.feature-category h2 i {
    margin-right: 12px;
    color: var(--highlight-color);
}

html[dir="rtl"] .feature-category h2 i {
    margin-right: 0;
    margin-left: 12px;
}

.feature-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-category ul li {
    padding: 10px 0 10px 25px;
    position: relative;
    font-size: 1.05em;
    color: var(--secondary-text-color);
}

html[dir="rtl"] .feature-category ul li {
    padding: 10px 25px 10px 0;
}

.feature-category ul li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--highlight-color);
}

html[dir="rtl"] .feature-category ul li::before {
    left: auto;
    right: 0;
}

/* --- STYLES FOR DETAILED, 2-COLUMN FEATURE LIST --- */
.feature-grid-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2-column layout */
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-grid-columns li {
    background: var(--card-bg-color-transparent);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color-soft);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.feature-grid-columns li:hover {
    background-color: var(--card-bg-color);
    transform: translateY(-3px);
}

/* Remove the default '✅' pseudo-element from the old style */
.feature-grid-columns li::before {
    display: none;
}

/* Style for the title part of the description */
.feature-grid-columns li strong {
    display: block;
    font-size: 1.1em;
    color: #fff;
    margin-bottom: 8px;
}

/* Responsive adjustments for the 2-column grid */
@media (max-width: 768px) {
    .feature-grid-columns {
        grid-template-columns: 1fr;
    }
}
/* --- STYLES FOR THE TECHNOLOGY SECTION (FINAL VERTICAL LIST LAYOUT) --- */

/* Creates the single vertical column for the cards */
#technology-features .feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Styles each card for a horizontal inner layout (icon + text) */
#technology-features .feature-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 25px 30px;
    background-color: var(--card-bg-color-transparent);
    border: 1px solid var(--border-color-soft);
    border-radius: 14px;
    transition: background-color 0.3s ease;
}

#technology-features .feature-item:hover {
    background-color: var(--card-bg-color);
}

html[dir="rtl"] #technology-features .feature-item {
    text-align: right;
}

/* Manages the text content area */
#technology-features .feature-item-content {
    flex-grow: 1;
}

/* Styles the logo on the side */
#technology-features .feature-item .feature-logo {
    margin: 0 25px 0 0;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 50%;
}

html[dir="rtl"] #technology-features .feature-item .feature-logo {
    margin: 0 0 0 25px;
}

/* Styles the description text */
#technology-features .feature-item p {
    margin-bottom: 0;
    font-size: 1em;
    line-height: 1.7;
    color: var(--secondary-text-color);
}

/* Styles the title which is inside the <p> tag from the translation file */
#technology-features .feature-item p strong {
    display: block;
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 8px;
}
/* ========================================= */
/* === FEATURES & WIDGETS STYLES         === */
/* ========================================= */

/* --- Features Overview Section --- */
.features-overview h3 {
    text-align: center;
}
.features-overview .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
/* --- Specific grid layouts for different sections (Revised for robustness) --- */

/* 4-column layout for the offerings section */
#new-offerings-overview .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 3-column layout for the key features section */
#features-overview .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
.features-overview .feature-item {
    background-color: var(--card-bg-color);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 35px 25px;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color-soft);
}
.features-overview .feature-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.07);
}
.features-overview .feature-item .feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--highlight-color);
}
.features-overview .feature-item h4 {
    font-size: 1.4em;
    color: #f3f4f6;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 600;
}
.features-overview .feature-item p {
    color: var(--secondary-text-color);
    font-size: 1em;
    line-height: 1.65;
}

/* --- UNIFIED LOGO STYLES --- */
.feature-logo {
    width: 65px;
    height: 65px;
    object-fit: cover;
    display: block;
    margin: 0 auto 15px auto;
    border-radius: 12px;
}
.prop-challenge-hero .feature-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}
.why-corexcapital .feature-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin: 0 25px 0 0;
    flex-shrink: 0;
}
html[dir="rtl"] .why-corexcapital .feature-logo {
    margin-left: 25px;
    margin-right: 0;
}

/* --- FEATURE CARD BACKGROUND LOGO --- */
.feature-card.with-bg-logo {
    position: relative;
    overflow: hidden;
}
.feature-card.with-bg-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    background-image: url('../images/ws-gateway-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05;
    z-index: 1;
}
.feature-card.with-bg-logo > .feature-icon,
.feature-card.with-bg-logo > h4,
.feature-card.with-bg-logo > p {
    position: relative;
    z-index: 2;
}