/* ========================================
   TIPS PAGES CSS - CREDIFIN
   ======================================== */

/* Tips Header with Image */
.tips-header {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tips-header__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.tips-header__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 69, 112, 0.92) 0%, rgba(43, 69, 112, 0.85) 100%);
    z-index: 2;
}

.tips-header__content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.tips-header__icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.tips-header__label {
    background-color: #E6332F;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 20px;
}

.tips-header__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.tips-header__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.tips-header__breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tips-header__breadcrumb a:hover {
    color: #E6332F;
}

.tips-header__breadcrumb span:last-child {
    color: white;
    font-weight: 600;
}

/* Tips Content */
.tips-content {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* Tips Intro */
.tips-intro {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tips-intro__text {
    font-size: 20px;
    line-height: 1.8;
    color: #495057;
    font-style: italic;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

/* Tip Card */
.tip-card {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
    border-left: 5px solid #E6332F;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tip-card__number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2b4570 0%, #1a2d4d 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(43, 69, 112, 0.3);
}

.tip-card__title {
    font-size: 24px;
    font-weight: 700;
    color: #2b4570;
    margin-bottom: 15px;
    line-height: 1.3;
    padding-right: 60px;
}

.tip-card__content {
    font-size: 17px;
    line-height: 1.7;
    color: #333;
    text-align: justify;
}

/* Tips CTA */
.tips-cta {
    background: linear-gradient(135deg, #2b4570 0%, #1a2d4d 100%);
    border-radius: 15px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.tips-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.tips-cta__content {
    position: relative;
    z-index: 1;
}

.tips-cta__title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.3;
}

.tips-cta__text {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.tips-cta__buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.tips-cta__btn {
    display: inline-block;
    padding: 16px 35px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tips-cta__btn--primary {
    background-color: #E6332F;
    color: white;
}

.tips-cta__btn--primary:hover {
    background-color: #c72a26;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 51, 47, 0.4);
}

.tips-cta__btn--secondary {
    background-color: white;
    color: #2b4570;
}

.tips-cta__btn--secondary:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.tips-cta__image {
    position: relative;
    z-index: 1;
}

.tips-cta__image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Related Tips */
.related-tips {
    background-color: white;
    padding: 60px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.related-tips__title {
    font-size: 32px;
    font-weight: 700;
    color: #2b4570;
    text-align: center;
    margin-bottom: 40px;
}

.related-tips__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Related Tip Card */
.related-tip-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.related-tip-card:hover {
    background-color: #2b4570;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(43, 69, 112, 0.2);
}

.related-tip-card__icon {
    font-size: 60px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.related-tip-card:hover .related-tip-card__icon {
    transform: scale(1.1);
}

.related-tip-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #2b4570;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.related-tip-card:hover .related-tip-card__title {
    color: white;
}

.related-tip-card__text {
    font-size: 15px;
    line-height: 1.6;
    color: #6c757d;
    transition: color 0.3s ease;
}

.related-tip-card:hover .related-tip-card__text {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 992px) {
    .tips-header {
        height: 400px;
    }

    .tips-header__icon {
        font-size: 60px;
    }

    .tips-header__title {
        font-size: 36px;
    }

    .tips-intro {
        padding: 30px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .tip-card {
        padding: 30px;
    }

    .tips-cta {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 40px;
    }

    .tips-cta__image img {
        height: 300px;
    }

    .related-tips {
        padding: 40px;
    }

    .related-tips__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .tips-header {
        height: 350px;
    }

    .tips-header__icon {
        font-size: 50px;
    }

    .tips-header__title {
        font-size: 28px;
    }

    .tips-intro {
        padding: 25px 20px;
    }

    .tips-intro__text {
        font-size: 18px;
    }

    .tip-card {
        padding: 25px 20px;
    }

    .tip-card__number {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }

    .tip-card__title {
        font-size: 20px;
        padding-right: 50px;
    }

    .tip-card__content {
        font-size: 16px;
    }

    .tips-cta {
        padding: 30px 20px;
    }

    .tips-cta__title {
        font-size: 28px;
    }

    .tips-cta__text {
        font-size: 16px;
    }

    .tips-cta__buttons {
        flex-direction: column;
    }

    .tips-cta__btn {
        width: 100%;
        text-align: center;
    }

    .tips-cta__image img {
        height: 250px;
    }

    .related-tips {
        padding: 30px 20px;
    }

    .related-tips__title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .tips-header__title {
        font-size: 24px;
    }

    .tip-card__title {
        font-size: 18px;
    }

    .tips-cta__title {
        font-size: 24px;
    }
}

