:root {
    --jmx-primary: #0047ab;
    --jmx-primary-dark: #00327a;
    --jmx-primary-soft: #e5efff;
}

.lang-flag-header {
    width: 18px; /* Updated width */
    height: 14px; /* Updated height */
    object-fit: cover;
    border-radius: 1px;
    cursor: pointer;
    transition: transform 0.2s;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f5f7fb;
    color: #111827;
}

a {
    text-decoration: none;
}

.hero {
    position: relative;
    min-height: 80vh;
    color: #fff;
    overflow: hidden;
}

.hero .display-5 {
    font-weight: 700;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 5rem;
    background: radial-gradient(circle at 0 0, rgba(15, 23, 42, .6), rgba(15, 23, 42, .45), rgba(15, 23, 42, .2));
}

.hero-content {
    max-width: 520px;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0;
    transform: translateX(24px) scale(1.02);
}

.hero-heading {
    opacity: 0;
    transform: translateY(-16px);
}

.hero-body {
    opacity: 0;
    transform: translateY(16px);
}

.carousel-item.active .hero-heading {
    animation: heroFadeDown .7s ease-out forwards .1s;
}

.carousel-item.active .hero-body {
    animation: heroFadeUp .7s ease-out forwards .25s;
}

.carousel-item.active .hero-slide-img {
    animation: heroSlideIn .8s ease-out forwards;
}

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(1.02);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1.02);
    }
}

@keyframes heroFadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero-stats-row .stat-value {
    color: var(--jmx-primary);
}

.hero-stats-row .small {
    color: #6b7280;
}

.hero-stat-card {
    border-radius: 1rem;
    padding: 1.1rem 1.3rem;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    gap: .9rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .08);
    border: 1px solid #e5e7eb;
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.hero-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--jmx-primary);
    color: #ffffff;
}

.hero-stat-card:hover {
    background-color: var(--jmx-primary);
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, .25);
    border-color: var(--jmx-primary-dark);
}

.hero-stat-card:hover .stat-value,
.hero-stat-card:hover .small {
    color: #ffffff;
}

.hero-stat-card:hover .hero-stat-icon {
    background-color: var(--jmx-primary-soft);
    color: var(--jmx-primary-dark);
}

.container-hero {
    width: 90%;
    max-width: 1200px;
    margin-inline: auto;
}

.hero-header-wrapper {
    z-index: 1050;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    padding-block: 1rem;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
}

.hero-header-wrapper.header-scrolled {
    padding-block: 0.75rem;
    background-color: #00327a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: none;
}

.hero-header {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 0.5rem 1.25rem;
    color: var(--jmx-primary);
    transition: all 0.3s ease-in-out;
    position: relative;
    width: 100%;
}

.table-responsive {
    overflow: visible !important;
}

.dropdown-menu {
    z-index: 1060;
}

.dashboard-main-content .table-responsive {
    min-height: 400px;
}

.header-scrolled .hero-header {
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
    padding-block: 0.15rem;
    color: #ffffff;
    max-width: 100%;
    width: 100%;
}

.header-scrolled .container-hero {
    width: 100%;
    max-width: 100%;
    padding-inline: 2rem;
}

.logo-img {
    height: 65px;
    width: 260px;
    object-fit: contain;
    transition: all 0.3s ease-in-out;
}

.header-scrolled .logo-img {
    height: 55px;
    width: 220px;
    filter: none;
}

.header-scrolled .main-nav .nav-link {
    color: #ffffff;
}

.header-scrolled .main-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.header-scrolled .nav-auth .nav-auth-link {
    color: #ffffff;
}

.header-scrolled .nav-auth-divider {
    background-color: #ffffff;
}

.header-scrolled .get-in-touch-btn {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--jmx-primary-dark);
}

.header-scrolled .get-in-touch-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--jmx-primary-dark);
}

.main-nav .dropdown-menu {
    position: absolute;
    top: 80%;
    left: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #ffffff;
    z-index: 1100;
}

.nav-auth .nav-auth-link {
    color: var(--jmx-primary);
    font-weight: 500;
    padding-inline: 0.25rem;
}

.nav-auth-divider {
    background-color: var(--jmx-primary);
    opacity: 0.2;
    margin-inline: 0.5rem;
}

.get-in-touch-btn {
    background-color: var(--jmx-primary);
    border-color: var(--jmx-primary);
    color: #ffffff;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
}

.get-in-touch-btn:hover {
    background-color: var(--jmx-primary-dark);
    border-color: var(--jmx-primary-dark);
    color: #ffffff;
}

/* Dropdown slide and hover */
.main-nav .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

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

/* Auth divider */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link-auth {
    color: var(--jmx-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.header-scrolled .nav-link-auth {
    color: #ffffff !important; /* White on scroll */
}

.auth-divider {
    width: 1px;
    height: 15px;
    background-color: var(--jmx-primary);
    opacity: 0.3;
}

.header-scrolled .auth-divider {
    background-color: rgba(255, 255, 255, 0.3); /* White on scroll */
}

/* Dashboard Link in Header (No background) */
.header-dashboard-link {
    color: var(--jmx-primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0;
    background: transparent !important;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.header-scrolled .header-dashboard-link {
    color: #ffffff !important;
}

@media (min-width: 992px) {
    .main-nav {
        flex-direction: row;
        gap: 0.8rem;
    }
}

.main-nav .nav-link {
    font-size: .8rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    position: relative;
    padding-inline: 0.6rem;
}

.main-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.35rem;
    height: 2px;
    border-radius: 999px;
    background-color: var(--jmx-primary);
    transform-origin: center;
    transform: scaleX(0);
    transition: transform .2s ease-out;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link:focus::after,
.main-nav .nav-link.active::after {
    transform: scaleX(1);
}

.main-nav .dropdown-menu {
    font-size: .8rem;
    border-radius: .75rem;
    border: 1px solid rgba(148, 163, 184, .35);
    padding-block: .5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease-out, transform .18s ease-out, visibility .18s;
}

.main-nav .dropdown-menu .dropdown-item {
    font-size: .78rem;
    padding: .35rem 1rem;
}

.main-nav .dropdown-menu .dropdown-item:hover,
.main-nav .dropdown-menu .dropdown-item:focus {
    background-color: var(--jmx-primary);
    color: #ffffff;
}

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

.header-actions .btn {
    font-size: .82rem;
}

.get-in-touch-text {
    font-size: .8rem;
    font-weight: 500;
}

.get-in-touch-divider {
    width: 1px;
    height: 18px;
    margin-inline: .75rem;
    background-color: rgba(255, 255, 255, 0.3);
}


/* Auth Icons Styling */
.input-group-auth {
    position: relative;
}

.input-group-auth .form-control {
    padding-left: 3rem;
    padding-right: 3rem;
    height: 3.5rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.input-group-auth .auth-icon-left {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 10;
}

.input-group-auth .auth-icon-right {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 10;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.input-group-auth .auth-icon-right:hover {
    color: var(--jmx-primary);
}

.auth-form-container {
    max-width: 480px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Hero Section for Other Pages */
.page-hero {
    position: relative;
    padding-block: 5rem 3rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    margin-bottom: 0;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 50, 122, 0.8), rgba(0, 50, 122, 0.6));
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

/* Breadcrumbs Styling */
.breadcrumb-container {
    background: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: #0047ab;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: #6b7280;
}

/* About Us Layout Refinement */
.about-text-column {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Align with image height */
    height: 100%;
}

/* Dashboard Breadcrumbs in Hero */
.dashboard-hero {
    position: relative;
    padding: 6rem 0; /* Increased height */
    background-color: var(--jmx-primary);
    color: #ffffff;
    overflow: visible; /* Allow breadcrumbs to sit at bottom */
}

.dashboard-hero .breadcrumb {
    background: transparent;
    padding: 0;
}

.dashboard-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.75rem;
    font-weight: 400;
}

.dashboard-hero .breadcrumb-item.active {
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 500;
}

.dashboard-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}


.get-in-touch-icon svg {
    display: block;
    transform: rotate(320deg);
}

.get-in-touch-btn:hover {
    background-color: var(--jmx-primary-soft);
    border-color: var(--jmx-primary-soft);
    color: var(--jmx-primary-dark);
}

@media (max-width: 991.98px) {
    .hero-overlay {
        padding-top: 9rem;
        padding-bottom: 4rem;
    }

    .main-nav {
        margin-top: 1rem;
    }

    .header-actions {
        justify-content: flex-start;
    }
}

.section-title {
    font-weight: 700;
    font-size: 1.9rem;
}

.section-subtitle {
    color: #6b7280;
    max-width: 540px;
}

.card {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
}

.card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#about .card-icon {
    width: 10rem;
    height: 3rem;
}

.bg-deep {
    background-color: #020617;
    color: #e5e7eb;
}

.bg-deep-light {
    background-color: #020b1f;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.testimonial-card {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background-color: #fff;
}

.footer-link {
    color: #9ca3af;
    font-size: .9rem;
}

.footer-link:hover {
    color: #e5e7eb;
}

.btn-primary {
    background-color: var(--jmx-primary);
    border-color: var(--jmx-primary);
    border-radius: .75rem;
    padding-inline: 1.5rem;
    padding-block: .65rem;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--jmx-primary-dark);
    border-color: var(--jmx-primary-dark);
}

.btn-outline-light {
    border-radius: .75rem;
    font-weight: 500;
}

.badge-soft {
    border-radius: 999px;
    padding: .25rem .7rem;
    font-size: .75rem;
    background-color: var(--jmx-primary-soft);
    color: var(--jmx-primary-dark);
}

/* Dashboard Layout Refinement */
.dashboard-page-container {
    max-width: 1200px; /* Adjusted to match homepage container width */
    margin: 0 auto;
    padding: 0 15px;
}

.dashboard-sidebar {
    width: 260px;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    height: auto; /* Increased height to remove scroll */
    min-height: calc(100vh - 120px);
    position: sticky;
    top: 100px; /* Moved down slightly */
    z-index: 100;
    margin-top: 20px; /* Margin top for sidebar */
    border-radius: 0 1rem 1rem 0;
}

.dashboard-main-content {
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 80px);
    background-color: #f8f9fa;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

@media (max-width: 767.98px) {
    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        margin-top: 10px;
    }
}

@media (min-width: 768px) {
    .dashboard-page-container > .row {
        display: flex;
        flex-wrap: nowrap;
        margin: 0;
    }
}

.modal-content {
    background-color: #ffffff !important;
    border-radius: 1rem;
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.dashboard-sidebar-inner {
    background-color: #ffffff;
    border-radius: 0 1rem 1rem 0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
    border-right: 1px solid #e5e7eb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-sidebar-section-title {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #9ca3af;
    margin-bottom: .75rem;
}

.dashboard-sidebar-nav .nav-link {
    border-radius: .75rem;
    padding: .45rem .75rem;
    font-size: .85rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: .55rem;
    position: relative;
}

.dashboard-sidebar-nav .nav-link::before {
    content: "";
    position: absolute;
    left: -0.5rem;
    top: .35rem;
    bottom: .35rem;
    width: 2px;
    border-radius: 999px;
    background-color: transparent;
}

.dashboard-sidebar-nav .nav-link:hover {
    background-color: rgba(13, 110, 253, .04);
    color: #0d6efd;
}

.dashboard-sidebar-nav .nav-link.active {
    background-color: rgba(13, 110, 253, .08);
    color: #0d6efd;
    font-weight: 600;
}

.dashboard-sidebar-nav .nav-link.active::before {
    background-color: #0d6efd;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: transparent; /* No circle background */
    color: #25d366; /* WhatsApp green icon */
    border-radius: 50px;
    text-align: center;
    font-size: 55px; /* Increased icon size */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    color: #128c7e;
    transform: scale(1.1);
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 120px; /* Above WhatsApp button */
    right: 45px;
    background-color: #0047ab;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1050; /* Higher z-index to ensure visibility */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn i {
    transition: transform 0.3s ease;
}

.scroll-top-btn:hover i {
    transform: translateY(-5px); /* Arrow moves up on hover */
}

/* Services Section Improvements */
.services-section {
    position: relative;
    background-image: url('../img/global-map.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.services-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.4); /* Much lower overlay to make map visible */
    z-index: 0;
}

.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 5px solid #0047ab !important; /* Standard top border */
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-card.middle-card {
    border-top: 5px solid #03e4db !important; /* Middle card specific border color */
}

/* Country Carousel */
.country-carousel-item {
    padding: 1rem;
    text-align: center;
}

.country-flag {
    width: 100px;
    height: 60px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-radius: 6px;
}

.country-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

/* SME Import Club Styles */
.sme-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.sme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.sme-card-header {
    padding: 0.7rem 1.5rem; /* Reduced padding */
    text-align: center;
    color: #ffffff;
}

.sme-card-header h4 {
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sme-price {
    font-size: 1.25rem;
    font-weight: 600;
    opacity: 0.95;
}

.sme-features {
    padding: 2rem 1.5rem;
    list-style: none;
    margin-bottom: 0;
}

.sme-features li {
    margin-bottom: 1rem;
    color: #4b5563;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.sme-features li i {
    margin-top: 3px;
    font-size: 0.9rem;
}

.bg-starter { background-color: #2ecc71; }
.bg-growth { background-color: #f39c12; }
.bg-enterprise { background-color: #1abc9c; }

.sme-footer {
    padding: 0 1.5rem 2rem;
}

.bg-ready-to-ship {
    background-color: #00327a !important;
}

/* Support Section */
.bg-jomax-deep {
    background-color: #0047ab !important;
}

.contact-form .form-control,
.contact-form .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.75rem 1rem;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.contact-form .form-select option {
    background-color: #0047ab;
    color: #ffffff;
}

/* Testimonials */
#reviewsCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Why Choose Us Section */
.why-choose-card {
    border: none;
    border-radius: 0.75rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    background-color: #00327a; /* Updated color */
    color: #ffffff;
}

.why-choose-card .why-choose-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
    color: #03e4db; /* Default icon color */
    transition: all 0.3s ease;
}

.why-choose-card.bg-jomax-cyan {
    background-color: #03e4db !important;
}

.why-choose-card.bg-jomax-cyan .why-choose-icon {
    color: #00327a !important;
}

.why-choose-card.bg-jomax-cyan h5 {
    color: #00327a !important;
}

.why-choose-card:hover {
    background-color: #ffffff !important;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.why-choose-card:hover .why-choose-icon,
.why-choose-card:hover h5 {
    color: #00327a !important;
}

.bg-jomax-navy {
    background-color: #00327a !important;
}

/* About Us Image Styling */
.about-img-container {
    position: relative;
    padding-bottom: 40px;
}

.about-main-img {
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    margin-bottom: 70px !important;
}

.about-overlap-img {
    position: absolute;
    bottom: -40px; /* Positioned at bottom */
    right: -10px; /* Overlaps main image on the right side */
    width: 240px; /* Increased size */
    z-index: 2;
    border-radius: 1rem;
    animation: floating 3s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-bottom: 70px !important;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* About Us Image Styling */
.about-bottom-right-img {
    width: 35%;
    border-radius: 0; /* Removed corner radius */
    box-shadow: none !important; /* Removed shadow */
    margin-top: 3rem; /* Moved down a little */
    display: inline-block;
    background: transparent !important; /* Removed background if any */
}

.why-choose-card h5 {
    font-weight: 600;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.review-card-custom {
    background-color: #e5efff !important; /* Same as --jmx-primary-soft */
    border: none;
}

/* CTA Card */
.cta-section-card {
    background: #00327a; /* CTA Card background */
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.cta-section-card .section-title,
.cta-section-card .text-secondary {
    color: #ffffff !important;
}

.cta-section-card .btn-outline-primary {
    border-color: #ffffff;
    color: #ffffff;
}

.cta-section-card .btn-outline-primary:hover {
    background-color: #ffffff;
    color: #00327a;
}

/* Footer Styles */
.footer-jomax {
    background-color: #0047ab !important;
}

.footer-jomax .footer-link,
.footer-jomax .text-secondary,
.footer-jomax .footer-text {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-jomax .footer-link:hover {
    color: #ffffff !important;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
}

.social-icons-footer {
    display: flex;
    gap: 1rem;
}

.social-icon-link {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    background-color: #ffffff;
    color: #0047ab !important;
    transform: translateY(-3px);
}

/* Experts Section Improvements */
.expert-card {
    position: relative;
    overflow: hidden;
    background-color: #0047ab !important;
    border: none;
    transition: all 0.3s ease;
}

.expert-card::after {
    content: attr(data-step);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.07);
    z-index: 0;
    pointer-events: none;
}

.expert-card h6 {
    color: #ffffff;
    transition: all 0.3s ease;
}

.expert-card .card-desc {
    transition: all 0.3s ease;
}

.expert-card:hover {
    background-color: #ffffff !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.expert-card:hover h6 {
    color: #0047ab;
}

.expert-card:hover .card-desc {
    color: #6b7280 !important;
    opacity: 1 !important;
}

.expert-card:hover::after {
    color: rgba(0, 71, 171, 0.05);
}

/* Global Responsive Enhancements */
img,
svg,
video {
    max-width: 100%;
    height: auto;
}

.table-responsive {
    overflow-x: auto;
}

@media (max-width: 991.98px) {
    .container-hero {
        width: 96%;
    }

    .hero-overlay {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    .dashboard-main-content {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

@media (max-width: 767.98px) {
    .read-more-btn {
        margin-left: 0 !important;
    }

    .hero-header {
        padding: 0.35rem 0.75rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

/* SweetAlert custom styling to reduce size */
.swal2-popup {
    width: 24em !important;
    padding: 0.8rem !important;
    border-radius: 15px !important;
}
.swal2-title {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
}
.swal2-html-container {
    font-size: 0.8rem !important;
    margin: 0.5rem 0 !important;
}
.swal2-confirm, .swal2-cancel {
    padding: 0.35rem 1rem !important;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
}
.swal2-icon {
    transform: scale(0.7) !important;
    margin: 0.5rem auto 0 !important;
}

.x-small {
    font-size: 0.7rem;
}

.extra-small {
    font-size: 0.65rem;
}

.bg-indigo { background-color: #6610f2 !important; }
.bg-purple { background-color: #6f42c1 !important; }
.bg-orange { background-color: #fd7e14 !important; }
.bg-teal { background-color: #20c997 !important; }

/* Fix dropdowns in responsive tables */
.table-responsive {
    overflow: visible !important;
}

@media (max-width: 991.98px) {
    .table-responsive {
        overflow-x: auto !important;
        display: block;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }
}

.dropdown-menu {
    z-index: 1060 !important;
}

/* Responsive Table Fix */
@media (max-width: 991.98px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .dashboard-page-container {
        padding-inline: 0.75rem;
    }
    
    .dashboard-main-content {
        padding: 1rem !important;
    }
}

/* Modal Responsiveness */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 1rem !important;
    }
}
