/* ASIEC custom overrides — home page only */

/* Header: make background slightly tinted so the white logo works */
.rs-header-area.rs-header-one.rs-sticky-header {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* Logo background fix */
.rs-header-logo img {
    background: transparent !important;
    max-height: 55px;
    width: auto;
}

/* Banner text readability overlay */
.rs-banner-bg-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.rs-banner-item-wrapper .container {
    position: relative;
    z-index: 2;
}

/* Ensure banner text and buttons are readable */
.rs-banner-content .rs-banner-title,
.rs-banner-content .rs-banner-descrip p,
.rs-banner-meta-wrapper .rs-banner-contact-item span,
.rs-banner-meta-wrapper .rs-banner-contact-item h6 a {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.rs-banner-btn .rs-btn.has-theme-orange {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Partner logos sizing */
.rs-brand-thumb img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

/* Portfolio images (home page slider) */
.rs-portfolio-thumb img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

/* Services tab images (home page) */
.rs-services-tab-content-thumb img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* About section image */
.rs-about-bg-thumb {
    background-size: cover;
    background-position: center;
}

/* CTA background */
.rs-cta-bg {
    background-size: cover;
    background-position: center;
}

/* Contact section dark overlay for readability (home page) */
.rs-contact-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.rs-contact-area .container {
    position: relative;
    z-index: 2;
}

/* Partner logo visibility */
.rs-brand-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

/* CTA overlay for text readability (home page) */
.rs-cta-wrapper {
    position: relative;
}

.rs-cta-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.rs-cta-wrapper .row {
    position: relative;
    z-index: 2;
}

/* Norms page: portfolio card description excerpt (minor template enhancement) */
.rs-portfolio-item .asiec-norm-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-top: 8px;
    padding-right: 40px;
}

/* Services details: active sidebar link */
.sidebar-widget.widget-categories-two li a.active {
    color: #ea5501;
    font-weight: 600;
}

/* Blog content from WP: ensure images are responsive */
.rs-postbox-details-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.rs-postbox-details-content p {
    margin-bottom: 14px;
    line-height: 1.8;
}

.rs-postbox-details-content h2,
.rs-postbox-details-content h3 {
    margin: 24px 0 12px;
}

/* Counter area dark theme (About page overrides) */
.rs-counter-dark .rs-section-title {
    color: #ffffff !important;
}

.rs-counter-dark .rs-counter-number,
.rs-counter-dark .prefix {
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.8) !important;
    stroke: rgba(255, 255, 255, 0.8) !important;
}

.rs-counter-dark .rs-counter-title {
    color: rgba(255, 255, 255, 0.85) !important;
}

.rs-counter-dark .rs-counter-number-wrapper {
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

.rs-counter-dark .rs-counter-bg-thumb {
    position: absolute;
    inset: 0;
}

.rs-counter-dark .rs-counter-bg-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 22, 38, 0.75); /* Dark overlay to enhance text readability */
    z-index: 1;
}

/* Accordion active/inactive header color and readability fix */
.rs-accordion-one .rs-accordion-item .accordion-button {
    color: #111111 !important;
    background-color: transparent !important;
}

.rs-accordion-one .rs-accordion-item .accordion-button:not(.collapsed) {
    color: #EA5501 !important;
    background-color: transparent !important;
}

/* Sidebar CTA widget title readability */
.sidebar-widget.widget-cta .sidebar-widget-title {
    color: #ffffff !important;
}

/* Bottom Services Details CTA title readability */
.rs-services-details-cta .rs-services-details-title {
    color: #ffffff !important;
}


