:root {
    --primary: #F47B3E;
    --primary-light: #f69560;
    --secondary: #ea6512;
    --secondary-hover: #d2530b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --font: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 45px rgba(0, 0, 0, 0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}
.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 101, 18, 0.3);
}

/* --- TOP BAR & HEADER --- */
.topbar {
    background-color: var(--secondary);
    color: var(--white);
    font-size: 14px;
    padding: 8px 0;
    font-weight: 500;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-left {
    display: flex;
    gap: 20px;
}
.topbar-left span i {
    margin-right: 6px;
}
.topbar-right a {
    color: var(--white);
    font-size: 16px;
}
.topbar-right a:hover {
    opacity: 0.8;
}

.header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
}
.logo span.stars {
    color: #eab308;
    position: relative;
    top: -6px;
    font-size: 14px;
    margin: 0 1px;
}
.logo span.target {
    color: #ef4444;
    border: 3px solid #ef4444;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-left: 2px;
}

/* NAVIGATION MENU */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}
@media (min-width: 993px) {
    .header .container {
        position: relative;
    }
    .nav-menu {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: max-content;
    }
}
.nav-item {
    position: relative;
    flex-shrink: 0;
}
.nav-link {
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    white-space: nowrap;
    transition: var(--transition);
}
.nav-link:hover, 
.nav-item:hover > .nav-link,
.nav-item.active .nav-link {
    background-color: #004289;
    color: var(--white);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #004289;
    min-width: 280px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    border: none;
    overflow: hidden;
    z-index: 100;
}
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.dropdown-item:last-child {
    border-bottom: none;
}
.dropdown-item a {
    display: block;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 15px;
    color: var(--white);
    transition: var(--transition);
}
.dropdown-item a:hover {
    background-color: var(--secondary);
    color: var(--white);
    padding-left: 25px;
}
.search-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-btn:hover {
    color: #004289;
    transform: scale(1.1);
}

/* Hamburger menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* --- HERO SLIDESHOW --- */
.hero {
    position: relative;
    background: url('../img/background.png') left 20%/cover;
    height: 550px;
    color: var(--white);
}
.hero .container {
    height: 100%;
    display: flex;
    align-items: center;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
}
.hero-content {
    max-width: 520px;
    position: relative;
    z-index: 2;
    margin-left: 50px;
}
.hero-subtitle {
    font-style: italic;
    color: #7a7a7a;
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 12px;
    display: inline-block;
}
.hero-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 30px;
    color: #e31b23;
    text-shadow: none;
}
.hero-btn {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--white);
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 3px;
    transition: var(--transition);
}
.hero-btn:hover {
    background-color: var(--secondary-hover);
    transform: scale(1.04);
    box-shadow: 0 6px 15px rgba(234, 101, 18, 0.2);
}
.hero-image-banner {
    width: 100%;
    height: 580px;
    overflow: hidden;
    position: relative;
}
.hero-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
@media (max-width: 992px) {
    .hero-image-banner {
        height: 450px;
    }
}
@media (max-width: 576px) {
    .hero-image-banner {
        height: auto;
    }
    .hero-img-full {
        height: auto;
    }
}

/* --- SECTIONS --- */
.section {
    padding: 80px 0;
}
.section-bg {
    background-color: var(--bg-light);
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-subtitle {
    color: var(--secondary);
    font-weight: 700;
    text-transform: none;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}
.section-title {
    font-size: 32px;
    color: #004289;
    font-weight: 800;
}

/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.service-card {
    background: var(--white);
    border-radius: 0;
    border: 1px solid var(--border-color);
    border-bottom: 4px solid transparent;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 24px;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    border-color: var(--border-color);
    border-bottom-color: var(--secondary);
}
.service-thumb {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 0;
}
.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}
.service-card:hover .service-thumb img {
    transform: scale(1.06);
}
.service-body {
    padding: 24px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}
.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #004289;
    line-height: 1.4;
    transition: var(--transition);
}
.service-card:hover h3 {
    color: var(--secondary);
}
.service-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 14.5px;
    line-height: 1.6;
    flex-grow: 1;
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 15px;
    transition: var(--transition);
}
.read-more i {
    font-size: 16px;
    transition: var(--transition);
}
.read-more:hover {
    color: var(--secondary-hover);
}
.read-more:hover i {
    transform: translateX(3px);
}

/* --- POSTS GRID --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.post-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.post-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.post-card:hover .post-thumb img {
    transform: scale(1.08);
}
.post-meta {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--secondary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.post-body {
    padding: 24px;
}
.post-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}
.post-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}
.post-title:hover {
    color: var(--primary);
}
.post-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.posts-footer {
    text-align: center;
    margin-top: 50px;
}

/* --- PAGES BASE BANNER --- */
.page-banner {
    background: linear-gradient(135deg, rgba(244, 123, 62, 0.95) 0%, rgba(246, 149, 96, 0.8) 100%),
                url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=1200&q=80') center/cover;
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}
.page-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}
.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
}
.breadcrumbs a:hover {
    color: var(--secondary);
}

/* --- TWO COLUMN LAYOUT (DETAIL & SIDEBAR) --- */
.page-content-wrapper {
    padding: 60px 0;
}
.page-grid {
    display: grid;
    grid-template-columns: 8.5fr 3.5fr;
    gap: 40px;
}
.main-content h1 {
    font-size: 32px;
    color: #004289;
    margin-bottom: 10px;
}
.main-content .post-date {
    margin-bottom: 30px;
}
.main-content-text {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
}
.main-content-text p {
    margin-bottom: 8px;
}
.main-content-text h2,
.main-content-text h3,
.main-content-text h4 {
    margin: 30px 0 15px;
    color: #004289;
    font-weight: 700;
}
.main-content-text h2 { font-size: 24px; }
.main-content-text h3 { font-size: 20px; }
.main-content-text h4 { font-size: 18px; }

.main-content-text ul, 
.main-content-text ol {
    margin-bottom: 25px;
    padding-left: 20px;
}
.main-content-text ul { list-style-type: disc; }
.main-content-text ol { list-style-type: decimal; }
.main-content-text li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.main-content-text img {
    display: block;
    margin: 25px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.main-content-text .ql-align-center { text-align: center; }
.main-content-text .ql-align-right { text-align: right; }
.main-content-text .ql-align-justify { text-align: justify; }
.main-content-text .ql-align-left { text-align: left; }

.main-content-text .ql-align-right img {
    margin-left: auto !important;
    margin-right: 0 !important;
}
.main-content-text .ql-align-left img {
    margin-left: 0 !important;
    margin-right: auto !important;
}
.main-content-text .ql-align-center img {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* SIDEBAR */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.widget {
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
}
.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: #004289;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary);
}
.widget-support {
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    text-align: center;
}
.widget-support-orange {
    background-color: #f47b3e;
    color: var(--white);
    border: none;
    text-align: center;
    padding: 35px 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.widget-support-orange h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--white);
}
.widget-support-orange .support-icon {
    font-size: 80px;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 5px;
}
.widget-support-orange .support-number-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.widget-support-orange .support-number-item {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.2s ease;
}
.widget-support-orange .support-number-item:hover {
    transform: scale(1.05);
}
.widget-support .widget-title {
    color: var(--white);
}
.widget-support .widget-title::after {
    background-color: var(--white);
    left: 50%;
    transform: translateX(-50%);
}
.support-phone {
    font-size: 22px;
    font-weight: 800;
    display: block;
    margin: 15px 0;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.side-post-item {
    display: flex;
    gap: 15px;
}
.side-post-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.side-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.side-post-info h5 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.side-post-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info-section h3 {
    font-size: 28px;
    color: #004289;
    margin-bottom: 25px;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}
.contact-item {
    display: flex;
    gap: 15px;
}
.contact-item i {
    font-size: 20px;
    color: var(--secondary);
    margin-top: 3px;
}
.contact-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.contact-item p {
    color: var(--text-muted);
    font-size: 15px;
}
.contact-form-section {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: var(--font);
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(244, 123, 62, 0.1);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
}
.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* --- FOOTER --- */
.footer {
    background-color: #004289;
    color: var(--white);
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}
.footer-logo {
    color: var(--white);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    display: inline-block;
}
.footer-col p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 25px;
    font-size: 15px;
}
.footer-socials {
    display: flex;
    gap: 12px;
}
.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}
.social-icon:hover {
    background-color: var(--white);
    color: var(--secondary);
    transform: translateY(-3px);
}
.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--secondary);
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
}
.footer-links a:hover {
    color: var(--secondary);
    padding-left: 6px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

/* --- FLOATING WIDGETS --- */
.floating-widgets {
    position: fixed;
    bottom: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.floating-widgets.left {
    left: 24px;
}
.floating-widgets.right {
    right: 24px;
}
.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    cursor: pointer;
    position: relative;
}
.btn-phone {
    background-color: var(--secondary);
    animation: phone-shake 2.5s infinite;
}
.btn-zalo {
    background-color: #0084ff;
}
.float-label {
    position: absolute;
    left: 70px;
    background: var(--white);
    color: var(--text-dark);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.float-btn:hover .float-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes phone-shake {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

/* --- FULLSCREEN SEARCH OVERLAY --- */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.search-close:hover {
    background: #ff3b30;
    border-color: #ff3b30;
    color: var(--white);
    transform: rotate(90deg);
}
.search-form {
    width: 100%;
    max-width: 650px;
    padding: 30px;
    text-align: center;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-overlay.active .search-form {
    transform: translateY(0) scale(1);
}
.search-title {
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.search-input-group {
    position: relative;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 6px 60px 6px 24px;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.search-input-group:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--secondary);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.25);
    transform: scale(1.02);
}
.search-input {
    width: 100%;
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 22px;
    color: var(--white);
    font-family: var(--font);
    font-weight: 500;
}
.search-input::placeholder {
    color: rgba(255,255,255,0.4);
}
.search-input:focus {
    outline: none;
}
.search-submit {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.2s;
}
.search-input-group:focus-within .search-submit,
.search-submit:hover {
    color: var(--secondary);
}
.search-suggestions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}
.search-suggestions span {
    font-weight: 600;
}
.search-suggestions a {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
    text-decoration: none;
}
.search-suggestions a:hover {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.35);
}

/* --- PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}
.page-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
}
.page-num:hover, .page-num.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    .header .container {
        height: 70px;
    }
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 30px;
        gap: 15px;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-link {
        border-radius: 8px;
        padding: 12px 20px;
        background-color: var(--bg-light);
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-top: 10px;
        padding-left: 20px;
        display: none;
    }
    .nav-item.open .dropdown-menu {
        display: block;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .topbar-left {
        display: none;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero {
        height: 450px;
    }
    .hero-content {
        margin-left: 0;
    }
}

/* SCROLL REVEAL ANIMATIONS */
.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.js .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* SIDEBAR Y TE MENU WIDGET */
.widget-menu {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.menu-item-link {
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: #f4f6f8;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.3s ease, border-left-color 0.3s ease;
    border-left: 4px solid transparent;
}
.menu-item-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 6px;
}
.menu-item-link i {
    margin-right: 12px;
    font-size: 10px;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}
.menu-item-link:hover::before {
    transform: scaleX(1);
    transform-origin: right;
}
.menu-item-link:hover {
    color: var(--white);
    border-left-color: var(--secondary);
}
.menu-item-link:hover i {
    color: var(--white);
}
.menu-item-link.active {
    background: var(--white);
    color: var(--secondary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left-color: var(--secondary);
}
.menu-item-link.active:hover {
    color: var(--white);
}
.menu-item-link.active:hover i {
    color: var(--white);
}
.menu-item-link.active i {
    color: var(--secondary);
}

/* ORANGE SUPPORT BOX */
.widget-support-orange {
    background-color: var(--secondary);
    color: var(--white);
    border: none !important;
    border-radius: 16px;
    padding: 35px 25px !important;
    text-align: center;
}
.widget-support-orange i.support-icon {
    font-size: 54px;
    color: var(--white);
    margin-bottom: 15px;
    display: inline-block;
}
.widget-support-orange h4 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--white);
    text-transform: uppercase;
}
.support-number-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.support-number-item {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    display: block;
    text-decoration: none;
    transition: transform 0.2s;
}
.support-number-item:hover {
    transform: scale(1.05);
}

/* SCROLL REVEAL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* CLIENT TABLE DESIGN SYSTEM */
.main-content-text table {
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #bfe3ec;
    border-radius: 8px;
    overflow: hidden;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.main-content-text th {
    background-color: #e8f7fc;
    color: #004289;
    font-weight: 700;
    text-align: center;
    padding: 14px 18px;
    border-bottom: 1px solid #bfe3ec;
    border-right: 1px solid #bfe3ec;
}

.main-content-text td {
    padding: 12px 18px;
    border-bottom: 1px solid #e9f5f8;
    border-right: 1px solid #e9f5f8;
    color: #4a5568;
    line-height: 1.6;
    vertical-align: middle;
}

.main-content-text th:last-child,
.main-content-text td:last-child {
    border-right: none;
}

.main-content-text tr:last-child td {
    border-bottom: none;
}

.main-content-text td:first-child {
    font-weight: 700;
    color: #2c5a70;
    background-color: #f7fcfe;
    width: 25%;
}

/* ACCORDION COMPONENT */
details.custom-accordion {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin: 18px 0;
    overflow: hidden;
    background-color: #fff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

details.custom-accordion[open] {
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    border-color: var(--accordion-theme, #004289);
}

summary.custom-accordion-title {
    padding: 16px 20px;
    font-weight: 700;
    background-color: #f8fafc;
    color: #1e293b;
    cursor: pointer;
    user-select: none;
    list-style: none; /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s ease;
    border-bottom: 1px solid transparent;
    font-size: 16px;
}

summary.custom-accordion-title::-webkit-details-marker {
    display: none;
}

summary.custom-accordion-title:hover {
    background-color: #e2e8f0;
    color: var(--accordion-theme, #004289);
}

details.custom-accordion[open] summary.custom-accordion-title {
    background-color: var(--accordion-theme, #004289);
    color: #fff;
    border-bottom: 1px solid var(--accordion-theme, #004289);
}

.accordion-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 13px;
    color: #64748b;
}

details.custom-accordion[open] .accordion-arrow {
    transform: rotate(90deg);
    color: #fff;
}

.custom-accordion-content {
    padding: 20px 24px;
    color: #334155;
    line-height: 1.7;
    background-color: #fff;
}

.custom-accordion-content p:first-child {
    margin-top: 0;
}

.custom-accordion-content p:last-child {
    margin-bottom: 0;
}

