
:root {
    --primary-color: #b8860b;
    --secondary-color: #333;
    --accent-color: #333;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --light-text: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.main-header {
    background: white;
    color: var(--dark-text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.logo-container {
    flex-shrink: 0; /* Prevent logo from shrinking too much */
}

.logo-container img {
    max-height: 5rem; /* Base height for larger screens */
    max-width: 100%; /* Ensure it doesn't overflow container */
    height: auto; /* Maintain aspect ratio */
    transition: all 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: clamp(1rem, 2.5vw, 1.25rem); /* Responsive text size */
    white-space: nowrap; /* Prevent text wrapping on medium screens */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-container img {
        max-height: 3rem; /* Smaller height on mobile */
    }
    
    .logo-text {
        font-size: clamp(0.875rem, 2vw, 1rem); /* Smaller text on mobile */
    }
}

@media (max-width: 576px) {
    .logo-container img {
        max-height: 2.5rem; /* Even smaller for very small screens */
    }
    
    .logo-text {
        font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    }
}

/* Main Content */
.main-container {
    flex: 1;
    padding: 2rem;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin: 1.5rem auto;
    width: 95%;
    max-width: 1350px;
}

.page-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Avatar Section */
.avatar-section {
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.togo-info {
    flex: 1;
    text-align: left;
    max-width: 500px;
}

.togo-info h2 {
    color: var(--primary-color);
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.togo-info p {
    font-size: 1.1em;
    color: var(--secondary-color);
    line-height: 1.8;
}

.video-container {
    flex: 1;
    max-width: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 12px;
    position: relative;
}

.avatar-section video {
    width: 100%;
    height: auto;
    border: 4px solid var(--primary-color);
    border-radius: 12px;
    display: block;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.avatar-section video:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Language Toggle */
.language-toggle {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.language-toggle button {
    padding: 0.75rem 1.5rem;
    font-size: 1.1em;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    background: var(--primary-color);
    color: black;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-toggle button:hover {
    background: #b8860b;
    transform: translateY(-2px);
}

/* Slides Section */
.slides-section {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.slides-section:hover {
    transform: translateY(-5px);
}

.slide {
    display: none;
    padding: 1rem;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.slide.active {
    display: block;
}

.slide-image {
    max-width: 70%;
    height: auto;
    margin: 0 auto;
    display: block;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.slide-caption {
    margin-bottom: 1rem;
    text-align: left; /* Left-align the caption */
}

.slide-caption h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.slide-caption h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; /* Align line to the left edge */
    width: 40px; /* Small line width */
    height: 2px; /* Thin line */
    background-color: var(--accent-color);
    border-radius: 1px;
}

.slide-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.nav-link {
    color: black !important;
}

.nav-link:hover {
    color: #333 !important;
}

.slide-nav button {
    padding: 0.75rem 1.5rem;
    font-size: 1.1em;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    background: var(--primary-color);
    color: black;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-nav button:hover {
    background: #b8860b;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004e8c 100%);
    color: white;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Arrange logos and text */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem; /* Add spacing between elements */
}

.footer-logo-left,
.footer-logo-right {
    width: clamp(80px, 14vw, 120px); /* Increased by 20% */
    height: auto; /* Maintain aspect ratio */
}

.footer-text {
    text-align: center;
    flex-grow: 1;
}

.footer-text p {
    margin: 0;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem); /* Responsive font size */
}

/* Responsive adjustments for medium screens */
@media (max-width: 992px) {
    .footer {
        padding: 1.5rem;
    }

    .footer-logo-left,
    .footer-logo-right {
        width: clamp(72px, 12vw, 96px); /* Increased by 20% */
    }

    .footer-text p {
        font-size: clamp(0.85rem, 2.3vw, 1rem);
    }
}

/* Center logos and text on mobile */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
        text-align: center; /* Center text */
    }

    .footer-logo-left,
    .footer-logo-right {
        width: clamp(48px, 14.4vw, 72px); /* Increased by 20% */
        margin: 0.5rem 0; /* Vertical spacing */
    }

    .footer-text {
        margin: 0.5rem 0; /* Vertical spacing */
    }

    .footer-text p {
        font-size: clamp(0.8rem, 2vw, 0.9rem); /* Smaller text for mobile */
    }

    .footer {
        padding: 1rem; /* Reduced padding for smaller screens */
    }
}

/* Extra small screens (e.g., very small phones) */
@media (max-width: 576px) {
    .footer-logo-left,
    .footer-logo-right {
        width: clamp(36px, 12vw, 60px); /* Increased by 20% */
    }

    .footer-text p {
        font-size: clamp(0.75rem, 1.8vw, 0.85rem); /* Tiny text for very small screens */
    }

    .footer {
        padding: 0.75rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .avatar-section {
        flex-direction: column;
        text-align: center;
    }
    
    .togo-info {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .video-container {
        max-width: 100%;
    }
    
    .slide h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }
    
    .avatar-section {
        padding: 1rem;
    }
    
    .slides-section {
        padding: 1rem;
    }
    
    .slide-image {
        max-width: 90%;
    }
    
    .language-toggle button, .slide-nav button {
        padding: 0.5rem 1rem;
        font-size: 1em;
    }
}

/* Chatbot Styles */
.chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
}

.chatbot-button i {
    color: white;
    font-size: 24px;
}

.chatbot-button:hover {
    transform: scale(1.1);
    background-color: #9e7209;
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    transform: scale(0);
    opacity: 0;
    transform-origin: bottom right;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.chatbot-container.active {
    transform: scale(1);
    opacity: 1;
}

.chatbot-header {
    background-color: var(--primary-color);
    padding: 15px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.chatbot-title {
    font-weight: 600;
    font-size: 16px;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chatbot-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 14px;
    word-break: break-word;
}

.user-message {
    background-color: #f0f0f0;
    color: #333;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.bot-message {
    background-color: var(--primary-color);
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.chatbot-input-container {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
}

.chatbot-input:focus {
    border-color: var(--primary-color);
}

.chatbot-send {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chatbot-send:hover {
    background-color: #9e7209;
}

.chatbot-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background-color: #f0f0f0;
    border-radius: 18px;
    max-width: 60px;
    align-self: flex-start;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #888;
    border-radius: 50%;
    animation: typingAnimation 1s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

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

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

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

/* Media queries for chatbot responsiveness */
@media (max-width: 576px) {
    .chatbot-container {
        width: 90%;
        height: 70%;
        bottom: 80px;
        right: 5%;
        left: 5%;
    }
    
    .chatbot-button {
        bottom: 20px;
        right: 20px;
    }
}
