/**
 * Custom Styles for APM Theme
 * Additional styles beyond Bootstrap
 */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Global Typography */
p {
    text-align: justify;
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Image Hover Effects */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

/* Card Styles */
.card-custom {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card-custom:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

#back-to-top.show {
    display: flex;
}

/* Search Form */
.search-form {
    position: relative;
}

.search-form input[type="search"] {
    padding-right: 50px;
    border-radius: 25px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.search-form input[type="search"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* Post Navigation */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.post-navigation .nav-previous:hover a,
.post-navigation .nav-next:hover a {
    color: white;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
    display: block;
    font-weight: 600;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: var(--light-color);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: var(--dark-color);
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Print Styles */
@media print {

    .site-header,
    .site-footer,
    .sidebar,
    .post-navigation,
    .comments-area {
        display: none;
    }

    .site-main {
        width: 100% !important;
    }
}

/* =========================================
   Hero Section Wrapper (Moved from homepage.css)
   ========================================= */
.hero-section {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 750px;
    /* Increased height */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    margin-bottom: 120px;
    /* Space for the overflowing quick links */
    overflow: visible;
    /* CRITICAL: Allow quick links to overflow */
}

/* Ensure inner content is centered */
.hero-section .container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Gradient Extended to ~80% */
    background: linear-gradient(90deg, #0d47a1e6 15%, #0d47a1cc 50%, rgba(13, 71, 161, 0) 80%);
    z-index: 1;
}

.relative-z2 {
    position: relative;
    z-index: 5;
    width: 100%;
    margin-bottom: auto;
    margin-top: auto;
}

.hero-content {
    color: #ffffff;
    padding: 60px 0 100px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 550px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Button Fixes */
.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    /* Vertical Center */
    justify-content: center;
    /* Horizontal Center */
}

.custom-btn-blue {
    background-color: #3b82f6;
    border-color: #3b82f6;
    border-radius: 4px;
    font-weight: 600;
    padding: 12px 30px;
    color: #ffffff !important;
    /* Force white text */
}

.custom-btn-blue:hover {
    background-color: #2563eb;
    color: #ffffff !important;
}

.custom-btn-outline {
    border: 2px solid #ffffff;
    border-radius: 4px;
    font-weight: 600;
    padding: 12px 30px;
    color: #ffffff !important;
    /* Force white text */
}

.custom-btn-outline:hover {
    background-color: #ffffff;
    color: #0d47a1 !important;
}

/* Quick Links Overlap Strategy: Absolute Positioning */
.hero-quick-links-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    transform: translateY(50%);
    /* Push down 50% of its own height */
}

/* Remove row shadow, apply to items instead */
.quick-links-row {
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.quick-link-box-v2 {
    display: block;
    text-align: center;
    padding: 25px 15px;
    height: 100%;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #fff;
    background-color: #0d3880;
    border-radius: 8px;
    /* Rounded corners */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.quick-link-box-v2:hover {
    color: #fff;
    transform: translateY(-5px);
    filter: brightness(1.1);
}

.quick-link-box-v2 .icon-wrap {
    font-size: 2.5rem;
    margin-bottom: 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-link-box-v2 .icon-wrap i {
    color: #fff;
}

.quick-link-box-v2 .icon-wrap img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Make images white */
}

.quick-link-box-v2 .box-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #ffffff !important;
    /* Force white title */
}

/* Alternating Blue Colors - ENFORCED */
.blue-dark {
    background-color: #0d3880 !important;
}

.blue-light {
    background-color: #3b82f6 !important;
}

/* Custom 5-column grid for desktop only */
@media (min-width: 992px) {
    .desktop-col-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Responsive adjustments for Hero Section */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    /* Force full gradient on mobile */
    .hero-overlay-gradient {
        background: linear-gradient(180deg, #0d48a1a2 0%, rgba(13, 71, 161, 0.95) 100%);
    }

    .hero-quick-links-wrapper {
        position: relative;
        margin-top: 20px;
        margin-bottom: 20px;
        transform: none;
        bottom: auto;
    }

    .hero-section {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* =========================================
   About & Certificates Block
   ========================================= */
.about-certificates-section {
    padding: 80px 0;
    position: relative;
    background-color: #f8f9fa;
    /* Fallback */
}

.bg-primary-dark {
    background-color: #0d47a1;
    /* Match APM blue */
}

.img-fill-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.min-h-400 {
    min-height: 400px;
}

.border-bottom-white {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.cert-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cert-item {
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cert-item:hover {
    transform: translateY(-5px);
}

.nav-arrow-circle {
    width: 35px;
    height: 35px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
}

.nav-arrow-circle:hover {
    background: white;
    color: #0d47a1;
}

/* Adjust Carousel Controls position for inner content */
.about-cert-card .carousel {
    padding: 0 40px;
    /* Space for arrows */
    position: relative;
}

.about-cert-card .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 0;
}

.about-cert-card .carousel-indicators .active {
    background-color: white;
}

@media (max-width: 991px) {
    .about-cert-card .carousel {
        padding: 0;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
        /* Hide arrows on small screens, rely on swipe/dots */
    }

    .img-fill-cover {
        min-height: 300px;
    }
}

/* =========================================
   Stats Block
   ========================================= */
.stats-section {
    padding: 60px 0;
    position: relative;
    color: white;
}

.text-white-alpha-90 {
    color: rgba(255, 255, 255, 0.9);
}

.stat-icon-box {
    border: 2px solid white;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.stat-box-v2:hover .stat-icon-box {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 71, 161, 0.8);
    /* Blue Overlay 80% */
    z-index: 1;
}

/**
 * Header Styles for APM Theme
 */

/* Prevent scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
    height: 100vh;
    padding-top: 0;
}

/* Header Container */
.site-header-new {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    transition: all 0.3s ease;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
    transition: padding 0.3s ease;
}

/* Logo Styles */
.header-logo {
    flex-shrink: 0;
}

.header-logo .custom-logo-link {
    display: block;
}

.header-logo .custom-logo {
    max-height: 50px;
    width: auto;
    transition: max-height 0.3s ease;
}

.logo-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #0D47A1;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Navigation Menu */
.header-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 30px;
}

.header-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.header-menu>li {
    position: relative;
}

.header-menu>li>a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.header-menu>li>a:hover {
    color: #0D47A1;
}

.header-menu>li.active>a,
.header-menu>li.current-menu-item>a {
    color: #0D47A1;
}

/* Dropdown Icon */
.dropdown-icon {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.header-menu>li.has-children:hover>a .dropdown-icon {
    transform: rotate(180deg);
}

/* Submenu */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 220px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.header-menu>li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    position: relative;
}

.sub-menu li a {
    display: block;
    padding: 10px 20px 10px 35px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
}

.sub-menu li a::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #3b82f6;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.sub-menu li a:hover {
    background: #F5F5F5;
    color: #0D47A1;
    padding-left: 40px;
}

.sub-menu li a:hover::before {
    left: 22px;
}

/* Nested Submenu */
.sub-menu-child {
    position: absolute;
    top: 0;
    left: 100%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 200px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.2s ease;
}

.sub-menu li:hover>.sub-menu-child {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sub-menu li.has-children>a::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    float: right;
    margin-left: 10px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lang-item:hover {
    background: #F5F5F5;
    color: #0D47A1;
}

.lang-item.active {
    color: #0D47A1;
    background: #E3F2FD;
}

.flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

/* Download Button */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0D47A1;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-download:hover {
    background: #1565C0;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 71, 161, 0.3);
}

.btn-download i {
    font-size: 13px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    position: relative;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile Menu Footer - Hidden on Desktop */
.mobile-menu-footer {
    display: none;
}

/* Mobile Menu Header - Hidden on Desktop */
.mobile-menu-header {
    display: none;
}

/* Mobile Menu Overlay - Hidden on Desktop */
.mobile-menu-overlay {
    display: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .header-wrapper {
        padding: 15px 20px;
    }

    .header-menu>li>a {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
        z-index: 999;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .header-navigation {
        position: fixed;
        top: 0;
        left: -320px;
        bottom: 0;
        width: 320px;
        height: 100%;
        max-height: 100%;
        background: #ffffff;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 0;
        margin: 0;
        overflow: hidden;
        transition: left 0.3s ease;
        z-index: 1001;
        display: flex;
        flex-direction: column;
    }

    .header-navigation.active {
        left: 0;
    }

    /* Mobile Menu Header */
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        background: #ffffff;
        border-bottom: 1px solid #E0E0E0;
        flex-shrink: 0;
        margin: 0;
    }

    .mobile-menu-header .logo-link {
        flex: 1;
    }

    .mobile-menu-header .logo-text {
        font-size: 24px;
    }

    .mobile-menu-header .logo-subtitle {
        font-size: 8px;
    }

    .mobile-menu-close {
        background: transparent;
        border: none;
        font-size: 24px;
        color: #333;
        cursor: pointer;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.2s ease;
    }

    .mobile-menu-close:hover {
        color: #0D47A1;
    }

    .header-menu {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }

    .header-menu>li {
        border-bottom: 1px solid #F5F5F5;
        margin: 0;
    }

    .header-menu>li>a {
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0;
    }

    .sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        background: #F5F5F5 !important;
        display: block !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease-in-out !important;
    }

    .header-menu>li.active>.sub-menu {
        max-height: 500px !important;
    }

    .sub-menu li {
        border-bottom: 1px solid #E0E0E0;
    }

    .sub-menu li:last-child {
        border-bottom: none;
    }

    .sub-menu li a {
        padding: 12px 20px 12px 45px;
        background: transparent;
        position: relative;
    }

    .sub-menu li a::before {
        content: "";
        position: absolute;
        left: 25px;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        background-color: #3b82f6;
        border-radius: 50%;
    }

    .sub-menu li a:hover {
        background: #E8E8E8;
        padding-left: 50px;
    }

    .sub-menu li a:hover::before {
        left: 30px;
    }

    .sub-menu-child {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: #E8E8E8;
    }

    .sub-menu-child li a {
        padding-left: 60px;
    }

    /* Mobile Menu Footer */
    .mobile-menu-footer {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        margin: auto 0 0 0;
        background: #F5F5F5;
        border-top: 1px solid #E0E0E0;
        flex-shrink: 0;
    }

    .mobile-menu-footer .language-switcher {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .mobile-menu-footer .btn-download {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide desktop header actions on mobile */
    .header-wrapper>.header-actions {
        gap: 10px;
    }

    .header-wrapper>.header-actions .gtranslate_wrapper,
    .header-wrapper>.header-actions .btn-download {
        display: none;
    }

    /* Fix header wrapper for mobile */
    .header-wrapper {
        position: relative;
    }
}

@media (max-width: 576px) {
    .header-wrapper {
        padding: 12px 15px;
    }

    .logo-text {
        font-size: 22px;
    }

    .logo-subtitle {
        font-size: 8px;
    }

    .header-navigation {
        width: 280px;
        left: -280px;
    }

    .btn-download {
        padding: 8px 12px;
        font-size: 12px;
    }

    .btn-download i {
        display: none;
    }

    .language-switcher {
        gap: 5px;
    }

    .lang-item {
        padding: 5px 8px;
        font-size: 13px;
    }
}

/* Sticky Header Animation */
.site-header-new.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.site-header-new.scrolled .header-wrapper {
    padding: 10px 40px;
}

.site-header-new.scrolled .header-logo .custom-logo {
    max-height: 45px;
}

@media (max-width: 992px) {
    .site-header-new.scrolled .header-wrapper {
        padding: 10px 20px;
    }
}

/* GTranslate Widget Styling */
.gtranslate_wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gtranslate_wrapper:hover {
    background: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gtranslate_wrapper .glink {
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.gtranslate_wrapper .glink:hover {
    background: #e6f0ff;
}

.gtranslate_wrapper .glink img {
    width: auto;
    height: 24px;
    display: block;
}

.gtranslate_wrapper .gt-current-lang {
    background: #d0e4ff;
}


.cert-img-wrapper {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.cert-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.about-certificates-white-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0.75;
    z-index: 0;
}

.about-certificates-title {
    font-size: 1.5rem;
    text-align: left;
}

/* Stats Block Typography & Icons */
.stat-icon-box {
    min-width: 60px;
    min-height: 60px;
}

.stat-icon-box img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Make scale/white */
}

/* Fallback specifically used slightly different sizes, standardizing them now */
.stat-label-top {
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.1rem;
    line-height: 1.2;
}

.stat-label-bottom {
    font-size: 0.9rem;
}

/**
 * Homepage Styles for APM Theme
 */

/* Global Home Fixes */
.home .entry-header,
.home .page-title,
.home .entry-title {
    display: none !important;
}



/* Product Catalogue & Certificates Section */
.product-certificates-section {
    padding: 60px 0;
    background: #F5F5F5;
}

.product-catalogue-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.catalogue-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.catalogue-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-catalogue-card:hover .catalogue-image img {
    transform: scale(1.05);
}

.catalogue-content {
    padding: 2rem;
    text-align: center;
    border-top: 4px solid #0D47A1;
}

.catalogue-content h2 {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.catalogue-content h3 {
    font-size: 1.125rem;
    color: #0D47A1;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.certificates-card {
    background: #0D47A1;
    color: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    height: 100%;
}

.certificates-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.certificates-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.certificate-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.certificate-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.certificate-list i {
    color: #FF9800;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.certificate-images {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.certificate-images img {
    width: calc(50% - 0.5rem);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.certificates-card .carousel-control-prev,
.certificates-card .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

/* Stats Section */
.stats-section {
    background: #0D47A1;
    padding: 60px 0;
}

.stats-section h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 3rem;
    color: #FF9800;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* Products Section */
.products-section {
    padding: 80px 0;
    position: relative;
    background-color: #ffffff;
    /* Fallback */
}

.white-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    /* Strong white overlay */
    z-index: 1;
    pointer-events: none;
}

.products-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0D47A1;
    margin-bottom: 1rem;
}

.products-section .section-subtitle {
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Tabs Styling matching the mockup */
.products-section .nav-pills .nav-link {
    background: #fff;
    border: 1px solid #a0c4ff;
    color: #555;
    padding: 10px 25px;
    margin: 0 5px 10px;
    /* Margin bottom for mobile wrapping */
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.products-section .nav-pills .nav-link:hover {
    border-color: #0D47A1;
    color: #0D47A1;
    background: #f0f7ff;
}

.products-section .nav-pills .nav-link.active {
    background-color: #0D47A1;
    border-color: #0D47A1;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(13, 71, 161, 0.2);
}

/* Term Description */
.term-description {
    max-width: 900px;
    margin: 0 auto 40px;
    color: #555;
}

/* Swiper Styling */
.productSwiper {
    padding: 60px 0;
    /* Top/Bottom padding for scale effect */
    position: relative;
}

.product-item {
    transition: all 0.4s ease;
    transform-origin: center center;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.product-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 400px;
    /* Limit height */
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

/* Slide Effects */
.productSwiper .swiper-slide {
    transition: all 0.4s ease;
    opacity: 0.4;
    transform: scale(0.8);
}

.productSwiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1.15);
    /* Make active slide bigger */
    z-index: 10;
}

.productSwiper .swiper-slide-active .product-item img {
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
}

/* Swiper Controls */
.productSwiper .swiper-button-prev,
.productSwiper .swiper-button-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #555;
    color: #555;
    transition: all 0.3s ease;
}

.productSwiper .swiper-button-prev:after,
.productSwiper .swiper-button-next:after {
    font-size: 20px;
    font-weight: bold;
}

.productSwiper .swiper-button-prev:hover,
.productSwiper .swiper-button-next:hover {
    background: #0D47A1;
    border-color: #0D47A1;
    color: #fff;
}

.productSwiper .swiper-pagination {
    bottom: 0;
}

.productSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
}

.productSwiper .swiper-pagination-bullet-active {
    background: #0D47A1;
    transform: scale(1.2);
}

/* Action Buttons */
.action-buttons .btn {
    border-radius: 4px;
    padding: 12px 35px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.action-buttons .btn-primary {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.action-buttons .btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.action-buttons .btn-dark {
    background-color: #212121;
    border-color: #212121;
}

.action-buttons .btn-dark:hover {
    background-color: #000;
}

@media (max-width: 768px) {

    /* Mobile Tabs: Single horizontal line, scrollable */
    .products-section .nav-pills {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        /* Space for scrollbar if any */
        justify-content: flex-start;
        /* Align start to allow scrolling from left */
    }

    .products-section .nav-pills .nav-item {
        flex: 0 0 auto;
    }

    .products-section .nav-pills .nav-link {
        white-space: nowrap;
        margin-bottom: 0;
        font-size: 0.8rem;
        padding: 8px 15px;
    }

    /* Hide scrollbar for cleaner look */
    .products-section .nav-pills::-webkit-scrollbar {
        display: none;
    }

    /* Mobile Buttons: Same line, smaller */
    .action-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
        /* Small gap between buttons */
    }

    .action-buttons .btn {
        padding: 10px 15px;
        /* Smaller padding */
        font-size: 0.75rem;
        /* Smaller font */
        width: auto;
        /* Allow auto width or flex grow */
        flex: 1;
        /* Make them equal width if desired, or auto */
        white-space: nowrap;
    }

    /* Override utility margin if strictly same line */
    .action-buttons .btn.me-3 {
        margin-right: 0 !important;
    }
}

/* Modal Customization */
.modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: #0D47A1;
    color: #fff;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-title {
    font-weight: 700;
    color: #fff;
}

.product-carousel .carousel-control-prev {
    left: -25px;
}

.product-carousel .carousel-control-next {
    right: -25px;
}

/* Contact Form Section */
.contact-section {
    padding: 80px 0;
    background-color: #0D47A1;
    /* Fallback Blue */
    position: relative;
    overflow: hidden;
    /* Optional: Add a contour pattern URL here if available in assets, else solid blue */
}

/* Background Pattern Simulation (simple radial gradient for depth) */
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 20%);
    pointer-events: none;
}

.contact-title {
    font-size: 2rem;
    line-height: 1.3;
}

.contact-desc {
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-details .icon-wrap {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* border: 1px solid rgba(255,255,255,0.3); */
    /* border-radius: 50%; */
}

.contact-details .info-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* News Section */
.news-section {
    padding: 60px 0;
    background: #ffffff;
}

.news-card-slider {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* Subtle shadow per image info */
    background: #fff;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card-slider:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.news-thumb {
    height: 220px;
    overflow: hidden;
    background-color: #f1f1f1;
    /* Placeholder bg */
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card-slider:hover .news-thumb img {
    transform: scale(1.05);
}

.news-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 700;
    color: #0D47A1;
}

.news-title a {
    color: inherit;
}

.news-title a:hover {
    color: #0d47a1c4;
}

.news-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
    /* Pushes Read More slightly down if needed */
}

.read-more-link {
    color: #3b82f6;
    /* Light Blue Text */
    border: 1px solid #3b82f6;
    /* Blue Border */
    padding: 8px 20px;
    border-radius: 50px;
    /* Pill shape */
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
    background-color: transparent;
    margin-top: auto;
    width: fit-content;
    /* Ensure it sticks to bottom if flex layout allows */
}

.read-more-link:hover {
    color: #fff !important;
    background-color: #3b82f6 !important;
    /* Filled on hover */
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    /* Slight lift */
}

/* News Swiper Controls */
.newsSwiper {
    padding: 20px 0 60px;
    /* Bottom padding for pagination */
    position: relative;
}

.newsSwiper .swiper-button-prev,
.newsSwiper .swiper-button-next {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    color: #555 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: all 0.3s ease !important;
    --swiper-navigation-size: 18px !important;
}

.newsSwiper .swiper-button-prev:after,
.newsSwiper .swiper-button-next:after {
    font-size: 18px !important;
    font-weight: bold !important;
}

.newsSwiper .swiper-button-prev:hover,
.newsSwiper .swiper-button-next:hover {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Partners Section */
.partners-section {
    padding: 60px 0;
    background: #ffffff;
    position: relative;
    overflow-x: hidden;
}

.partnersSwiper {
    width: 100%;
}

.partnersSwiper .swiper-wrapper {
    transition-timing-function: linear !important;
    /* Critical for continuous marquee */
}

/* Ensure slides flow smoothly */
.partnersSwiper .swiper-slide {
    width: auto !important;
    /* Allow auto width based on content/padding */
}

.partner-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    padding: 0 40px;
    /* Spacing */
}

.partner-logo-img {
    max-height: 50px;
    /* Adjusted based on image showing small logos */
    width: auto;
    max-width: 160px;
    object-fit: contain;
    /* filter: grayscale(100%); */
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo-img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Blur/Gradient Overlays */
.partners-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 250px;
    /* Wide soft fade */
    z-index: 10;
    pointer-events: none;
}

.overlay-left {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0) 100%);
}

.overlay-right {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0) 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .partners-overlay {
        width: 100px;
    }

    .partner-slide {
        padding: 0 15px;
    }

    .partner-logo-img {
        max-height: 40px;
    }
}

.newsSwiper .swiper-button-prev:hover,
.newsSwiper .swiper-button-next:hover {
    border-color: #0D47A1;
    color: #0D47A1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.newsSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    margin: 0 6px !important;
}

.newsSwiper .swiper-pagination-bullet-active {
    background: #0D47A1;
}


/* Form 2 Specific Grid Layout */
.form-2 .mdigi-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
}

/* Full width for Content (5th field) and Button/Messages */
.form-2 .mdigi-field:nth-child(5),
.form-2 .mdigi-submit,
.form-2 .mdigi-form-message {
    grid-column: 1 / -1;
}

/* Hide standard labels for clean look (placeholders used) */
.form-2 .mdigi-field label {
    display: none;
}

/* Style Content Input to look like Textarea (if plugin outputs input type=text) */
.form-2 .mdigi-field:nth-child(5) input {
    height: 120px;
    /* Min height */
}

/* Centered Button */
.form-2 .mdigi-submit {
    justify-self: start;
    width: auto;
    min-width: 150px;
    margin-top: 10px;
    background-color: #3b82f6;
    /* Bright Blue */
    text-transform: uppercase;
    font-weight: 700;
}

.form-2 .mdigi-submit:hover {
    background-color: #2563eb;
}

/* Mobile Responsive for Form 2 */
@media (max-width: 576px) {
    .form-2 .mdigi-form {
        grid-template-columns: 1fr;
    }

    .form-2 .contact-form-card {
        padding: 20px !important;
    }
}

/* Override input styling inside form card to look clean */
.contact-form-card input,
.contact-form-card textarea,
.contact-form-card select {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    border-color: #3b82f6;
    /* Accent blue */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}


.contact-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.contact-info p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #FF9800;
    margin-top: 0.25rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.contact-form-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-form .form-control {
    border: 1px solid #E0E0E0;
    padding: 0.875rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
}

.contact-form .form-control:focus {
    border-color: #0D47A1;
    box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.25);
}

/* News Section */
.news-section {
    padding: 60px 0;
    background: #F5F5F5;
}

.news-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.news-image {
    overflow: hidden;
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.4;
}

.news-content p {
    color: #666;
    margin-bottom: 1rem;
}

.read-more {
    color: #0D47A1;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: #FF9800;
}

/* Partners Section */
.partners-section {
    padding: 60px 0;
    background: #ffffff;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav-pills .nav-link {
        margin: 0.25rem;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    /* Force full gradient on mobile */
    .hero-overlay-gradient {
        background: linear-gradient(180deg, #0d48a1a2 0%, rgba(13, 71, 161, 0.95) 100%);
    }

    .hero-quick-links-wrapper {
        position: relative;
        margin-top: 20px;
        margin-bottom: 20px;
        transform: none;
        bottom: auto;
    }

    .hero-section {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .quick-links-section {
        margin-top: 0;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2rem;
    }

    .certificate-images {
        flex-direction: column;
    }

    .certificate-images img {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Footer Styles */
.site-footer-new {
    background-color: #0d47a1;
    /* Dark Blue */
    color: #ffffff;
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-top {
    padding-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-column-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-info-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-info-list strong {
    font-weight: 600;
}

/* ISO Factory Section */
.footer-iso-section {
    margin-top: 30px;
}

.footer-iso-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.footer-iso-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    border-left: 2px solid #ffffff;
    padding-left: 15px;
    opacity: 0.8;
}

/* Product List in Footer */
.footer-product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-product-list li {
    margin-bottom: 12px;
}

.footer-product-list li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer-product-list li a:before {
    content: "- ";
    margin-right: 8px;
    color: #3b82f6;
    /* Light Blue dash */
    font-weight: bold;
}

.footer-product-list li a:hover {
    color: #3b82f6;
    padding-left: 5px;
}

/* Social Links */
.footer-social-links {
    display: flex;
    gap: 15px;
}

.social-icon-link {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d47a1;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-product-list {
    text-transform: capitalize;
}

/* Background Large Logo */
.footer-bg-logo {
    position: absolute;
    bottom: 0;
    right: 0;
    opacity: 0.15;
    width: auto;
    z-index: 0;
    pointer-events: none;
}

.footer-bg-logo img {
    height: 200px;
    width: auto;
    display: block;
}

/* Footer Bottom Bar */
.footer-bottom {
    background-color: #3b82f6;
    /* Blue bottom bar */
    padding: 15px 0;
    font-size: 0.85rem;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 0;
    text-align: left;
}

.footer-bottom strong {
    font-weight: 700;
}

@media (max-width: 991px) {
    .footer-bg-logo {
        width: 50%;
        opacity: 0.05;
    }
}

/* Simple Slider Block */
.simple-slider-section {
    position: relative;
    width: 100%;
}

.simpleSwiper {
    width: 100%;
    height: 500px;
    /* Chiều cao mặc định cho desktop */
}

@media (max-width: 992px) {
    .simpleSwiper {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .simpleSwiper {
        height: 250px;
    }
}

.simpleSwiper .swiper-slide {
    height: 100%;
}

.simpleSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Custom Pagination Dots */
.simpleSwiper .swiper-pagination {
    bottom: 20px !important;
}

.simpleSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ffffff;
    opacity: 0.8;
    margin: 0 5px !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.simpleSwiper .swiper-pagination-bullet-active {
    background: #3b82f6;
    width: 12px;
    height: 12px;
    opacity: 1;
}

/* Intro Catalogue Block */
.intro-catalogue-section {
    padding: 80px 0;
    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.intro-catalogue-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    /* Overlay trắng mờ */
    z-index: 1;
}

.intro-catalogue-section .container {
    position: relative;
    z-index: 2;
}

.intro-cat-title {
    color: #0d47a1;
    font-size: 2.25rem;
    position: relative;
    padding-bottom: 5px;
}

.intro-cat-text {
    max-width: 90%;
}

.intro-cat-content {
    line-height: 1.8;
    color: #444;
}

.intro-cat-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.intro-cat-image-wrapper {
    max-width: 80%;
}

.intro-cat-img {
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.intro-cat-img:hover {
    transform: translateY(-10px);
}

@media (max-width: 991px) {

    .intro-cat-text,
    .intro-cat-image-wrapper {
        max-width: 100% !important;
    }

    .intro-cat-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 991px) {
    .intro-catalogue-section {
        padding: 50px 0;
    }

    .intro-cat-title {
        font-size: 1.75rem;
    }
}

/* Vision & Mission Block */
.vision-mission-section {
    background-color: #ffffff;
}

.vm-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.vm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.vm-icon img {
    filter: brightness(0) invert(1);
    /* Đảm bảo icon màu trắng */
    object-fit: contain;
}

.vm-title {
    font-size: 1.5rem;
}

.vm-desc p {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

/* Colors for the 3 boxes */
.bg-vm-1 {
    background-color: #1a56db;
    /* Xanh trung bình */
}

.bg-vm-2 {
    background-color: #0b2e69;
    /* Xanh đậm */
}

.bg-vm-3 {
    background-color: #1a56db;
    /* Xanh trung bình */
}

@media (max-width: 768px) {
    .vm-card {
        padding: 30px 20px !important;
    }
}

/* Factory Slider Block */
.factory-slider-section {
    padding: 60px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.factory-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.factory-swiper-container {
    padding: 20px 0;
    position: relative;
    z-index: 2;
}

.factorySwiper {
    width: 100%;
    overflow: visible !important;
}

.factorySwiper .swiper-slide {
    width: 40% !important;
    /* Thu nhỏ chiều ngang slide */
    transition: all 0.7s ease;
    opacity: 0.3;
    transform: scale(0.65);
    padding: 0 15px;
    /* Tạo gap ổn định */
    transform-origin: center center;
}

.factorySwiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    /* Slide chính giữa giữ scale chuẩn để Swiper căn tâm tốt nhất */
    z-index: 10;
}

.fs-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
}

.fs-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fs-section-title {
    font-size: 2.25rem;
    letter-spacing: 1px;
}

@media (max-width: 991px) {
    .factorySwiper .swiper-slide {
        width: 80%;
    }

    .factory-slider-section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .factory-swiper-container {
        padding: 20px 0;
    }

    .fs-section-title {
        font-size: 1.5rem;
    }

    .factorySwiper {
        overflow: hidden !important;
        /* Không cho tràn ảnh sang 2 bên trên mobile */
    }

    .factorySwiper .swiper-slide {
        width: 100% !important;
        transform: scale(1) !important;
        opacity: 1 !important;
        padding: 0 !important;
    }
}

/* Contact Map Block */
.contact-map-info-card {
    background-color: #3b82f6;
    /* Xanh chủ đạo slider/dots */
    background-image: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.cm-heading {
    font-size: 1.75rem;
    letter-spacing: 0.5px;
}

.cm-icon-box {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cm-icon-box i {
    font-size: 0.9rem;
}

.contact-map-img {
    max-height: 600px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

@media (max-width: 991px) {
    .cm-heading {
        font-size: 1.4rem;
    }

    .contact-map-info-card {
        padding: 30px 20px !important;
    }
}

/* Contact Page Block */
.bg-light-blue-texture {
    background-color: #f8fbff;
    background-image: radial-gradient(#d1e5ff 0.5px, transparent 0.5px), radial-gradient(#d1e5ff 0.5px, #f8fbff 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.cp-top-half {
    position: relative;
    padding-bottom: 120px !important;
}

.cp-cards-wrapper {
    margin-top: -120px;
    position: relative;
    z-index: 10;
}

.cp-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: #3b82f6;
}

.cp-card-icon {
    width: 45px;
    height: 45px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cp-form-wrapper {
    background: transparent;
}

/* Style cho mdigi form */
.cp-form-wrapper form {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.cp-form-wrapper form>p,
.cp-form-wrapper form>div {
    width: 50%;
    padding: 0 10px;
    margin-bottom: 20px;
}

/* Textarea (Nội dung) và Nút gửi chiếm 100% */
.cp-form-wrapper form>p:nth-child(n+5),
.cp-form-wrapper form>div:nth-child(n+5) {
    width: 100%;
}

.cp-form-wrapper form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #314467;
    padding-left: 5px;
}

.cp-form-wrapper form label span {
    color: #ff5e9d;
    /* Màu hồng cho dấu sao */
}

.cp-form-wrapper form input,
.cp-form-wrapper form textarea {
    width: 100%;
    border-radius: 30px !important;
    padding: 12px 25px !important;
    border: 1px solid #e5e7eb !important;
    background-color: #fff !important;
    transition: border-color 0.3s ease;
}

.cp-form-wrapper form input:focus,
.cp-form-wrapper form textarea:focus {
    border-color: #3b82f6 !important;
    outline: none;
}

.cp-form-wrapper form button[type="submit"] {
    width: 100%;
    border-radius: 30px !important;
    padding: 15px !important;
    background: #33b8ff !important;
    /* Màu xanh nước biển sáng */
    border: none !important;
    color: #fff !important;
    font-weight: bold !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cp-form-wrapper form button[type="submit"]:hover {
    background: #0096e6 !important;
    box-shadow: 0 5px 15px rgba(0, 150, 230, 0.3);
}

@media (max-width: 991px) {
    .cp-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {

    .cp-form-wrapper form>p,
    .cp-form-wrapper form>div {
        width: 100% !important;
    }
}

/* Google Map Block */
.google-map-section {
    margin: -50px;
    position: relative;
    z-index: 5;
}

.google-map-container iframe {
    display: block;
}

/* Breadcrumb Block */
.breadcrumb-block-wrapper .breadcrumb {
    border: none;
    font-size: 0.95rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    color: #cbd5e0;
}

/* Project Grid Block */
.project-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.project-thumbnail {
    transition: transform 0.6s ease;
}

.project-card:hover .project-thumbnail {
    transform: scale(1.1);
}

.border-start-blue {
    border-left: 4px solid #3b82f6;
    padding-left: 20px !important;
}

.project-title a {
    color: #1a202c;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-title a:hover {
    color: #3b82f6;
}

#load-more-projects {
    background-color: #3b82f6;
    border: none;
    transition: all 0.3s ease;
}

#load-more-projects:hover {
    background-color: #2563eb;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

#load-more-projects.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Taxonomy Product Styles */
.tax-title {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.tax-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #3b82f6;
    border-radius: 2px;
}

.tax-description {
    color: #4B5563;
    line-height: 1.7;
}

.tax-thumb {
    transition: transform 0.5s ease;
}

.tax-thumb:hover {
    transform: scale(1.02);
}

.bg-light-section {
    background-color: #F9FAFB;
}

.product-item-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.product-img-main {
    transition: transform 0.5s ease;
}

.product-item-card:hover .product-img-main {
    transform: scale(1.08);
}

.product-name a {
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #1E40AF !important;
}

#load-more-products {
    transition: all 0.3s ease;
}

#load-more-products:hover {
    background-color: #3b82f6;
    color: #fff;
}

#load-more-products.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 991px) {
    .tax-title {
        font-size: 2rem;
    }
}

.tax-children-list .btn-outline-primary {
    border-color: #e5e7eb;
    color: #4b5563;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tax-children-list .btn-outline-primary:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    transform: translateY(-2px);
}

.taxonomy-header {
    border-bottom: 1px solid #e5e7eb;
}

#quoteModal .modal-header {
    background: #0d47a1 !important;
    /* Dark blue primary */
}

#quoteModal .modal-content {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Single Product Detail Page */
.productMainSlider {
    height: 500px;
}

.productMainSlider .swiper-slide img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.productThumbSlider .swiper-slide {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.productThumbSlider .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #3b82f6 !important;
}

.product-info-content .product-title {
    font-size: 2.2rem;
    line-height: 1.3;
}

.product-short-description {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.8;
}

.btn-call-now {
    background: #3b82f6;
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-call-now:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    color: #fff;
}

.product-actions .btn {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cursor-pointer {
    cursor: pointer;
}

/* Custom Swiper Navigation Buttons */
.productMainSlider .swiper-button-next,
.productMainSlider .swiper-button-prev {
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.productMainSlider .swiper-button-next:after,
.productMainSlider .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
    color: #4b5563;
}

.productMainSlider .swiper-button-next:hover,
.productMainSlider .swiper-button-prev:hover {
    background: #3b82f6;
}

.productMainSlider .swiper-button-next:hover:after,
.productMainSlider .swiper-button-prev:hover:after {
    color: white;
}


@media (max-width: 991px) {
    .productMainSlider {
        height: 400px;
    }

    .product-info-content .product-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 575px) {
    .productMainSlider {
        height: 300px;
    }

    .btn-call-now {
        min-width: unset;
        flex: 1;
        padding: 10px 15px !important;
        font-size: 0.85rem;
    }

    .product-actions .btn {
        flex: 1;
        padding: 10px 15px !important;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .product-actions {
        display: flex;
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }
}

/* Product Tabs */
.product-tabs-wrapper {
    background: #fff;
    margin-top: 0.5rem;
}

.product-tabs-wrapper .nav-tabs {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb !important;
}

.product-tabs-wrapper .nav-link {
    color: #6b7280;
    border-radius: 0;
    transition: all 0.3s ease;
}

.product-tabs-wrapper .nav-link.active {
    background: #fff !important;
    color: #0d47a1 !important;
    border-right: 1px solid #e5e7eb !important;
    border-left: 1px solid #e5e7eb !important;
    position: relative;
    z-index: 1;
}

.product-tabs-wrapper .nav-link.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #3b82f6;
}

.product-tabs-wrapper .nav-link:hover:not(.active) {
    background: #e5e7eb;
    color: #374151;
}

/* Related Project Cards */
.transition-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transition-up:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

.transition-scale {
    transition: transform 0.5s ease;
}

.project-thumb:hover .transition-scale {
    transform: scale(1.1);
}

.hover-primary:hover {
    color: #3b82f6 !important;
}

@media (max-width: 767px) {
    .product-tabs-wrapper .nav-tabs {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE 10+ */
    }

    .product-tabs-wrapper .nav-tabs::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    .product-tabs-wrapper .nav-link {
        font-size: 0.8rem;
        padding: 12px 20px !important;
        white-space: nowrap;
        flex: 0 0 auto;
        border-bottom: 3px solid transparent !important;
    }

    .product-tabs-wrapper .nav-link.active::after {
        display: none;
        /* Bỏ border top trên mobile để nhìn thoáng hơn */
    }

    .product-tabs-wrapper .nav-link.active {
        border-bottom: 3px solid #3b82f6 !important;
    }
}

/* Related Products List Style */
.related-product-item {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 1.5rem;
}

.related-product-item:last-child {
    border-bottom: none;
}

.rp-thumb-box {
    transition: all 0.4s ease;
}

.related-product-item:hover .rp-thumb-box {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08) !important;
}

.rp-item-title a {
    transition: color 0.3s ease;
}

.hover-dark:hover {
    color: #1a202c !important;
}

.rp-item-link {
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.rp-item-link:hover {
    color: #0d47a1 !important;
    border-color: #0d47a1;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rp-info {
    max-width: 600px;
    /* Giới hạn chiều ngang phần thông tin */
}

.rp-action .btn {
    min-width: 250px;
    /* Nút dài hơn nữa */
    padding-left: 30px !important;
    padding-right: 30px !important;
    white-space: nowrap;
}

@media (max-width: 1199px) {
    .rp-info {
        max-width: 450px;
    }
}

@media (max-width: 767px) {
    .rp-info {
        max-width: 100%;
    }

    .related-product-item {
        flex-direction: column;
        align-items: flex-start !important;
        text-align: left;
    }

    .rp-thumb-box {
        width: 100% !important;
        height: 250px !important;
    }

    .rp-action {
        width: 100%;
        margin-top: 1rem;
    }

    .rp-action .btn {
        width: 100%;
    }
}

/* Single Project Page */
.project-meta-top span {
    color: #718096;
    font-weight: 500;
}

.project-featured-image img {
    height: 500px;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .project-featured-image img {
        height: 250px;
    }

    .project-main-section {
        padding-top: 0 !important;
    }

    .project-main-section .row.g-5 {
        --bs-gutter-y: 2rem;
    }
}

.project-post-title {
    color: #1a365d;
    line-height: 1.2;
    margin-top: 0.5rem;
}

.nav-box {
    border-color: #e2e8f0 !important;
    transition: all 0.3s ease;
}

.nav-box:hover {
    border-color: #3b82f6 !important;
    background: #f8fbff;
}

.nav-box:hover .nav-title {
    color: #3b82f6 !important;
}

.sidebar-widget-title {
    position: relative;
    padding-bottom: 12px;
}

.sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #3b82f6;
}

.rp-sidebar-info .rp-sidebar-title a {
    transition: color 0.3s ease;
}

.rp-sidebar-info .rp-sidebar-title a:hover {
    color: #3b82f6 !important;
}

/* Sidebar Search Tweak */
.sidebar-search-form {
    height: 45px;
}

.sidebar-search-form input::placeholder {
    font-size: 0.85rem;
    color: #a0aec0;
}

/* Recent Projects Sidebar Redesign */
.sidebar-recent-list {
    display: flex;
    flex-direction: column;
}

.sidebar-rp-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.sidebar-rp-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rp-sidebar-img {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.rp-sidebar-img img {
    transition: transform 0.5s ease;
}

.sidebar-rp-item:hover .rp-sidebar-img img {
    transform: scale(1.1);
}

.rp-sidebar-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rp-sidebar-title a {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #2d3748 !important;
    font-weight: 700;
    transition: color 0.3s ease;
}

.sidebar-rp-item:hover .rp-sidebar-title a {
    color: #3b82f6 !important;
}

.rp-sidebar-meta {
    font-size: 0.7rem !important;
    color: #718096 !important;
    margin-top: 2px;
}

.rp-sidebar-meta span {
    display: inline-block;
}

.rp-sidebar-info .rp-sidebar-link {
    font-size: 0.75rem;
    margin-top: 4px;
    letter-spacing: 0.5px;
    opacity: 0.8;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.rp-sidebar-info .rp-sidebar-link:hover {
    opacity: 1;
    text-decoration: underline !important;
}

.sidebar-cta-box {
    background: #4a86e8 !important;
}

.sidebar-cta-box .sidebar-form-inner label {
    display: none !important;
}

.sidebar-cta-box .sidebar-form-inner input:not([type="submit"]),
.sidebar-cta-box .sidebar-form-inner textarea {
    background: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
}

.sidebar-cta-box .sidebar-form-inner input[type="submit"],
.sidebar-cta-box .sidebar-form-inner button.wpcf7-submit {
    background: #ed1c24 !important;
    /* Red button */
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 10px 40px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    display: block !important;
    margin: 15px auto 0 !important;
    width: fit-content !important;
    transition: transform 0.3s ease;
}

.sidebar-cta-box .sidebar-form-inner input[type="submit"]:hover {
    transform: scale(1.05);
    background: #c1121c !important;
}

.project-post-nav .hover-primary:hover {
    color: #3b82f6 !important;
}

@media (max-width: 991px) {
    .project-post-title {
        font-size: 2rem !important;
    }

    .project-sidebar-wrapper {
        margin-top: 3rem;
    }
}