﻿/* ══════════════════════════════════════════
           Governance / SOPs Page Styles
        ══════════════════════════════════════════ */
.sops-section {
    background-color: #f4f7f6;
    background-image: url(/assets/main/bg_1.png);
    background-repeat: repeat;
}

.sops-intro h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-dark);
}

.sops-divider {
    width: 60px;
    height: 4px;
    border-radius: 4px;
    background: var(--color-secondary);
    margin: 0.5rem auto;
}

/* ══ Document Button ══ */
.doc-button {
    position: relative;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.09);
    transition: all .4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    color: inherit;
    min-height: 220px;
}

    .doc-button::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, #0f5e0f 0%, #1a8a1a 50%, transparent 100%);
        opacity: 0;
        transition: opacity .4s ease;
        pointer-events: none;
        z-index: 0;
    }

    .doc-button:hover {
        transform: translateY(-12px);
        box-shadow: 0 28px 60px rgba(15, 94, 15, .2);
    }

        .doc-button:hover::before {
            opacity: .08;
        }

.doc-button-content {
    position: relative;
    z-index: 1;
}

.btn-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f5e0f 0%, #1a8a1a 60%, #ecd277 140%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .4s ease;
    box-shadow: 0 6px 20px rgba(15, 94, 15, .25);
}

.doc-button:hover .btn-icon {
    transform: scale(1.2) rotateY(360deg);
    box-shadow: 0 12px 32px rgba(15, 94, 15, .35);
}

.btn-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-dark);
    line-height: 1.5;
    transition: color .3s ease;
}

.doc-button:hover .btn-title {
    color: #0f5e0f;
}

.btn-desc {
    font-size: .78rem;
    color: #999;
    line-height: 1.4;
}

.btn-arrow {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.2rem;
    color: #0f5e0f;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .3s ease, transform .3s ease;
}

.doc-button:hover .btn-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.btn-category {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
    background: #f0f0f0;
    color: #666;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .3s ease, transform .3s ease;
}

.doc-button:hover .btn-category {
    opacity: 1;
    transform: translateY(0);
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(0,0,0,.09);
    }

    50% {
        box-shadow: 0 12px 40px rgba(15,94,15,.15);
    }
}

.doc-button {
    animation: buttonPulse 3s ease-in-out infinite;
}

    .doc-button:hover {
        animation: none;
    }

@media (max-width: 767px) {
    .doc-button {
        min-height: 180px;
    }

    .btn-icon {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.5rem;
    }

    .btn-title {
        font-size: .95rem;
    }
}
