:root {
    --primary-color: #0038a8; /* Philippine Blue */
    --secondary-color: #ce1126; /* Philippine Red */
    --accent-color: #fcd116; /* Philippine Gold */
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* Navbar */
.navbar-public {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0.5rem;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #002266 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Page Headers */
.page-header {
    background: var(--bg-light);
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

/* Section Styling */
.section-title {
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
}

/* Footer */
.footer-public {
    background: #111;
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-links h5 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

/* Utility Classes */
.bg-ph-blue { background-color: var(--primary-color); }
.bg-ph-red { background-color: var(--secondary-color); }
.text-ph-blue { color: var(--primary-color); }
.text-ph-red { color: var(--secondary-color); }

@media (max-width: 991.98px) {
    .hero-content h1 { font-size: 2.5rem; }
}

/* ===== EASI Voice Assistant (Google-style) ===== */
#easi-va * { box-sizing: border-box; }

.easi-fab {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: 3px solid var(--accent-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: all 0.3s ease;
}

.easi-fab:hover { transform: scale(1.1); box-shadow: 0 6px 25px rgba(0,56,168,0.5); }
.easi-fab:active { transform: scale(0.9); }
.easi-fab.active { border-color: #28a745; }

.easi-panel {
    position: fixed;
    bottom: 175px;
    right: 30px;
    width: 380px;
    max-height: 520px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: easiSlideUp 0.3s ease;
}

.easi-panel.hidden { display: none; }

@keyframes easiSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.easi-panel-header {
    background: var(--primary-color);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
}

.easi-close-btn {
    background: none;
    border: none;
    color: #fff;
    opacity: 0.8;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    line-height: 1;
}
.easi-close-btn:hover { opacity: 1; }

.easi-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 200px;
    max-height: 380px;
}

.easi-welcome {
    text-align: center;
    padding: 30px 10px;
}

.easi-welcome-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
    animation: easiPulse 2s ease-in-out infinite;
}

@keyframes easiPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.easi-chat { display: flex; flex-direction: column; gap: 10px; }

.easi-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
    animation: easiMsgIn 0.25s ease;
}

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

.easi-msg.user {
    align-self: flex-end;
    background: var(--primary-color);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.easi-msg.bot {
    align-self: flex-start;
    background: #f0f2f5;
    color: #1a1a1a;
    border-bottom-left-radius: 4px;
}

.easi-msg.bot em { color: var(--primary-color); font-style: italic; }

.easi-panel-footer {
    padding: 10px 16px;
    border-top: 1px solid #eee;
    background: #fafafa;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
}

.easi-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
}

.easi-status-dot.idle { background: #ccc; }
.easi-status-dot.listening { background: #28a745; animation: easiPulse 1s infinite; }
.easi-status-dot.speaking { background: var(--primary-color); animation: easiPulse 1s infinite; }

@media (max-width: 576px) {
    .easi-fab { bottom: 80px; right: 15px; width: 50px; height: 50px; font-size: 20px; }
    .easi-panel { right: 10px; left: 10px; width: auto; max-height: 480px; }
}

.modal-dialog-centered .modal-content {
    max-height: 85vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.modal-dialog-centered .modal-body {
    max-height: 65vh !important;
    overflow-y: auto !important;
    padding-right: 14px !important;
}

/* Scrollbar Track Styling */
.modal-dialog-centered .modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-dialog-centered .modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.modal-dialog-centered .modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}
.modal-dialog-centered .modal-body::-webkit-scrollbar-thumb:hover {
    background: #002266;
}