/* =====================================================
   MTS FINANCIAL - PREMIUM FRONTEND CSS (COMPLETE)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.35);
    --secondary: #10b981;
    --dark: #020617;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(15, 23, 42, 0.08);
    --gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --radius-lg: 28px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--white);
    color: var(--primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Container ── */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Reset Links & Lists ── */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
    border: none;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: 0 4px 18px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* ── Badge ── */
.badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ─────────────────────────────────────
   TOP BAR
───────────────────────────────────── */
.top-bar {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 9px 0;
    font-size: 13px;
    font-weight: 500;
}

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

.contact-info {
    display: flex;
    gap: 24px;
    align-items: center;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info i {
    color: var(--accent);
    font-size: 12px;
}

.social-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: var(--transition);
}

.social-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ─────────────────────────────────────
   MARQUEE BANNER
───────────────────────────────────── */
.marquee-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    padding: 9px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dark);
}

/* ─────────────────────────────────────
   HEADER & NAVIGATION
───────────────────────────────────── */
header {
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 2500;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.logo-text .main {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-text .sub {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links li a {
    font-weight: 600;
    color: var(--primary-light);
    font-size: 14px;
    position: relative;
    padding: 8px 14px;
    border-radius: 10px;
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.06);
}

.nav-links li a i:not(.fa-chevron-down) {
    display: inline-block;
    margin-right: 4px;
}

.nav-links li a.active {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.08);
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.portal-login-btn {
    background: var(--primary) !important;
    color: white !important;
    padding: 10px 22px !important;
    border-radius: var(--radius) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
    margin-left: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.portal-login-btn:hover {
    background: var(--accent) !important;
    color: white !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 10px 25px var(--accent-glow) !important;
}

/* Shine effect on hover */
.portal-login-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: none;
    opacity: 0;
}

.portal-login-btn:hover::after {
    left: 120%;
    opacity: 1;
    transition: all 0.6s ease;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.97);
    background: var(--white);
    min-width: 240px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    padding: 10px;
    border-radius: var(--radius-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 999;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.dropdown-menu ul li a {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
    border-radius: 10px;
}

.dropdown-menu ul li a:hover {
    background: var(--light);
    color: var(--accent);
    padding-left: 20px;
}

/* Mobile Nav Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2400;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.nav-overlay.active {
    display: block;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--primary);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--light);
}

/* ─────────────────────────────────────
   HERO SECTION
───────────────────────────────────── */
.hero {
    padding: 110px 0 90px;
    background: #fcfdff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.hero-content .badge {
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 58px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-content h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 44px;
    max-width: 520px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    gap: 24px;
}

.stat-card {
    background: var(--white);
    padding: 28px 24px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    flex: 1;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.stat-card h3 {
    font-size: 34px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.stat-card p {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Card (Right Side) */
.hero-card {
    background: var(--white);
    padding: 44px;
    border-radius: 36px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.card-inner .card-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.cat-item {
    text-align: center;
    padding: 22px 16px;
    border-radius: 20px;
    background: var(--light);
    border: 1.5px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.cat-item:hover {
    background: white;
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.cat-icon {
    width: 56px;
    height: 56px;
    background: #dbeafe;
    color: var(--accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
    transition: var(--transition);
}

.cat-item:hover .cat-icon {
    background: var(--accent-gradient);
    color: white;
    transform: scale(1.1);
}

.cat-item p {
    font-weight: 700;
    font-size: 13px;
    color: var(--primary-light);
    line-height: 1.3;
}



/* Keep hover consistent */

.call-now-banner {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 16px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 6px 20px var(--accent-glow);
    transition: var(--transition);
}

.call-now-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px var(--accent-glow);
}

/* ─────────────────────────────────────
   SERVICES SECTION
───────────────────────────────────── */
.services {
    padding: 120px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 72px;
}

.section-header h2 {
    font-size: 46px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--dark);
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.section-header h2 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--white);
    padding: 48px 44px;
    border-radius: 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1.5px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(59, 130, 246, 0.3);
}

.service-icon {
    width: 72px;
    height: 72px;
    background: #dbeafe;
    color: var(--accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 36px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent-gradient);
    color: white;
    transform: rotate(8deg) scale(1.05);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.service-card ul {
    margin-bottom: 36px;
    flex-grow: 1;
}

.service-card ul li {
    margin-bottom: 14px;
}

.service-card ul li a {
    color: var(--gray);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    padding: 4px 0;
}

.service-card ul li a:hover {
    color: var(--accent);
    transform: translateX(8px);
}

.service-card ul li i {
    color: var(--secondary);
    font-size: 12px;
    flex-shrink: 0;
    width: 16px;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--accent);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.learn-more:hover {
    gap: 14px;
    color: var(--accent-dark);
}

/* ─────────────────────────────────────
   WHY CHOOSE US SECTION
───────────────────────────────────── */
.why-choose {
    padding: 120px 0;
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 0;
}

.why-card {
    padding: 44px 36px;
    border-radius: 28px;
    background: var(--light);
    border: 1.5px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    text-align: center;
}

.why-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.2);
}

.why-icon {
    width: 72px;
    height: 72px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 28px;
    box-shadow: 0 8px 24px var(--accent-glow);
    transition: var(--transition);
}

.why-card:hover .why-icon {
    transform: rotate(10deg) scale(1.1);
}

.why-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--primary);
}

.why-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

/* ─────────────────────────────────────
   GOVERNMENT PORTALS
───────────────────────────────────── */
.gov-portals {
    padding: 120px 0;
    background: var(--light);
}

.portals-container {
    background: white;
    border-radius: 40px;
    padding: 72px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.portals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 28px;
}

.portal-item {
    background: var(--light);
    padding: 36px;
    border-radius: 24px;
    border: 1.5px solid transparent;
    text-align: left;
    transition: var(--transition);
    display: block;
}

.portal-item:hover {
    background: white;
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.portal-icon {
    width: 52px;
    height: 52px;
    background: #dbeafe;
    color: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.portal-item:hover .portal-icon {
    background: var(--accent-gradient);
    color: white;
}

.portal-item h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--primary);
}

.portal-item p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.portal-action {
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.portal-item:hover .portal-action {
    gap: 12px;
}

.portal-disclaimer {
    margin-top: 48px;
    padding: 28px 36px;
    background: var(--light);
    border-radius: 16px;
    border-left: 4px solid var(--accent);
}

.disclaimer-text,
.disclaimer-contact {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 8px;
}

/* ─────────────────────────────────────
   CONTACT SECTION
───────────────────────────────────── */
.contact {
    padding: 120px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: start;
    margin-top: 16px;
}

.contact-form {
    background: var(--light);
    border-radius: 28px;
    padding: 56px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 36px;
    color: var(--primary);
    letter-spacing: -0.5px;
}

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

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    color: var(--primary);
    background: white;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.btn-block {
    width: 100%;
    margin-top: 8px;
}

/* Contact Info Panel */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 16px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: var(--light);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.info-item:hover {
    background: white;
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.info-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.info-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.info-text p {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.5;
}

/* ─────────────────────────────────────
   BLOG SECTION
───────────────────────────────────── */
.blog-preview-section {
    padding: 120px 0;
    background: var(--light);
}

.blog-carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-top: 8px;
}

.blog-carousel {
    display: flex;
    gap: 28px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 4px 16px;
    cursor: grab;
}

.blog-carousel:active {
    cursor: grabbing;
}

.blog-slide {
    min-width: 360px;
    background: var(--white);
    border-radius: 24px;
    border: 1.5px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    box-shadow: var(--shadow);
    flex-shrink: 0;
    transition: var(--transition);
}

.blog-slide:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(59, 130, 246, 0.3);
}

.blog-image {
    height: 220px;
    overflow: hidden;
    background: var(--light);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-slide:hover .blog-image img {
    transform: scale(1.08);
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    background: #f1f5f9;
}

.blog-info {
    padding: 28px 32px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.blog-category {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent);
    background: #dbeafe;
    padding: 5px 12px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray);
}

.blog-info h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.blog-info p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-controls {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 48px;
}

.blog-btn {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    background: white;
    color: var(--primary);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-btn:hover,
.blog-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 20px var(--accent-glow);
    transform: translateY(-2px);
}

/* ─────────────────────────────────────
   FOOTER
───────────────────────────────────── */
footer {
    background: radial-gradient(circle at top right, #1e293b, #020617);
    color: rgba(255, 255, 255, 0.85);
    padding: 100px 0 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #3b82f6);
    background-size: 200% 100%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

footer::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr 1.5fr;
    gap: 40px;
    margin-bottom: 72px;
}

.footer-about .logo span {
    font-size: 24px;
    font-weight: 900;
    color: white;
    letter-spacing: -0.5px;
}

.footer-about p {
    margin-top: 20px;
    font-size: 14.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.footer-social a:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.footer-links h4,
.footer-contact h4,
.footer-support-section h4 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    position: relative;
    letter-spacing: 0.5px;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-support-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 40px;
    background: var(--accent);
}

.footer-links ul li {
    margin-bottom: 14px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14.5px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    padding: 2px 0;
}

.footer-links ul li a::before {
    content: '\f054';
    /* FontAwesome Chevron-Right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -15px;
    opacity: 0;
    color: var(--accent);
    transition: all 0.3s;
    font-size: 9px;
    top: 50%;
    transform: translateY(-50%);
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 12px;
}

.footer-links ul li a:hover::before {
    opacity: 1;
    left: 0;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 18px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-details i {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent);
    margin-top: -2px;
    flex-shrink: 0;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 28px 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom p a {
    color: var(--accent);
    font-weight: 700;
}

.footer-bottom p a:hover {
    color: white;
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--accent);
}

/* ─────────────────────────────────────
   FLOATING BUTTONS
───────────────────────────────────── */
.float-btns {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.float-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    cursor: pointer;
}

.float-btn:hover {
    transform: translateY(-4px) scale(1.1);
}

.float-btn-call {
    background: var(--accent-gradient);
}

.float-btn-whatsapp {
    background: #25D366;
}

/* ─────────────────────────────────────
   SIDEBAR MOBILE MENU
───────────────────────────────────── */
.sidebar-header {
    display: none;
}

/* ─────────────────────────────────────
   RESPONSIVE – TABLET
───────────────────────────────────── */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .portals-container {
        padding: 44px;
    }
}

/* ─────────────────────────────────────
   RESPONSIVE – MOBILE
───────────────────────────────────── */
/* ─────────────────────────────────────
   RESPONSIVE – MOBILE & TABLET SIDEBAR
───────────────────────────────────── */
@media (max-width: 991px) {
    /* Remove redundant sidebar logic - using #mobile-sidebar instead */
    .nav-links {
        display: none !important;
    }

    .hamburger-trigger {
        display: block;
    }

    .sidebar-footer h5 {
        font-size: 11px;
        text-transform: uppercase;
        color: var(--gray);
        letter-spacing: 1px;
        margin-bottom: 15px;
    }

    .sidebar-info-item {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
        font-size: 13px;
        color: var(--primary-light);
    }

    .sidebar-info-item i {
        color: var(--accent);
        width: 16px;
    }

    .sidebar-social {
        display: flex;
        gap: 12px;
        margin-top: 20px;
    }

    .sidebar-social a {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        font-size: 14px;
        transition: all 0.3s;
    }

    .sidebar-social a:hover {
        background: var(--accent);
        color: white;
    }

    /* Sections adjust */
    .hero { padding: 40px 0; }
    .hero-content h1 { font-size: 30px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .services, .why-choose, .contact, .portals { padding: 60px 0; }
    .section-header h2 { font-size: 30px; }
    .stat-card { flex: 1 1 calc(50% - 12px); }
    .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 26px; }
    .stat-card { flex: 1 1 100%; }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        font-size: 14px;
        padding: 12px 20px;
    }

    .stat-card {
        flex: 1 1 100%;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        padding: 20px 16px;
    }

    .category-grid {
        gap: 8px;
    }

    .cat-item {
        padding: 12px 8px;
    }
}

/* ─────────────────────────────────────
   UTILITY & ANIMATIONS
───────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 0.7s ease-out forwards;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 4px;
    margin: 0 auto 24px;
}

/* ─────────────────────────────────────
   ICON COLOR PALETTE SYSTEM
   Unique color per specialization,
   portal and service card icon
───────────────────────────────────── */

/* Blue */
.icon-blue {
    background: #dbeafe !important;
    color: #2563eb !important;
}

/* Green */
.icon-green {
    background: #d1fae5 !important;
    color: #059669 !important;
}

/* Amber */
.icon-amber {
    background: #fef3c7 !important;
    color: #d97706 !important;
}

/* Red */
.icon-red {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

/* Purple */
.icon-purple {
    background: #ede9fe !important;
    color: #7c3aed !important;
}

/* Rose/Pink */
.icon-rose {
    background: #ffe4e6 !important;
    color: #e11d48 !important;
}

/* Teal */
.icon-teal {
    background: #ccfbf1 !important;
    color: #0f766e !important;
}

/* Orange */
.icon-orange {
    background: #ffedd5 !important;
    color: #ea580c !important;
}

/* Cat item icon – hover fills with solid color */
.cat-item:hover .icon-blue {
    background: #2563eb !important;
    color: #fff !important;
}

.cat-item:hover .icon-green {
    background: #059669 !important;
    color: #fff !important;
}

.cat-item:hover .icon-amber {
    background: #d97706 !important;
    color: #fff !important;
}

.cat-item:hover .icon-red {
    background: #dc2626 !important;
    color: #fff !important;
}

.cat-item:hover .icon-purple {
    background: #7c3aed !important;
    color: #fff !important;
}

.cat-item:hover .icon-rose {
    background: #e11d48 !important;
    color: #fff !important;
}

.cat-item:hover .icon-teal {
    background: #0f766e !important;
    color: #fff !important;
}

.cat-item:hover .icon-orange {
    background: #ea580c !important;
    color: #fff !important;
}

/* Portal icon – hover fills with solid color */
.portal-item:hover .icon-blue {
    background: #2563eb !important;
    color: #fff !important;
}

.portal-item:hover .icon-green {
    background: #059669 !important;
    color: #fff !important;
}

.portal-item:hover .icon-amber {
    background: #d97706 !important;
    color: #fff !important;
}

.portal-item:hover .icon-red {
    background: #dc2626 !important;
    color: #fff !important;
}

.portal-item:hover .icon-purple {
    background: #7c3aed !important;
    color: #fff !important;
}

.portal-item:hover .icon-rose {
    background: #e11d48 !important;
    color: #fff !important;
}

.portal-item:hover .icon-teal {
    background: #0f766e !important;
    color: #fff !important;
}

.portal-item:hover .icon-orange {
    background: #ea580c !important;
    color: #fff !important;
}

/* Portal action text – match color to portal icon */
.portal-item:has(.icon-blue) .portal-action {
    color: #2563eb;
}

.portal-item:has(.icon-green) .portal-action {
    color: #059669;
}

.portal-item:has(.icon-amber) .portal-action {
    color: #d97706;
}

.portal-item:has(.icon-red) .portal-action {
    color: #dc2626;
}

.portal-item:has(.icon-purple) .portal-action {
    color: #7c3aed;
}

.portal-item:has(.icon-rose) .portal-action {
    color: #e11d48;
}

.portal-item:has(.icon-teal) .portal-action {
    color: #0f766e;
}

.portal-item:has(.icon-orange) .portal-action {
    color: #ea580c;
}

/* Service cards – unique icon color per position */
.services-grid .service-card:nth-child(1) .service-icon {
    background: #dbeafe;
    color: #2563eb;
}

.services-grid .service-card:nth-child(2) .service-icon {
    background: #d1fae5;
    color: #059669;
}

.services-grid .service-card:nth-child(3) .service-icon {
    background: #fef3c7;
    color: #d97706;
}

.services-grid .service-card:nth-child(4) .service-icon {
    background: #ede9fe;
    color: #7c3aed;
}

.services-grid .service-card:nth-child(5) .service-icon {
    background: #ffedd5;
    color: #ea580c;
}

.services-grid .service-card:nth-child(6) .service-icon {
    background: #ccfbf1;
    color: #0f766e;
}

.services-grid .service-card:nth-child(1):hover .service-icon {
    background: #2563eb;
    color: #fff;
}

.services-grid .service-card:nth-child(2):hover .service-icon {
    background: #059669;
    color: #fff;
}

.services-grid .service-card:nth-child(3):hover .service-icon {
    background: #d97706;
    color: #fff;
}

.services-grid .service-card:nth-child(4):hover .service-icon {
    background: #7c3aed;
    color: #fff;
}

.services-grid .service-card:nth-child(5):hover .service-icon {
    background: #ea580c;
    color: #fff;
}

.services-grid .service-card:nth-child(6):hover .service-icon {
    background: #0f766e;
    color: #fff;
}

/* Why-choose card icons – gradient per position */
.why-grid .why-card:nth-child(1) .why-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 8px 24px rgba(59, 130, 246, .3);
}

.why-grid .why-card:nth-child(2) .why-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 24px rgba(16, 185, 129, .3);
}

.why-grid .why-card:nth-child(3) .why-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 24px rgba(245, 158, 11, .3);
}

.why-grid .why-card:nth-child(4) .why-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 8px 24px rgba(139, 92, 246, .3);
}