/* ======================================================== */
/*      FOOTER & FLOATING WIDGET STYLES (footer-style.css)  */
/* ======================================================== */

:root {
    --adt-footer-bg: #0B1120;
    --adt-footer-text: #94A3B8;
    --adt-footer-link-hover: #00AEFF;
    --adt-footer-heading: #FFFFFF;
    --adt-footer-accent: #00AEFF;
    --adt-primary: #0056b3;
}

.adt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 1. Main Footer */
.adt-site-footer {
    background-color: var(--adt-footer-bg);
    color: var(--adt-footer-text);
    padding: 5rem 1.5rem 2rem;
    font-size: 0.92rem;
    border-top: 1px solid #1E293B;
}

.adt-footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.adt-footer-column h4 {
    color: var(--adt-footer-heading);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    font-weight: 700;
}

.adt-footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background-color: var(--adt-footer-accent);
    border-radius: 2px;
}

.adt-footer-logo {
    max-width: 140px;
    margin-bottom: 1.25rem;
    display: block;
}

.adt-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.adt-footer-column ul li {
    margin-bottom: 10px;
}

.adt-footer-column a {
    text-decoration: none;
    color: var(--adt-footer-text);
    transition: color 0.2s ease;
}

.adt-footer-column a:hover {
    color: var(--adt-footer-link-hover);
}

.adt-footer-column address {
    font-style: normal;
    line-height: 1.8;
}

.adt-footer-column .contact-column p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.adt-footer-column .contact-column i {
    margin-right: 12px;
    margin-top: 5px;
    color: var(--adt-footer-accent);
    width: 18px;
}

/* Newsletter Form */
.adt-newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.adt-newsletter-form input {
    flex-grow: 1;
    border: 1px solid #334155;
    background-color: #1E293B;
    padding: 10px 14px;
    border-radius: 8px 0 0 8px;
    color: #ffffff;
    font-size: 0.88rem;
    outline: none;
}

.adt-newsletter-form input:focus {
    border-color: var(--adt-footer-accent);
}

.adt-newsletter-form button {
    border: none;
    background-color: var(--adt-footer-accent);
    color: #ffffff;
    padding: 0 16px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.adt-newsletter-form button:hover {
    background-color: #0096dc;
}

.adt-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 2rem;
    border-top: 1px solid #1E293B;
    font-size: 0.82rem;
}

/* 2. Floating Action Buttons (FABs) */
.adt-fab {
    position: fixed;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background-color: #00AEFF;
    color: #ffffff;
    font-size: 1.35rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 998;
    transition: transform 0.25s ease, opacity 0.3s ease, visibility 0.3s ease;
    text-decoration: none;
}

.adt-fab:hover {
    transform: scale(1.08);
    color: #ffffff;
}

.adt-fab--whatsapp {
    background-color: #25d366;
    bottom: 24px;
    left: 24px;
}

.adt-fab--scroll-top {
    background-color: #0F172A;
    bottom: 24px;
    right: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Supports both .is-visible and .visible */
.adt-fab--scroll-top.is-visible,
.adt-fab--scroll-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 3. Virtual Assistant Chat Widget */
.adt-chat-widget {
    position: fixed;
    bottom: 88px;
    right: 24px;
    z-index: 1000;
}

.adt-fab--chat {
    z-index: 1001;
    background-color: #00AEFF;
}

.adt-fab--chat .icon-opened { display: none; }
.adt-fab--chat.is-open .icon-closed { display: none; }
.adt-fab--chat.is-open .icon-opened { display: block; }

.adt-chat-callout {
    position: absolute;
    bottom: 64px;
    right: 0;
    background-color: #0F172A;
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    animation: bounceCallout 2.5s infinite;
}

@keyframes bounceCallout {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

.adt-chat-window {
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 340px;
    max-width: calc(100vw - 32px);
    height: 460px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.adt-chat-window.is-open,
.adt-chat-window[style*="display: flex"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.adt-chat-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background-color: #0F172A;
    color: #ffffff;
    cursor: grab;
    gap: 12px;
}

.adt-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #00AEFF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.adt-chat-info {
    flex: 1;
}

.adt-chat-title {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
}

.adt-chat-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #34D399;
}

.adt-chat-body {
    flex-grow: 1;
    padding: 14px;
    overflow-y: auto;
    background-color: #F8FAFC;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg,
.adt-chat-message {
    padding: 9px 13px;
    border-radius: 12px;
    max-width: 82%;
    line-height: 1.4;
}

.chat-msg.bot,
.adt-chat-message--bot {
    background-color: #ffffff;
    color: #0F172A;
    border: 1px solid #E2E8F0;
    border-bottom-left-radius: 2px;
    align-self: flex-start;
}

.chat-msg.user,
.adt-chat-message--user {
    background-color: #00AEFF;
    color: #ffffff;
    border-bottom-right-radius: 2px;
    align-self: flex-end;
}

.adt-chat-quick-replies {
    padding: 8px 12px;
    border-top: 1px solid #F1F5F9;
    background-color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-reply-btn,
.adt-quick-reply-btn {
    background-color: #F1F5F9;
    border: 1px solid #E2E8F0;
    color: #0F172A;
    padding: 5px 10px;
    border-radius: 14px;
    font-size: 0.74rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.quick-reply-btn:hover,
.adt-quick-reply-btn:hover {
    background-color: #00AEFF;
    color: #ffffff;
    border-color: #00AEFF;
}

.adt-chat-footer {
    display: flex;
    padding: 10px 12px;
    border-top: 1px solid #E2E8F0;
    background: #ffffff;
    gap: 8px;
}

#chatInput,
.adt-chat-footer input {
    flex-grow: 1;
    border: 1px solid #E2E8F0;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    outline: none;
}

#chatInput:focus,
.adt-chat-footer input:focus {
    border-color: #00AEFF;
}

#chatSendBtn,
.adt-chat-footer button {
    background: #00AEFF;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: #ffffff;
    cursor: pointer;
}

/* 4. Social Media Icons */
.social-media-icons {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.social-media-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1rem;
    color: #E2E8F0;
    background-color: #1E293B;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-media-icons a:hover {
    transform: translateY(-2px);
    background-color: #00AEFF;
    color: #ffffff;
}

/* Modals */
#courseDetailModal .modal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}
