File: /var/www/mentalhealthsteps.com/wp-content/themes/mentalhealthworld/newdesign/css/my.css
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');
:root {
--primary-color:#1747A6;
--secondary-color:#F291A3;
--text-color:#191919;
--text-color-2:#7A7A7A;
--accent-color:#3B67BF;
--accent-color-2:#F2BBC5;
--accent-color-3:#FBEAED;
--font-1:"Nunito", sans-serif;
--font-2:"Source Sans 3", sans-serif;
--client-baby-blue:#A3D5FF;
--client-light-pink:#FFB6C1;
--client-purple:#36225b;
--orange:#ec9953;
}
.sec-btm-pad{
padding-bottom: 100px;
}
.social-box{
position: relative;
}
.social-box input{
padding:7px 200px 7px 10px;
border-radius:10px;
border: 1.5px solid #d9d9d9;
outline: none;
}
.social-box button{
display: inline-block;
padding: 6px 25px;
border-radius:0px 10px 10px 0px;
color:black;
background-color: var(--orange);
border: none;
position: absolute;
right: 0px;
}
.navbar-nav{
gap: 20px!important;
}
.navbar-main{
background-color: var(--client-purple);
}
.badge-cta{
background-color: white;
color: black;
position: absolute;
top: 40px;
right: 0px;
}
.bnr-circle{
display: flex;
justify-content: center;
align-items: center;
width: 60px;
height: 60px;
border-radius: 50%;
background-color: var(--client-baby-blue);
}
.bnr-circle i{
color: var(--client-light-pink);
font-size: 30px;
}
/* .bnr-right-area .row{
padding: 0px!important;
}
.bnr-right-area {
background-color: rgb(2, 69, 202,0.3);
padding: 10px 18px 10px 18px;
}
.banner-right-area-link-div .col-lg-6{
padding: 0px!important;
}
.bnr-right-area a{
text-decoration: none;
display: inline-block;
width: 100%;
background-color: rgb(2, 69, 202,0.1);
border: 1px solid #00153f;
color: white;
padding: 5px 0px;
height: 100%!important;
transition: 0.3s ease-in-out;
}
.bnr-right-area a:hover{
text-decoration: underline;
background-color: #00153f;
} */
/* your existing styles kept */
.bnr-right-area .row{ padding:0!important; }
.bnr-right-area{
background-color: rgba(2,69,202,.6);
padding:10px 18px;
}
.banner-right-area-link-div .col-6{ padding:0!important; }
.bnr-right-area a{
text-decoration:none;
display:flex; /* centers text nicely */
align-items:center;
justify-content:center;
width:100%;
min-height:72px; /* consistent card height on mobile */
text-align:center;
background-color: rgba(2,69,202,.1);
border:1px solid #00153f;
color:#fff;
padding:8px 6px;
transition:.3s ease-in-out;
}
.bnr-right-area a:hover{
text-decoration:underline;
background-color:#00153f;
}
/* Slightly reduce font on very small screens so long text wraps better */
@media (max-width: 375px){
.bnr-right-area a{ font-size:14px; line-height:1.2; min-height:68px; }
}
@media (max-width:992px) and (min-width:375px) {
.bnr-right-area a{ font-size:14px; line-height:1.2; min-height:68px; }
}
/* On tablets/desktops you can go back to two columns or keep as is */
@media (min-width: 992px){
.banner-right-area-link-div .col-6{ padding:0!important; }
}
.dropdown-item ul{
display: inline-block!important;
}
.about-left-div{
margin: 0px;
}
.about-left-div i{
color: var(--orange);
font-size: 25px;
font-weight: 900;
}
.about-img-div{
position: relative;
}
.about-img-div .about-big-img{
width: 100%;
height: 700px;
object-fit: cover;
border-radius: 20px;
}
.research-card{
padding: 15px;
background-color: var(--accent-color);
border-radius: 20px;
min-height: 650px;
}
.research-img-area{
margin-bottom: 20px;
overflow: hidden;
}
.research-img-area img{
width: 100%;
height: 350px;
object-fit: cover;
border-radius:10px 10px 0px 0px;
transition: .5s ease-in-out;
}
.research-img-area img:hover{
transform: scale(1.1);
}
.research-text-area h3{
font-family: var(--font-1);
/* color: var(--text-color); */
font-weight: 700;
font-size: 26px;
}
.icon-div{
background-color: var(--orange);
border-radius: 50%;
}
.icon-div img{
width: 80px;
height: 80px;
object-fit: cover;
padding: 20px;
}
.social-box a{
width:40px;
height: 40px;
display: inline-block;
text-decoration: none;
background-color: white;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
}
.social-box a i{
color: var(--orange);
transition: 0.3s ease-in-out;
}
.social-box a:hover i{
color: black;
}
/* mega menu css */
/* =========================================================================
HEADER / NAVBAR (Desktop & Mobile)
========================================================================= */
.site-header {
background-color: var(--client-purple); /* NIMH-style blue */
position: sticky;
top: 0;
z-index: 1000;
}
.nav-wrapper {
position: relative;
display: flex;
align-items: center;
justify-content: center;
padding: 10px 0px;
}
.logo img{
width: 100px;
}
/* Hamburger button (mobile only) */
.menu-toggle {
display: none;
font-size: 1.5rem;
background: none;
border: none;
color: white;
cursor: pointer;
}
/* =========================================================================
TOP-LEVEL LINKS (Desktop)
========================================================================= */
.main-nav {
display: flex;
margin: 0px;
padding: 0PX;
}
.main-nav > li {
/* position: relative; for absolute-positioned dropdowns */
}
.main-nav > li > a {
display: block;
padding: 0 1rem;
/* line-height: 60px; */
color: #ffffff;
font-weight: 600;
font-size: 15px;
text-transform: uppercase;
transition: background-color 0.2s;
text-decoration: none;
}
.mega-column{
padding: 5px;
border: 1px solid #333;
margin-bottom: 15px;
}
.mega-column h6{
font-size: 18px;
}
.mega-column p{
font-size: 14px;
margin-bottom: 0px!important;
}
.mega-column:hover{
background-color: #d4d4d4;
}
/* =========================================================================
MEGA-DROPDOWN STYLING (Desktop)
========================================================================= */
.mega-dropdown {
position: absolute;
top: 80%;
left: 0;
margin : auto;
background-color: #ffffff;
border-top: 4px solid #00457a; /* accent strip under menu bar */
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
padding: 1rem 0;
display: none;
z-index: 999;
}
.main-nav > li:hover .mega-dropdown {
display: block;
}
.mega-content {
max-width: 100%;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
padding: 0 15px;
}
.mega-column h3 {
font-size: 1rem;
margin-bottom: 0.5rem;
color: #005a9c;
}
.mega-column ul li a {
display: block;
padding: 0.25rem 0;
color: #333;
font-size: 0.9rem;
transition: color 0.2s;
}
.mega-column ul li a:hover {
color: #005a9c;
}
/* =========================================================================
SIMPLE SUBMENU (Desktop)
========================================================================= */
.submenu {
position: absolute;
top: 100%;
/* left: 0; */
margin: auto;
background-color: #ffffff;
border-top: 4px solid #00457a;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
display: none;
min-width: 200px;
z-index: 999;
}
.main-nav > li:hover .submenu {
display: block;
}
.submenu li a {
display: block;
padding: 0.5rem 1rem;
color: #333;
font-size: 0.9rem;
border-bottom: 1px solid #eee;
transition: background-color 0.2s;
}
.submenu li a:hover {
background-color: #f0f0f0;
}
.toggle-arrow{
display: inline-block;
margin-left: .255em;
vertical-align: .255em;
content: "";
border-top: 8px solid;
border-right: 8px solid transparent;
border-bottom: 0;
border-left: 8px solid transparent;
}
/* =========================================================================
MOBILE STYLES (≤ 992px)
========================================================================= */
@media (max-width: 992px) {
.nav-wrapper {
flex-wrap: wrap;
height: auto;
padding: 0.5rem 1rem;
}
.menu-toggle {
display: block;
}
.main-nav {
display: none;
width: 100%;
flex-direction: column;
margin-top: 0.5rem;
}
.main-nav.open {
display: flex;
}
.main-nav > li > a {
padding: 0.75rem 1rem;
line-height: 1.2;
}
/* Hide desktop-only dropdowns */
.mega-dropdown,
.submenu {
position: static;
display: none;
box-shadow: none;
border-top: none;
}
.main-nav > li .mega-dropdown,
.main-nav > li .submenu {
width: 100%;
background-color: #f9f9f9;
padding: 0.5rem 1rem;
}
/* Mobile: stack mega-columns vertically */
.mega-content {
display: block;
padding: 10px;
}
.mega-column {
margin-bottom: 1rem;
}
.mega-column h3 {
margin-top: 0.5rem;
}
/* Arrow for expandable items */
.toggle-arrow {
float: right;
transition: transform 0.2s ease;
}
.toggle-arrow.open {
transform: rotate(90deg);
}
}
/* =========================================================================
UTILITY CLASSES
========================================================================= */
.flex {
display: flex;
align-items: center;
}
.justify-between {
justify-content: space-between;
}
.top-logo{
width: 250px;
}
.f-hr{
background-color: white;
height: 1.5px;
width: 100%;
border-radius: 100px;
margin-bottom: 16px;
}
/* slider css */
.slider-container {
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
position: relative;
overflow: hidden;
}
.slider {
display: flex;
gap: 20px;
transition: transform 0.5s ease-in-out;
}
.slider-item {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
background-color: #fff;
border-radius: 10px;
padding:5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
flex: 0 0 auto; /* Ensures item does not stretch */
}
.slider-item img {
width: 50px;
height: 50px;
border-radius: 5px;
object-fit: cover;
}
.slider-item p {
margin-top: 10px;
font-size: 14px;
color: #333;
font-weight: 500;
}
/* Arrows */
.slider-arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
font-size: 30px;
background-color: transparent;
border: none;
color: #333;
cursor: pointer;
z-index: 10;
width: 50px;
height: 50px;
border-radius: 50%;
background-color: white;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.slider-arrow.left {
left: 10px;
}
.slider-arrow.right {
right: 10px;
}
.slider-arrow:hover {
color: #ff4c4c; /* Optional hover effect */
}
/* Responsive Design */
@media (min-width: 1200px) { /* XXL & XL */
.slider-item {
width: calc(100% / 6 - 20px); /* 6 slides visible */
}
}
@media (min-width: 992px) and (max-width: 1199px) { /* LG */
.slider-item {
width: calc(100% / 4 - 20px); /* 4 slides visible */
}
}
@media (min-width: 768px) and (max-width: 991px) { /* MD */
.slider-item {
width: calc(100% / 3 - 20px); /* 3 slides visible */
}
}
@media (min-width: 576px) and (max-width: 767px) { /* SM */
.slider-item {
width: calc(100% / 2 - 20px); /* 2 slides visible */
}
}
@media (max-width: 575px) { /* XS */
.slider-item {
width: 100%; /* 1 slide visible */
}
}
.logo-link{
text-decoration: none;
}
.logo-span{
color: var(--orange);
font-size: 36px;
font-weight: bold;
line-height: 1.2;
}
.app-div a img{
width: 100px;
height: 100%;
margin-bottom: 20px;
}