/* Custom CSS for IFMS Punjab - Crafto Style Redesign */

:root {
    --primary-font: 'Poppins', sans-serif;
    --secondary-font: 'Inter', sans-serif;
    --regal-blue: #244396;
    /* Brand Blue */
    --theme-yellow: #fcc02a;
    /* Brand Yellow */
    --amethyst: #9055A2;
    --green: #47B39C;
    --overlay-color: rgba(22, 35, 63, 0.65);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--secondary-font);
    overflow-x: hidden;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99999;
    width: 45px;
    height: 45px;
    background-color: #0e58c2;
    /* Blue background */
    color: #ffc107 !important;
    /* Yellow icon */
    border-radius: 5px;
    font-size: 1.5rem;
}

.back-to-top:hover {
    background-color: #e5ac00;
    /* Yellow background */
    color: #172b6b !important;
    /* Blue icon */
    transform: translateY(-3px);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--primary-font);
}

/* Header Styles */
#header {
    transition: all 0.4s ease;
    background: transparent;
}

#header.header-scrolled {
    background: var(--regal-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.navbar-custom {
    transition: all 0.3s ease;
}

.navbar-custom .nav-link {
    transition: 0.3s;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--theme-yellow) !important;
}

.theme-toggle {
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    background-color: var(--regal-blue);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transform: scale(1.05);
    /* Slight scale for potential parallax or standard breathing room */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: var(--overlay-color); */
    background: rgb(2 6 14 / 78%);
    z-index: 2;
}

/* Decorative Shapes mimicking Crafto */
.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--regal-blue);
    z-index: 3;
    opacity: 0.3;
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    background: #13152980;
    animation: pulseShape 10s ease-in-out infinite alternate;
}

.shape-2 {
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    background: #111e3b69;
    animation: pulseShape 15s ease-in-out infinite alternate-reverse;
}

@keyframes pulseShape {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
}

.hero-content {
    z-index: 10;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero-heading {
    font-size: 2.8rem;
    letter-spacing: 2px;
    line-height: 1.1;
    font-weight: 600 !important;
}

.text-shadow {
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.4);
}

/* Custom Badge */
.badge-custom {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 25px;
}

/* Gradient Button */
.btn-primary-gradient {
    background: linear-gradient(to right, #004893, #3f45ff);
    background-size: 200% auto;
    border: none;
    color: white;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary-gradient:hover {
    background-position: 100% 50%;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.btn-primary-gradient:hover .arrow-circle {
    transform: translateX(3px);
}

i.bi.bi-arrow-right.fs-5 {
    color: #0048eb !important;
    font-weight: 600;
}

.arrow-circle {
    width: 40px;
    height: 40px;
    color: #4010a3 !important;
    transition: transform 0.3s ease;
}

/* Carousel Controls */
.custom-carousel-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.custom-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-indicators {
    margin-bottom: 30px;
    z-index: 15;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: #fff;
    transform: scale(1.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-heading {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .custom-carousel-btn {
        display: none;
    }

    .shape-1,
    .shape-2 {
        display: none;
    }
}

/* Featured Services Section (U-Design Style) */
#featured-services {
    padding-bottom: 5rem;
}

#featured-services .container-fluid {
    z-index: 20;
    background: #e6ecff;
}

@keyframes floatCard {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (min-width: 992px) {
    #featured-services .col:nth-child(even) {
        margin-top: 35px;
    }

    #featured-services .col:nth-child(even) .flip-card-container>a {
        animation-delay: 2s;
        /* stagger the float animation */
    }
}

@media (min-width: 1200px) {
    .flip-card-inner {
        max-width: 100%;
    }
}



.flip-card-container {
    perspective: 1000px;
    height: 100%;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    max-width: 350px;
    margin: 0 auto;
    max-height: 262px;
}

.flip-card-container:hover .flip-card-inner {
    /* transform: rotateY(180deg); */
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-card-front {
    position: relative;
    /* Front dictates the height */
    z-index: 2;
}

.flip-card-back {
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.flip-card-container:hover .flip-card-back {
    /* opacity: 1; disabled to keep front styling */
}


.service-card {
    border: none !important;
    border-radius: 8px !important;
    padding: 1.5rem 1rem !important;
    background: #07065c;
    /* background: linear-gradient(0deg, rgba(7, 6, 92, 1) 0%, rgba(40, 54, 158, 1) 35%, rgba(117, 232, 255, 1) 100%); */
    background: linear-gradient(210deg, rgb(43 55 118) 0%, rgba(40, 54, 158, 1) 35%, rgb(47 148 158) 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    animation: floatCard 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.flip-card-container:hover .service-card {
    transform: scale(1.04);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: none !important;
}

.flip-card-container:hover .flip-card-front h4,
.flip-card-container:hover .flip-card-front .icon-box i {
    color: var(--theme-yellow) !important;
}

/* Ensure animation only applies to a container that doesn't use transform for hover */
.flip-card-container>a {
    display: block;
    height: 100%;
    animation: floatCard 4s ease-in-out infinite;
}

.service-card,
.flip-card-inner {
    animation: none;
}

/* Front Face Styles */
.flip-card-front .icon-box i {
    font-size: 3.5rem;
    line-height: 1;
    color: var(--theme-yellow);
    display: inline-block;
    margin-bottom: 10px;
}

.flip-card-front h4 {
    color: var(--theme-yellow);
    font-size: 1.25rem;
    font-weight: 700 !important;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.flip-card-front .contact-info i {
    color: #ffffff !important;
    background-color: rgb(4 1 28 / 19%);
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.1rem !important;
}

.flip-card-front .contact-info .name-text {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
}

.flip-card-front .contact-info .number-text {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
}

/* Back Face Styles (Hover State effectively) */
.flip-card-back {
    background: var(--regal-blue);
    border-color: var(--regal-blue);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.flip-card-back .icon-box i {
    font-size: 3.5rem;
    line-height: 1;
    color: #ffffff;
    display: block;
    margin-bottom: 10px;
}

.flip-card-back h4 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600 !important;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    position: relative;
    border-bottom: none;
}

.flip-card-back h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
}

.flip-card-back .contact-info i,
.flip-card-back .contact-info .name-text,
.flip-card-back .contact-info .number-text {
    color: #ffffff !important;
}

#featured-services a.text-decoration-none {
    color: inherit;
    display: block;
    height: 100%;
}

.lead {
    font-size: 1.0rem;
    font-weight: 300;
    max-width: 438px;
    margin: auto;
}

.text-dark {
    color: white !important;
    position: relative;
    left: 0px;
}

/* About Us Section Styles */
.about-section {
    background-color: #ffffff;
    font-family: var(--secondary-font);
}

.about-img-wrapper {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.tag-badge {
    background-color: #eef2ff;
    color: #0d6efd;
    /* Primary blue */
}

.about-heading {
    color: #244396 !important;
}

/* Steps Box */
.steps-container-wrapper {
    margin-top: 0;
}

@media (min-width: 992px) {
    .steps-container-wrapper {
        /* margin-top: -100px; */
        /* Overlap effect on desktop */
    }
}

.steps-box {
    background-color: transparent;
}

.step-icon-wrapper {
    position: relative;
    z-index: 2;
    display: inline-block;
    background: #f3f6f9;
    /* Match steps-box bg to mask the line behind it */
    border-radius: 50px;
    padding: 5px;
    /* space between circle and line */
}

.step-icon {
    width: 60px;
    height: 60px;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.step-item:hover .step-icon {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 15px rgba(252, 192, 42, 0.4);
    /* subtle yellow shadow on hover */
    background-color: #0f172a !important;
    /* switch to dark regal blue on hover */
}

/* ==================================================
   Tutorials Slider Section
   ================================================== */

.tutorials-section {
    background-color: #161c2d;
    /* Match reference exact dark blue */
    position: relative;
    overflow: hidden;
    position: relative;
    top: 1px;
}

/* Halftone dotted circle pattern behind header text */
.tutorials-section::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 20%;
    width: 600px;
    height: 600px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 3px, transparent 3px);
    background-size: 24px 24px;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.tutorials-section>.container-fluid {
    position: relative;
    z-index: 1;
}

.tutorials-badge {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fcc02a;
    /* Brand yellow */
}

/* Custom Swiper Navigation Buttons */
.swiper-custom-nav .swiper-btn-prev,
.swiper-custom-nav .swiper-btn-next {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    cursor: pointer;
}

.swiper-custom-nav .swiper-btn-prev:hover,
.swiper-custom-nav .swiper-btn-next:hover {
    background-color: #fcc02a;
    border-color: #fcc02a;
    color: #000;
}

/* Swiper Carousel */
.tutorialsSwiper {
    padding-bottom: 2rem;
}

/* Tutorial Cards */
.tutorial-card {
    height: 305px !important;
    /* Increased height by 10% more */
    background-color: #1a2232;
    cursor: pointer;
}

.tutorial-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.1) 100%);
}

.tutorial-subtitle {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 4px;
    margin-bottom: 20px !important;
}

.tutorial-icon {
    transition: all 0.3s ease;
    opacity: 0.8;
}

/* Hover Effects matching CraftoHTML */
.tutorial-card:hover .tutorial-img-wrapper img {
    transform: scale(1.1);
}

.tutorial-card:hover .tutorial-overlay {
    background: rgba(31, 55, 190, 0.493);
    /* Deep rich blue overlay on hover */
}

.tutorial-text-group {
    transform: translateY(15px);
}

.tutorial-card:hover .tutorial-text-group {
    transform: translateY(0);
}

.tutorial-card:hover .tutorial-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2) !important;
}

/* Dotted Line connecting steps */
.step-connector-line {
    position: absolute;
    top: 45px;
    /* Roughly aligned with center of step-number */
    left: 10%;
    width: 80%;
    height: 0;
    border-top: 2px dashed #dee2e6;
    z-index: 1;
}

/* User Manuals Section */
.user-manuals-section {
    background-color: #f8f9fa;
}

.manuals-list::-webkit-scrollbar {
    width: 6px;
}

.manuals-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.manuals-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.manuals-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.manual-item:hover {
    background-color: #ffffff;
    padding-left: 10px !important;
    border-left: 3px solid #172b6b;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.manual-item:hover .manual-icon i {
    color: #172b6b;
    transform: translateX(3px);
    transition: all 0.3s ease;
}

/* Footer Section */
.footer-section {
    background-color: #172b6b;
    font-family: var(--secondary-font);
    position: relative;
    margin-top: -1px;
}

.footer-heading {
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 45px;
    height: 2px;
    background-color: #ffc107;
}

.footer-links a,
.footer-socials a {
    transition: all 0.3s ease;
    font-size: 13px !important;
    font-weight: 400 !important;
}

/* Adjust contact info text size and weight */
.footer-section .list-unstyled.text-white.opacity-75 li {
    font-size: 13px !important;
    font-weight: 400 !important;
}

.footer-links a:hover,
.footer-socials a:hover {
    color: #ffc107 !important;
    opacity: 1 !important;
    transform: translateX(5px);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: white;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
}

.newsletter-form .btn-warning {
    background-color: #ffc107;
    color: #000;
    border: none;
}

.newsletter-form .btn-warning:hover {
    background-color: #ffcd39;
    transform: scale(1.02);
}

/* Global utility for transitions */
.transition-all {
    transition: all 0.3s ease;
}

.step-heading {
    color: #0f172a !important;
}

h5.mb-1.fw-semibold {
    color: #0f172a;
}

/* Scroll Animation Visibility */
.animate-on-scroll {
    visibility: hidden;
}

.animate-on-scroll.animate__animated {
    visibility: visible;
}

/* --- HOVER FIXES --- */
.flip-card-back {
    display: none !important;
}

/* .flip-card-container:hover .flip-card-front.service-card {
    border: 2px solid #1f50dff5 !important;
} */

.flip-card-container:hover .flip-card-front h4 {
    color: #ffc107 !important;
    transition: color 0.3s ease;
}

.flip-card-container:hover .flip-card-front .icon-box i {
    background: linear-gradient(135deg, #ffc107 0%, #fcc02a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.flip-card-front.service-card {
    transition: all 0.3s ease;
}

.flip-card-front h4,
.flip-card-front .icon-box i {
    transition: all 0.3s ease;
}

/* -------------------- */


/* --- DARK MODE THEME OVERRIDES --- */
[data-bs-theme="dark"] body {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .about-section,
[data-bs-theme="dark"] .instructions-section {
    background-color: #121212 !important;
}

[data-bs-theme="dark"] .user-manuals-section {
    background-color: #1a1a1a !important;
}

/* Cards */
[data-bs-theme="dark"] .flip-card-front.service-card {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
}

[data-bs-theme="dark"] .flip-card-front.service-card:hover {
    box-shadow: 0px 1px 7px 7px #000000;
}

[data-bs-theme="dark"] .manual-item:hover {
    background-color: #15161a;
}

[data-bs-theme="dark"] i.bi.bi-download.fs-5 {
    color: white !important;
}

[data-bs-theme="dark"] .flip-card-front h4,
[data-bs-theme="dark"] .flip-card-front .contact-info .name-text,
[data-bs-theme="dark"] .flip-card-front .contact-info .number-text {
    color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .flip-card-front .icon-box i {
    color: #6c81ab !important;
}

[data-bs-theme="dark"] .flip-card-front .contact-info i {
    background-color: #17233b8f !important;
    color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .flip-card-front .contact-info {
    /* background-color: #1e1e1e !important; */
}

/* Hover fixes for cards in dark mode */
[data-bs-theme="dark"] .flip-card-container:hover .flip-card-front.service-card {
    border-color: #64b5f6 !important;
}

/* Headings */
[data-bs-theme="dark"] .about-heading,
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .text-black,
[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .text-muted {
    color: #b0b0b0 !important;
}

/* About Us Section specifics */
[data-bs-theme="dark"] .steps-box {
    background-color: transparent !important;
}

[data-bs-theme="dark"] .step-icon-wrapper {
    background-color: #1e1e1e !important;
}

[data-bs-theme="dark"] .step-connector-line {
    border-top-color: #444 !important;
}

/* List Groups (User Manuals / Instructions) */
[data-bs-theme="dark"] .list-group-item {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}

[data-bs-theme="dark"] .list-group-item:hover {
    background-color: #2a2a2a !important;
}

[data-bs-theme="dark"] .list-group-item strong {
    color: #ffffff !important;
}

/* Wave Separators Fixes & Refinements */
.tutorials-top-wave-container,
.tutorials-bottom-wave-container,
.footer-wave-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.tutorials-top-wave-container {
    background-color: #ffffff;
    margin-bottom: -1px;
}

.tutorials-bottom-wave-container {
    background-color: #161c2d;
    margin-top: -1px;
}

.footer-wave-container {
    background-color: #ffffff;
    margin-top: -1px;
}

/* Dark Mode Overrides for Wave Containers */
[data-bs-theme="dark"] .tutorials-top-wave-container {
    background-color: #121212 !important;
}

[data-bs-theme="dark"] .tutorials-bottom-wave-container {
    background-color: #15161a !important;
}

[data-bs-theme="dark"] .footer-wave-container {
    background-color: #1a1a1a !important;
}

[data-bs-theme="dark"] .wave-manuals {
    fill: #1a1a1a !important;
}

/* Footer Bottom Strip Text */
[data-bs-theme="dark"] .container-fluid[style*="background-color: #ffc107"] p.text-black {
    color: #000 !important;
    /* Keep yellow strip text dark */
}

[data-bs-theme="dark"] .container-fluid[style*="background-color: #ffc107"] strong.text-black {
    color: #000 !important;
    /* Keep yellow strip text dark */
}

/* Modal Fixes */
[data-bs-theme="dark"] .modal-content {
    background-color: #1e1e1e !important;
}

/* -------------------------------- */


/* --- USER REQUESTED DARK MODE REFINEMENTS --- */
[data-bs-theme="dark"] #featured-services .container-fluid {
    z-index: 20;
    background: #070708 !important;
}

[data-bs-theme="dark"] #header.header-scrolled {
    background: #0d1321;
}

[data-bs-theme="dark"] .flip-card-front.service-card {
    border: none !important;
    background-color: #0d1321 !important;
    /* Slightly darker to contrast with #070708 */
}

[data-bs-theme="dark"] .flip-card-container:hover .flip-card-front.service-card {
    border: none !important;
}

[data-bs-theme="dark"] .flip-card-front h4 {
    border-bottom: 1px solid #2c323f !important;
    color: #e0e0e0 !important;
    /* Ignore the user's color: #222 which is too dark */
}

[data-bs-theme="dark"] .footer-section {
    background-color: #070708 !important;
}

/* Tutorials Section matches Dark Theme */
[data-bs-theme="dark"] .tutorials-section {
    background-color: #15161a !important;
}

/* SVG Path Fill Fixes for Dark Mode */
[data-bs-theme="dark"] svg path[fill="#161c2d"] {
    fill: #15161a !important;
}

[data-bs-theme="dark"] svg path[fill="#172b6b"] {
    fill: #070708 !important;
}

[data-bs-theme="dark"] .service-card {
    background: linear-gradient(225deg, rgb(32 38 65) 0%, rgb(32 34 51) 35%, rgb(1 1 1) 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* ------------------------------------------- */

i.bi.bi-download.fs-5 {
    color: #0d6efd;
}

/* Mobile View Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 80vh !important;
        min-height: 400px !important;
    }

    .font-resize-controls {
        display: none !important;
    }

    .service-card {
        padding: 1.5rem 1rem !important;
    }

    .flip-card-front .icon-box i {
        font-size: 2.5rem !important;
        margin-bottom: 10px !important;
    }

    .flip-card-front h4 {
        margin-bottom: 1rem !important;
        padding-bottom: 1rem !important;
        font-size: 1.1rem !important;
    }

    /* Images in About, User Manuals, Instructions */
    .about-img-wrapper img,
    #facts img,
    #instructions img {
        min-height: 250px !important;
        max-height: 250px !important;
        height: 250px !important;
    }

    /* Newsletter Footer Mobile */
    .newsletter-form {
        display: flex;
        flex-direction: column;
    }

    .newsletter-form input {
        padding-right: 1.5rem !important;
        margin-bottom: 15px;
    }

    .newsletter-form button {
        position: relative !important;
        width: 100%;
        margin: 0 !important;
        min-height: 55px;
    }

    .col-lg-3.col-md-6.d-flex.align-items-center.justify-content-center.justify-content-lg-start {
        max-width: 33% !important;
    }

    .back-to-top {
        bottom: 60px !important;
    }
}