Files
ask-mutual-fund/css/testing.css
unknown 2a7c51da33
All checks were successful
ask-mutual-fund Actions Workflow / test (push) Successful in 16s
fix card stacking layout
2025-11-05 12:17:58 +05:30

212 lines
3.5 KiB
CSS

/* Base setup */
:root {
--font-primary: "Open Sans", sans-serif;
--font-secondary: "Larken", serif;
--font-tertiary: "Inter", sans-serif;
}
.ask-advantage-scroll h2 {
font-family: var(--font-secondary);
font-weight: 400;
font-style: Regular;
font-size: 40px;
line-height: 100%;
letter-spacing: 0%;
color: #033a49;
}
.ask-advantage-scroll p.lead {
font-family: var(--font-primary);
font-weight: 400;
font-size: 18px;
line-height: 100%;
letter-spacing: 0%;
color: #3e3f3f;
margin-bottom: 40px;
margin-top: 15px;
}
/* Mobile & Tablet View (default - stacked layout) */
.cards-wrapper {
display: flex;
flex-direction: column;
gap: 30px;
width: 100%;
}
.card-scroll {
background-image: url("../assests/images/desbackcard-scroll.svg");
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
border-radius: 30px;
overflow: hidden;
display: flex;
flex-direction: row;
border: 1px solid #e6e7e8;
box-shadow: 0px 5px 14px 0px #0000000d;
padding: 50px 80px 0px 80px;
gap: 60px;
width: 100%;
position: relative;
opacity: 1;
transform: none;
}
.card-content {
width: 60%;
margin-bottom: 50px;
}
.card-image {
width: 40%;
display: flex;
align-items: end;
}
.card-label span {
color: #b18c4a;
font-family: var(--font-primary);
font-weight: 400;
font-size: 24px;
line-height: 21.9px;
letter-spacing: 0px;
vertical-align: middle;
text-transform: capitalize;
}
.scroll-tiile {
margin: 20px 0 10px 0;
color: #033a49;
font-family: var(--font-secondary);
font-weight: 400;
font-size: 32px;
line-height: 100%;
letter-spacing: 2px;
}
.scroll-desc {
font-family: var(--font-primary);
font-weight: 400;
font-size: 18px;
line-height: 100%;
color: #3e3f3f;
}
.scroll-ul {
margin-left: 15px;
padding-left: 20px;
font-size: 14px;
color: #555;
margin-top: 25px;
}
.scroll-ul .scroll-li {
font-family: var(--font-primary);
font-weight: 400;
font-size: 16px;
line-height: 32px;
}
.card-image img {
width: 316px;
display: block;
}
/* Desktop View (Animation Layout) */
@media (min-width: 1024px) {
.cards-wrapper {
position: relative;
height: 530px;
overflow: hidden;
display: block;
gap: 0;
}
.card-scroll {
position: absolute;
top: 0;
left: 0;
width: 100%;
opacity: 0;
transform: translateY(100%);
transition: none;
}
.card-scroll.active {
opacity: 1;
transform: translateY(0);
z-index: 2;
}
}
/* Mobile & Tablet Styles */
@media (max-width: 1023px) {
.card-scroll {
background-image: url("../assests/images/mobilebackcard-scroll.svg");
flex-direction: column;
padding: 30px 20px 0px 20px;
gap: 30px;
}
.card-content {
width: 100%;
margin-bottom: 0px;
}
.card-image {
width: 100%;
text-align: center;
justify-content: center;
display: flex;
}
.card-image img {
width: 220px;
display: block;
}
.card-label span {
font-size: 18px;
}
.scroll-tiile {
font-size: 18px;
letter-spacing: 0.5px;
}
.scroll-desc {
font-size: 13px;
}
.scroll-ul {
display: none;
}
.ask-advantage-scroll h2 {
font-size: 26px;
line-height: 36px;
}
.ask-advantage-scroll p.lead {
font-size: 15px;
line-height: 22px;
}
}
@media (max-width: 768px) {
.cards-wrapper {
gap: 20px;
}
.card-scroll {
padding: 25px 15px 0px 15px;
gap: 20px;
}
}
@media (max-width: 991px) {
section.ask-advantage-scroll.container {
padding: 60px 25px 0 25px !important;
}
}