@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
</style>


* {
    font-family: "lato" !important;
	letter-spacing: -0em;
    text-align: center;
}

html {
	overflow-x: hidden;
}
ul li {
	list-style: none;
}

h2 {
    font-family: "lato";
    font-size: 35px;
    color: #225397;
    position: relative;
    padding-bottom: 10px; 
    margin-bottom: 20px; 
    text-align: center; 
}

h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 200px; 
  height: 2px; 
  background-color: #3d9fda; 
}

h5 {
    font-family: "lato";
    font-size: 18px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}
    
body {
	display: block;
	background: white;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

.phoneicon{
    width:auto !important; 
    height:40px !important; 
    vertical-align: middle !important; 
    padding-right: 20px !important;
}

.wrapper {
	display: block;
	width: 100%;
	margin: 0 auto;
}

.riologo {
    background-color: white;
    width: 100%;
    text-align: center; /* Center content horizontally */
}

.riologo img {
    width: 300px;
    padding: 20px 0;
    display: block; /* Ensure the image is treated as a block-level element */
    margin-left: auto;
    margin-right: auto;
}

header {
	background: #fff;
	margin-bottom: 0px;
    margin-left: auto;
    margin-right: auto;
}

header .top {
    
	display: flex;
	align-items: center;
	background: #ffffff; 
}

.headimg {
    margin-top: 20px;
    height: 125px;
}

header .top .logo {
	display: block;
	width: 100%;
	max-width: 50px;
	margin-left: 40px;
	padding-right: 10px;
}

h2 {
    text-transform: uppercase;
    font-size: 30px;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    padding: 40px;
}

a {
    color: #25668b;
	cursor: pointer;
	text-decoration: underline;
}


.toptitle {
    
    font-style: normal;
    font-weight: 900;
    font-size: 26px;
    line-height: 35px;
    color: #000000;
    position: relative;
    
    padding: 15px;
    border-radius: 20px;
    border: none;
    margin-bottom: 25px;
}

/* checkbox list */
.checkmark-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.checkmark-item {
	display: flex;
	align-items: center;
	text-align: left;
	max-width: 600px; /* Adjust as needed */
	width: 100%;
	
	font-size: 16px;
	font-weight: bold;
}
/* Spacing between the checkmark and the text */
.checkmark-item span {
   margin-left: 10px; 
	color: #535151;	
}

/* call button */
.button {
    background-color: #3d9fda;
    color: #FFFFFF;
    width: 80%;
    cursor: pointer;
    font-size: 45px;
    padding: 20px 10px;
    text-decoration: none;
    font-family: "lato";
	display: block;
	max-width: 500px;
	margin: 15px auto;
	font-weight: bold;
	border-radius: 10px;
    animation: glowing 1500ms infinite;
}

@keyframes glowing {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 1);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

.buttonglow {
animation: glowingBLUE 1500ms infinite;
}

@keyframes glowingBLUE {
    0% {
        box-shadow: 0 0 5px rgba(61, 159, 218, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(61, 159, 218, 1);
    }
    100% {
        box-shadow: 0 0 15px rgba(61, 159, 218, 0.5);
    }
}

.button:hover {
    background-color:#225397;
}

.footer {
    text-align: center;
    padding: 10px;
    background-color: #225397;
}

.footer p, li, h3{
    color: #f9f9f9;
    font-size: 10px;
    line-height: 20px;
    padding-top: 10px;
    max-width: 1000px; 
    min-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

/* Top of the page pannel */
.hero-image {
	background-image: linear-gradient(rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.01)), url("./images/elderhappy.jpg");
	height: 800px;
  /* Position and center the image to scale nicely on all screens */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
    padding: 0px;
	@media (max-width: 600px) { 
        height: 250px; 
    }
}

.herocontent{
    padding: 100px;
}

.hero-text {
    width: 65%;
    padding: 0px;
    margin: 0px;
	@media (max-width: 600px) { 
    width: 50%;
	}
}

.herotext2 {
    margin: 0px;
    padding: 10px 0px;
    vertical-align: top;
    color: #fff;
    font-family: "lato";
    font-weight: 400;
    font-size: 80px;
    text-align: center;
		@media (max-width: 600px) {
     	font-size: 25px;
	}
}

.herotext1 {
    padding: 0px;
    color: white;
    margin-left: 0px;
    margin-right: auto;
    font-weight: 500;
    font-size: 30px;
    text-align: center;
    width: 100%;
		@media (max-width: 600px) {
     	font-size: 25px;
	}
}

/*Custom Tables*/
.table-hero {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates three columns of equal width */
    gap: 10px; /* Adds space between the tables */
    padding: 100px 20px 0px 20px; /* Padding around the grid container */
    vertical-align: top;
}

.hero-table {
    border: none;
    width: 100%; /* Makes each table take the full width of its grid column */
    border-collapse: collapse; /* Optional: For border styling */ 
    vertical-align: top;
}

.hero-table th, .hero-table td {
    border: none;
    padding: 20px; /* Padding inside cells */ 
    vertical-align: top;
}

.highlight {
    background-color: #FFFF00;
    line-height: 200%;}


/* blue container */
.inhero-mobile, inhero-mobile-text {
    display: none;
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
}
.inhero-image, .inhero-foot {
  background-color:white;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  padding: 20px;
}
.inhero-text, .inhero-foot-text {
  text-align: center;
  color: black;
  width: 100%;
}

.inhero-text, inhero-foot-text h1 {
	font-size: 18px;
	font-family: "lato";
	font-style: normal;
	padding: 0px !important;
	color: black;
}

.inhero-text, .inhero-foot-text h2 {
    padding: 0px;
}

.inhero-text .image-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap; /* Allows items to wrap onto multiple lines */
	@media (max-width: 600px) {
			flex-direction: column; 
	}
}

/* Ensures that images do not exceed the container's width */
.inhero-text img {
    max-width: 100%;
    max-height: 150px;
    width: auto;
    padding: 10px;
}

/* gallary */
.gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding: 20px;
}
.gallery img {
	height: auto;
	border-radius: 1rem; 
	margin: 5px;
	/* width: 50%; */
}
.gallery-land {
	width: 50%;
	max-height: 30rem;
}
.gallery-port {
	width: 30%;
	max-height: 30rem;
}


.footer2 {
	display: flex;
	color: white;
	margin-top: 50px;
	text-align:center;
	padding: 10px;
	padding-top: 50px;
	align-items: center;
}

.footer2 img {
	margin: 10px;
}
.copyright {
	display: flex;
	color: white;
	place-content: center;
}

/*CTA Top Right*/
.container {
    display: block;
    justify-content: flex-end; /* Aligns children (the button) to the right */
    padding: 10px;
}

/*Pop up*/
.call-button {
    font-family: "Lato";
    font-size: 30px;
    display: block;
    padding: 10px 20px;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    background-color: #3d9fda;
    font-weight: bold;
    text-transform: uppercase;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
    animation: glowing 1500ms infinite;
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.6); /* Initial glowing effect */
}

@keyframes glowing {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 1);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
}

.call-button:hover, .call-button:focus {
    transition: box-shadow 0.75s ease-in-out;
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 1); /* Enhanced glowing effect on hover/focus */
}


.ctanumber {
    color: white;
    font-size: 34px;
    margin: 10px;
}

.helpline {
    
}


.popup1 {
}

.popup2 {
}

.helplineinfo {
    margin-left: auto;
    margin-right: auto;
    font-family: "lato";
    display: flex;
    text-align: center;
    padding: 20px 0px 0px 0px;
    border: none;
    border-radius: 10px;
    background-color: transparent;
    color: white;
    font-weight: 600;
    cursor: pointer; /* Adds a cursor to indicate it's clickable */
}

.openPopup {
    font-family: "lato";
    display: flex;
    text-align: center;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    border: none;
    border-radius: 10px;
    background-color: transparent;
    color: #3d9fda;
    font-weight: 600;
    cursor: pointer; /* Adds a cursor to indicate it's clickable */
}

.openPopup:hover {
    color: #225397; 
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1 !important;
}

.popup-overlay.special-padding { /* Example class name */
    padding-top: 30px;
}

.popup-content {
    font-family: "lato";
    position: relative; /* Add this to position the close button absolutely within the content */
    color: black;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 800px; /* Consider using max-width for responsiveness */
    text-align: center;
}

.closePopup {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px;
    background: transparent;
    border: none;
    font-size: 24px; /* Make it bigger or adjust as necessary */
    cursor: pointer;
    color: #3851A2; /* Or any color you want */
    font-weight: bold;
}

.closePopup:hover {
    color: #ff0000; /* Change to red on hover, or choose another color */
}

.popup-content h3 {
    color: #134764;
    text-transform: uppercase ;
    font-size: 20px !important;
    padding-top: 40px !important;
    padding-bottom: 10px !important;
    font-family: "lato";
}

.popup-content p {
    padding: 20px !important;
    font-size: 18px !important;
    font-weight: 500 !important;
}

button {
cursor: pointer;
}

/* As Seen In: */
.split {
    display: flex;
}

.left {
    width: 40%;
}

.right {
    width: 60%;
}

.seenin {
    color: white;
    text-transform: uppercase;
    background-color: #1A1A1A;
    text-align: center; /* Center-align text content */
}

.seencontainer {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 0px 0px 30px 0px;
}

.seenin p {
    margin: 0px;
    padding: 20px 0px;
    text-align: center; /* Ensure paragraphs are also centered */
}

.seenin img {
    display: inline-block; /* Display images inline and side by side */
    vertical-align: middle; /* Align images vertically in the middle */
    margin: 0 10px; /* Add some space between images */
    width: auto;
    height: 50px;
}


/*#1 Drug & Alcohol Addiction Treatment*/
.mobile-only-list {
    display: none;
    list-style: none; /* Removes bullet points */
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
    
}

.mobiletreatment {
    display: none;
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
}

.treatment {
    width: 100%;
    color: black;
    background-color: white;
    padding: 40px;
    text-align: center;
}

.treatment h2 {
    font-size: 35px;
    padding-bottom: 20px;
    
}

.treatment p {
    font-size: 18px;
    line-height: 160%;
    padding-bottom: 50px;
    max-width: 1200px; 
    min-width: 200px;
    margin-left: auto;
    margin-right: auto; 
}

/*Custom Tables*/
.table-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Creates four columns of equal width */
    gap: 20px; /* Adds space between the tables */
    padding: 0px 50px; /* Padding around the grid container */
    background-color: white;
}

.custom-table {
    border: none;
    width: 100%; /* Makes each table take the full width of its grid column */
    border-collapse: collapse; /* Optional: For border styling */
}

.table1, .table2, .table3, .table4 {
    color: white;
    padding: 0px; /* Remove padding from individual tables */
}

.custom-table th, .custom-table td {
    border: none;
    text-align: center; /* Aligns text to the center */
    vertical-align: top; /* Ensures content aligns at the top */
    
}


.tableimg {
    width: 100%;
    border-radius: 0px;
    padding-bottom: 20px;
}

.treattitle {
    font-family: "Lato", sans-serif;
    font-size: 25px;
    text-transform: uppercase;
    color: #225397;
    text-align: center;
    font-weight: 600;
    padding-bottom: 20px;
}

.treatbody {
    font-family: "Lato", sans-serif;
    font-size: 18px;
    line-height: 160%;
    color: black;
}


.table-container2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates three columns of equal width */
    gap: 50px; /* Adds space between the tables */
    padding: 80px 0px;; /* Padding around the grid container */
    background-color: white;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.custom-table2 {
    border: none;
    width: 100%; /* Makes each table take the full width of its grid column */
    border-collapse: collapse; /* Optional: For border styling */
}

.custom-table2 th, .custom-table2 td {
    border: none;
    text-align: center; /* Aligns text to the center */
    vertical-align: top; /* Ensures content aligns at the top */
}

.tableimg2 {
    width: 150px !important;
    border-radius: 0px;
    padding-bottom: 20px;
}

.treattitle2 {
    font-family: "Lato", sans-serif;
    font-size: 25px;
    text-transform: uppercase;
    color: #225397;
    text-align: center;
    font-weight: 600;
    padding-bottom: 20px;
}

.treatbody2 {
    font-family: "lato";
    padding: 0px;
    font-size: 18px;
    line-height: 160%;
}

.mind, .body, .spirit {
    padding: 0px;
    color: black;
}

/*Coverage*/
.coverage {
    font-family: "lato";
    text-align: center;
    font-size: 25px;
    background: white;
    padding: 20px;
    color: #5a717d;
}
.coverage img{
    width: 950px;
    display: block; /* Makes the img a block-level element */
    margin-left: auto;
    margin-right: auto;
}
.carousel-container {
    width: 800px; /* Fixed width of the carousel */
    overflow: hidden; /* Hide the overflowing parts */
    margin: auto;
}

.carousel {
    padding: 40px 0px 0px 0px;
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: calc(800px * 7 / 5); /* Adjust width based on the number of items */
}

.carousel-item {
    flex: 0 0 20%; /* 5 images per view (100% / 5 = 20%) */
    box-sizing: border-box;
    padding: 0px 20px;
}

.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}



/*Trusted Treatment Provider*/
.treatment h2, p {font-family: "lato";}

.treatprovider {
    text-align: center;
    background: white;
}

.treatprovider h2{
    color: #25668b;
}

.roomgrid {
    padding-left: 0px;
    padding-right: 0px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates two columns */
    grid-template-rows: repeat(2, 1fr); /* Creates two rows */

}

.roomgrid img {
    width: 100%; /* Makes each image take up the full space of its grid cell */
    height: auto; /* Maintains the aspect ratio of the images */
    padding: 0px;
}

/*Google Review*/
.mobile-reviews {
    display: none;
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
}

.googlereviews {
    background-color: white;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
    padding: 40px;
    width: 100%;
}

.googlereviews img {
    margin-right: auto;
    margin-left: auto;
    display: block;
    width: 75%;
}

.googlereviews h1 {
    color: #225397;
    font-family: "lato";
    padding:60px 0px 0px 0px;
    text-align: center;
}

.googlereviews h4 {
    text-transform: uppercase;
    font-weight: 400;
    color: dimgrey;
    text-align: center;
    font-family: "lato";
}

.googlelogo {
    width: 300px;
    margin: 0px;
    
}

.reviewimg {
    padding-top: 60px;
}

.reviewimg img {
    width: 100%;
}
.review{
    width: 800px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.whyus {
    background-color: white;
}

.whyus img{
    width: 100%; 
}

.whyus h2{
    font-family: "lato";
    color: #225397;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.whyus p {
    font-size: 20px;
    line-height: 160%;
    text-align: center;
    padding: 20px;
    max-width: 1100px; 
    min-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.treatlist {
    text-align: center !important;
    color: #3479a0;
    text-transform: uppercase;
    font-weight: 700;
}

.link_offer {
color: white;
}
/* FAQ SECTION */
.faq-container {
font-family: "lato";
  width: 80%;
  margin: 0 auto;
    padding: 0px 0px 20px 0px;
}
.faq-container h2{
    margin-bottom: 60px;
}

.faq-item {
    font-size: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
    padding-bottom: 10px;
}

.faq-question h4 {
    color: #3d9fda;
}

.faq-answer {
    line-height: 35px;
  display: none;
  padding: 10px 0;
}

.faq-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.faq-toggle.active {
  transform: rotate(45deg);
}

/* Responsive adjustments for screens smaller than 768px */
@media (max-width: 930px) {
    .call-button {
        padding: 15px 30px !important; /* Larger touch targets */
        font-size: 18px; /* Larger text for better readability */
    }

    
    
.popup-content {
    position: relative !important; /* Add this to position the close button absolutely within the content */
    color: black !important;
    background-color: white !important;
    padding: 20px !important;
    border-radius: 5px !important;
    width: 800px; /* Consider using max-width for responsiveness */
    text-align: center;
}

.popup-content h3 {
    color: #3851A2 !important;
    text-transform: uppercase !important;
    font-size: 15px !important;
    padding-top: 40px !important;
    padding-bottom: 10px !important;
    font-family: "lato" !important;
}

.popup-content p {
    padding: 5px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 180% !important;
}

.mobile-reviews {
    background: white;
    display: block;
    margin-left: auto;
    margin-right: auto;

    
}

.mobile-reviews img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
    
    .moblie-list {
        width: 100%;
        margin: 0px;
        padding: 0px;
    }
    
    .mobiletreatment h2{
        width: 100%;
        padding: 20px 0px;
    }
    
    .mobiletreatment img{
        width: 80%;
    }
    
    .mobp {
        padding: 40px 80px 40px 80px !important;
        font-size: 18px;
        text-align: left;
    }
    
.googlereviews {
    display: none;
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
    
}

.googlelogo {
    
}
    
    
.inhero-image, inhero-text {
    display: block;
    padding: 20px; /* Removes default padding */
    margin: 0; /* Removes default margin */
    height: auto !important;
}
    
.inhero-mobile, .inhero-foot {
  display: block;
  background-color: white;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  padding:20px;
}
    
.inhero-mobile-text, .inhero-foot-text {
  text-align: center;
  color: black;
  width: 100%;
}

.inhero-mobile-text h1 {
	font-weight: 400;
	font-size: 26px;
	line-height: 25px;
	letter-spacing: 0em;
	font-family: "lato";
	font-style: normal;
	padding: 0px !important;
	color: white;
	letter-spacing: -0.04em;
} 
    .whyus {
        margin: 0px;
    }
    
    .whyus h2 {
        width: 90%;
    padding: 20px 0px; 

    }
    
    .whyus p{
     font-size: 18px; 
        margin: 0px;
        padding: 20px 60px;
    }
    
    .heropop {
        
        display: none;
    }
    
    .treatment {
        display: none;
    }
    
     .mobile-only-list {
        display: block; /* Makes the list visible on mobile devices */
        color: white;
        background-color: #10223B;
        padding: 15px;
        text-align: center;
    }

    .mobile-only-list h2 {
        color: white;
        font-size: 25px;
        padding: 20px 0px;
}
    
    .mobile-only-list li {
        font-family: "lato";
        padding: 0px 0px 10px 0px;
        width: 80%;
        font-size: 16px;
        font-weight: 500;
        line-height: 160%;
        text-align: left;
        margin-left: auto;
        margin-right: auto; 
}
    
    .button {
        font-size: 35px;
    }
    
    .mobiletreatment {
        display: block;
        padding: 20px; 
        margin: 0px; 
        background-color: #225397;
        color: white;
        text-align: center;
}
    
    .mobiletreatment h2 {
        color: white;
    }
    .mobiletreatment p {
        padding: 30px 0px;
    }
    
    .mobileimg{
        padding: 20px 0px;
        width: 300px;
        border-radius: 0px;
    }
    
    /* As Seen In: */
.seenin {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 20px 0px;
}

.seencontainer {
    width: 100%; /* Ensures container takes full width */
    display: block; /* Uses flexbox to arrange children */
    justify-content: center; /* Centers children horizontally */
    flex-wrap: wrap; /* Allows items to wrap onto the next line if space runs out */
    padding: 0px 0px 0px 0px;
}

.seenin p {
    margin: 0px 0px 10px 0px;
    padding: 0px 0px 0px 0px;
    font-size: 12px;
}

.seenin img {
    height: 25px; /* Set width, adjust as necessary to fit multiple images side by side */
    width: auto;
    margin: 0px;
    padding: 0px 10px;
    }
    
    /*Custom Tables*/

    header {}
    .top {}
    .container {width: 100%;
    display: block;}
    .headimg {
        display: block;
        margin-left: auto;
        margin-right: auto}
    
    .freecall  {position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;}
    
    .ctanumber {
        font-size: 28px; /* Slightly smaller font size for space */
    }

    .split {
        display: block;
    }
    
    h2 {
        padding: 0px;
    }
    .treatment {
        width: 100%; /* Full width for better use of space */
        padding: 40px; /* Adjust padding to be less bulky */
    }

    .treatment p, .popup-content p {
        font-size: 18px; /* Increase font size for readability */
    }

    .table-container {
        grid-template-columns: repeat(1, 1fr); /* Stack tables vertically */
        margin-left: auto;
        margin-right: auto;
        padding: 40px 20px;
        
    }
    
    .table-container2 {
        grid-template-columns: repeat(1, 1fr); /* Stack tables vertically */
        margin-left: auto;
        margin-right: auto;
        padding: 0px
    }

    .custom-table th, .custom-table td{
        
    }
    
    .coverage img, .review, .googlelogo img {
        width: 100%; /* Images should not exceed the screen width */
    }

    .googlereviews {
        margin-left: auto;
        margin-right: auto;
    }

    .googlelogo {
        width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .googlelogo img {
    
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .popup-content {
        width: 90%; /* Use more screen width for popups */
        padding: 15px; /* Less padding to save space */
    }

    .roomgrid {
        grid-template-columns: 1fr; /* Stack images vertically */
        padding: 0px;
    }
    
    .footer {
        padding: 40px;
    }
}

/* Additional finer adjustments for very small screens */
@media (max-width: 480px) {
    header{
        height: 150px;
    }
    
    h2 {
       padding: 20px 0px 20px 0px;
        margin: 0px;
        width: 80%;
        font-size: 25px;
        margin-left: auto;
        margin-right: auto;
    }
    
.riologo {
    background-color: white;
    width: 100%;
    text-align: center; /* Center content horizontally */
}

.riologo img {
    width: 230px;
    padding: 20px 0;
    display: block; /* Ensure the image is treated as a block-level element */
    margin-left: auto;
    margin-right: auto;
}
  
    .carousel {
    padding: 40px 0px 0px 0px;
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: calc(800px * 4 / 5);
}
   
    
    .coverage {
        padding: 0px;
    }
    
    
    .carousel-item {
        padding-bottom: 50px;
    }
    
    .treatbody {
        font-size: 16px;
        padding: 0px 20px 20px 20px !important;
        text-align: left !important;
    }
    
    .whyus p{
        font-size: 18px;
        padding:20px 30px;
    }
    
    .mobp {
        padding: 20px !important;
        font-size: 18px;
        text-align: center;
    }
    
    
    .coverage img{ 
        padding: 20px;
    }
    
    .herotext1{
        font-size: 20px;
        padding: 20px;
        text-align: center;
    }
    
    .herotext2{
        padding: 10px 0px;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .herocontent {
        padding:0px;
    }
    .coverage p, .treatprovider p {
        padding: 0px;
    }
    
    .headimg{
        margin-top: 100px;
        margin-left: auto;
        margin-right: auto;
        padding: 5px;
    }
    
    .googlereviews { 
    }

    .googlelogo  {
        
       
    }
    
    .mobile-reviews {
        padding: 30px;
        margin-left: auto;
        margin-right: auto;
       
    }
    
    .mobile-reviews h1 {
    color: #225397;
    font-family: "lato";
    padding: 0px;
    text-align: center;
}
    .mobile-reviews h4 {
        font-family: "lato";
        color: dimgrey;
    }

    .mobile-reviews img{
    
        margin-left: auto;
        margin-right: auto;
    }
    .review{
        width: 100%;
    }
    
    .hero-image {
        height: 200px;
    }
    
    .call-button {
        font-size: 16px; /* Even larger text for smaller screens */
    }

    .ctanumber {
        font-size: 24px; /* Adjust font size further if needed */
    }
   
    .popup-content {
        width: 95%; /* Use almost full width */
    }
}
