/* Design System - CGA Naumur (Professional Redesign) */
:root {
    /* Color Palette - Naumur Visual Identity */
    --primary-color: #12005E;
    /* Primary (Dark) */
    --primary-mid: #3F00B5;
    /* Primary (Mid) - Original */
    --secondary-color: #9D00FF;
    /* Accent (Purple) - Original */
    --accent-magenta: #D100D1;
    /* Accent (Magenta) */
    --text-on-primary: #FFFFFF;

    --success-color: #00C851;
    --danger-color: #FF4444;
    --text-color: #333333;
    /* Dark Grey for better readability on text */
    --light-bg: #F9FAFB;
    /* Very light grey for background */
    --white: #FFFFFF;
    --border-color: #E5E7EB;

    --dark-violet: #1A0052;
    /* Special Dark Violet for specific backgrounds */

    /* Typography */
    --font-main: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Montserrat', 'Georgia', serif;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--light-bg);
    margin: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Top Bar --- */
.uicore-top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.9rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.uicore-top-bar .elementor-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.ui-tb-col-1 p,
.ui-tb-col-2 p {
    margin: 0;
}

.uicore-icon-wrapp {
    display: inline-flex;
    align-items: center;
}

/* --- Header --- */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Rounded Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    /* Rounded Border */
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--primary-mid);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    /* Solid Color, No Gradient */
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Navigation */
.main-nav>ul {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-mid);
}

/* Dropdown Menu Styles */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 250px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid var(--border-color);
    display: block !important;
    /* Explicitly vertical */
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    margin: 0 !important;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-transform: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0;
}

.dropdown-menu a:hover {
    background-color: var(--light-bg);
    color: var(--primary-mid) !important;
}

.dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.8rem;
    vertical-align: middle;
}

/* Buttons (Solid Colors) */
.btn {
    padding: 10px 24px;
    border-radius: 4px;
    /* Slightly rounded, classic pro look */
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-mid);
    color: var(--white) !important;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-accent {
    background-color: var(--secondary-color);
    color: var(--white) !important;
}

.btn-logout {
    background: none;
    border: 1px solid var(--danger-color);
    color: var(--danger-color) !important;
    padding: 8px 16px;
}

.btn-logout:hover {
    background-color: var(--danger-color);
    color: var(--white) !important;
}

/* --- Main Content --- */
.main-content {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* --- Rich Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: #e0e0e0;
    padding: 60px 0 20px;
    margin-top: 60px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #bbbbbb;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    border-radius: 50%;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

/* Service Cards */
.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-mid);
}

/* --- Responsive Design (Mobile & Tablet) --- */

@media (max-width: 992px) {

    /* Tablet & Small Desktop adjustment */
    .container {
        padding: 0 20px;
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-section p {
        border-left: none !important;
        border-bottom: 4px solid var(--secondary-color);
        padding-bottom: 20px;
        padding-left: 0 !important;
    }

    .hero-section .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {

    /* Mobile Navigation */
    .main-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 20px;
        width: 100%;
        justify-content: center;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        /* Allow horizontal scroll if needed, or stacking */
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        align-items: stretch;
        /* Full width links */
    }

    .main-nav a {
        display: block;
        padding: 10px;
        text-align: center;
        background-color: #f8f9fa;
        border-radius: 4px;
    }

    .main-nav a.active,
    .main-nav a:hover {
        background-color: var(--primary-mid);
        color: white;
    }

    .main-nav a.btn-primary {
        background: var(--gradient-main);
        color: white;
    }

    /* Top Bar Stacking */
    .uicore-top-bar .elementor-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .uicore-icon-wrapp {
        display: block;
        margin-bottom: 5px;
    }

    .uicore-icon-wrapp i {
        padding: 0 !important;
        /* Reset padding for mobile */
    }

    /* Footer Stacking */
    .footer-grid {
        grid-template-columns: 1fr;
        /* Single column */
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
        /* Center underline */
    }

    /* Form Fields */
    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Prevent zoom on iOS */
    }

    /* Typography sizing */
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }
}

/* --- Form Styling --- */
.form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    /* Reduced from 800px */
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-mid);
    box-shadow: 0 0 0 3px rgba(18, 0, 94, 0.05);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 25px;
    }
}


/* --- WhatsApp Widget --- */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.whatsapp-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    border-radius: 50%;
    text-decoration: none;
}

.whatsapp-icon-bg {
    background: #25D366;
    /* Official WhatsApp Green */
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 40px;
    height: 40px;
}

/* --- Chatbot Widget --- */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.chatbot-toggle {
    background: var(--primary-mid);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, background 0.3s;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    background: var(--primary-color);
}

.chatbot-container {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 320px;
    height: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chatbot-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.chatbot-header h3 {
    margin: 0;
    font-size: 1rem;
}

#chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #fdfdfd;
}

.message {
    margin-bottom: 12px;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    max-width: 85%;
}

.message.bot {
    background: #f1efef;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.user {
    background: var(--primary-mid);
    color: white;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.chatbot-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

#chatbot-input-field {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.9rem;
    outline: none;
}

#chatbot-send {
    background: var(--primary-mid);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

#chatbot-send:hover {
    background: var(--primary-color);
}