/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Times New Roman", Times, serif;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
}

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

/* Header Styles */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.logo {
    margin-bottom: 20px;
}

.logo-img {
    width: 240px;
    height: 240px;
    object-fit: contain;
}

.title {
    color: #000000;
    font-size: 1.8rem;
    font-weight: normal;
    text-align: center;
    font-family: "Times New Roman", Times, serif;
    white-space: nowrap;
    font-variant: small-caps;
}

.credentials {
    text-align: center;
    margin-top: 10px;
}

.credentials p {
    color: #000000;
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
    margin: 5px 0;
    font-style: italic;
}

/* Main Content Styles */
.main-content {
    margin-bottom: 40px;
    margin-top: 10px;
}

.content-section h2 {
    color: #000000;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: normal;
    font-family: "Times New Roman", Times, serif;
}

.content-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #000000;
    font-family: "Times New Roman", Times, serif;
    text-indent: 1.5em;
}

/* Collapsible Styles */
.collapsible-section {
    margin-bottom: 20px;
}

.collapsible-header {
    width: 100%;
    padding: 0;
    background: #ffffff;
    color: #000000;
    border: none;
    cursor: pointer;
    display: block;
    font-size: 1.2rem;
    font-weight: normal;
    text-align: left;
    margin-bottom: 10px;
    font-family: "Times New Roman", Times, serif;
}

.arrow {
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.collapsible-header.active .arrow {
    transform: rotate(180deg);
}

.collapsible-header:hover {
    background: #ffffff;
}

.header-text {
    text-align: left;
}

.toggle-icon {
    display: none;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #ffffff;
    margin-left: 20px;
}

.collapsible-content.active {
    max-height: 2000px;
    padding: 0;
}

.collapsible-content p {
    margin-bottom: 15px;
    color: #000000;
    font-family: "Times New Roman", Times, serif;
}

.collapsible-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.collapsible-content li {
    margin-bottom: 8px;
    color: #000000;
    font-family: "Times New Roman", Times, serif;
}

/* Nested Collapsible Styles */
.collapsible-subsection {
    margin-bottom: 15px;
    margin-left: 20px;
}

.collapsible-subheader {
    width: 100%;
    padding: 0;
    background: #ffffff;
    color: #000000;
    border: none;
    cursor: pointer;
    display: block;
    font-size: 1.1rem;
    font-weight: normal;
    text-align: left;
    margin-bottom: 8px;
    font-family: "Times New Roman", Times, serif;
}

.collapsible-subheader .arrow {
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.collapsible-subheader.active .arrow {
    transform: rotate(180deg);
}

.collapsible-subheader:hover {
    background: #ffffff;
}

.collapsible-subcontent {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #ffffff;
    margin-left: 20px;
}

.collapsible-subcontent.active {
    max-height: 1500px;
    padding: 0;
}

.collapsible-subcontent p {
    margin-bottom: 10px;
    color: #000000;
    font-family: "Times New Roman", Times, serif;
}

.collapsible-subcontent ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.collapsible-subcontent li {
    margin-bottom: 6px;
    color: #000000;
    font-family: "Times New Roman", Times, serif;
}

/* AI Chat Styles */
.ai-chat-section {
    background: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.chat-container {
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: #ffffff;
    color: #000000;
    padding: 20px;
    text-align: center;
}

.chat-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: normal;
    font-family: "Times New Roman", Times, serif;
}

.chat-header p {
    font-size: 0.9rem;
    font-family: "Times New Roman", Times, serif;
}

/* Botpress Chat Widget Container */
.chat-widget-container {
    flex: 1;
    position: relative;
    background-color: #ffffff;
}

#bp-embedded-webchat {
    width: 100%;
    height: 100%;
    border: none;
}

/* Override Botpress default styles to match our design */
#bp-embedded-webchat iframe {
    border: none !important;
}

/* Hide the default Botpress floating button since we have an embedded widget */
.bp-widget {
    display: none !important;
}

/* Botpress Chat Widget Font Styling */
#bp-embedded-webchat * {
    font-family: "Times New Roman", Times, serif !important;
}

/* Target specific Botpress elements for font styling */
#bp-embedded-webchat .bp-widget,
#bp-embedded-webchat .bp-widget *,
#bp-embedded-webchat .bp-chat,
#bp-embedded-webchat .bp-chat *,
#bp-embedded-webchat .bp-message,
#bp-embedded-webchat .bp-message *,
#bp-embedded-webchat .bp-input,
#bp-embedded-webchat .bp-input *,
#bp-embedded-webchat .bp-button,
#bp-embedded-webchat .bp-button *,
#bp-embedded-webchat .bp-text,
#bp-embedded-webchat .bp-text *,
#bp-embedded-webchat .bp-header,
#bp-embedded-webchat .bp-header *,
#bp-embedded-webchat .bp-footer,
#bp-embedded-webchat .bp-footer * {
    font-family: "Times New Roman", Times, serif !important;
}

/* Additional Botpress styling overrides */
#bp-embedded-webchat {
    font-family: "Times New Roman", Times, serif !important;
}

#bp-embedded-webchat input,
#bp-embedded-webchat textarea,
#bp-embedded-webchat button {
    font-family: "Times New Roman", Times, serif !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        max-width: 100%;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .logo-img {
        width: 180px;
        height: 180px;
    }
    
    .title {
        font-size: 1.5rem;
        white-space: normal;
        line-height: 1.3;
    }
    
    .credentials p {
        font-size: 0.9rem;
    }
    
    .main-content {
        margin-top: 15px;
    }
    
    .content-section p {
        font-size: 1rem;
        text-indent: 1em;
        line-height: 1.5;
    }
    
    .collapsible-header {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .collapsible-subheader {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .collapsible-content {
        margin-left: 10px;
    }
    
    .collapsible-subsection {
        margin-left: 10px;
        margin-bottom: 10px;
    }
    
    .collapsible-subcontent {
        margin-left: 10px;
    }
    
    .collapsible-content ul,
    .collapsible-subcontent ul {
        margin-left: 15px;
    }
    
    .collapsible-content li,
    .collapsible-subcontent li {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 5px;
    }
    
    .ai-chat-section {
        max-width: 100%;
        padding: 15px;
    }
    
    .chat-container {
        height: 400px;
    }
    
    .arrow {
        font-size: 0.8rem;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .logo-img {
        width: 150px;
        height: 150px;
    }
    
    .title {
        font-size: 1.3rem;
    }
    
    .credentials p {
        font-size: 0.8rem;
    }
    
    .content-section p {
        font-size: 0.9rem;
    }
    
    .collapsible-header {
        font-size: 1rem;
    }
    
    .collapsible-subheader {
        font-size: 0.9rem;
    }
    
    .collapsible-content li,
    .collapsible-subcontent li {
        font-size: 0.8rem;
    }
    
    .ai-chat-section {
        padding: 10px;
    }
    
    .chat-container {
        height: 350px;
    }
}