/* ============================================================
   ERP MODULE INDEX PAGE
   File: erp-development/module/css/erp-module-index.css
   ============================================================ */

/* -----------------------------------------------
   HERO SECTION
----------------------------------------------- */
.erp-mod-hero {
    background: linear-gradient(135deg, #05124c 0%, #0d1f38 60%, #162d42 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.erp-mod-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(236,114,34,0.08) 0%, transparent 68%);
    pointer-events: none;
}
.erp-mod-hero .hero-badge {
    display: inline-block;
    background: rgba(236,114,34,0.15);
    border: 1px solid rgba(236,114,34,0.4);
    color: #ec7222;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}
.erp-mod-hero h1 {
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.25;
    margin: 0 0 14px;
}
.erp-mod-hero h1 span {
    color: #ec7222;
}
.erp-mod-hero .hero-desc {
    color: rgba(255,255,255,0.72);
    font-size: 16px;
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 28px;
}

/* Breadcrumb (inside hero, below h1) */
.erp-mod-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
    list-style: none;
    padding: 0;
}
.erp-mod-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.erp-mod-breadcrumb li a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
}
.erp-mod-breadcrumb li a:hover {
    color: #ec7222;
}
.erp-mod-breadcrumb li.active {
    color: rgba(255,255,255,0.85);
}
.erp-mod-breadcrumb li .sep {
    color: rgba(255,255,255,0.3);
    font-size: 11px;
}

/* Stats */
.erp-mod-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.erp-mod-stats .stat-item .stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #ec7222;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}
.erp-mod-stats .stat-item .stat-lbl {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-top: 4px;
}

/* CTA buttons */
.btn-mod-primary {
    display: inline-block;
    background: #ec7222;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    margin: 0 8px 8px 0;
}
.btn-mod-primary:hover {
    background: #d4631a;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-2px);
}
.btn-mod-secondary {
    display: inline-block;
    background: transparent;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 50px;
    border: 1.5px solid rgba(255,255,255,0.35);
    text-decoration: none;
    transition: border-color 0.2s;
    margin: 0 0 8px;
}
.btn-mod-secondary:hover {
    border-color: #fff;
    color: #fff !important;
    text-decoration: none;
}

/* Hero image */
.erp-mod-hero .hero-img {
    max-width: 100%;
    border-radius: 12px;
    opacity: 0.88;
}

/* -----------------------------------------------
   SEARCH & FILTER BAR
----------------------------------------------- */
.erp-mod-search-wrap {
    background: #05124c;
    padding: 22px 0 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.erp-mod-search-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.erp-mod-search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
    max-width: 420px;
}
.erp-mod-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.38);
    font-size: 14px;
    pointer-events: none;
}
.erp-mod-search-box input {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    padding: 11px 14px 11px 40px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.25s;
    font-family: 'Montserrat', sans-serif;
}
.erp-mod-search-box input::placeholder {
    color: rgba(255,255,255,0.38);
}
.erp-mod-search-box input:focus {
    border-color: #ec7222;
}
.erp-mod-result-count {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    white-space: nowrap;
}
.erp-mod-filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 16px;
    margin-top: 14px;
}
.erp-mod-filter-tabs::-webkit-scrollbar {
    display: none;
}
.erp-mod-filter-tab {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
}
.erp-mod-filter-tab:hover,
.erp-mod-filter-tab.active {
    background: #ec7222;
    border-color: #ec7222;
    color: #fff;
    font-weight: 600;
}

/* -----------------------------------------------
   MODULE CARDS GRID
----------------------------------------------- */
.erp-mod-grid-section {
    background: #f4f7ff;
    padding: 48px 0 64px;
}
.erp-mod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.erp-mod-card {
    background: #fff;
    border: 1px solid #e2e8f5;
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(5,18,76,0.06);
}
.erp-mod-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ec7222;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.erp-mod-card:hover {
    border-color: rgba(236,114,34,0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(5,18,76,0.12);
    text-decoration: none;
}
.erp-mod-card:hover::before {
    transform: scaleX(1);
}
.erp-mod-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(236,114,34,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ec7222;
    margin-bottom: 16px;
    flex-shrink: 0;
}
.erp-mod-card-cat {
    font-size: 11px;
    font-weight: 700;
    color: #ec7222;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-family: 'Montserrat', sans-serif;
}
.erp-mod-card h3 {
    color: #05124c;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    margin: 0 0 10px;
    line-height: 1.3;
}
.erp-mod-card .card-desc {
    color: #555;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 16px;
    flex: 1;
}
.erp-mod-card .uc-label {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 8px;
}
.erp-mod-card .uc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}
.erp-mod-card .uc-list li {
    font-size: 13px;
    color: #444;
    padding: 3px 0 3px 16px;
    position: relative;
}
.erp-mod-card .uc-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #ec7222;
    font-size: 16px;
    top: 1px;
    font-weight: 700;
}
.erp-mod-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #05124c;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    margin-top: auto;
    transition: gap 0.2s, color 0.2s;
}
.erp-mod-card:hover .erp-mod-card-cta {
    gap: 10px;
    color: #ec7222;
}
.erp-mod-card-cta i {
    font-size: 11px;
}

/* Hidden state for search/filter */
.erp-mod-card.mod-hidden {
    display: none;
}

/* No results */
.erp-mod-no-results {
    display: none;
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.erp-mod-no-results i {
    font-size: 38px;
    margin-bottom: 14px;
    display: block;
    color: #ccc;
}
.erp-mod-no-results p {
    font-size: 16px;
}
.erp-mod-no-results button {
    background: none;
    border: none;
    color: #ec7222;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    font-weight: 600;
}

/* -----------------------------------------------
   USE CASES SECTION
----------------------------------------------- */
.erp-mod-usecases {
    background: #05124c;
    padding: 64px 0;
}
.erp-mod-usecases .section-label {
    font-size: 12px;
    font-weight: 700;
    color: #ec7222;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
}
.erp-mod-usecases .title h2 {
    color: #fff !important;
    text-align: center;
    font-size: 32px;
    font-family: 'Montserrat', sans-serif;
}
.erp-mod-usecases .section-sub {
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    text-align: center;
    max-width: 560px;
    margin: 0 auto 44px;
    line-height: 1.65;
}
.erp-mod-uc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.erp-mod-uc-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 24px;
    transition: background 0.2s;
}
.erp-mod-uc-card:hover {
    background: rgba(255,255,255,0.09);
}
.erp-mod-uc-card .uc-num {
    font-size: 30px;
    font-weight: 800;
    color: rgba(236,114,34,0.25);
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
    margin-bottom: 12px;
}
.erp-mod-uc-card h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 8px;
}
.erp-mod-uc-card p {
    color: rgba(255,255,255,0.55);
    font-size: 13.5px;
    line-height: 1.65;
    margin: 0;
}

/* -----------------------------------------------
   CTA SECTION
----------------------------------------------- */
.erp-mod-cta-section {
    background: #f4f7ff;
    padding: 56px 0;
    text-align: center;
    border-top: 1px solid #e2e8f5;
}
.erp-mod-cta-section .title h2 {
    color: #05124c;
}
.erp-mod-cta-section p {
    color: #555;
    font-size: 16px;
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* -----------------------------------------------
   RESPONSIVE
----------------------------------------------- */
@media (max-width: 991px) {
    .erp-mod-hero {
        padding: 60px 0 40px;
    }
    .erp-mod-hero h1 {
        font-size: 30px;
    }
}
@media (max-width: 767px) {
    .erp-mod-hero h1 {
        font-size: 26px;
    }
    .erp-mod-hero .hero-desc {
        font-size: 15px;
    }
    .erp-mod-stats {
        gap: 20px;
    }
    .erp-mod-stats .stat-item .stat-num {
        font-size: 22px;
    }
    .erp-mod-grid {
        grid-template-columns: 1fr;
    }
    .erp-mod-usecases .title h2 {
        font-size: 24px;
    }
    .erp-mod-uc-grid {
        grid-template-columns: 1fr;
    }
}
