﻿/* =====================================================
   TIME ATTENDANCE HERO
===================================================== */

.attendance-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 485px;
    margin-top: 68px;
    padding: 55px 0;
    overflow: hidden;
    color: #ffffff;
    background-image: linear-gradient( 90deg, rgba(6, 18, 44, 0.76) 0%, rgba(6, 18, 44, 0.54) 42%, rgba(6, 18, 44, 0.10) 76% ), url("/images/products/time-attendance/attendance-hero.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    .attendance-hero .container {
        position: relative;
        z-index: 2;
    }

.attendance-hero-content {
    max-width: 720px;
}

.attendance-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 8px 17px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 40px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.attendance-hero h1 {
    max-width: 780px;
    margin-bottom: 17px;
    color: #ffffff;
    font-size: clamp(2.5rem, 4.7vw, 4.3rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -2px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.40);
}

    .attendance-hero h1 span {
        display: block;
        color: #93c5fd;
    }

.attendance-hero p {
    max-width: 660px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}

.attendance-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.attendance-primary-btn,
.attendance-secondary-btn,
.attendance-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 11px 22px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
}

.attendance-primary-btn {
    color: #1d4ed8;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

    .attendance-primary-btn:hover {
        color: #1d4ed8;
        transform: translateY(-3px);
    }

.attendance-secondary-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

    .attendance-secondary-btn:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.19);
        transform: translateY(-3px);
    }


/* =====================================================
   COMMON SECTIONS
===================================================== */

.attendance-overview,
.attendance-features,
.attendance-process,
.attendance-benefits,
.attendance-cta-section {
    padding: 60px 0;
}

.attendance-overview,
.attendance-process,
.attendance-benefits {
    background: #ffffff;
}

.attendance-features,
.attendance-cta-section {
    background: #f8fafc;
}

.attendance-section-tag {
    display: inline-block;
    margin-bottom: 12px;
    color: #2563eb;
    font-size: 0.90rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.attendance-overview h2,
.attendance-process h2,
.attendance-benefits h2,
.attendance-section-heading h2 {
    margin-bottom: 18px;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
}

.attendance-overview p,
.attendance-process p,
.attendance-benefits p,
.attendance-section-heading p {
    color: #64748b;
    line-height: 1.75;
}


/* ===========================================
   Overview Image Wrapper
=========================================== */

.attendance-overview-image-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}


/* ===========================================
   Image Container
=========================================== */

.attendance-overview-image {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    border-radius: 22px;
    background: #eaf4ff;
    box-shadow: 0 20px 45px rgba(15,23,42,.11);
}


    /* ===========================================
   Overlay
=========================================== */

    .attendance-overview-image::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient( 180deg, rgba(15,23,42,0) 55%, rgba(15,23,42,.15) 100% );
        pointer-events: none;
    }


    .attendance-overview-image img {
        width:100%;
        height: 500px;
        display: block;
        object-fit: cover;
        object-position: center;
        transition: .5s;
    }



    .attendance-overview-image:hover img {
        transform: scale(1.03);
    }


/* =====================================================
   FEATURE CARDS
===================================================== */

.attendance-section-heading {
    max-width: 760px;
    margin: 0 auto 42px;
}

.attendance-feature-card {
    height: 100%;
    min-height: 215px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
}

    .attendance-feature-card:hover {
        border-color: rgba(37, 99, 235, 0.30);
        box-shadow: 0 22px 48px rgba(37, 99, 235, 0.12);
        transform: translateY(-6px);
    }

    .attendance-feature-card i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        margin-bottom: 16px;
        color: #ffffff;
        background: linear-gradient(135deg, #2563eb, #4f46e5);
        border-radius: 14px;
        font-size: 1.2rem;
    }

    .attendance-feature-card h3 {
        margin-bottom: 9px;
        color: #0f172a;
        font-size: 1.1rem;
        font-weight: 800;
    }

    .attendance-feature-card p {
        margin: 0;
        color: #64748b;
        font-size: 0.9rem;
        line-height: 1.7;
    }


/* =====================================================
   PROCESS
===================================================== */

.attendance-process-card {
    padding: 28px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
}

.attendance-process-item {
    display: flex;
    gap: 17px;
    padding: 18px 0;
    border-bottom: 1px solid #e2e8f0;
}

    .attendance-process-item:last-child {
        border-bottom: 0;
    }

    .attendance-process-item > span {
        color: #2563eb;
        font-size: 1.1rem;
        font-weight: 900;
    }

    .attendance-process-item h3 {
        margin-bottom: 6px;
        color: #0f172a;
        font-size: 1.02rem;
        font-weight: 800;
    }

    .attendance-process-item p {
        margin: 0;
        font-size: 0.88rem;
    }


/* =====================================================
   BENEFITS
===================================================== */

.attendance-benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.attendance-benefit-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

    .attendance-benefit-item strong {
        flex-shrink: 0;
        color: #2563eb;
        font-size: 1.15rem;
    }

    .attendance-benefit-item span {
        color: #334155;
        font-size: 0.9rem;
        font-weight: 750;
    }


/* =====================================================
   CTA
===================================================== */

.attendance-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 45px;
    color: #ffffff;
    background: linear-gradient(135deg, #102d68, #284dc1);
    border-radius: 28px;
}

    .attendance-cta-box > div {
        max-width: 760px;
    }

        .attendance-cta-box > div > span {
            display: inline-block;
            margin-bottom: 11px;
            color: #bfdbfe;
            font-size: 0.78rem;
            font-weight: 850;
            letter-spacing: 1.2px;
            text-transform: uppercase;
        }

    .attendance-cta-box h2 {
        margin-bottom: 13px;
        color: #ffffff;
        font-size: clamp(1.9rem, 4vw, 2.8rem);
        font-weight: 750;
    }

    .attendance-cta-box p {
        margin: 0;
        color: rgba(255, 255, 255, 0.80);
        line-height: 1.7;
    }

.attendance-cta-btn {
    flex-shrink: 0;
    color: #1d4ed8;
    background: #ffffff;
}

    .attendance-cta-btn:hover {
        color: #1d4ed8;
        transform: translateY(-3px);
    }


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991.98px) {

    .attendance-overview-content {
        padding-left: 0;
    }
}

@media (max-width: 767.98px) {

    .attendance-overview-image {
        padding: 10px;
    }

        .attendance-overview-image img {
            width: 100%;
            height: auto;
            object-fit: contain;
        }
}

@media (max-width: 575.98px) {

    .attendance-overview-image {
        padding: 7px;
        border-radius: 18px;
    }

        .attendance-overview-image img {
            width: 100%;
            height: auto;
            border-radius: 13px;
        }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767.98px) {

    .attendance-hero {
        min-height: 410px;
        margin-top: 68px;
        padding: 50px 0;
        text-align: center;
        background-image: linear-gradient( rgba(6, 18, 44, 0.64), rgba(6, 18, 44, 0.64) ), url("/images/products/time-attendance/attendance-overview.webp");
        background-position: center;
    }

    .attendance-hero-content {
        max-width: 100%;
    }

    .attendance-hero h1 {
        font-size: 2.5rem;
        letter-spacing: -1.3px;
    }

    .attendance-hero p {
        margin-right: auto;
        margin-left: auto;
    }

    .attendance-hero-actions {
        justify-content: center;
    }

    .attendance-overview,
    .attendance-features,
    .attendance-process,
    .attendance-benefits,
    .attendance-cta-section {
        padding: 52px 0;
    }

    .attendance-overview-image {
        min-height: auto;
    }

        .attendance-overview-image img {
            width: 100%;
            height: auto;
            min-height: 0;
            object-fit: contain;
        }

    .attendance-check-list,
    .attendance-benefit-grid {
        grid-template-columns: 1fr;
    }

    .attendance-cta-box {
        padding: 32px 24px;
    }
}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .attendance-hero {
        min-height: 390px;
        margin-top: 68px;
        padding: 45px 0;
    }

        .attendance-hero h1 {
            font-size: 2.15rem;
            letter-spacing: -1px;
        }

        .attendance-hero p {
            font-size: 0.94rem;
            line-height: 1.65;
        }

    .attendance-overview-image {
        min-height: auto;
        padding: 8px;
        border-radius: 19px;
    }

        .attendance-overview-image img {
            width: 100%;
            height: auto;
            min-height: 0;
            object-fit: contain;
            border-radius: 14px;
        }

    .attendance-primary-btn,
    .attendance-secondary-btn,
    .attendance-cta-btn {
        width: 100%;
    }
}
