.sponsor-page {
    /* ปรับเป็น AASP Theme */
    --navy: #2D2769;              /* aasp-indigo */
    --purple: #D1236B;            /* aasp-primary */
    --purple-2: #A31250;          /* aasp-primary-dark */
    --soft: #FDEBF3;              /* aasp-primary-light */
    --soft-2: #FFFDF9;            /* aasp-bg-cream */
    --border: #E5CDD8;            /* ปรับโทนขอบให้เข้ากับสีชมพู */
    --border-light: #F5E6ED;
    --text: #1E1A47;              /* aasp-indigo-dark */
    --muted: #6B668A;             /* ปรับสีเทาให้กลืนกับ indigo */
    --white: #FFF;
    color: var(--text);
}
.sponsor-title { color: var(--navy); font-size: clamp(28px, 3vw, 36px); font-weight: 600; line-height: 1.3; text-align: center; }

/* ===== TABS ===== */
.sponsor-tabs {
    display: flex; gap: 5px; margin: 32px 0 0; padding: 0;
    border-bottom: 1px solid var(--border);
}
.sponsor-tabs .nav-item { margin: 0; }
.sponsor-tabs .nav-link {
    position: relative; padding: 12px 19px; color: var(--muted)!important;
    background: transparent!important; border: 0!important;
    border-radius: 10px 10px 0 0!important;
    font-size: 13px; font-weight: 600; white-space: nowrap;
    transition: .2s ease;
}
.sponsor-tabs .nav-link:hover { color: var(--purple)!important; background: var(--soft-2)!important; }
.sponsor-tabs .nav-link.active { color: #FFF!important; background: var(--purple)!important; }
.sponsor-tabs .nav-link.active:after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--purple);
}
.sponsor-content { padding-top: 30px; }

/* ===== SECTION HEADER ===== */
.sponsor-head { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.sponsor-head-icon {
    flex: 0 0 42px; display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; color: var(--purple); background: var(--soft); border-radius: 11px;
}
.sponsor-head-icon svg { width: 20px; height: 20px; }
.sponsor-head-title { margin: 0; color: var(--navy); font-size: 20px; font-weight: 700; line-height: 1.4; }
.sponsor-head-desc { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.55; }

/* ===== SPONSOR GRID ===== */
.sponsor-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px; padding: 0; margin: 0;
}
.sponsor-item { min-width: 0; }
.sponsor-card {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 100%; height: 155px; padding: 25px; background: #FFF;
    border: 1px solid var(--border); border-radius: 15px;
    text-decoration: none!important;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.sponsor-card:hover {
    transform: translateY(-3px); border-color: var(--purple);
    box-shadow: 0 8px 24px rgba(45, 39, 105, .07); /* อิงจากสี indigo */
}
.sponsor-card img {
    display: block; max-width: 85%; max-height: 90px; width: auto; height: auto;
    object-fit: contain; transition: transform .2s ease;
}
.sponsor-card:hover img { transform: scale(1.035); }

/* ===== PACKAGE HEADER ===== */
.package-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; margin-bottom: 20px;
}
.package-title { margin: 0; color: var(--navy); font-size: 20px; font-weight: 700; line-height: 1.4; }
.package-desc { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.package-label {
    flex: 0 0 auto; padding: 7px 11px; color: var(--purple); background: var(--soft);
    border-radius: 20px; font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
}

/* ===== TABLE ===== */
.benefits-table {
    overflow: hidden; background: #FFF; border: 1px solid var(--border);
    border-radius: 15px; box-shadow: 0 5px 20px rgba(45, 39, 105, .04)!important;
}
.benefits-table .table-responsive { margin: 0; }
.benefits-table table {
    width: 100%; min-width: 900px; margin: 0!important;
    table-layout: fixed; border-collapse: separate; border-spacing: 0;
}
.benefits-table thead th {
    padding: 17px 12px!important; color: var(--navy)!important;
    background: var(--soft)!important; border: 0!important;
    border-right: 1px solid var(--border)!important;
    border-bottom: 1px solid var(--border)!important;
    font-size: 12px!important; font-weight: 700!important;
    line-height: 1.45; text-align: center!important; vertical-align: middle;
}
.benefits-table thead th:first-child {
    width: 31%; padding-left: 19px!important; text-align: left!important;
}
.benefits-table thead th:last-child { border-right: 0!important; }

/* Highlight packages */
.benefits-table thead th:nth-child(2) { color: #FFF!important; background: var(--purple)!important; }
.benefits-table thead th:nth-child(3) { color: #FFF!important; background: var(--purple-2)!important; }

.tier-price {
    display: block; margin-top: 4px; font-size: 9px;
    font-weight: 500; letter-spacing: .2px; opacity: .85;
}

.benefits-table tbody th,
.benefits-table tbody td {
    padding: 13px 12px!important; color: var(--text)!important; background: #FFF;
    border: 0!important; border-right: 1px solid var(--border-light)!important;
    border-bottom: 1px solid var(--border-light)!important;
    font-size: 11px!important; line-height: 1.55; text-align: center; vertical-align: middle;
}
.benefits-table tbody th {
    padding-left: 19px!important; color: var(--navy)!important;
    font-weight: 600!important; text-align: left;
}
.benefits-table tbody td:last-child { border-right: 0!important; }
.benefits-table tbody tr:last-child th,
.benefits-table tbody tr:last-child td { border-bottom: 0!important; }
.benefits-table tbody tr:not(.category-row):hover th,
.benefits-table tbody tr:not(.category-row):hover td { background: #FFF5F9; } /* สีชมพูอ่อนเมื่อโฮเวอร์ */

/* Category row */
.benefits-table .category-row th,
.benefits-table .category-row td { background: var(--soft-2)!important; }
.benefits-table .category-row th {
    color: var(--purple)!important; font-size: 10px!important;
    font-weight: 700!important; letter-spacing: .5px; text-transform: uppercase;
}
.benefits-table .sub-item { padding-left: 32px!important; color: var(--muted)!important; font-weight: 500!important; }

/* Icons */
.check-icon {
    display: inline-flex!important; align-items: center; justify-content: center;
    width: 25px; height: 25px; color: var(--purple)!important;
    background: var(--soft); border-radius: 50%; font-size: 12px;
}
.dash { color: var(--border); font-size: 15px; } /* ปรับสีขีดประ */
.small-note {
    display: block; margin-top: 3px; color: var(--muted);
    font-size: 9px; font-weight: 400; line-height: 1.4;
}

/* Mobile scroll info */
.table-scroll-info {
    display: none; align-items: center; justify-content: center;
    gap: 7px; margin-top: 10px; color: var(--muted); font-size: 10px;
}
.table-scroll-info svg { width: 14px; height: 14px; }

/* ===== RESPONSIVE ===== */
@media(max-width:991.98px) {
    .sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sponsor-card { height: 140px; }
}
@media(max-width:767.98px) {
    .sponsor-title { font-size: 27px; }

    .sponsor-tabs {
        overflow-x: auto; overflow-y: hidden; gap: 4px;
        white-space: nowrap; scrollbar-width: none;
    }
    .sponsor-tabs::-webkit-scrollbar { display: none; }
    .sponsor-tabs .nav-item { flex: 0 0 auto; }
    .sponsor-tabs .nav-link { padding: 11px 14px; font-size: 11px; }

    .sponsor-content { padding-top: 24px; }
    .sponsor-head { align-items: flex-start; gap: 11px; }
    .sponsor-head-icon { flex-basis: 38px; width: 38px; height: 38px; }
    .sponsor-head-title { font-size: 18px; }
    .sponsor-head-desc { font-size: 11px; }

    .sponsor-grid { gap: 10px; }
    .sponsor-card { height: 115px; padding: 17px; }
    .sponsor-card img { max-height: 65px; }

    .package-head { align-items: flex-start; flex-direction: column; gap: 8px; }
    .package-title { font-size: 18px; }

    .benefits-table { border-radius: 12px; }
    .benefits-table table { min-width: 780px; }
    .benefits-table thead th { padding: 14px 9px!important; font-size: 10px!important; }
    .benefits-table thead th:first-child { width: 29%; padding-left: 13px!important; }
    .benefits-table tbody th,
    .benefits-table tbody td { padding: 11px 9px!important; font-size: 10px!important; }
    .benefits-table tbody th { padding-left: 13px!important; }
    .benefits-table .sub-item { padding-left: 23px!important; }
    .table-scroll-info { display: flex; }
}
@media(max-width:480px) {
    .sponsor-title { font-size: 24px; }
    .sponsor-grid { grid-template-columns: 1fr; }
    .sponsor-card { height: 120px; }
}