/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

nav {
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.logo img, .logo-img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hierarchical Navigation - Dropdown Submenus */
.nav-links {
    position: relative;
}

.nav-links li {
    position: relative;
}

.nav-links li.has-submenu > a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.submenu-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    margin-left: 2px;
}

.nav-links li.has-submenu:hover .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white, #ffffff);
    min-width: 220px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 6px 0;
    margin-top: 0; /* Removed gap that caused mouseleave */
    list-style: none;
    z-index: 1000;
    border: 1px solid #e2e8f0;
    pointer-events: auto;
}

/* Invisible hover bridge to ensure seamless pointer transition */
.submenu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
    pointer-events: auto;
}

.nav-links li.has-submenu:hover > .submenu,
.nav-links li.has-submenu:focus-within > .submenu,
.nav-links li.has-submenu .submenu:hover {
    display: block;
}

.submenu li {
    padding: 0;
    margin: 0;
}

.submenu a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    color: var(--text-dark, #334155);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.submenu a:hover {
    background-color: #f1f5f9;
    color: var(--secondary-color, #2563eb);
}

.submenu a i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
    color: var(--secondary-color, #2563eb);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35);
}

.btn-secondary {
    background-color: #ffffff;
    color: #1e3a8a;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: #f8fafc;
    color: #1e40af;
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-back,
.admin-header .btn-secondary {
    background-color: #ffffff;
    color: #334155;
    border: 1.5px solid #cbd5e1;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-back:hover,
.admin-header .btn-secondary:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 99999 !important;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    padding: 20px 10px;
    box-sizing: border-box;
}

.modal.active, .modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    width: 94%;
    max-width: 580px;
    margin: auto;
    position: relative;
    z-index: 100000 !important;
}

.modal-dialog.modal-lg {
    max-width: 860px;
    width: 90vw;
}

.modal-dialog.modal-xl {
    max-width: 1250px;
    width: 94vw;
}

.modal-dialog.modal-xxl {
    max-width: 1400px;
    width: 96vw;
}

.modal-content {
    background-color: var(--white);
    border-radius: 14px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

/* Document Explorer Styles (Google Drive / Windows File Explorer) */
.explorer-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.explorer-toolbar {
    padding: 12px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.explorer-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 600;
}

.explorer-crumb-link {
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.explorer-crumb-link:hover {
    background: #eff6ff;
    text-decoration: underline;
}

.explorer-crumb-current {
    color: #1e293b;
    font-weight: 700;
    padding: 3px 8px;
}

.explorer-crumb-separator {
    color: #94a3b8;
    font-size: 11px;
}

.explorer-body {
    padding: 20px;
    min-height: 240px;
}

.explorer-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.folder-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.folder-card:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.folder-info {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.folder-icon {
    font-size: 1.8rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.folder-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folder-meta {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.folder-actions {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.folder-card:hover .folder-actions {
    opacity: 1;
}

.btn-delete-folder {
    background: transparent;
    border: none;
    color: #ef4444;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
}

.btn-delete-folder:hover {
    background: #fee2e2;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.file-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.file-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.file-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.file-card-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.file-card-details {
    overflow: hidden;
    flex: 1;
}

.file-card-title {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-card-filename {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.file-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.file-card-size {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.explorer-empty {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.explorer-empty-icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.modal-header {
    padding: 16px 20px;
    background: #1e3a8a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.modal-header .modal-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.modal-header .close, .modal-header .modal-close {
    background: transparent;
    border: none;
    font-size: 22px;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
    opacity: 0.85;
    position: static;
    padding: 0;
    margin: 0;
    transition: opacity 0.2s ease;
}

.modal-header .close:hover, .modal-header .modal-close:hover {
    opacity: 1;
    color: #ffffff;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.modal-footer {
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px) scale(0.97);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
    background: none;
    border: none;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #0f172a;
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 1.35rem;
}

/* Compact UI-Friendly Callback Modal */
.modal-content.callback-modal-dialog {
    background-color: var(--white);
    padding: 24px 28px;
    border-radius: 16px;
    max-width: 560px;
    width: 92%;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.04);
    position: relative;
    box-sizing: border-box;
}

.callback-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-right: 32px;
}

.callback-modal-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.callback-modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.2;
}

.callback-modal-subtitle {
    color: #64748b;
    font-size: 0.82rem;
    margin: 2px 0 0 0;
    line-height: 1.3;
}

.callback-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}

.callback-form-grid .form-group {
    margin-bottom: 0;
}

.callback-form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

.callback-form-grid label {
    display: block;
    margin-bottom: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

.callback-form-grid .form-control {
    padding: 7px 11px;
    font-size: 0.88rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    height: 36px;
}

.callback-form-grid select.form-control {
    height: 36px;
    padding: 6px 10px;
}

.callback-form-grid textarea.form-control {
    resize: none;
    height: 48px;
    min-height: 48px;
    padding: 6px 11px;
}

.callback-submit-btn {
    width: 100%;
    padding: 9px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    margin-top: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
}

@media (max-width: 576px) {
    .callback-form-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .modal-content.callback-modal-dialog {
        padding: 20px 18px;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.form-group select,
.form-group textarea,
.form-control {
    width: 100%;
    padding: 9px 13px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

select,
select.form-control,
.form-group select {
    padding: 6px 12px;
    height: 38px;
    line-height: 1.4;
    font-size: 0.92rem;
    color: #1e293b;
    background-color: #ffffff;
}

.form-group input:focus:not([type="checkbox"]):not([type="radio"]),
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ========================================
   CHECKBOX & RADIO REPAIR
   ======================================== */
.form-group input[type="checkbox"],
.form-group input[type="radio"],
.form-check-input,
.checkbox-inline input[type="checkbox"] {
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    accent-color: #2563eb !important;
    display: inline-block !important;
}

.form-check,
.checkbox-group,
.form-group-checkbox,
.form-group.form-check,
.form-group.checkbox-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 10px !important;
    margin-bottom: 20px !important;
    cursor: pointer !important;
}

.form-check label,
.checkbox-group label,
.form-group-checkbox label,
.form-group.form-check label,
.form-group.checkbox-group label {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    color: #334155 !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
    user-select: none !important;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 0;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.service-card-image-wrap {
    width: 100%;
    height: 160px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
    position: relative;
    padding: 12px;
    box-sizing: border-box;
}

.service-card-image-wrap img,
.service-card-img,
.service-card img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
    margin: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-img,
.service-card:hover .service-card-image-wrap img {
    transform: scale(1.04);
}

.service-card-placeholder {
    width: 100%;
    height: 165px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card-placeholder i {
    font-size: 3.2rem;
    color: #ffffff;
    opacity: 0.35;
}

.service-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.service-card-title {
    color: var(--primary-color, #1e3a8a);
    margin: 0 0 8px 0;
    font-size: 1.12rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.3;
}

.service-card-desc {
    color: var(--text-light, #64748b);
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0 0 14px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-break: break-word;
    flex: 1;
    min-height: 0;
}

.service-card-footer {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
}

.service-card-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* Trust Indicators */
.trust-section {
    padding: 60px 0;
    background-color: var(--white);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.trust-item {
    padding: 20px;
}

.trust-item .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.trust-item .label {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Updates Section */
.updates-section {
    padding: 80px 0;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.update-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    transition: box-shadow 0.3s;
}

.update-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.update-card .date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.update-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.update-card .badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
}

.badge-notification {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-pdf {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    flex-shrink: 0;
}

.team-card-content {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.team-card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-card .designation {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.team-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    flex-grow: 1;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-box {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
}

.contact-info-box h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.contact-item-content h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-item-content p {
    color: var(--text-light);
}

.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 3px solid white;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1 1 250px;
}

.footer-callback-form {
    flex: 1 1 400px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    order: 999;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.8;
}

/* Admin Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 20px 30px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 10000;
    overflow-y: auto;
    box-sizing: border-box;
}

.admin-sidebar.active {
    transform: translateX(0);
}

.admin-sidebar-header {
    margin-top: 58px; /* Positioned cleanly below the hamburger toggle button */
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.18);
}

.admin-sidebar-header h2 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 1.28rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-content {
    flex: 1;
    padding: 20px 30px 25px;
    background-color: var(--bg-light);
    width: 100%;
    margin-left: 0;
    box-sizing: border-box;
}

.admin-nav {
    list-style: none;
}

.admin-nav li {
    margin-bottom: 10px;
}

.admin-nav a {
    color: var(--white);
    text-decoration: none;
    padding: 10px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background-color: rgba(255,255,255,0.1);
}

/* Admin Top-Right User Profile & Hover Dropdown Card */
.admin-user-profile-wrap {
    position: fixed;
    top: 18px;
    right: 28px;
    z-index: 10001;
}

.admin-user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 5px 14px 5px 8px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.admin-user-badge:hover,
.admin-user-profile-wrap:hover .admin-user-badge,
.admin-user-profile-wrap.active .admin-user-badge {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
    background: #f8fafc;
}

.admin-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    overflow: hidden;
    flex-shrink: 0;
}

.admin-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.admin-user-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.admin-user-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-role {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
}

.admin-user-arrow {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.admin-user-profile-wrap:hover .admin-user-arrow,
.admin-user-profile-wrap.open .admin-user-arrow,
.admin-user-profile-wrap.active .admin-user-arrow {
    transform: rotate(180deg);
}

/* Generous Hover Bridge for Dropdown Card */
.admin-user-dropdown-card::before {
    content: '';
    position: absolute;
    top: -24px;
    left: -20px;
    right: -20px;
    height: 30px;
    background: transparent;
    z-index: 1;
}

.admin-user-dropdown-card {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.22s;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 260px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    padding: 0;
    overflow: hidden;
    z-index: 10002;
    pointer-events: none;
}

.admin-user-profile-wrap:hover .admin-user-dropdown-card,
.admin-user-profile-wrap.open .admin-user-dropdown-card,
.admin-user-profile-wrap.active .admin-user-dropdown-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.admin-card-header {
    padding: 16px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-card-avatar-lg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    overflow: hidden;
}

.admin-avatar-img-lg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.admin-card-meta {
    overflow: hidden;
}

.admin-card-username {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 3px;
}

.admin-card-body {
    padding: 8px 0;
}

.admin-card-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: #334155;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-card-menu-item:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.admin-card-menu-item i {
    width: 16px;
    text-align: center;
    color: #64748b;
}

.admin-card-menu-item:hover i {
    color: #2563eb;
}

.admin-card-footer {
    padding: 10px 14px 12px;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
}

.admin-card-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 14px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.admin-card-logout-btn:hover {
    background: #dc2626;
    color: #ffffff;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-left: 54px;
    padding-right: 280px; /* Ample clearance ensuring buttons never overlap top-right user profile */
    min-height: 42px;
    box-sizing: border-box;
    gap: 15px;
}

.admin-header h1,
.admin-header h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-dark, #1e293b);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-btn {
    background-color: var(--error-color);
    color: var(--white);
}

.logout-btn:hover {
    background-color: #dc2626;
}

.admin-card {
    background-color: var(--white);
    padding: 22px 26px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 25px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.admin-card.admin-card-large,
.admin-card.admin-card-medium {
    max-width: 100%;
    width: 100%;
}

/* Two-Column Admin Form Grid */
.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.admin-form-grid .form-group {
    margin-bottom: 0;
}

.admin-form-grid .col-span-2,
.admin-form-grid .full-width,
.admin-form-grid .lang-tabs-wrapper,
.admin-form-grid .form-actions {
    grid-column: 1 / -1;
}

.admin-form-grid label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #334155;
}

.admin-form-grid .form-control {
    padding: 8px 12px;
    font-size: 0.92rem;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    height: 38px;
    box-sizing: border-box;
}

.admin-form-grid select.form-control {
    height: 38px;
    padding: 7px 12px;
}

.admin-form-grid textarea.form-control {
    height: 80px;
    padding: 8px 12px;
}

.admin-form-grid .form-actions {
    margin-top: 15px;
    display: flex;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.admin-table thead tr th {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    border: none;
    padding: 12px 14px;
    vertical-align: middle;
    white-space: nowrap;
}

.admin-table thead tr th.sortable-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
}

.admin-table thead tr th.sortable-header:hover {
    background-color: #1e293b !important;
    color: #ffffff !important;
}

.admin-table tbody tr {
    transition: background-color 0.15s ease;
}

.admin-table tbody tr:hover {
    background-color: #f8fafc;
}

.admin-table td {
    color: #334155;
}

.admin-table td strong {
    color: #0f172a;
}

/* ========================================
   UNIVERSAL ADMIN GRID CONTROLS & PAGINATION
   ======================================== */
.admin-grid-wrapper {
    width: 100%;
    margin-bottom: 10px;
}

.admin-grid-controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0 16px 0;
    margin-bottom: 6px;
}

.admin-grid-length label {
    font-size: 0.84rem;
    color: #475569;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-grid-pagesize-select {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease;
}

.admin-grid-pagesize-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.admin-grid-search-box {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.admin-grid-search-icon {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
}

.admin-grid-search-input {
    padding: 7px 14px 7px 34px;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.84rem;
    width: 240px;
    max-width: 100%;
    outline: none;
    transition: all 0.2s ease;
}

.admin-grid-search-input:focus {
    border-color: #2563eb;
    width: 280px;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.admin-grid-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.admin-grid-controls-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 4px 6px 4px;
    font-size: 0.84rem;
}

.admin-grid-info {
    color: #64748b;
}

.admin-grid-pagination {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.grid-page-btn {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
    line-height: 1.2;
}

.grid-page-btn:hover:not(.disabled):not(.active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.grid-page-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.grid-page-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f8fafc;
}

.grid-page-dots {
    padding: 0 4px;
    color: #94a3b8;
    font-weight: bold;
}

/* ========================================
   CELL TRUNCATION & ELLIPSIS HELPERS
   ======================================== */
.cell-truncate {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.cell-truncate-sm {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.cell-truncate-md {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.cell-truncate-lg {
    max-width: 340px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* ========================================
   BADGES & PILLS SYSTEM
   ======================================== */
.badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    line-height: 1.3;
    white-space: nowrap;
}

.badge-priority-high {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
}

.badge-priority-normal {
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #bfdbfe !important;
}

.badge-priority-low {
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

.badge-status-active,
.badge-status-sent,
.badge-status-completed,
.badge-status-normal {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}

.badge-status-pending,
.badge-status-progress,
.badge-status-warning {
    background: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}

.badge-status-failed,
.badge-status-inactive,
.badge-status-locked,
.badge-status-critical {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fca5a5 !important;
}

.action-buttons {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

/* ========================================
   ADMIN BUTTON DESIGN SYSTEM (CLEAN ROUNDED CORNERS)
   ======================================== */
.admin-content .btn,
.admin-header .btn,
.admin-card .btn,
.admin-form-grid .btn,
.form-actions .btn {
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 0.90rem;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
    border: none;
    line-height: 1.4;
    box-sizing: border-box;
}

/* Primary Action Buttons (+ Add New, Save, Update, Create) */
.admin-content .btn-primary,
.admin-header .btn-primary,
.admin-card .btn-primary,
.admin-form-grid .btn-primary,
.form-actions .btn-primary,
.admin-content button[type="submit"] {
    background: #0076e3 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 118, 227, 0.25) !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.admin-content .btn-primary:hover,
.admin-header .btn-primary:hover,
.admin-card .btn-primary:hover,
.admin-form-grid .btn-primary:hover,
.form-actions .btn-primary:hover,
.admin-content button[type="submit"]:hover {
    background: #005ec4 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 118, 227, 0.38) !important;
    color: #ffffff !important;
}

.admin-content .btn-primary:active,
.admin-header .btn-primary:active,
.admin-card .btn-primary:active,
.admin-form-grid .btn-primary:active,
.form-actions .btn-primary:active,
.admin-content button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 118, 227, 0.2) !important;
}

/* Secondary Action Buttons (Back to List, Cancel) */
.admin-content .btn-secondary,
.admin-header .btn-secondary,
.admin-card .btn-secondary,
.admin-form-grid .btn-secondary,
.form-actions .btn-secondary,
.admin-content .btn-back {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    border-radius: 8px !important;
    padding: 8px 18px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.admin-content .btn-secondary:hover,
.admin-header .btn-secondary:hover,
.admin-card .btn-secondary:hover,
.admin-form-grid .btn-secondary:hover,
.form-actions .btn-secondary:hover,
.admin-content .btn-back:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Table Compact Action Buttons */
.admin-table .btn-small,
.admin-content .btn-small,
.admin-table .btn-action {
    padding: 5px 10px !important;
    font-size: 0.78rem !important;
    border-radius: 6px !important;
    font-weight: 600;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.18s ease;
    box-shadow: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.admin-table .btn-edit {
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #bfdbfe !important;
}

.admin-table .btn-edit:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3) !important;
}

.admin-table .btn-delete {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
}

.admin-table .btn-delete:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.3) !important;
}

.admin-table .btn-preview {
    background: #f5f3ff !important;
    color: #7c3aed !important;
    border: 1px solid #ddd6fe !important;
}

.admin-table .btn-preview:hover {
    background: #7c3aed !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(124, 58, 237, 0.3) !important;
}

.admin-table .btn-process {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid #a7f3d0 !important;
}

.admin-table .btn-process:hover {
    background: #059669 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(5, 150, 105, 0.3) !important;
}

.admin-table .btn-lock {
    background: #fffbeb !important;
    color: #d97706 !important;
    border: 1px solid #fde68a !important;
}

.admin-table .btn-lock:hover {
    background: #d97706 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(217, 119, 6, 0.3) !important;
}

.admin-table .btn-unlock {
    background: #f0fdf4 !important;
    color: #16a34a !important;
    border: 1px solid #bbf7d0 !important;
}

.admin-table .btn-unlock:hover {
    background: #16a34a !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(22, 163, 74, 0.3) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .admin-container {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Top-Level Admin Alerts Clearance (Fits between sidebar menu toggle and top-right admin user card) */
.admin-top-alert,
.admin-content > .alert {
    margin-left: 54px;
    margin-right: 280px;
    margin-bottom: 16px;
    padding: 12px 18px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

@media (max-width: 1024px) {
    .admin-top-alert,
    .admin-content > .alert {
        margin-left: 50px;
        margin-right: 220px;
    }
}

@media (max-width: 767px) {
    .admin-top-alert,
    .admin-content > .alert {
        margin-left: 48px;
        margin-right: 120px;
        font-size: 0.84rem;
        padding: 10px 14px;
        gap: 8px;
    }
}

.alert-success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
}

.alert-error,
.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
}

.alert-warning {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
}

/* Validation Summary Handling */
.validation-summary-valid,
.alert:empty {
    display: none !important;
}

.validation-summary-errors {
    display: block !important;
}

.validation-summary-errors ul {
    margin: 4px 0 0 0;
    padding-left: 18px;
    list-style-type: disc;
}

.validation-summary-errors li {
    margin-bottom: 3px;
    font-size: 13.5px;
    color: #991b1b;
    font-weight: 500;
}

/* ============================================
   NEW FEATURES STYLES
   ============================================ */

/* Floating Action Tray - Left Side Vertical */
.floating-action-tray {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-50px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: transparent !important;
    border-radius: 0 12px 12px 0;
    box-shadow: none !important;
    width: auto !important;
    max-width: 60px !important;
    padding: 0 !important;
    transition: transform 0.3s ease;
}

.floating-action-tray:hover {
    transform: translateY(-50%) translateX(0);
}

.float-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.float-btn:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 0;
}

.float-btn:first-child {
    border-radius: 0 12px 0 0;
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-btn-phone {
    background-color: #1e3a8a;
}

.float-btn-whatsapp {
    background-color: #25d366;
}

.float-btn-email {
    background-color: #ea4335;
}

.float-btn-callback {
    background-color: #f97316;
}

/* Marquee Wrapper with Navigation */
.marquee-wrapper {
    position: relative;
    width: 100%;
}

.marquee-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0.7;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.marquee-nav-btn:hover {
    opacity: 1;
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.marquee-nav-left {
    left: -25px;
}

.marquee-nav-right {
    right: -25px;
}

.marquee-nav-btn i {
    font-size: 1.2rem;
}

/* Marquee Container - Square Cards */
.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.marquee-content {
    display: flex;
    gap: 25px;
    animation: marquee-rtl 45s linear infinite;
    width: fit-content;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-content.paused {
    animation-play-state: paused;
}

.marquee-card {
    min-width: 300px;
    max-width: 300px;
    height: 380px;
    flex-shrink: 0;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.marquee-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

/* Card Image - Fixed Height (for cards that use cover crop) */
.square-card img,
.blog-card img,
.team-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Card Content with Truncation */
.marquee-card-content,
.square-card-content,
.blog-content,
.team-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

/* Card Title - Always Visible */
.marquee-card h3,
.square-card h3,
.service-card h3,
.blog-card h3,
.team-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card Designation/Meta - Always Visible */
.team-card .designation,
.blog-meta,
.card-meta {
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

/* Card Description - Truncated with Ellipsis */
.marquee-card p,
.square-card p,
.service-card p,
.blog-card p,
.team-card p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-light);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    flex-grow: 1;
}

/* Card Footer - Always Visible at Bottom */
.card-footer,
.marquee-card .btn,
.square-card .btn,
.blog-card .btn {
    margin-top: auto;
    flex-shrink: 0;
}

/* Learn More Button - Always Visible */
.btn-learn-more,
.card-footer a,
.card-footer button {
    display: inline-block;
    padding: 8px 16px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-learn-more:hover,
.card-footer a:hover,
.card-footer button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

@keyframes marquee-rtl {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Why Choose Us Animations */
.why-choose-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease, background-color 0.3s ease !important;
}

.why-choose-item.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.why-choose-item:hover {
    transform: translateY(-10px) scale(1.05);
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-color);
}

.testimonial-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.testimonial-rating {
    color: #fbbf24;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial-content {
    font-style: italic;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-name {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-position {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Engagement Section */
/* Engagement Cards - Square with Images */
.engagement-section {
    background: #f9fafb;
    padding: 80px 0;
    margin-top: 60px;
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.engagement-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.engagement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.engagement-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.engagement-card-image i {
    font-size: 4rem;
    color: white;
}

.engagement-card-content {
    padding: 30px 25px;
}

.engagement-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.engagement-card p {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Footer Callback Form */
.footer-callback-form h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-callback-form p {
    color: #6b7280;
}

.footer-callback-form .form-group {
    margin-bottom: 12px;
}

.footer-callback-form input,
.footer-callback-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.footer-callback-form select {
    width: 100%;
    min-height: 44px;
    height: 44px;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: normal;
    background-color: #ffffff;
    color: #1f2937;
    box-sizing: border-box;
    display: block;
    transition: border-color 0.3s ease;
}

.footer-callback-form input:focus,
.footer-callback-form select:focus,
.footer-callback-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.footer-callback-form label {
    display: block;
    margin-bottom: 5px;
    color: #374151;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Office Cards - Square Layout */
.office-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.office-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.office-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.office-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.office-card .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.office-card .contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 2px;
}

.office-card .contact-item-content h4 {
    color: #374151;
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.office-card .contact-item-content p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

.office-card .contact-item-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.office-card .contact-item-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Search Bar Styles */
.search-container {
    width: 100%;
    margin: 0 auto 40px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border: 3px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-input:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(30,58,138,0.2);
    background-color: #fafbfc;
}

.search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.3rem;
    pointer-events: none;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
}

.search-dropdown.active {
    display: block;
}

.search-result-item {
    padding: 20px 25px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background-color: #f0f7ff;
    padding-left: 30px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.search-result-desc {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-no-results {
    padding: 30px;
    text-align: center;
    color: #9ca3af;
    font-size: 1rem;
}

/* Tooltip Styles */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    background-color: #1f2937;
    color: white;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Truncated Text with Tooltip */
.truncate-tooltip {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
}

/* Office Contact Cards */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-info-card {
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Responsive adjustments for new features */
@media (max-width: 768px) {
    .marquee-card {
        min-width: 280px;
        max-width: 280px;
    }
    
    .engagement-section {
        padding: 60px 0;
    }
    
    .engagement-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Page Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 15px;
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.blog-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-card p {
    color: var(--text-light);
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    flex-grow: 1;
    margin-bottom: 15px;
    font-size: 0.875rem;
}

.blog-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-summary {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.blog-tag {
    padding: 4px 12px;
    background-color: #eff6ff;
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Google Review Cards */
.review-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* ==========================================================================
   MODERN PUBLIC PAGES DESIGN SYSTEM (Hero, Cards, Spacing & Micro-Animations)
   ========================================================================== */

/* 1. Universal Page Hero Banner */
.page-hero-banner {
    position: relative;
    background: linear-gradient(135deg, #091e42 0%, #1e3a8a 55%, #1e40af 100%);
    color: #ffffff;
    padding: 60px 0 50px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-hero-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(30, 58, 138, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero-banner::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(30, 58, 138, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #bfdbfe;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.page-hero-badge i {
    color: #60a5fa;
}

.page-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.page-hero-subtitle {
    font-size: 1.12rem;
    color: #e2e8f0;
    margin: 0 auto 20px;
    line-height: 1.65;
    max-width: 720px;
    font-weight: 400;
}

.page-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-breadcrumbs a {
    color: #bfdbfe;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-breadcrumbs a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.page-breadcrumbs .sep {
    font-size: 0.75rem;
    color: #64748b;
}

.page-breadcrumbs .current {
    color: #ffffff;
    font-weight: 600;
}

/* 2. Main Page Layout Container */
.public-content-section {
    padding: 60px 0 80px;
    background-color: #f8fafc;
    min-height: 50vh;
}

/* 3. Modern Card & Elevation System */
.modern-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modern-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    border-color: #cbd5e1;
}

/* 4. Modern Search Box */
.modern-search-wrapper {
    position: relative;
    max-width: 650px;
    margin: 0 auto 45px;
}

.modern-search-input {
    width: 100%;
    padding: 15px 50px 15px 22px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.modern-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 8px 20px rgba(0, 0, 0, 0.06);
}

.modern-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.15rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.modern-search-input:focus + .modern-search-icon {
    color: #2563eb;
}

/* 5. Core Values & Mission Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.pillar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
    border-color: #bfdbfe;
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1e40af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 18px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.pillar-card:hover .pillar-icon-box {
    transform: scale(1.08);
    background: #1e40af;
    color: #ffffff;
}

.pillar-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
}

.pillar-card p {
    font-size: 0.93rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* 6. Executive & Leadership Profile (Management Desk) */
.exec-profile-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    margin: 30px 0 45px;
    align-items: start;
}

.exec-portrait-wrap {
    position: relative;
    text-align: center;
}

.exec-portrait-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 4px solid #ffffff;
}

.exec-badge-pill {
    margin-top: 14px;
    display: inline-block;
    background: #eff6ff;
    color: #1e40af;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
}

.exec-message-body {
    font-size: 1.06rem;
    line-height: 1.85;
    color: #334155;
}

.exec-quote-banner {
    position: relative;
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    border-radius: 0 12px 12px 0;
    padding: 18px 24px;
    margin-bottom: 24px;
    font-style: italic;
    color: #1e3a8a;
    font-size: 1.15rem;
    font-weight: 500;
}

.exec-signoff-block {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

/* 7. Modern Team Member Cards */
.modern-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
    margin: 35px 0;
}

.modern-team-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modern-team-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 30px -5px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
}

.team-avatar-wrap {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.team-avatar-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-team-card:hover .team-avatar-img {
    transform: scale(1.03);
}

.team-info-box {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.team-name {
    font-size: 1.22rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
}

.team-designation-pill {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    align-self: center;
}

.team-bio {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* 8. Modern Updates & Notice Cards */
.modern-updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 25px;
    margin: 35px 0;
}

.modern-update-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.modern-update-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 25px -4px rgba(15, 23, 42, 0.08);
    border-color: #2563eb;
}

.update-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.update-date-badge {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.update-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.update-badge-pdf {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.update-badge-notice {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.update-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.modern-update-card:hover .update-card-title {
    color: #2563eb;
}

.update-card-excerpt {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.update-card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #2563eb;
    margin-top: auto;
}

/* 9. Modern Modal Styles (#updateModal) */
.modern-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10500;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modern-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modern-modal-card {
    background: #ffffff;
    border-radius: 18px;
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #e2e8f0;
    position: relative;
    padding: 35px;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.modern-modal-overlay.active .modern-modal-card {
    transform: scale(1);
}

.modern-modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern-modal-close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

/* 10. Modern Blog Cards & Details */
.modern-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 35px 0;
}

.modern-blog-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.modern-blog-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 30px -5px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.blog-thumb-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.blog-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modern-blog-card:hover .blog-thumb-img {
    transform: scale(1.06);
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.blog-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.modern-blog-card:hover .blog-card-title {
    color: #2563eb;
}

.blog-card-summary {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.blog-tag-pill {
    background: #eff6ff;
    color: #1e40af;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #dbeafe;
}

/* 11. Modern Contact Screen & Office Cards */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 30px;
    margin-bottom: 45px;
    align-items: stretch;
}

.contact-card-primary {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 26px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-card-primary:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.office-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.office-name-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 14px 0 16px;
}

.contact-info-entry {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-icon-bubble {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    border: 1px solid #dbeafe;
}

.contact-entry-content h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px;
}

.contact-entry-content p {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.45;
    margin: 0;
}

.contact-entry-content a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-entry-content a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.contact-bottom-utility {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.business-hours-box-compact {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
}

.business-hours-box-compact h5 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.business-hours-box-compact p {
    font-size: 0.82rem;
    color: #475569;
    margin: 0 0 2px;
    line-height: 1.35;
}

.emergency-help-compact {
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.emergency-help-text h4 {
    margin: 0 0 2px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
}

.emergency-help-text h4 i {
    color: #2563eb;
    margin-right: 4px;
}

.emergency-help-text p {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
}

.emergency-call-btn {
    padding: 6px 14px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    white-space: nowrap;
}

.modern-map-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.modern-map-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.map-wrapper {
    width: 100%;
    flex: 1;
    min-height: 380px;
    position: relative;
    border-bottom: 1.5px solid #e2e8f0;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: none;
    display: block;
}

.map-footer-bar {
    padding: 16px 20px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.other-offices-section {
    margin-top: 50px;
}

.other-offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 25px;
}

.other-office-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.other-office-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.07);
    border-color: #cbd5e1;
}

/* 12. Modern CTA Callout Banner */
.modern-cta-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

.modern-cta-banner h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 12px;
    color: #ffffff;
}

.modern-cta-banner p {
    font-size: 1.05rem;
    color: #e0f2fe;
    margin: 0 auto 24px;
    max-width: 600px;
    line-height: 1.6;
}

.cta-btn-white {
    background: #ffffff !important;
    color: #1e3a8a !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
}

.cta-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
    background: #f8fafc !important;
}

/* 13. Sub-Navigation Action Bar (About pages) */
.subnav-action-bar {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 45px;
    flex-wrap: wrap;
}

.subnav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.subnav-btn-primary {
    background: #1e3a8a;
    color: #ffffff;
}

.subnav-btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    color: #ffffff;
}

.subnav-btn-outline {
    background: #ffffff;
    color: #1e3a8a;
    border: 1.5px solid #cbd5e1;
}

.subnav-btn-outline:hover {
    border-color: #1e3a8a;
    background: #f1f5f9;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .exec-profile-card {
        grid-template-columns: 1fr;
    }
    .exec-portrait-img {
        max-height: 350px;
    }
    .contact-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE & TABLET (< 992px)
   ======================================== */

/* Tablet & Mobile Header & Navigation: < 992px */
@media (max-width: 991px) {
    /* 1. Hide Phone & Email Top Bar on both Mobile and Tablet */
    .contact-info {
        display: none !important;
    }
    
    .header-top {
        padding: 6px 0;
    }

    .header-top .container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .header-top-right {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* 2. Hide Company Name and SCS Initials text next to logo - show exclusively SCS logo image */
    .logo span,
    .logo-company-name {
        display: none !important;
    }
    
    .logo::before,
    .logo::after {
        display: none !important;
        content: none !important;
    }
    
    .logo img,
    .logo-img {
        max-height: 46px !important;
        width: auto !important;
        object-fit: contain !important;
        display: block !important;
    }

    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: #0076e3;
        color: #ffffff;
        border: none;
        width: 42px;
        height: 42px;
        border-radius: 8px;
        font-size: 1.15rem;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 118, 227, 0.25);
        transition: background 0.2s ease;
    }
    
    .mobile-menu-btn:hover {
        background: #005bb5;
    }
    
    /* Mobile Drawer */
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 82%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -4px 0 25px rgba(0, 0, 0, 0.18);
        padding: 8px 14px 30px;
        gap: 0;
        z-index: 10000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-links > li {
        border-bottom: 1px solid #f1f5f9;
        padding: 0;
        margin: 0;
        width: 100%;
        list-style: none;
    }

    .nav-links > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        font-size: 0.95rem;
        font-weight: 600;
        color: #1e293b;
        border-radius: 6px;
        text-decoration: none;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .nav-links > li > a:hover,
    .nav-links > li.active > a {
        background: #eff6ff;
        color: #0076e3;
    }
    
    .nav-links .submenu {
        position: static;
        display: none;
        box-shadow: none;
        padding: 4px 0 8px 14px;
        background: #f8fafc;
        border-radius: 6px;
        margin: 4px 0 8px 0;
        border-left: 3px solid #0076e3;
    }
    
    .nav-links .has-submenu.active .submenu {
        display: block;
    }

    .nav-links .submenu li {
        list-style: none;
    }

    .nav-links .submenu li a {
        padding: 8px 12px;
        font-size: 0.88rem;
        color: #475569;
        display: block;
        text-decoration: none;
    }

    .nav-links .submenu li a:hover {
        color: #0076e3;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(3px);
        z-index: 9999;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    /* Hero Section Responsive */
    .hero {
        padding: 65px 0 45px;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: clamp(1.65rem, 5.2vw, 2.25rem) !important;
        line-height: 1.25 !important;
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 3.2vw, 1.12rem) !important;
        margin-bottom: 12px !important;
    }
    
    .hero-desc {
        font-size: 0.92rem !important;
        padding: 12px 18px !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
        max-width: 100% !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Grids on Tablet */
    .services-grid,
    .why-choose-grid,
    .team-grid,
    .blogs-grid,
    .testimonials-grid,
    .google-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .trust-strip-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Floating Action Tray - Compact Mobile/Tablet Right-Docked Tab */
    .floating-action-tray {
        position: fixed !important;
        right: 0 !important;
        top: auto !important;
        bottom: 20px !important;
        left: auto !important;
        transform: none !important;
        width: auto !important;
        max-width: 44px !important;
        background: transparent !important;
        border-radius: 8px 0 0 8px !important;
        padding: 0 !important;
        box-shadow: none !important;
        z-index: 9999 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }
    
    .floating-action-tray:hover,
    .floating-action-tray:focus-within {
        transform: none !important;
        background: transparent !important;
    }
    
    .float-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 18px !important;
        border-radius: 8px 0 0 8px !important;
        margin: 0 !important;
        box-shadow: -2px 2px 8px rgba(0,0,0,0.2) !important;
        border: none !important;
    }
}

/* Mobile Breakpoint: < 768px */
@media (max-width: 767px) {
    /* Header Top Bar */
    .header-top {
        padding: 6px 0;
    }

    .header-top .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .contact-info {
        display: none; /* Keep top bar clean on mobile */
    }
    
    .header-top-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Grids on Mobile: Single Column */
    .services-grid,
    .why-choose-grid,
    .team-grid,
    .blogs-grid,
    .testimonials-grid,
    .google-reviews-grid,
    .trust-strip-grid,
    .cards-grid,
    .contact-layout-grid,
    .contact-info-cards-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Stats Grid: Clean 2x2 on Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 14px 16px;
    }

    .stat-value {
        font-size: 1.45rem;
    }

    /* Footer */
    footer {
        padding: 35px 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-section {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .footer-callback-form {
        order: 0 !important;
    }
    
    /* Tables - Horizontal Scroll */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Callback & Contact Forms */
    .callback-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .callback-form-grid .form-group {
        width: 100% !important;
        margin-bottom: 0;
    }
    
    .callback-form-grid .btn,
    .form-actions .btn {
        width: 100%;
        text-align: center;
    }

    .form-row {
        flex-direction: column;
    }

    .btn-group {
        flex-direction: column;
        gap: 8px;
    }

    .search-container {
        padding: 10px 14px;
    }

    .search-container input {
        font-size: 16px;
    }
}

/* ========================================
   ADMIN PANEL RESPONSIVE
   ======================================== */

/* Admin Sidebar Toggle Button */
.admin-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0;
    border-radius: 8px;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 10002;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: background-color 0.2s ease;
}

.admin-sidebar-toggle:hover {
    background: var(--secondary-color);
}

/* Admin Overlay */
.admin-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.admin-overlay.active {
    display: block;
}

/* Admin Panel Responsive Styles */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 280px;
    }
    
    .admin-content {
        padding: 20px 20px 20px;
    }

    .admin-header {
        padding-left: 54px;
        padding-right: 190px;
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Mobile Admin Panel */
@media (max-width: 767px) {
    .admin-sidebar {
        width: 280px;
        max-width: 85%;
    }
    
    .admin-content {
        padding: 16px 14px 16px;
    }

    .admin-sidebar-toggle {
        top: 14px;
        left: 14px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .admin-user-profile-wrap {
        top: 14px;
        right: 14px;
    }

    .admin-user-role {
        display: none;
    }

    .admin-header {
        padding-left: 10px;
        padding-right: 10px;
        margin-top: 50px;
        margin-bottom: 14px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .admin-header h1,
    .admin-header h2 {
        font-size: 1.2rem;
    }
    
    /* Admin Tables - Responsive */
    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    table {
        min-width: 700px;
        font-size: 0.9rem;
    }
    
    table th,
    table td {
        padding: 10px 8px;
    }
    
    /* Admin Cards */
    .admin-card {
        padding: 15px;
    }
    
    .admin-card h2 {
        font-size: 1.3rem;
    }
    
    /* Admin Forms */
    .form-section {
        padding: 15px;
    }
    
    /* Admin Stats */
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
}



/* Scrollbar Styling */
.admin-sidebar::-webkit-scrollbar,
.admin-content::-webkit-scrollbar {
    width: 8px;
}

.admin-sidebar::-webkit-scrollbar-track,
.admin-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}

.admin-sidebar::-webkit-scrollbar-thumb,
.admin-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover,
.admin-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.5);
}

/* Ensure both panels can scroll independently */
.admin-container {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

.admin-sidebar,
.admin-content {
    overflow-y: auto;
    height: 100vh;
}

/* Touch-friendly tap targets */
@media (max-width: 767px) {
    button,
    a,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-links a,
    .admin-nav a {
        padding: 12px 0;
        font-size: 1rem;
    }
}

/* ========================================
   MODERN CONSULTANCY UI ENHANCEMENTS
   ======================================== */

/* Micro Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Modern Hero Section */
.hero {
    position: relative;
    padding: 120px 0 110px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.82) 45%, rgba(15, 23, 42, 0.92) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #f1f5f9;
    margin-bottom: 24px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: clamp(1.85rem, 3.2vw, 2.7rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    max-width: 100%;
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #e2e8f0;
    font-weight: 400;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.32rem !important;
    line-height: 1.5 !important;
    color: #bfdbfe !important;
    font-weight: 600 !important;
    margin-bottom: 18px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-desc {
    font-size: 1.12rem !important;
    line-height: 1.75 !important;
    color: #ffffff !important;
    font-weight: 400 !important;
    max-width: 860px !important;
    margin: 0 auto 35px auto !important;
    padding: 16px 28px !important;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 14px 34px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 10px;
}

/* Trust Badges Strip */
.trust-strip {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.trust-strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
}

.trust-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.trust-text h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.trust-text p {
    margin: 2px 0 0 0;
    font-size: 0.8rem;
    color: #64748b;
}

/* Enhanced Section Titles */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 45px;
}

.section-subtitle {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.6;
}

/* Modern Service & Marquee Cards */
.marquee-card {
    border-radius: 14px !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden;
}

.marquee-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    border-color: #cbd5e1;
}

.service-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.service-card img {
    transition: transform 0.4s ease;
}

.service-card:hover img {
    transform: scale(1.03);
}

/* Why Choose Us Modernized */
.why-card-modern {
    padding: 30px 24px;
    border-radius: 14px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.why-card-modern::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.why-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.why-card-modern:hover::after {
    opacity: 1;
}

/* Testimonial Cards */
.testimonial-card-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
}

/* Engagement Modern Grid */
.engagement-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.engagement-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.engagement-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.engagement-card-image {
    height: 120px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 3rem;
}

.engagement-card-content {
    padding: 26px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.engagement-card-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.engagement-card-content p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Search Containers */
.search-container {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 48px 14px 20px;
    border: 1.5px solid #cbd5e1;
    border-radius: 30px;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
    outline: none;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.05rem;
    }
    .hero-subtitle {
        font-size: 1.12rem !important;
    }
    .hero-desc {
        font-size: 0.96rem !important;
        padding: 14px 18px !important;
        line-height: 1.6 !important;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .trust-strip-grid {
        grid-template-columns: 1fr;
    }
}

/* 13. Admin KPI Stat Card System */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 4px;
}

/* Admin Confirmation & Alert Modals */
.admin-confirm-modal .modal-content,
.admin-alert-modal .modal-content {
    background: #ffffff;
    border-radius: 16px;
    border: none;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.admin-confirm-icon-box,
.admin-alert-icon-box {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: transform 0.2s ease;
}

.admin-confirm-icon-box.danger {
    background: #fee2e2;
    color: #dc2626;
}

.admin-confirm-icon-box.warning {
    background: #fef3c7;
    color: #d97706;
}

.admin-confirm-icon-box.primary {
    background: #dbeafe;
    color: #2563eb;
}

.admin-alert-icon-box.success {
    background: #dcfce7;
    color: #16a34a;
}

.admin-alert-icon-box.error {
    background: #fee2e2;
    color: #dc2626;
}

/* ============================================
   RICH TEXT CONTENT STYLING (Website & Details)
   ============================================ */
.rich-text-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
    word-break: break-word;
}

.rich-text-content p {
    margin: 0 0 1.25rem 0;
}

.rich-text-content p:last-child {
    margin-bottom: 0;
}

.rich-text-content h1,
.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4,
.rich-text-content h5,
.rich-text-content h6 {
    color: #0f172a;
    font-weight: 700;
    line-height: 1.35;
    margin: 1.75rem 0 0.85rem 0;
}

.rich-text-content h1:first-child,
.rich-text-content h2:first-child,
.rich-text-content h3:first-child,
.rich-text-content h4:first-child {
    margin-top: 0;
}

.rich-text-content h1 { font-size: 1.85rem; }
.rich-text-content h2 { font-size: 1.55rem; }
.rich-text-content h3 { font-size: 1.35rem; }
.rich-text-content h4 { font-size: 1.18rem; }
.rich-text-content h5 { font-size: 1.05rem; }
.rich-text-content h6 { font-size: 0.95rem; }

.rich-text-content ul,
.rich-text-content ol {
    margin: 0.75rem 0 1.35rem 0;
    padding-left: 1.75rem;
}

.rich-text-content ul {
    list-style-type: disc;
}

.rich-text-content ol {
    list-style-type: decimal;
}

.rich-text-content li {
    margin-bottom: 0.55rem;
    line-height: 1.7;
}

.rich-text-content li::marker {
    color: #2563eb;
}

.rich-text-content blockquote {
    margin: 1.5rem 0;
    padding: 14px 20px;
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    border-radius: 0 8px 8px 0;
    color: #475569;
    font-style: italic;
}

.rich-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.25rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: inline-block;
}

.rich-text-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.rich-text-content table th,
.rich-text-content table td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.rich-text-content table th {
    background: #f1f5f9;
    font-weight: 700;
    color: #1e293b;
}

.rich-text-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.rich-text-content a:hover {
    color: #1d4ed8;
}

.rich-text-content code {
    padding: 2px 6px;
    background: #f1f5f9;
    color: #d97706;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: Consolas, 'Courier New', monospace;
}

.rich-text-content pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.25rem 0;
}

.rich-text-content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0;
}

/* Summernote Lite Admin Enhancements */
.note-editor.note-frame {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden;
    background: #ffffff !important;
}

.note-editor.note-frame .note-toolbar {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 6px 10px !important;
}

.note-editor .note-btn {
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #334155 !important;
    border-radius: 5px !important;
    padding: 5px 9px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.note-editor .note-btn:hover,
.note-editor .note-btn.active {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-color: #93c5fd !important;
}

.note-editor .note-editable {
    padding: 16px !important;
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    color: #1e293b !important;
    font-family: inherit !important;
    min-height: 200px;
    background: #ffffff !important;
}

.note-editor .note-editable ul {
    list-style-type: disc !important;
    padding-left: 24px !important;
    margin: 8px 0 !important;
}

.note-editor .note-editable ol {
    list-style-type: decimal !important;
    padding-left: 24px !important;
    margin: 8px 0 !important;
}

.note-editor .note-editable li {
    margin-bottom: 4px !important;
}

.note-modal .modal-dialog {
    max-width: 500px;
    margin: 80px auto;
}

.note-modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    overflow: hidden;
}

.note-modal .modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 20px;
}

.note-modal .modal-body {
    padding: 20px;
}

.note-modal .modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 12px 20px;
}



