/* ===================================================
   Partners Page Styles — Professional Theme
   =================================================== */

/* Hero Section */
.partners-hero {
    padding: 80px 0 60px;
    background: #fff;
}

.partners-hero-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--theme-color);
    line-height: 1.3;
    margin-bottom: 12px;
    position: relative;
}

.partners-hero-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--theme-color, #d4a03c);
    margin-top: 15px;
    border-radius: 2px;
}

.partners-hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #5a6a7a;
    margin-top: 20px;
    max-width: 600px;
}

.partners-hero-img {
    text-align: center;
}

.partners-hero-img img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(12, 35, 64, 0.12);
}

/* Feature Cards Grid */
.partners-features {
    padding: 0 0 80px;
    background: #fff;
}

.partners-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pf-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    padding: 30px 24px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pf-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--theme-color, #d4a03c);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.pf-card:hover {
    box-shadow: 0 12px 35px rgba(12, 35, 64, 0.1);
    transform: translateY(-6px);
}

.pf-card:hover::after {
    transform: scaleX(1);
}

.pf-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.pf-card:hover .pf-card-icon {
    background: rgba(12, 35, 64, 0.06);
}

.pf-card-icon i {
    font-size: 26px;
    color: var(--theme-color);
}

.pf-card-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.pf-card-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--theme-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.pf-card-text {
    font-size: 14px;
    line-height: 1.65;
    color: #6b7c8e;
    flex: 1;
}

.pf-card-subtitle {
    font-size: 13px;
    color: #8a9bb0;
    margin-bottom: 10px;
    font-weight: 500;
}

.pf-card-btn-wrapper {
    margin-top: auto;
    padding-top: 20px;
    text-align: center;
}

.pf-card-btn-wrapper .cta-btn-primary {
    padding: 10px 28px;
    font-size: 13px;
}

/* =========================================
   Rewards / Tiers Section — Redesigned
   ========================================= */
.partners-rewards {
    padding: 0;
    background: #f7f9fb;
    position: relative;
}

.partners-rewards-overlay {
    padding: 90px 0;
    background: rgba(247, 249, 251, 0.95);
}

.partners-rewards-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--theme-color);
    text-align: center;
    margin-bottom: 8px;
}

.partners-rewards-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--theme-color, #d4a03c);
    margin: 15px auto 0;
    border-radius: 2px;
}

.partners-rewards-desc {
    font-size: 15px;
    color: #6b7c8e;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 55px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Tier Cards Wrapper */
.tier-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
    max-width: 1050px;
    margin: 0 auto;
}

/* Base Tier Card */
.tier-card {
    background: #fff;
    border: 2px solid #e4e9ee;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tier-card:hover {
    box-shadow: 0 16px 50px rgba(12, 35, 64, 0.12);
    transform: translateY(-8px);
}

/* — Tier Basic (first card) — */
.tier-card.tier-basic {
    border-color: #e4e9ee;
}

/* — Tier Highlight (middle/popular card) — */
.tier-card.tier-highlight {
    border-color: var(--theme-color, #d4a03c);
    box-shadow: 0 18px 55px rgba(212, 160, 60, 0.18);
    z-index: 2;
    transform: scale(1.04);
}

.tier-card.tier-highlight:hover {
    transform: scale(1.06) translateY(-4px);
    box-shadow: 0 22px 65px rgba(212, 160, 60, 0.22);
}

/* — Tier Gold (third card) — */
.tier-card.tier-gold {
    border-color: var(--theme-color);
}

.tier-card.tier-gold:hover {
    box-shadow: 0 16px 50px rgba(12, 35, 64, 0.18);
}

/* Popular Ribbon */
.tier-popular-ribbon {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    background: var(--theme-color, #d4a03c);
    text-align: center;
    padding: 8px 16px;
    border-radius: 16px 16px 0 0;
    z-index: 3;
}

.tier-popular-ribbon span {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

/* Tier Card Header */
.tier-card-header {
    padding: 40px 28px 22px;
    text-align: left;
    border-bottom: 1px solid #f0f3f6;
}

.tier-highlight .tier-card-header {
    padding-top: 52px;
}

.tier-card-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--theme-color);
    margin-bottom: 4px;
    line-height: 1.2;
}

.tier-card-subtitle {
    font-size: 13px;
    color: var(--theme-color, #d4a03c);
    font-weight: 700;
    letter-spacing: 0.3px;
    display: block;
    margin-top: 2px;
}

.tier-basic .tier-card-subtitle {
    color: #8a95a3;
}

/* Tier Card Body */
.tier-card-body {
    padding: 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Reward Badge Area */
.tier-reward-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f6f8fa;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 22px;
    border: 1px solid #edf0f4;
    transition: background 0.3s ease;
}

.tier-highlight .tier-reward-badge {
    background: rgba(212, 160, 60, 0.07);
    border-color: rgba(212, 160, 60, 0.15);
}

.tier-gold .tier-reward-badge {
    background: var(--theme-color);
    border-color: var(--theme-color);
}

.tier-gold .tier-reward-label {
    color: #fff;
}

.tier-gold .tier-reward-icon-i {
    color: var(--theme-color, #d4a03c);
}

.tier-reward-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.tier-reward-icon-i {
    font-size: 28px;
    color: var(--theme-color, #d4a03c);
    flex-shrink: 0;
}

.tier-reward-info {
    flex: 1;
    min-width: 0;
}

.tier-reward-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--theme-color);
    line-height: 1.4;
    display: block;
}

/* Features List (from Description HTML) */
.tier-features-list {
    margin-top: auto;
    padding-top: 4px;
}

.tier-features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tier-features-list li,
.tier-features-list p {
    position: relative;
    padding: 8px 0 8px 28px;
    font-size: 14px;
    color: #5a6a7a;
    line-height: 1.5;
    border-bottom: 1px solid #f5f6f8;
}

.tier-features-list li:last-child,
.tier-features-list p:last-child {
    border-bottom: none;
}

.tier-features-list li::before,
.tier-features-list p::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--theme-color, #d4a03c);
    background: rgba(212, 160, 60, 0.1);
    border-radius: 50%;
    line-height: 1;
}

.tier-gold .tier-features-list li::before,
.tier-gold .tier-features-list p::before {
    color: var(--theme-color);
    background: rgba(12, 35, 64, 0.08);
}

/* Tier Card Footer */
.tier-card-footer {
    padding: 0 28px 28px;
    text-align: center;
}

.tier-btn {
    display: block;
    width: 100%;
    padding: 13px 24px;
    border: 2px solid #d5dbe3;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--theme-color);
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    text-align: center;
    letter-spacing: 0.3px;
}

.tier-btn:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(12, 35, 64, 0.2);
}

.tier-highlight .tier-btn {
    background: var(--theme-color, #d4a03c);
    border-color: var(--theme-color, #d4a03c);
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 160, 60, 0.3);
}

.tier-highlight .tier-btn:hover {
    background: #b8872e;
    border-color: #b8872e;
    box-shadow: 0 6px 20px rgba(212, 160, 60, 0.4);
}

.tier-gold .tier-btn {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

.tier-gold .tier-btn:hover {
    background: var(--theme-color);
    color: var(--theme-color, #d4a03c);
}

/* Authority Section */
.partners-authority {
    padding: 90px 0;
    background: #fff;
}

.authority-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.authority-img-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(12, 35, 64, 0.15);
}

.authority-img-wrapper img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.authority-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--theme-color);
    color: #fff;
    padding: 18px 22px;
    border-radius: 12px;
    text-align: center;
    min-width: 130px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.authority-badge-text {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--theme-color, #d4a03c);
    line-height: 1.4;
}

.authority-content-subtitle {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--theme-color, #d4a03c);
    margin-bottom: 10px;
}

.authority-content-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--theme-color);
    line-height: 1.2;
    margin-bottom: 30px;
}

.authority-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.authority-feature-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 35, 64, 0.04);
    border-radius: 10px;
}

.authority-feature-icon i {
    font-size: 22px;
    color: var(--theme-color, #d4a03c);
}

.authority-feature-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.authority-feature-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--theme-color);
    margin-bottom: 5px;
}

.authority-feature-desc {
    font-size: 14px;
    line-height: 1.65;
    color: #6b7c8e;
    margin: 0;
}

.authority-extra-desc {
    margin-top: 15px;
    font-size: 14px;
    color: #6b7c8e;
    line-height: 1.7;
}

/* CTA Section */
.partners-cta {
    padding: 80px 0;
    background: #e9ecf0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.partners-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 160, 60, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.partners-cta-inner {
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.partners-cta-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--theme-color);
    margin-bottom: 4px;
}

.partners-cta-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 35px;
    line-height: 1.6;
}

.partners-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-primary {
    display: inline-block;
    padding: 14px 38px;
    background: var(--theme-color, #d4a03c);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 160, 60, 0.35);
}

.cta-btn-primary:hover {
    background: #b8872e;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 160, 60, 0.45);
}

.cta-btn-outline {
    display: inline-block;
    padding: 14px 38px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1200px) {
    .partners-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .tier-cards-wrapper {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }

    .tier-card.tier-highlight {
        transform: none;
    }

    .tier-card.tier-highlight:hover {
        transform: translateY(-8px);
    }

    .authority-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .partners-hero-title {
        font-size: 30px;
    }

    .authority-content-title {
        font-size: 28px;
    }

    .authority-img-wrapper img {
        height: 320px;
    }
}

@media (max-width: 767px) {
    .partners-feature-grid {
        grid-template-columns: 1fr;
    }

    .partners-hero {
        padding: 60px 0 40px;
    }

    .partners-hero-title {
        font-size: 26px;
    }

    .partners-rewards-title {
        font-size: 24px;
    }

    .partners-cta-title {
        font-size: 26px;
    }

    .authority-img-wrapper img {
        height: 260px;
    }

    .tier-card-header {
        padding: 35px 22px 18px;
    }

    .tier-card-body {
        padding: 20px 22px;
    }

    .tier-card-footer {
        padding: 0 22px 22px;
    }
}

/* =========================================
   RTL Support
   ========================================= */
[dir="rtl"] .partners-hero-desc {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .partners-hero-title::after {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .authority-wrapper {
    direction: rtl;
}

[dir="rtl"] .authority-feature-item {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .authority-badge {
    left: auto;
    right: 20px;
}

[dir="rtl"] .pf-card {
    text-align: right;
}

[dir="rtl"] .tier-card-header {
    text-align: right;
}

[dir="rtl"] .tier-reward-badge {
    flex-direction: row-reverse;
}

[dir="rtl"] .tier-features-list li,
[dir="rtl"] .tier-features-list p {
    padding-left: 0;
    padding-right: 28px;
    text-align: right;
}

[dir="rtl"] .tier-features-list li::before,
[dir="rtl"] .tier-features-list p::before {
    left: auto;
    right: 0;
}
