/* Due Diligence & Foundations Page Styles */

/* Hero Section */
.hero-section {
    /* background: linear-gradient(135deg, #1f9968 0%, #2d5a3d 100%); */
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: url('/assets/pic/bg-2.jpg') center/cover no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.breadcrumb {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Main Page Styles */
.main-page {
    background: #ffffff;
}

/* Overview Section */
.overview-section {
    padding: 100px 0;
}

.content-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
}

.text-content {
    flex: 1;
}

.image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    max-width: 100%;
}

.feature-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Title Header */

.title-header h2 {
    font-size: 40px;
}

/* Foundation Pillars */
.foundation-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.pillar-item {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(31, 153, 104, 0.05);
}

.pillar-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(31, 153, 104, 0.15);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #16a34a 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 28px;
    flex-shrink: 0;
}

.pillar-icon .layui-icon{
    font-size: 22px;
}

.pillar-item h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.pillar-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Services Detailed Section */
.services-detailed-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.services-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.services-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), rgba(31, 153, 104, 0.3));
}

.timeline-service {
    position: relative;
    margin-bottom: 50px;
    padding-left: 120px;
}

.timeline-service:last-child {
    margin-bottom: 0;
}

.service-marker {
    position: absolute;
    left: 0;
    top: 30px;
}

.marker-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
    box-shadow: 0 8px 32px rgba(31, 153, 104, 0.3);
    border: 4px solid #ffffff;
}

.marker-icon .layui-icon{
    font-size: 22px;
}

.service-content-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 12px 48px rgba(31, 153, 104, 0.1);
    border: 1px solid rgba(31, 153, 104, 0.1);
    transition: all 0.3s ease;
}

.service-content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(31, 153, 104, 0.15);
}

.service-header h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.service-header>p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Service Tabs */
.service-tabs {
    margin-top: 30px;
}

.tab-navigation {
    display: flex;
    gap: 4px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #666;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tab-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(31, 153, 104, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(31, 153, 104, 0.1);
    color: var(--primary-color);
}

.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-panel.active {
    display: block;
}

.tab-panel h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.tab-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-panel li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.tab-panel li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.tab-panel li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.grid-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(31, 153, 104, 0.1);
}

.grid-item:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(31, 153, 104, 0.15);
}

.item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #16a34a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    margin: 0 auto 15px;
}

.grid-item h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.grid-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Contract Types */
.contract-types {
    margin-top: 20px;
}

.contract-category {
    margin-bottom: 25px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.contract-category h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contract-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contract-tag {
    background: rgba(31, 153, 104, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(31, 153, 104, 0.2);
    transition: all 0.3s ease;
}

.contract-tag:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Methodology Section */
.methodology-section {
    padding: 100px 0;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.method-phase {
    position: relative;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 153, 104, 0.08);
    border: 1px solid rgba(31, 153, 104, 0.1);
    transition: all 0.3s ease;
}

.method-phase:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(31, 153, 104, 0.15);
}

.phase-number {
    position: absolute;
    top: -20px;
    left: 40px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(31, 153, 104, 0.3);
}

.phase-content h4 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: 20px;
}

.phase-content>p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.phase-deliverables h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.phase-deliverables ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.phase-deliverables li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.phase-deliverables li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
}



/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1f9968 0%, #408157 100%);
    padding: 90px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/pic/video-3.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;

}

.cta-content h3 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cta-button .layui-icon {
    font-size: 12px;
}

.cta-button.primary {
    background: #ffffff;
    color: var(--primary-color);
}

.cta-button.primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cta-button.secondary:hover {
    background: #ffffff;
    color: #1f9968;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .text-content {
        max-width: 100%;
    }

    .title-header h2 {
        font-size: 32px;
    }

    .title-header p {
        font-size: 16px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .cta-content h3 {
        font-size: 28px;
    }

    .cta-buttons {
        align-items: center;
    }

    .services-timeline::before {
        left: 30px;
    }

    .timeline-service {
        padding-left: 100px;
    }

    .marker-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .methodology-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tab-navigation {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 15px;
    }

    .contract-list {
        flex-direction: column;
    }

    .contract-tag {
        text-align: center;
    }

    .matrix-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: 200px;
    }

    .hero-content h1 {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .hero-section::before {
        animation: none;
    }

    .title-header h2 {
        text-align: center;
        font-size: 28px;
        line-height: 35px;
    }

    .title-decoration {
        justify-content: center;
    }

    .decoration-line {
        width: 40px;
        flex: none;
    }

    .decoration-dot {
        width: 10px;
        height: 10px;
    }

    .title-header {
        margin-bottom: 20px;
    }

    .title-header p {
        font-size: 15px;
        text-align: center;
    }

    .overview-section,
    .services-detailed-section,
    .methodology-section,
    .risk-assessment-section {
        padding: 40px 0;
    }

    .cta-section {
        padding: 50px 0;
    }

    .cta-content h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .cta-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .cta-button {
        font-size: 14px;
    }

    .cta-button .layui-icon {
        font-size: 10px;
    }

    .cta-buttons {
        gap: 15px;
    }

    .service-content-card {
        padding: 25px;
    }

    .services-timeline::before {
        left: 20px;
    }

    .timeline-service {
        padding-left: 48px;
        margin-bottom: 30px;
    }

    .service-header h3{
        font-size: 20px;
    }
    .service-header>p{
        font-size: 15px;
        margin-bottom: 15px;
    }
    .service-tabs{
        margin-top: 15px;
    }

    .marker-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .method-phase {
        padding: 25px;
    }

    .phase-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
        left: 25px;
        top: -15px;
    }

    .breadcrumb {
        flex-wrap: wrap;
        font-size: 12px;
        display: none;
    }

    .pillar-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 20px;
    }

    .pillar-icon {
        align-self: flex-start;
    }

    .risk-category-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .risk-icon {
        align-self: center;
    }

    .pillar-item p{
        text-align: left;
        font-size: 15px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}