ui changes

This commit is contained in:
2026-05-11 19:37:21 +05:30
parent 70a350c0e8
commit 127eb20344
4 changed files with 260 additions and 8 deletions

View File

@@ -14,6 +14,172 @@ $depth = '';
<?php include 'includes/sections/hero/howits-hero-section.php'; ?>
<style>
/* Global page fix to prevent horizontal scroll */
html, body {
overflow-x: hidden !important;
width: 100% !important;
position: relative !important;
}
:root {
--dm-red: #c01227;
--dm-dark: #0a0a0a;
--dm-gray: #1a1a1a;
--dm-text-gray: #999;
}
.dm-steps {
background-color: var(--dm-dark);
padding: 100px 0 !important;
overflow-x: hidden !important; /* Prevent any grid overflow */
}
.dm-container {
max-width: 1440px !important;
margin: 0 auto !important;
padding: 0 40px !important;
width: 100% !important;
box-sizing: border-box !important;
}
.dm-steps__header {
text-align: center;
margin-bottom: 60px;
}
.dm-steps__header h2 {
color: #fff;
font-size: 48px;
font-weight: 700;
margin-top: 10px;
}
.dm-steps__grid {
display: grid !important;
grid-template-columns: repeat(3, 1fr) !important;
gap: 30px !important;
overflow: hidden !important; /* Force no horizontal overflow */
width: 100% !important;
cursor: default !important; /* Kill grab cursor */
touch-action: auto !important;
-webkit-user-drag: none !important;
}
.dm-steps__grid * {
cursor: auto !important;
}
.dm-step-card {
background: #141414 !important;
border: 1px solid rgba(255, 255, 255, 0.05) !important;
border-radius: 20px !important;
overflow: hidden !important;
transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
position: relative;
display: flex;
flex-direction: column;
height: 100%;
}
.dm-step-card:hover {
transform: translateY(-10px) !important;
border-color: var(--dm-red) !important;
box-shadow: 0 20px 40px rgba(192, 18, 39, 0.15) !important;
}
.dm-step-card__image {
width: 100%;
height: 240px;
overflow: hidden;
position: relative;
}
.dm-step-card__image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.6s ease;
}
.dm-step-card:hover .dm-step-card__image img {
transform: scale(1.1);
}
.dm-step-card__body {
padding: 40px !important;
flex-grow: 1;
display: flex;
flex-direction: column;
}
.dm-step-card__num {
color: var(--dm-red);
font-family: 'Space Grotesk', sans-serif;
font-weight: 600;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 2px;
margin-bottom: 12px;
}
.dm-step-card__title {
color: #fff;
font-size: 28px;
font-weight: 700;
margin-bottom: 20px;
line-height: 1.2;
}
.dm-step-card__text {
color: var(--dm-text-gray);
font-size: 16px;
line-height: 1.6;
margin-bottom: 25px;
}
.dm-step-card__list {
list-style: none !important;
padding: 0 !important;
margin: 0 !important;
margin-top: auto !important;
}
.dm-step-card__list li {
color: #fff;
font-size: 15px;
margin-bottom: 12px;
padding-left: 25px;
position: relative;
}
.dm-step-card__list li::before {
content: "→";
position: absolute;
left: 0;
color: var(--dm-red);
font-weight: bold;
}
@media (max-width: 1100px) {
.dm-steps__grid {
grid-template-columns: repeat(2, 1fr) !important;
}
}
@media (max-width: 768px) {
.dm-steps__grid {
grid-template-columns: 1fr !important;
}
.dm-steps__header h2 {
font-size: 32px;
}
.dm-step-card__body {
padding: 30px !important;
}
}
</style>
<!-- Three-mile journey -->
<section class="dm-steps dm-section" aria-label="The three-mile journey">
<div class="dm-container">