/* WRAPPER */
.search-hero {
    padding: 80px 20px;
    text-align: center;
    color: #fff;
}

/* CONTAINER */
.container {
    max-width: 900px;
    margin: 0 auto;
}

/* TITLE */
.search-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* SEARCH BOX */
.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 40px;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto 20px;
}

.search-box input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-box button {
    background: transparent;
    border: none;
    padding: 0 20px;
    font-size: 18px;
    cursor: pointer;
}

/* SUGGEST */
.search-suggest {
    margin-top: 10px;
    font-size: 14px;
}

.search-suggest span {
    margin-right: 10px;
    opacity: 0.8;
}

/* TAG */
.tag {
    display: inline-block;
    padding: 6px 14px;
    margin: 5px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.tag:hover {
    background: #1e90ff;
    border-color: #1e90ff;
}

/* ACCESSIBILITY (ẩn label) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

:root {
    --page-bg: #071f31;
    --card-bg: #1A2C38;
    --card-bg-2: #1A2C38;
    --text-main: #ffffff;
    --text-soft: rgba(255,255,255,0.88);
    --text-muted: rgba(255,255,255,0.72);
    --line: rgba(255,255,255,0.85);
    --button-bg: #244256;
    --button-hover: #2e5878;
    --border: rgba(255,255,255,0.08);
    --shadow: 0 8px 18px rgba(0,0,0,0.22);
}

.team-section {
    padding: 36px 0 28px;
}

.container-team {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header h2 {
    margin: 0 0 26px;
    color: var(--text-main);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.container-team .team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 55px;
    row-gap: 34px;
}

.team-card {
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    background: #1a2c38;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.16);
}

.team-card-thumb {
    position: relative;
    height: 146px;
    overflow: hidden;
}

.team-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-card-body {
    position: relative;
    padding: 50px 28px 18px;
    background: var(--card-bg);
}

.team-card-badge {
    position: absolute;
    left: 26px;
    top: -27px;
    width: 60px;
    height: 60px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.2);
    box-shadow: 0 6px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-card-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin-top: 10px;
}

.t-title {
  margin: 0 0 6px;
  color: #FFF;
  font-family: "Noto Sans Georgian";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.team-salary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
  color: #FFF;
  text-align: justify;
  font-family: "Noto Sans Georgian";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px; /* 166.667% */
  text-transform: capitalize;
}

.team-divider {
    width: 100%;
    height: 2px;
    background: var(--line);
    opacity: 0.9;
    margin-bottom: 6px;
}

.team-price {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
}

.team-price img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: normal;
}

.team-meta img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.95;
}

.team-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    border-radius: 4px;
    background: var(--button-bg);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.25s ease;
}

.team-btn:hover {
    background: var(--button-hover);
    color: #fff;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 28px 0 0;
}

.pagination {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.page-item {
    display: inline-flex;
}

.page-link {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #1f3a52;
    background: #122638;
    color: #b6c7d6;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.page-item.active .page-link {
    background: linear-gradient(180deg, #4da3ff, #1f6fd1);
    border-color: #4da3ff;
    color: #fff;
    font-weight: 700;
    cursor: default;
}

.page-item.disabled .page-link {
    color: #6d8090;
    pointer-events: none;
    background: transparent;
    border-color: #1f3a52;
}

/* Responsive */
@media (max-width: 1200px) {
  .container-team .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
  .container-team  .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .container-team {
        padding: 0 16px;
    }

    .section-header h2 {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .container-team .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .team-card-thumb {
        height: 90px;
        margin:0px;
    }
    .team-card-badge img {
        margin-top: 5px;
    }
    .t-title { 
        font-size: 13px;
    }
    .team-card-badge { 
        width: 40px;
        height: 40px;
    }
    .team-card-body {
        padding: 20px 18px 16px;
    }

    .team-card-badge {
        left: 18px;
    }

    .team-title {
        font-size: 13px;
    }

    .team-price {
        font-size: 12px;
    }

    .team-btn {
        font-size: 13px;
        min-height: 25px;
    }
}

.load-more-wrapper {
    text-align: center;
    margin-top: 30px;
}

.btn-load-more {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7a18, #ffb347);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 122, 24, 0.3);
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 122, 24, 0.4);
}

.btn-load-more.loading {
    opacity: 0.7;
    pointer-events: none;
}