/* Homeowner Incentive Program Page */
.hip-page {
    width: 100%;
    padding-bottom: 120px;
}

.hip-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
.hip-section {
    padding: 80px 0;
}

/* Page Header */
.hip-header {
    padding-bottom: 0;
    text-align: center;
}

.hip-page-title {
    color: #000;
    margin-bottom: 16px;
}

.hip-page-subtitle {
    margin: 0 auto;
}

/* Section Title */
.hip-section-title {
    text-align: center;
    color: #000;
    margin-bottom: 48px;
}

/* Program Rewards */
.hip-rewards {
    background: #fff;
}

/* Rewards rich text table */
.hip-rewards-table {
    width: 100%;
    margin-bottom: 40px;
    overflow-x: auto;
}

.hip-rewards-table table {
    width: 100% !important;
    border-collapse: collapse;
    font-size: 16px;
    border: none !important;
}

.hip-rewards-table table th,
.hip-rewards-table table td {
    padding: 16px 20px !important;
    text-align: left !important;
    border: none !important;
    border-bottom: 1px solid #e5e5e5 !important;
    vertical-align: top !important;
    line-height: 1.6 !important;
    background: transparent !important;
}

.hip-rewards-table table th {
    font-weight: 700 !important;
    color: #000 !important;
}

/* Social Links */
.hip-social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hip-social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
    width: 120px;
}

.hip-social-item:hover {
    opacity: 0.75;
    text-decoration: none;
}

.hip-social-item:hover .hip-social-name,
.hip-social-item:hover .hip-social-handle {
    text-decoration: none;
}

.hip-social-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hip-social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hip-social-name {
    color: #000;
    text-align: center;
    width: 100%;
    margin: 12px 0 4px;
}

.hip-social-handle {
    color: #c8c8c8;
    text-align: center;
    width: 100%;
}

/* Bottom Tip */
.hip-rewards-tip {
    text-align: center;
    color: #969696;
    margin-top: 40px;
}

/* FAQ */
.hip-faq .content {
    border-top: 1px solid #b5b5b5;
}

.hip-faq .faq-item {
    cursor: pointer;
    padding: 36px 0;
    border-bottom: 1px solid #b5b5b5;
}

.hip-faq .faq-item .question {
    color: #000;
}

.hip-faq .faq-item .answer {
    color: #646464;
    margin-top: 16px;
    display: none;
}

.hip-faq .faq-item .answer.active {
    display: block;
}

.hip-faq-tip {
    text-align: center;
    color: #979697;
    margin-top: 36px;
}

/* Toggle button */
.toggle-button {
    width: 24px;
    height: 24px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-button::before,
.toggle-button::after {
    content: '';
    position: absolute;
    background: #000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toggle-button::before {
    width: 16px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.toggle-button::after {
    width: 2px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.toggle-button.active::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hip-page {
        padding-bottom: 60px;
    }

    .hip-section {
        padding: 48px 0;
    }

    .hip-section-title {
        margin-bottom: 32px;
    }

    .hip-faq .faq-item {
        padding: 20px 0;
    }

    /* Table: stack each row as card on mobile */
    .hip-rewards-table {
        overflow-x: visible;
        margin-bottom: 32px;
    }

    .hip-rewards-table table {
        display: block;
        width: 100%;
    }

    .hip-rewards-table table thead {
        display: none;
    }

    .hip-rewards-table table tbody {
        display: block;
        width: 100%;
    }

    .hip-rewards-table table tr {
        display: block;
        width: 100%;
        box-sizing: border-box;
        border: 1px solid #e5e5e5;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 16px;
    }

    .hip-rewards-table table td {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 0 !important;
        border-bottom: none !important;
        font-size: 14px !important;
    }

    /* Show column label via data-label attribute */
    .hip-rewards-table table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #000;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }

    /* Social links: 3 per row evenly */
    .hip-social-links {
        gap: 16px 0;
        justify-content: space-around;
    }

    .hip-social-item {
        width: 30%;
    }

    .hip-social-icon {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .hip-social-item {
        width: 33%;
    }
}

/* ========== Banner ========== */
#iip-banner {
    padding: 0 !important;
}

#iip-banner .banner-inner {
    position: relative;
    width: 100%;
    min-height: 480px;
    padding-top: 42%;
    overflow: hidden;
}

#iip-banner .banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#iip-banner .banner-content {
    position: absolute;
    top: 50%;
    left: 46%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 70%;
    padding: 0 20px;
    color: #000;
}

#iip-banner .banner-title {
    color: #000 !important;
    margin-bottom: 16px;
    white-space: pre-line;
}

#iip-banner .banner-desc {
    color: #000 !important;
    margin-bottom: 24px;
    max-width: 80%;
    min-height: 100px;
}

#iip-banner .banner-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#iip-banner .banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 44px;
    border: 2px solid #000;
    border-radius: 100px;
    color: #000 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 180px;
}

#iip-banner .banner-btn:hover {
    background: #000;
    color: #fff !important;
}

@media (max-width: 1600px) {
    #iip-banner .banner-title {
        max-width: 69%;
    }

    #iip-banner .banner-content {
        left: 50%;
    }

    #iip-banner .banner-desc {
        max-width: 65%;
    }
}

@media (max-width: 1200px) {
    #iip-banner .banner-inner {
        padding-top: 50%;
        min-height: 480px;
    }

    #iip-banner .banner-content {
        left: 0;
        transform: translateY(-50%);
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    #iip-banner .banner-inner {
        min-height: 480px;
        padding-top: 0;
        height: 480px;
    }

    #iip-banner .banner-bg {
        width: unset;
        transform: translateX(-30%);
    }

    #iip-banner .banner-inner::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.45);
        z-index: 1;
    }

    #iip-banner .banner-content {
        left: 0;
        transform: translateY(-50%);
        padding: 0 20px;
        max-width: 100%;
        z-index: 2;
    }

    #iip-banner .banner-title {
        font-size: 24px !important;
        white-space: normal;
        max-width: 100%;
    }

    #iip-banner .banner-desc {
        font-size: 14px !important;
        margin-bottom: 20px;
        max-width: 100%;
    }

    #iip-banner .banner-btns {
        flex-direction: column;
        gap: 10px;
    }

    #iip-banner .banner-btn {
        min-width: 0;
        width: 100%;
        max-width: 280px;
        height: 40px;
    }
}