/* ================= IMPORT FONT ================= */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

/* ===== PAGE LAYOUT ===== */
.sop-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    font-family: "Poppins", sans-serif;
}

/* ===== PAGE BANNER ===== */
.page-banner {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 55%, #2dd4bf 100%);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    color: white;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: 30%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.banner-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.banner-content h1 i {
    margin-right: 0.4rem;
}

.banner-content p {
    opacity: 0.9;
    font-size: 1.05rem;
    max-width: 600px;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ===== SEARCH SECTION ===== */
.search-section {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.search-form {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-items: center;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    padding: 0 12px;
    border-radius: 10px;
    width: 260px;
}

.search-input-wrapper i {
    color: #94a3b8;
    font-size: 0.9rem;
}

.search-input-wrapper input {
    border: none;
    padding: 10px 8px;
    width: 100%;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    color: #1e293b;
}

.btn-search {
    background: white;
    color: #0f766e;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-search:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn-clear {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.btn-clear:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== TABS ===== */
.sop-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.sop-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
    font-family: "Poppins", sans-serif;
}

.sop-tab:hover {
    border-color: #14b8a6;
    color: #0f766e;
    background: #f0fdfa;
}

.sop-tab.active {
    background: #0f766e;
    border-color: #0f766e;
    color: white;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
}

.sop-tab i {
    font-size: 0.95rem;
}

/* ===== STATS BAR ===== */
.sop-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.sop-stats i {
    color: #14b8a6;
}

/* ===== SOP GRID ===== */
.sop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* ===== SOP CARD ===== */
.sop-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.2s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.sop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
    border-color: #99f6e4;
}

/* Accent bar on top */
.sop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #14b8a6, #2dd4bf);
    opacity: 0;
    transition: opacity 0.3s;
}

.sop-card:hover::before {
    opacity: 1;
}

.sop-card-body {
    padding: 1.5rem 1.5rem 1rem;
    flex-grow: 1;
}

.sop-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
    background: linear-gradient(135deg, #ccfbf1, #99f6e4);
    color: #0f766e;
}

.sop-card.bmn .sop-icon-wrapper {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4338ca;
}

.sop-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    margin-bottom: 0.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sop-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 0.8rem;
    background: #f0fdfa;
    color: #0f766e;
    border: 1px solid #99f6e4;
}

.sop-card.bmn .sop-badge {
    background: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

.sop-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sop-card-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

/* ===== DOWNLOAD BUTTON ===== */
.btn-download-sop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: white;
    color: #0f766e;
    border: 1.5px solid #99f6e4;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
}

.btn-download-sop:hover {
    background: #0f766e;
    color: white;
    border-color: #0f766e;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
    transform: translateY(-1px);
}

.sop-card.bmn .btn-download-sop {
    color: #4338ca;
    border-color: #c7d2fe;
}

.sop-card.bmn .btn-download-sop:hover {
    background: #4338ca;
    color: white;
    border-color: #4338ca;
    box-shadow: 0 4px 14px rgba(67, 56, 202, 0.25);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    display: block;
}

.empty-state h3 {
    color: #64748b;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* ===== PAGINATION ===== */
.pagination-container {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: white;
    padding: 0.6rem;
    border-radius: 50px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.page-numbers {
    display: flex;
    gap: 0.4rem;
}

.page-link {
    text-decoration: none;
    color: #1e293b;
    height: 40px;
    min-width: 40px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-link:hover {
    background: #f0fdfa;
    color: #0f766e;
}

.page-link.active {
    background: #0f766e;
    color: white;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
}

.page-link.prev,
.page-link.next {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.page-link.prev:hover,
.page-link.next:hover {
    background: #0f766e;
    color: white;
    border-color: #0f766e;
}

/* ===== SECTION DIVIDER ===== */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2.5rem 0 1.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.section-title i {
    color: #14b8a6;
}

.section-title.bmn i {
    color: #6366f1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .page-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 2.5rem 2rem;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .search-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sop-container {
        padding: 2rem 1.2rem;
    }

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

    .banner-content h1 {
        font-size: 1.8rem;
    }

    .sop-tabs {
        gap: 8px;
    }

    .sop-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .pagination {
        flex-wrap: wrap;
        border-radius: 16px;
        padding: 0.8rem;
        justify-content: center;
    }
}
