/**
 * ==========================================================================
 * DINEEV GROUP — Public Frontend Corporate UI/UX Stylesheet
 * File: frontend-ui.css
 * Scope: Public frontend pages only.
 * Isolated from /dashboard, /admin/dashboard, and authentication logic.
 * ==========================================================================
 */

:root {
    --dg-primary: #005995;
    --dg-primary-hover: #004575;
    --dg-primary-light: rgba(0, 89, 149, 0.08);
    --dg-primary-border: rgba(0, 89, 149, 0.2);
    --dg-secondary: #0f172a;
    --dg-text-dark: #1e293b;
    --dg-text-muted: #64748b;
    --dg-text-subtle: #94a3b8;
    --dg-bg-light: #f8fafc;
    --dg-bg-card: #ffffff;
    --dg-border: #e2e8f0;
    --dg-border-light: #f1f5f9;
    --dg-accent: #d97706;
    --dg-radius-sm: 6px;
    --dg-radius-md: 10px;
    --dg-radius-lg: 14px;
    --dg-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --dg-shadow-md: 0 6px 18px -4px rgba(15, 23, 42, 0.08);
    --dg-shadow-hover: 0 14px 28px -6px rgba(0, 89, 149, 0.14);
    --dg-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   1. GLOBAL REFINEMENTS (Public Frontend Scope)
   ========================================================================== */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color: var(--dg-text-dark);
}

/* Subtle image load stability */
img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   2. HEADER & TOP NOTIFICATION BAR
   ========================================================================== */

.notification-bar.primary-bg {
    background: #004d80 !important;
    padding: 5px 0 !important;
    font-size: 12.5px;
    line-height: 1.2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dg-topbar-wrapper {
    min-height: 28px;
    gap: 12px;
}

/* Left phone link */
.dg-topbar-phone {
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1;
    gap: 6px;
    transition: opacity 0.2s ease;
}

.dg-topbar-phone i {
    font-size: 14px;
    line-height: 1;
}

.dg-topbar-phone:hover {
    opacity: 0.85;
}

/* Right items list */
.dg-topbar-list {
    gap: 14px;
    align-items: center;
}

.dg-topbar-item {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* Thin subtle vertical separator */
.dg-topbar-divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 2px;
}

/* Language selector dropdown polish */
.dg-topbar-dropdown {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1 !important;
    padding: 0 !important;
    gap: 3px;
    cursor: pointer;
    box-shadow: none !important;
}

.dg-topbar-dropdown i {
    font-size: 14px;
    line-height: 1;
}

.localization-form .dropdown-menu {
    min-width: 100px;
    border-radius: var(--dg-radius-sm) !important;
    box-shadow: var(--dg-shadow-md) !important;
    border: 1px solid var(--dg-border) !important;
}

/* Login / Logout link */
.dg-topbar-link {
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1;
    gap: 5px;
    transition: opacity 0.2s ease;
}

.dg-topbar-link i {
    font-size: 14px;
    line-height: 1;
}

.dg-topbar-link:hover {
    opacity: 0.85;
}

/* DG-MART e-Store button in top bar */
.dg-topbar-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: var(--dg-radius-sm) !important;
    letter-spacing: 0.2px;
    line-height: 1 !important;
    text-decoration: none;
    gap: 5px;
    transition: var(--dg-transition);
}

.dg-topbar-btn i {
    font-size: 13px;
    line-height: 1;
}

.dg-topbar-btn:hover {
    background: #ffffff !important;
    color: var(--dg-primary) !important;
    border-color: #ffffff !important;
}

/* Mobile responsiveness for topbar */
@media (max-width: 767px) {
    .notification-bar.primary-bg {
        padding: 4px 0 !important;
    }

    .dg-topbar-wrapper {
        justify-content: center !important;
        gap: 6px 14px !important;
    }

    .dg-topbar-left {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .dg-topbar-right {
        justify-content: center;
        width: 100%;
    }

    .dg-topbar-list {
        gap: 10px;
    }
}

/* Main Navigation Area - Height Preserved */
.header-top-first.body-bg {
    background: #ffffff !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    padding: 5px 0 !important;
}

/* Logo Presentation - Increased Size with Smooth Sticky Transition */
.header-theme-logo .theme-logo img,
.header-main-logo {
    max-height: 68px !important;
    width: auto !important;
    object-fit: contain;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
    display: block;
}

/* Scrolled / Sticky Header Logo Shrink */
header.sticky .header-theme-logo .theme-logo img,
header.header-sticky .header-theme-logo .theme-logo img,
.header-border .header-theme-logo .theme-logo img,
header.sticky .header-main-logo,
header.header-sticky .header-main-logo,
.header-border .header-main-logo {
    max-height: 46px !important;
}

@media (max-width: 991px) {
    .header-top-first.body-bg {
        padding: 6px 0 !important;
    }
    .header-theme-logo .theme-logo img,
    .header-main-logo {
        max-height: 52px !important;
    }
    header.sticky .header-theme-logo .theme-logo img,
    header.header-sticky .header-theme-logo .theme-logo img,
    header.sticky .header-main-logo {
        max-height: 42px !important;
    }
}

/* Main Menu Items */
.mainmenu-content .menu-ul {
    gap: 6px;
    align-items: center;
}

.mainmenu-content .menu-ul > li > a {
    color: var(--dg-secondary) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    padding: 8px 14px !important;
    border-radius: var(--dg-radius-sm);
    transition: var(--dg-transition);
    position: relative;
}

.mainmenu-content .menu-ul > li > a:hover,
.mainmenu-content .menu-ul > li.active > a {
    color: var(--dg-primary) !important;
    background: var(--dg-primary-light);
}

/* Menu Dropdown Polish */
.menu-dropdown.menu-sub {
    background: #ffffff !important;
    border: 1px solid var(--dg-border) !important;
    border-top: 3px solid var(--dg-primary) !important;
    border-radius: 0 0 var(--dg-radius-md) var(--dg-radius-md) !important;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 6px 12px -4px rgba(15, 23, 42, 0.05) !important;
    padding: 10px 0 !important;
}

.menu-dropdown.menu-sub .menudrop-ul {
    padding: 0 !important;
}

.menu-dropdown.menu-sub .menu-sublink a,
.menu-dropdown.menu-sub .menudrop-li a {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--dg-text-dark) !important;
    padding: 8px 24px !important;
    transition: var(--dg-transition);
}

.menu-dropdown.menu-sub .menu-sublink a:hover,
.menu-dropdown.menu-sub .menudrop-li a:hover {
    color: var(--dg-primary) !important;
    background: var(--dg-primary-light);
    padding-left: 28px !important;
}

/* Mobile Toggler Button */
.header-icon-toggler.toggler-btn {
    border: 1px solid var(--dg-border);
    border-radius: var(--dg-radius-sm);
    padding: 6px 10px;
    color: var(--dg-secondary);
    transition: var(--dg-transition);
}

.header-icon-toggler.toggler-btn:hover {
    background: var(--dg-bg-light);
    border-color: var(--dg-primary);
    color: var(--dg-primary);
}

/* ==========================================================================
   3. SECTION HEADERS & GENERAL CORPORATE TYPOGRAPHY
   ========================================================================== */

.dg-section-header {
    margin-bottom: 40px;
}

.dg-section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--dg-primary);
    background: var(--dg-primary-light);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.dg-section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dg-secondary);
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.dg-section-subtitle {
    font-size: 15px;
    color: var(--dg-text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.65;
}

@media (max-width: 767px) {
    .dg-section-header {
        margin-bottom: 28px;
    }
    .dg-section-title {
        font-size: 24px;
    }
    .dg-section-subtitle {
        font-size: 14px;
    }
}

/* Standard Corporate Buttons */
.dg-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--dg-primary);
    border: 1.5px solid var(--dg-primary);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--dg-radius-sm);
    text-decoration: none;
    transition: var(--dg-transition);
}

.dg-btn-primary:hover {
    background: var(--dg-primary-hover);
    border-color: var(--dg-primary-hover);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 89, 149, 0.25);
}

.dg-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid var(--dg-primary);
    color: var(--dg-primary) !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--dg-radius-sm);
    text-decoration: none;
    transition: var(--dg-transition);
}

.dg-btn-outline:hover {
    background: var(--dg-primary);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 89, 149, 0.2);
}

/* ==========================================================================
   4. OUR SERVICES CARDS (Home Page & Services Page)
   ========================================================================== */

.dg-services-section {
    padding: 65px 0 75px;
    background: var(--dg-bg-light);
}

.dg-service-card {
    background: var(--dg-bg-card);
    border: 1px solid var(--dg-border);
    border-radius: var(--dg-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--dg-transition);
    position: relative;
}

.dg-service-card:hover {
    transform: translateY(-5px);
    border-color: var(--dg-primary-border);
    box-shadow: var(--dg-shadow-hover);
}

/* Service Image Container */
.dg-service-img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e2e8f0;
}

.dg-service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.dg-service-card:hover .dg-service-img-wrap img {
    transform: scale(1.05);
}

/* Subtle category badge on card image */
.dg-service-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

/* Service Card Body */
.dg-service-body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dg-service-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dg-secondary);
    line-height: 1.35;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.dg-service-title a {
    color: inherit;
    text-decoration: none;
}

.dg-service-title a:hover {
    color: var(--dg-primary);
}

.dg-service-desc {
    font-size: 14px;
    color: var(--dg-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Clean CTA Link at bottom of card */
.dg-service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--dg-primary);
    text-decoration: none;
    margin-top: auto;
    transition: var(--dg-transition);
}

.dg-service-link i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.dg-service-link:hover {
    color: var(--dg-primary-hover);
}

.dg-service-link:hover i {
    transform: translateX(4px);
}

/* Override existing ugly service-item from style5.css */
.service-item {
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    transition: none !important;
}

/* ==========================================================================
   5. HOME PAGE HERO SLIDER POLISH
   ========================================================================== */

.slider-content .home-slider {
    background: #001f35;
}

.slider-content .home-slider .slide-img img {
    display: block;
    width: 100%;
    object-fit: cover;
}

/* Fix desktop banner aspect ratio */
@media (min-width: 992px) {
    .slider-content .home-slider .slider-image {
        min-height: 480px;
    }
}

/* Swiper Dots */
.slider-content .home-slider .swiper-pagination-bullet {
    width: 24px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
    margin: 0 4px !important;
    transition: var(--dg-transition);
    border: none !important;
}

.slider-content .home-slider .swiper-pagination-bullet-active {
    background: #ffffff !important;
    width: 36px !important;
}

/* ==========================================================================
   6. TESTIMONIAL SECTION POLISH
   ========================================================================== */

.testimonial .testi-content {
    background: #ffffff !important;
    border: 1px solid var(--dg-border) !important;
    border-radius: var(--dg-radius-md) !important;
    box-shadow: var(--dg-shadow-sm) !important;
    padding: 28px !important;
    transition: var(--dg-transition);
}

.testimonial .testi-content:hover {
    box-shadow: var(--dg-shadow-md) !important;
    border-color: var(--dg-primary-border) !important;
}

.testimonial .testi-content span.testi-img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: inline-block;
    border: 3px solid var(--dg-bg-light) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.testimonial .testi-content span.testi-img::after {
    display: none !important;
}

.testimonial .testi-content span.testi-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.testi-star {
    color: #eab308 !important;
    font-size: 15px;
}

/* ==========================================================================
   7. BLOG SECTION POLISH
   ========================================================================== */

.blog-post {
    background: #ffffff;
    border: 1px solid var(--dg-border);
    border-radius: var(--dg-radius-md);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--dg-transition);
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--dg-shadow-hover);
    border-color: var(--dg-primary-border);
}

.blog-post .blog-main-img {
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-post .blog-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-post:hover .blog-main-img img {
    transform: scale(1.05);
}

.blog-post-content {
    padding: 22px 20px 20px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left !important;
}

.blog-post-content h6 {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: var(--dg-secondary) !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
}

.blog-post-content p {
    font-size: 13.5px !important;
    color: var(--dg-text-muted) !important;
    line-height: 1.55 !important;
    margin-bottom: 16px !important;
    flex-grow: 1;
}

/* ==========================================================================
   8. SERVICE DETAILS PAGE BANNER FIX & CONTENT STYLING
   ========================================================================== */

/* Fix the 100vh banner bug */
.banner-hover .banner-img {
    height: 380px !important;
    max-height: 400px !important;
    min-height: 240px !important;
    border-radius: var(--dg-radius-md) !important;
    overflow: hidden !important;
    box-shadow: var(--dg-shadow-md);
}

@media (max-width: 768px) {
    .banner-hover .banner-img {
        height: 240px !important;
    }
}

.banner-hover .banner-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Rich text CMS content styling */
.dg-content-wrapper,
.about-us .col-xl-10 {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
}

.dg-content-wrapper h2,
.about-us h2,
.dg-content-wrapper h3,
.about-us h3 {
    color: var(--dg-secondary);
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 14px;
}

.dg-content-wrapper p,
.about-us p {
    margin-bottom: 16px;
}

.dg-content-wrapper ul,
.about-us ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.dg-content-wrapper ul li,
.about-us ul li {
    margin-bottom: 8px;
}

/* ==========================================================================
   9. BREADCRUMBS STANDARDIZATION
   ========================================================================== */

.breadcrumb-area {
    background-color: #0b253a !important;
    background-image: url('../image/breadcrumb-agri-banner.jpg') !important;
    background-size: cover !important;
    background-position: center 35% !important;
    background-repeat: no-repeat !important;
    position: relative;
    padding: 42px 0 !important;
    z-index: 1;
}

/* Hide theme default dark black after-overlay to prevent over-darkening */
.breadcrumb-area::after {
    display: none !important;
}

.breadcrumb-area::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 22, 36, 0.52) 0%, rgba(6, 22, 36, 0.72) 100%) !important;
    z-index: -1;
}

.breadcrumb-area span.extra-color {
    font-size: 13.5px !important;
    letter-spacing: 0.5px;
    color: #e2e8f0 !important;
    margin-bottom: 5px;
    font-weight: 500;
}

.breadcrumb-area span.extra-color a {
    color: #e2e8f0 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-area span.extra-color a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.breadcrumb-area h2.extra-color {
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.3px;
    margin-top: 4px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767px) {
    .breadcrumb-area {
        padding: 30px 0 !important;
    }
    .breadcrumb-area h2.extra-color {
        font-size: 22px !important;
    }
}

/* Legacy breadcrumb classes fallback */
.breadcrumb-style1 {
    background-color: #0b253a;
    padding: 35px 0;
    color: #ffffff;
    text-align: center;
}

.breadcrumb-style1 .title h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
}

.breadcrumb-style1 .breadcrumb-menu ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    font-size: 13px;
}

.breadcrumb-style1 .breadcrumb-menu ul li a {
    color: #94a3b8;
    text-decoration: none;
}

.breadcrumb-style1 .breadcrumb-menu ul li.active {
    color: #ffffff;
}

/* ==========================================================================
   10. FOOTER POLISH
   ========================================================================== */

#footer .footer-area {
    background-color: #00365b !important;
    padding: 55px 0 40px !important;
    color: #cbd5e1;
}

#footer .footer-theme-logo img {
    max-width: 140px !important;
    height: auto;
}

#footer .footer-company-detail p {
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8 !important;
}

#footer h6.extra-color {
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff !important;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

#footer h6.extra-color::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--dg-primary);
}

#footer .ftlink-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .ftlink-ul li {
    margin-bottom: 10px;
}

#footer .ftlink-ul li a {
    color: #cbd5e1 !important;
    font-size: 13.5px;
    text-decoration: none;
    transition: var(--dg-transition);
}

#footer .ftlink-ul li a:hover {
    color: #ffffff !important;
    padding-left: 4px;
}

/* Footer Social Icons */
#footer .social-ul {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

#footer .social-ul .social-li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    transition: var(--dg-transition);
}

#footer .social-ul .social-li a:hover {
    background: var(--dg-primary);
    border-color: var(--dg-primary);
    transform: translateY(-2px);
}

/* Copyright Bottom Bar */
#footer .copyright {
    background-color: #002742 !important;
    padding: 14px 0 !important;
    font-size: 13px;
    color: #94a3b8 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#footer .copyright sup {
    font-size: 9px;
}

/* ==========================================================================
   11. CONTACT US PAGE & FORM POLISH
   ========================================================================== */

.contact-touch .section-heading {
    color: var(--dg-secondary);
    font-size: 26px;
    font-weight: 700;
}

.contact-touch ul li {
    margin-bottom: 22px;
}

.contact-touch .icon-24 {
    color: var(--dg-primary) !important;
}

/* Contact form inputs */
.contact-form input,
.contact-form textarea {
    border: 1px solid var(--dg-border) !important;
    border-radius: var(--dg-radius-sm) !important;
    padding: 12px 16px !important;
    font-size: 14px;
    color: var(--dg-text-dark);
    transition: var(--dg-transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--dg-primary) !important;
    box-shadow: 0 0 0 3px var(--dg-primary-light) !important;
    outline: none;
}

/* Clean Alert Boxes for flash messages */
.contact_message.alert-success {
    background-color: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
    border-radius: var(--dg-radius-sm);
    padding: 12px 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.contact_message.alert-error,
.contact_message.alert-danger {
    background-color: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
    border-radius: var(--dg-radius-sm);
    padding: 12px 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* ==========================================================================
   12. CAREER & JOBS PAGE POLISH
   ========================================================================== */

.job-listing {
    padding: 50px 0 !important;
    background: var(--dg-bg-light) !important;
    font-family: inherit !important;
}

.job-card {
    background: #ffffff !important;
    border: 1px solid var(--dg-border) !important;
    border-left: 4px solid var(--dg-primary) !important;
    border-radius: var(--dg-radius-md) !important;
    box-shadow: var(--dg-shadow-sm) !important;
    padding: 22px 26px !important;
    transition: var(--dg-transition) !important;
}

.job-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--dg-shadow-md) !important;
}

.job-title a {
    color: var(--dg-secondary) !important;
    font-size: 18px;
    font-weight: 600;
}

.job-title a:hover {
    color: var(--dg-primary) !important;
}

.apply-btn {
    background: var(--dg-primary) !important;
    border-radius: var(--dg-radius-sm) !important;
    font-size: 13.5px !important;
    padding: 9px 20px !important;
    box-shadow: none !important;
}

.apply-btn:hover {
    background: var(--dg-primary-hover) !important;
    transform: none !important;
}

/* ==========================================================================
   13. FAQ ACCORDION POLISH
   ========================================================================== */

.faqs-collapse-group {
    background: #ffffff;
    border: 1px solid var(--dg-border) !important;
    border-radius: var(--dg-radius-md) !important;
    overflow: hidden;
}

.other-tab {
    border-bottom: 1px solid var(--dg-border);
}

.other-tab:last-child {
    border-bottom: none;
}

.other-tab a[aria-expanded="true"] .heading-weight {
    color: var(--dg-primary) !important;
}

.other-tab-icon i {
    color: var(--dg-primary);
}

/* ==========================================================================
   14. PRELOADER & BACK TO TOP POLISH
   ========================================================================== */

#top {
    background: var(--dg-primary) !important;
    color: #ffffff !important;
    border-radius: var(--dg-radius-sm) !important;
    width: 38px !important;
    height: 38px !important;
    box-shadow: var(--dg-shadow-md) !important;
    transition: var(--dg-transition) !important;
}

#top:hover {
    background: var(--dg-primary-hover) !important;
    transform: translateY(-3px);
}

/* ==========================================================================
   15. CONTACT FORM CHECKBOX FIX & RESTORATION
   ========================================================================== */

label.cust-checkbox-label.checkbox-agree {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    cursor: pointer !important;
    user-select: none;
    margin-bottom: 0;
}

label.cust-checkbox-label.checkbox-agree input.cust-checkbox {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

label.cust-checkbox-label.checkbox-agree .cust-check {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    border: 1.5px solid #64748b !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 2px !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

label.cust-checkbox-label.checkbox-agree:hover .cust-check {
    border-color: var(--dg-primary, #005995) !important;
}

label.cust-checkbox-label.checkbox-agree input.cust-checkbox:checked ~ .cust-check {
    background-color: var(--dg-primary, #005995) !important;
    border-color: var(--dg-primary, #005995) !important;
}

label.cust-checkbox-label.checkbox-agree .cust-check::after {
    content: "" !important;
    display: none !important;
    width: 5px !important;
    height: 9px !important;
    border: solid #ffffff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) translate(-1px, -1px) !important;
}

label.cust-checkbox-label.checkbox-agree input.cust-checkbox:checked ~ .cust-check::after {
    display: block !important;
}

/* ==========================================================================
   16. FOOTER LOGO POLISH
   ========================================================================== */

.footer-theme-logo .theme-logo img,
.footer-main-logo {
    border-radius: 8px !important;
    background: #ffffff !important;
    padding: 6px 8px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

.footer-theme-logo .theme-logo:hover img,
.footer-main-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32) !important;
}

/* ==========================================================================
   17. FLOATING CONTACT CTAs (WHATSAPP & PHONE CALL)
   ========================================================================== */

.dg-floating-contact-wrap {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none; /* Avoid blocking underlying page elements */
}

/* Base floating button */
.dg-float-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    height: 46px;
    padding: 0;
    text-decoration: none;
    color: #ffffff !important;
    border-radius: 24px 0 0 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

/* Initially hidden expandable text label */
.dg-float-label {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #ffffff;
    padding: 0;
    transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.35s ease;
}

/* Icon container - always visible */
.dg-float-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    flex-shrink: 0;
}

/* Desktop Hover Interaction: Expands/slides smoothly towards the LEFT */
.dg-float-btn:hover {
    transform: translateX(-4px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.dg-float-btn:hover .dg-float-label {
    max-width: 220px;
    opacity: 1;
    padding-left: 16px;
    padding-right: 4px;
}

/* WhatsApp Brand Styling */
.dg-float-whatsapp {
    background: #25D366;
}

.dg-float-whatsapp:hover {
    background: #20ba5a;
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
}

/* Phone Call Brand Styling */
.dg-float-call {
    background: #005995;
}

.dg-float-call:hover {
    background: #004778;
    box-shadow: 0 6px 22px rgba(0, 89, 149, 0.5);
}

/* Mobile responsive layout */
@media (max-width: 767px) {
    .dg-floating-contact-wrap {
        right: auto !important;
        top: auto !important;
        left: 16px !important;
        bottom: 20px !important;
        transform: none !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .dg-float-btn {
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        justify-content: center !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28) !important;
    }

    .dg-float-btn:hover {
        transform: scale(1.06) !important;
    }

    .dg-float-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 21px !important;
    }

    /* On mobile, labels remain hidden to maintain clean, non-intrusive floating buttons */
    .dg-float-label {
        display: none !important;
    }
}

/* End of frontend-ui.css */
