/* ============================================================
   WINFINIX GROUP — Group Theme Additions
   ============================================================ */

/* ---- Custom elements must be block-level ---- */
winfinix-header,
winfinix-footer {
    display: block;
}

/* ---- Pre-scroll header: semi-transparent dark overlay ---- */
/* Makes white nav text and light logo readable on any background.  */
/* layout.css .page-on-scroll (specificity 0-3-0) overrides this   */
/* (0-2-0) on scroll: white bg + dark text + dark logo.            */
@media (min-width: 992px) {
    .header .navbar {
        background: rgba(0, 0, 0, 0.4);
    }

    /* Salposubidha page: white/light background for blue logo visibility */
    /* Logo has blue text that needs light background for contrast       */
    .page-salposubidha .header .navbar {
        background: rgba(255, 255, 255, 0.97);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* Dark nav text and logo on Salposubidha page pre-scroll */
    .page-salposubidha .header .navbar-nav>li>a {
        color: #333;
    }

    .page-salposubidha .header .navbar-nav>li>a:hover,
    .page-salposubidha .header .navbar-nav>li>a:focus {
        color: #194d33;
    }

    .page-salposubidha .header .navbar-nav>.active>a {
        color: #194d33;
    }

    /* Winfinix Future Foundation page: white/light background for colorful logo */
    /* Logo has multiple colors that need light background for contrast         */
    .page-future-foundation .header .navbar {
        background: rgba(255, 255, 255, 0.97);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* Dark nav text on Future Foundation page pre-scroll */
    .page-future-foundation .header .navbar-nav>li>a {
        color: #333;
    }

    .page-future-foundation .header .navbar-nav>li>a:hover,
    .page-future-foundation .header .navbar-nav>li>a:focus {
        color: #27ae60;
    }

    .page-future-foundation .header .navbar-nav>.active>a {
        color: #27ae60;
    }
}

/* ============================================================
   ENTITY HERO BUTTONS — Enhanced styling for all banner pages
   ============================================================ */

/* Base button sizing in hero sections */
.entity-hero .btn-theme {
    padding: 16px 40px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 8px 12px 8px 0;
    min-width: 200px;
}

/* Primary button (btn-base-bg) - solid white on all backgrounds */
.entity-hero .btn-base-bg {
    background: rgba(255, 255, 255, 0.98);
    color: #333;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 2rem;
}

.entity-hero .btn-base-bg:hover,
.entity-hero .btn-base-bg:focus {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Secondary button (btn-default-bg) - transparent with white border */
.entity-hero .btn-default-bg {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-size: 2rem;
}

.entity-hero .btn-default-bg:hover,
.entity-hero .btn-default-bg:focus {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Salposubidha page specific - override primary button with green theme */
.page-salposubidha .entity-hero .btn-base-bg {
    background: rgba(25, 77, 51, 0.95);
    color: #fff;
    border-color: rgba(25, 77, 51, 1);
}

.page-salposubidha .entity-hero .btn-base-bg:hover,
.page-salposubidha .entity-hero .btn-base-bg:focus {
    background: #194d33;
    color: #fff;
    border-color: #194d33;
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
    .entity-hero .btn-theme {
        display: block;
        width: 100%;
        margin: 8px 0;
        min-width: auto;
    }
}

/* ============================================================
   HOMEPAGE CAROUSEL BUTTONS — Similar styling for slider CTAs
   ============================================================ */

.carousel-inner .btn-theme {
    padding: 16px 40px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 220px;
}

.carousel-inner .btn-base-bg {
    background: rgba(255, 255, 255, 0.98);
    color: #333;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 3rem;
}

.carousel-inner .btn-base-bg:hover,
.carousel-inner .btn-base-bg:focus {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
    .carousel-inner .btn-theme {
        padding: 14px 30px;
        min-width: 180px;
        font-size: 13px;
    }
}

/* ============================================================
   STATS/IMPACT SECTION BUTTONS — Enhanced CTA styling
   ============================================================ */

.bg-color-sky-light .btn-theme-sm,
.content-lg .btn-theme-sm {
    padding: 14px 35px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 5px 8px;
    min-width: 200px;
}

.bg-color-sky-light .btn-base-bg,
.content-lg .btn-base-bg {
    background: #3498db;
    color: #fff;
    border: 2px solid #3498db;
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.3);
}

.bg-color-sky-light .btn-base-bg:hover,
.bg-color-sky-light .btn-base-bg:focus,
.content-lg .btn-base-bg:hover,
.content-lg .btn-base-bg:focus {
    background: #2980b9;
    color: #fff;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(52, 152, 219, 0.4);
}

.bg-color-sky-light .btn-default-bg,
.content-lg .btn-default-bg {
    background: #fff;
    color: #3498db;
    border: 2px solid #3498db;
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.15);
}

.bg-color-sky-light .btn-default-bg:hover,
.bg-color-sky-light .btn-default-bg:focus,
.content-lg .btn-default-bg:hover,
.content-lg .btn-default-bg:focus {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(52, 152, 219, 0.3);
}

@media (max-width: 767px) {

    .bg-color-sky-light .btn-theme-sm,
    .content-lg .btn-theme-sm {
        display: block;
        width: 90%;
        margin: 8px auto;
        min-width: auto;
    }
}

/* ---- Footer column headings ---- */
.footer-col-heading {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 10px;
}

/* ---- Group Companies Dropdown ---- */
.group-dropdown {
    min-width: 320px;
    padding: 8px 0;
    border-top: 3px solid #3498db;
}

.group-dropdown>li>a {
    padding: 12px 20px;
    line-height: 1.4;
    white-space: normal;
}

.group-dropdown>li>a small {
    display: block;
    color: #95a5a6;
    font-size: 12px;
    margin-top: 2px;
}

.group-dropdown>li>a:hover small {
    color: inherit;
}

/* ---- Company Cards (Homepage) ---- */
.group-companies-section {
    padding: 80px 0;
    background: #f7f9fc;
}

.company-card {
    background: #fff;
    border-radius: 6px;
    padding: 35px 30px 30px;
    margin-bottom: 30px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border-top: 4px solid #3498db;
}

.company-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.company-card.foundation-card {
    border-top-color: #27ae60;
}

.company-card-number {
    font-size: 80px;
    font-weight: 700;
    color: #ecf0f1;
    line-height: 1;
    position: absolute;
    top: 12px;
    right: 18px;
    font-family: 'Hind', sans-serif;
    pointer-events: none;
}

.company-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
    line-height: 1.3;
    padding-right: 60px;
}

.company-card .card-tagline {
    font-size: 13px;
    color: #95a5a6;
    margin-bottom: 20px;
    font-style: italic;
}

.card-service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.card-service-list li {
    padding: 7px 0 7px 22px;
    position: relative;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #f5f5f5;
}

.card-service-list li:last-child {
    border-bottom: none;
}

.card-service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
}

.btn-card {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #3498db;
    color: #3498db;
    background: transparent;
}

.btn-card:hover {
    background: #3498db;
    color: #fff !important;
    text-decoration: none;
}

.company-card.foundation-card .btn-card {
    border-color: #27ae60;
    color: #27ae60;
}

.company-card.foundation-card .btn-card:hover {
    background: #27ae60;
    color: #fff !important;
}

/* ---- Group Introduction Section ---- */
.group-intro-section {
    padding: 70px 0;
    background: #fff;
    text-align: center;
}

.group-intro-section h2 {
    font-size: 30px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.group-intro-section .intro-lead {
    font-size: 17px;
    color: #7f8c8d;
    font-weight: 400;
    margin-bottom: 20px;
}

.group-intro-section p {
    max-width: 760px;
    margin: 0 auto;
    color: #555;
    line-height: 1.9;
    font-size: 15px;
}

/* ---- Service Ecosystem (dark strip) ---- */
.service-ecosystem-section {
    padding: 60px 0;
    background: #2c3e50;
    text-align: center;
}

.service-ecosystem-section h2 {
    color: #fff;
    margin-bottom: 10px;
}

.service-ecosystem-section .lead {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.service-tag {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.service-tag:hover {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

/* ---- Our Approach Section ---- */
.approach-section {
    padding: 80px 0;
    background: #fff;
}

.approach-item {
    text-align: center;
    padding: 30px 15px;
    margin-bottom: 20px;
}

.approach-item i {
    font-size: 42px;
    color: #3498db;
    margin-bottom: 14px;
    display: block;
}

.approach-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.approach-item p {
    font-size: 13px;
    color: #95a5a6;
}

/* ---- Impact Stats Section ---- */
.impact-stats-section {
    padding: 80px 0;
    background: #f7f9fc;
    text-align: center;
}

.stat-item {
    padding: 25px 15px;
}

.stat-item h3 {
    font-size: 46px;
    font-weight: 700;
    color: #3498db;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 15px;
    color: #7f8c8d;
    font-weight: 500;
}

/* ---- Entity Hero Banners ---- */
.entity-hero {
    padding: 70px 0 55px;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    color: #fff;
}

.entity-hero.finance-hero {
    background: linear-gradient(135deg, #1a252f 0%, #2e4057 100%);
}

.entity-hero.foundation-hero {
    background: linear-gradient(135deg, #145a32 0%, #27ae60 100%);
}

.entity-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.entity-hero .entity-tagline {
    font-size: 19px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-bottom: 20px;
}

.entity-hero p.entity-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 680px;
    line-height: 1.8;
    margin-bottom: 0;
}

/* ---- Section Labels ---- */
.section-label {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #3498db;
    margin-bottom: 10px;
}

.section-label.green {
    color: #27ae60;
}

/* ---- Service Detail Items ---- */
.service-detail-item {
    padding: 28px 28px 28px 24px;
    background: #fff;
    border-left: 4px solid #3498db;
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 0 5px 5px 0;
}

.service-detail-item.foundation {
    border-left-color: #27ae60;
}

.service-detail-item h4 {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.service-detail-item ul {
    padding-left: 18px;
    color: #555;
    margin-bottom: 0;
}

.service-detail-item ul li {
    margin-bottom: 4px;
    font-size: 14px;
}

/* ---- Principle / Value Cards ---- */
.principle-card {
    background: #fff;
    border-radius: 5px;
    padding: 28px 24px;
    margin-bottom: 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-bottom: 3px solid #27ae60;
}

.principle-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.principle-card p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

/* ---- Vision / Mission Blocks ---- */
.vision-mission-block {
    background: #2c3e50;
    color: #fff;
    padding: 38px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.vision-mission-block h4 {
    color: #3498db;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.vision-mission-block blockquote {
    border-left: 3px solid #3498db;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-style: italic;
    line-height: 1.75;
    margin: 0;
    padding-left: 20px;
}

.vision-mission-block.foundation blockquote {
    border-left-color: #27ae60;
}

.vision-mission-block.foundation h4 {
    color: #27ae60;
}

/* ---- Focus / Programme List ---- */
.focus-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.focus-list li {
    padding: 9px 0 9px 28px;
    position: relative;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.focus-list li:last-child {
    border-bottom: none;
}

.focus-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
}

/* ---- CTA Sections ---- */
.cta-section {
    padding: 60px 0;
    background: #3498db;
    text-align: center;
    color: #fff;
}

.cta-section h3 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 12px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
    font-size: 15px;
}

.btn-cta {
    display: inline-block;
    padding: 13px 30px;
    background: #fff;
    color: #3498db;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin: 5px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: #2c3e50;
    color: #fff !important;
    text-decoration: none;
}

.cta-section.foundation-cta {
    background: #27ae60;
}

.cta-section.foundation-cta .btn-cta {
    color: #27ae60;
}

/* ---- Group Companies Page ---- */
.company-section {
    padding: 60px 0;
    border-bottom: 1px solid #ecf0f1;
}

.company-section:last-child {
    border-bottom: none;
}

.company-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.company-type-badge.finance {
    background: #d6eaf8;
    color: #2980b9;
}

.company-type-badge.foundation {
    background: #d5f5e3;
    color: #1e8449;
}

/* ---- About page values ---- */
.value-item {
    padding: 22px;
    background: #f7f9fc;
    border-radius: 5px;
    margin-bottom: 18px;
    border-left: 3px solid #3498db;
}

.value-item h5 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
}

.value-item p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .company-card-number {
        font-size: 55px;
        top: 10px;
        right: 12px;
    }

    .company-card {
        margin-bottom: 25px;
    }

    .stat-item h3 {
        font-size: 36px;
    }

    .entity-hero h1 {
        font-size: 26px;
    }

    .entity-hero .entity-tagline {
        font-size: 15px;
    }

    .service-tags {
        gap: 8px;
    }

    .service-tag {
        font-size: 13px;
        padding: 8px 16px;
    }

    .group-intro-section h2 {
        font-size: 24px;
    }

    .vision-mission-block {
        padding: 25px;
    }

    .cta-section h3 {
        font-size: 20px;
    }

    .btn-cta {
        display: block;
        margin: 8px 0;
    }

    .group-dropdown {
        min-width: 100%;
    }

    .company-card h3 {
        padding-right: 0;
    }
}