@charset "utf-8";

/* Corporate & Group Solutions Section */
.corporate-solutions {
    /* background: linear-gradient(180deg, #f9f9f9 0%, #eef2f5 100%); */
    padding: 80px 0;
    border-top: 1px solid #f0f0f0;
}

.corp-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.corp-card {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #eee;
    position: relative; /* For absolute img */
    overflow: hidden;
    z-index: 1;
}

.card-image-fill {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 71%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.card-image-fill img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 35%, rgba(0,0,0,0) 100%);
}

.corp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.cc-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.cc-icon.primary {
    background: var(--color-primary);
}

.cc-icon.dark {
    background: #333;
}

.cc-icon i {
    font-size: 24px;
    color: #fff;
}

.corp-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.corp-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.cc-features {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.cc-features ul {
    list-style: none;
    padding: 0;
}

.cc-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cc-features li i {
    margin-top: 5px;
}

.cc-features li i.primary {
    color: var(--color-primary);
}

.cc-features li i.dark {
    color: #333;
}

.btn-more-corp {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-weight: 600;
    color: #555;
    transition: 0.3s;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.btn-more-corp:hover {
    background: #f8f8f8;
    color: #333;
    border-color: #ccc;
}

/* Call to Action Section */
.cta-section {
    background: url('https://images.unsplash.com/photo-1518241353330-0f7941c2d9b5?q=80&w=2000&auto=format&fit=crop') no-repeat center center/cover;
    padding: 100px 0;
    position: relative;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.cta-content-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-text {
    flex: 1;
    min-width: 300px;
    color: #fff;
}

.cta-sub-title {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #9ac715;
    margin-bottom: 10px;
}

.cta-main-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta-desc {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    transition: 0.3s;
    text-decoration: none;
}

.cta-phone-btn:hover {
    background: #fff;
    color: var(--color-primary);
}

/* Quote Form */
.cta-form-box {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.cta-form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.form-row {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.form-input, .form-select {
    width: 100%;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 15px;
    color: #555;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

.form-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.form-checkbox-label {
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.btn-submit-quote {
    width: 100%;
    height: 50px;
    background: #333;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit-quote:hover {
    background: #9ac715;
}

/* Corporate Logo Slider */
.corp-slide-wrap {
    display: none;
    width: 100%;
    /* background: #fff; */
    padding: 40px 0 0 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 60px;
}

.corp-slide {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* gradient fade edges */
    -webkit-mask-image: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent);
    mask-image: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent);
}

.corp-slide-track {
    display: flex;
    width: fit-content;
    animation: slide-left 30s linear infinite;
}

.corp-slide-item {
    flex: 0 0 auto;
    width: 200px;
    padding: 0 30px; /* Increased spacing */
    display: flex;
    justify-content: center;
    align-items: center;
}

.corp-slide-item img {
    max-width: 100%;
    max-height: 60px; /* Constrain height */
    width: auto;
    opacity: 0.5;
    transition: 0.3s;
    filter: grayscale(100%);
}

.corp-slide-item:hover img {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

@keyframes slide-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.corp-slide-track:hover {
    animation-play-state: paused;
}

/* Memorial Guide Section */
.memorial-guide-section {
    padding: 100px 0;
    background: #f9f9f9;
}

.mg-header-wrap {
    /* display: flex; */
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.mg-header-text {
    flex: 1;
}

.mg-header-text .sub-title-en {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #6a6ebd;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.mg-header-text .section-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.mg-header-text .section-desc {
    font-size: 18px;
    color: #777;
    margin: 0;
}

.btn-mg-view-all {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #555;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.btn-mg-view-all:hover {
    background: #f8f8f8;
    color: #333;
    border-color: #bbb;
}

/* MG Grid */
.mg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.mg-card {
    position: relative;
    height: 400px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 0;
    overflow: hidden;
    transition: 0.3s;
    background-size: cover;
    background-position: center;
}

.mg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.mg-badge {
    display: inline-block;
    padding: 6px 15px;
    background: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    width: fit-content;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Card Specifics */

/* Common Overlay for all image cards */
.mg-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
    transition: 0.3s;
}

.mg-card:hover::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.mg-badge {
    position: relative;
    z-index: 2;
    color: #333 !important; /* Force dark text on white badge */
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.mg-content {
    position: relative;
    z-index: 2;
    color: #fff !important; /* Force white text */
}

.mg-content h3 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-size: 24px;
}

.mg-card .mg-bottom-txt {
    color: rgba(255,255,255,0.9);
    margin-top: 5px;
}
.mg-card .mg-bottom-txt p{
    line-height:1.2;
}
/* Card 1: Funeral Procedure (Dark Dignified) */
.mg-card-1 {
    background-image: url('../img/photo/img-10.jpg');
}

/* Card 2: Chief Mourner Etiquette (Respectful Hands) */
.mg-card-2 {
    background-image: url('../img/photo/img-04.jpg');
}

/* Card 3: Visitor Etiquette (White Flower) */
.mg-card-3 {
    background-image: url('../img/photo/img-02.jpg');
}

@media (max-width: 991px) {
    .mg-grid {
        grid-template-columns: 1fr;
    }
    .mg-card {
        height: 300px;
    }
    .mg-header-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}


@media (max-width: 768px) {
    .corp-grid {
        display: flex;
        gap: 30px;
        flex-wrap: wrap;
        margin-top: 40px;
    }
    
    .corp-card {
        flex: 1;
        min-width: 300px;
        padding: 20px;
        border-radius: 6px;
        For absolute img */
        overflow: hidden;
    }
    
    .card-image-fill {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 60%;
        height: 100%;
        z-index: 0;
        pointer-events: none;
    }
    
    .card-image-fill img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.8;
        mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
        -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    }
    
    .corp-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }
    
    .cc-icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 25px;
        position: relative;
        z-index: 2;
    }
    
    .cc-icon.primary {
        background: var(--color-primary);
        margin: 20px auto;
    }
    
    .cc-icon.dark {
        background: #333;
        margin: 20px auto;
    }
    
    .cc-icon i {
        font-size: 24px;
        color: #fff;
    }
    
    .corp-card h3 {
        px;
        text-align: center;
    }
    
    .corp-card p {
        margin-bottom: 25px;
        line-height: 1.3;
        font-size: 14px;
        text-align: center;
    }
    
    .cc-features li {
        margin-bottom: 5px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cc-features li i {
        margin-top: 5px;
    }
    
    .cc-features li i.primary {
        color: var(--color-primary);
    }
    
    .cc-features li i.dark {
        color: #333;
    }
    
    .btn-more-corp {
        display: inline-block;
        padding: 5px 25px;
        border: 1px solid #ddd;
        border-radius: 50px;
        font-weight: 600;
        font-size: 14px;
        color: #555;
        transition: 0.3s;
        text-decoration: none;
        position: relative;
        z-index: 2;
    }
    
    .btn-more-corp:hover {
        background: #f8f8f8;
        color: #333;
        border-color: #ccc;
    }
    .cta-section{
        padding: 50px 0;
    }
    .cta-text {
        flex: 1;
        min-width: 300px;
        color: #fff;
    }
    
    .cta-sub-title {
        font-size: 16px;
    }
    
    .cta-main-title {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .cta-desc {
        font-size: 14px;
        opacity: 0.8;
        margin-bottom: 30px;
        line-height: 1.6;
    }
    .cta-contact{
        display: flex;
        justify-content: center;
    }
    .cta-form-box{
        padding: 40px 20px;
    }
}