.tips-page {
    background-color: var(--bg-cream);
    padding-bottom: 80px;
}

/* ==================== HERO ==================== */
.tips-hero {
    background: linear-gradient(135deg, var(--primary-orange), var(--highlight-red));
    padding: 80px 5% 120px;
    text-align: center;
    color: white;
    border-radius: 0 0 50% 50% / 20px;
    margin-bottom: -60px;
    /* Overlap effect */
}

.tips-hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.tips-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== AI CHAT - FULL WIDTH ==================== */
.ai-chat-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 5%;
}

.chat-container {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 700px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: linear-gradient(90deg, #2c3e50, #34495e);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-avatar {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    font-size: 1.2rem;
    overflow: hidden;
}

.ai-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 0;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    margin-right: 5px;
}

.chat-window {
    flex: 1;
    background: #f8f9fa;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    background: var(--white);
    color: var(--text-dark);
    border-bottom-left-radius: 2px;
    align-self: flex-start;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.user-message {
    background: var(--primary-orange);
    color: white;
    border-bottom-right-radius: 2px;
    align-self: flex-end;
    box-shadow: 0 2px 10px rgba(250, 129, 47, 0.3);
}

.chat-input-area {
    padding: 15px;
    background: var(--white);
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    border: 2px solid #eee;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input-area input:focus {
    border-color: var(--primary-orange);
}

.chat-input-area button {
    background: var(--primary-orange);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input-area button:hover {
    transform: scale(1.1);
}

/* ==================== FAQ ACCORDION ==================== */
.tips-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.tips-grid-section h2 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 30px;
    padding-top: 20px;
    text-align: center;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.faq-item:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 8px 30px rgba(250, 129, 47, 0.15);
}

.faq-item.hidden {
    display: none;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    cursor: pointer;
    background: linear-gradient(to right, rgba(250, 129, 47, 0.05), transparent);
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: linear-gradient(to right, rgba(250, 129, 47, 0.1), transparent);
}

.faq-question i:first-child,
.faq-question img:first-child {
    flex-shrink: 0;
}

.faq-question img:first-child {
    width: 45px;
    height: 45px;
    object-fit: contain;
    padding: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover .faq-question img:first-child {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Icon color variants with circular backgrounds */
.faq-item:nth-child(1) .faq-question img:first-child {
    background: linear-gradient(135deg, #fff5f0, #ffffff);
}

.faq-item:nth-child(2) .faq-question img:first-child {
    background: linear-gradient(135deg, #f0fbff, #ffffff);
}

.faq-item:nth-child(3) .faq-question img:first-child {
    background: linear-gradient(135deg, #f8f0ff, #ffffff);
}

.faq-item:nth-child(4) .faq-question img:first-child {
    background: linear-gradient(135deg, #f0fff8, #ffffff);
}

.faq-item:nth-child(5) .faq-question img:first-child {
    background: linear-gradient(135deg, #fff0f5, #ffffff);
}

.faq-item:nth-child(6) .faq-question img:first-child {
    background: linear-gradient(135deg, #fffef0, #ffffff);
}

.faq-item:nth-child(7) .faq-question img:first-child {
    background: linear-gradient(135deg, #fff8f0, #ffffff);
}

.faq-item:nth-child(8) .faq-question img:first-child {
    background: linear-gradient(135deg, #f0f7ff, #ffffff);
}

.faq-item:nth-child(9) .faq-question img:first-child {
    background: linear-gradient(135deg, #fff0f0, #ffffff);
}

.faq-item:nth-child(10) .faq-question img:first-child {
    background: linear-gradient(135deg, #f5f0ff, #ffffff);
}

.faq-question h3 {
    flex: 1;
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.faq-arrow {
    color: var(--primary-orange);
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px 25px;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
    padding-left: 45px;
}

/* See More Button */
.see-more-container {
    text-align: center;
    margin-top: 30px;
}

.see-more-btn {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(250, 129, 47, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.see-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(250, 129, 47, 0.4);
    background: var(--highlight-red);
}

.see-more-btn i {
    transition: transform 0.3s ease;
}

.see-more-btn.expanded i {
    transform: rotate(180deg);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .chat-container {
        height: 500px;
    }

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

/* Typing Indicator */
.typing-indicator {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.typing-dots {
    display: flex;
    gap: 5px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-orange);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Bot Avatar in Messages */
.bot-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.bot-message .bot-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
    overflow: hidden;
}

.bot-message .bot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bot-message p {
    flex: 1;
    margin: 0;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    white-space: pre-wrap;
    line-height: 1.6;
    word-wrap: break-word;
}

/* Dark Mode */
body.dark-mode .tips-page {
    background: #1a1a1a;
}

body.dark-mode .chat-container {
    background: #2a2a2a;
    border-color: #333;
}

body.dark-mode .chat-window {
    background: #1f1f1f;
}

body.dark-mode .bot-message p {
    background: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .chat-input-area {
    background: #2a2a2a;
    border-top-color: #333;
}

body.dark-mode .chat-input-area input {
    background: #1f1f1f;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .faq-item {
    background: #2a2a2a;
    border-color: #333;
}

body.dark-mode .faq-item:hover {
    border-color: var(--primary-orange);
}

body.dark-mode .faq-question {
    background: linear-gradient(to right, rgba(250, 129, 47, 0.1), transparent);
}

body.dark-mode .faq-question:hover {
    background: linear-gradient(to right, rgba(250, 129, 47, 0.15), transparent);
}

body.dark-mode .faq-question h3 {
    color: #ffffff;
}

body.dark-mode .faq-answer p {
    color: #b0b0b0;
}

body.dark-mode .tips-grid-section h2 {
    color: #ffffff;
}