:root{
    --primary-color: #f64747;
    --secondary-color: #333;
    --background-color: #f9f9f9;
    --font-family-primary: "Montserrat", sans-serif;
    --font-family-secondary: "Poppins", sans-serif;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.container-fluid{
    width: 100%;
    padding: 0;
    margin: 0 auto;
}
a{
    text-decoration: none;
}
ul{
    list-style-type: none;
    padding: 0;
}
header{
    padding: 30px 0;
    background-color: #fff;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
}
.header-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-container .logo a{
    font-size: 30px;
    font-weight: 800;
    font-family: var(--font-family-primary), sans-serif;
    color: var(--primary-color);
}
/* Hamburger Menu - Hidden on desktop, visible on mobile */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 6px;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}
.header-container .navigation{
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-container .navigation .parent-navbar{
    display: flex;
    align-items: center;
    gap: 40px;
}
.header-container .navigation ul li a{
    font-size: 15px;
    font-family: var(--font-family-secondary), sans-serif;
    color: var(--secondary-color);
    transition: color 0.3s ease;
    text-transform: uppercase;
}
.header-container .navigation ul li a.active{
    color: #f64747;
}
.header-container .navigation ul li a:hover{
    color: var(--primary-color);
}
.navigation ul li.dropdown {
    position: relative; /* Necessary to position the menu underneath */
}

.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Appears right below the link */
    left: 0;
    background-color: #fff; /* You can change this to match your theme */
    min-width: 280px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    padding: 10px 0;
    list-style: none;
    z-index: 1000;
    border-radius: 4px;
}

/* Ensuring the sub-links look like your primary links */
.dropdown-menu li {
    padding: 8px 20px;
    display: block;
}

.dropdown-menu li a {
    text-transform: none !important; /* Optional: adjust if you don't want uppercase inside */
    color: var(--secondary-color) !important;
}

/* Class added by JavaScript to show the menu */
.show-dropdown {
    display: block !important;
}
.navbar-buttons{
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 50px;
}
.navbar-buttons .btn{
    padding: 10px 20px;
    font-size: 14px;
    font-family: var(--font-family-secondary), sans-serif;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.navbar-buttons .login-button{
    color: #fff;
    background-color: var(--primary-color);
}
.navbar-buttons .btn:hover{
    background-color: var(--primary-color);
    color: #fff;
}
.banner{
    margin-top: 60px;
}
.banner-slide{
    position: relative;
    max-height: 600px;
    height: 100%;
}
.banner-slider-container{
    margin: 0 !important;
    width: 100%;
}
.banner-content{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
    width: 70%;
    text-align: center;
}
.banner-content h1{
    font-size: 60px;
    font-family: var(--font-family-primary), sans-serif;
    color: var(--primary-color);
}
.banner-content p{
    font-size: 18px;
    font-family: var(--font-family-secondary), sans-serif;
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
}
.overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}
.banner-slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.seo-section{
    padding: 70px 0;
}
.seo-section-wrapper{
    display: flex;
    align-items: center;
    gap: 100px;
}
.seo-image{
    flex: 0 0 40%;
    max-width: 100%;
    height: 400px;
}
.seo-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.seo-content{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}
.seo-content .navbar-buttons{
    margin: 0;
}
.seo-content h2{
    font-size: 36px;
    font-family: var(--font-family-primary), sans-serif;
    color: var(--secondary-color);
}
.seo-content h2 b{
    font-weight: 800;
    color: var(--primary-color);
}
.seo-content p{
    font-size: 16px;
    font-family: var(--font-family-secondary), sans-serif;
    color: #555;
    line-height: 1.8;
}
.seo-content ul{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 40px;
    list-style-type: disc;
}
.seo-content a{
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 16px;
    font-family: var(--font-family-secondary), sans-serif;
    transition: 0.3s all;
}
.seo-content a:hover{
    background-color: var(--primary-color);
    color: #fff;
}
.community-partner{
    padding-bottom: 70px;
}
.community-partner h2, .services h2, .patients-slider h2, .success-stories h2{
    font-size: 40px;
    text-align: center;
    font-family: var(--font-family-primary), sans-serif;
}
.community-partner h3{
    font-size: 24px;
    font-family: var(--font-family-primary), sans-serif;
    text-align: center;
    margin-bottom: 10px;
}
.community-partner{
    padding: 70px 0;
    background-color: #fff1f1;
}
.partners-grid, .services-grid, .footer-grid{
    display: grid;
    grid-template-columns: repeat(12,minmax(0,1fr));
    gap: 60px;
    margin-top: 50px;
    align-items: flex-start;
    justify-items: center;
    position: relative;
}
.service-grid-three{
    grid-template-columns: repeat(12,minmax(0,1fr));
}
.service-grid-three .single-service{
    grid-column: span 6/span 6;
}
.partner-grid-item, .single-service, .footer-grid-col{
    grid-column: span 4/span 4;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    height: auto;
}
.partner-grid-item h3{
    font-size: 18px;
    font-family: var(--font-family-secondary), sans-serif;
    color: var(--secondary-color);
    text-align: center;
}
.seo-content ul li{
    text-align: left !important;
}
.partner-grid-item p, .services p, .success-stories p, .seo-content ul li{
    font-size: 14px;
    font-family: var(--font-family-secondary), sans-serif;
    color: #555;
    text-align: center;
    line-height: 1.6;
}
.partner-grid-item p a{
    color: #f64747;
}
.partner-grid-item img{
    width: 40px;
}
.partner-icon{
    max-width: 70px;
    width: 100%;
    flex: 0 0 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #f64747;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.centered-button{
    display: flex;
    justify-content: center;
}
.centered-button a, .story-details a{
    padding: 10px 20px;
    font-size: 14px;
    font-family: var(--font-family-secondary), sans-serif;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin-top: 30px;
}
.services-grid{
    gap: 30px;
}
.centered-button a:hover, .story-details a{
    background-color: var(--primary-color);
    color: #fff;
}
.services{
    padding: 70px 0;
}
.services-grid{
    margin: 50px auto 0 auto;
    width: 100%;
}
.single-service{
    position: relative;
    padding: 50px 30px;
    transition: 0.3s all;
}
.single-service{
    height: 300px;
}
.single-service img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-details{
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 30px;
    z-index: 10;
    transition: 0.3s display;
}
.service-details h3{
    font-size: 25px;
    font-family: var(--font-family-primary), sans-serif;
    color: #fff;
    transform: translateY(70%);
    transition: all 0.4s ease;
}
.service-details p{
    color: #fff;
    font-size: 14px;
    font-family: var(--font-family-secondary), sans-serif;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: all 0.4s ease;
    margin-top: 20px;
}
.single-service:hover .service-details p{
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: all 0.4s ease 0.1s;
}
.single-service:hover .service-details h3{
    transform: translateY(0);
    transition: all 0.4s ease;
}
.patients-slider-container{
    margin-top: 50px;
}
.patients-slider{
    padding-bottom: 70px;
}
.patient-slide{
    width: 100%;
    height: 400px !important;
    margin: 0 10px;
}
.patient-slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
footer{
    padding: 40px 0;
    background-color: #000;
}
.footer-grid{
    align-items: flex-start;
}
.footer-grid-col{
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: auto;
}
.footer-grid-col h3{
    font-size: 36px;
    font-family: var(--font-family-primary), sans-serif;
    color: var(--primary-color);
    text-align: center;
    text-transform: uppercase;
}
.footer-grid-col ul{
    display: flex;
    gap: 20px;
    flex-direction: column;
}
.footer-grid-col ul li a{
    font-size: 14px;
    font-family: var(--font-family-secondary), sans-serif;
    color: #fff;
    transition: 0.3s all;
}
.footer-grid-col ul li a:hover{

    color: var(--primary-color);
}
.footer-grid-col .social-icons{
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-grid-col .social-icons a{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s all;
}
.footer-grid-col .social-icons a:hover{
    background-color: var(--primary-color);
}
.footer-grid-col .social-icons a img{
    width: 15px;
}
.footer-logo a{
    font-size: 32px;
    color: #fff;
    font-family: var(--font-family-primary), sans-serif;
    font-weight: 600;
}
.footer-logo a b{
    color: var(--primary-color);
    font-weight: 900;
}
.footer-grid-col h5{
    font-size: 24px;
    font-family: var(--font-family-primary), sans-serif;
    color: #fff;
}
footer small {
    display: block;
    font-size: 14px;
    font-family: var(--font-family-primary), sans-serif;
    color: #fff;
    text-align: center;
}
footer hr{
    margin: 50px 0;
}
/* Custom Slick Dots Styling */
.slick-dots {
    display: flex !important;
    justify-content: center;
    gap: 10px;
    bottom: -40px !important;
}

.slick-dots li {
    width: 12px;
    height: 12px;
    margin: 0 !important;
    list-style: none;
}

.slick-dots li button {
    width: 15px !important;
    height: 15px !important;
    padding: 0 !important;
    background-color: #f0f0f0 !important;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
    color: transparent;
    display: block;
}

.slick-dots li button:hover {
    background-color: #d9d9d9;
}

.slick-dots li.slick-active button {
    background-color: var(--primary-color) !important;
}
.small-banner{
    height: 550px;
    margin-top: 60px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.small-banner .container{
    height: 100%;
}
.small-banner-content{
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
}
.small-banner-content h1{
    font-size: 72px;
    color: #fff;
    text-shadow: 2px 1px 5px #000;
    font-weight: 600;
    font-family: var(--font-family-primary), sans-serif;
}
.small-banner-content p{
    font-size: 20px;
    color: #fff;
    text-shadow: 2px 1px 5px #000;
    font-family: var(--font-family-secondary), sans-serif;
}
.small-banner-about{
    background: url("../images/slide-img1.jpg");
}
.about-cta-wrapper{
    padding: 70px 0;
    background-color: #fff1f1;
}
.about-cta{
    display: flex;
    align-items: stretch;
    gap: 30px;
    justify-content: space-between;
}
.about-cta h3{
    font-size: 30px;
    font-family: var(--font-family-primary), sans-serif;
    flex: 0 0 40%;
    position: relative;
    padding-right: 20px;
    font-weight: 600;
}
.about-cta h3:after{
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 2px;
    background-color: #f64747;
}
.about-cta p{
    font-size: 20px;
    font-family: var(--font-family-primary), sans-serif;
    font-style: italic;
    flex: 0 0 60%;
    line-height: 1.45;
}
.small-banner-services{
    background-image: url("../images/services-banner.jpg");
}
.faqs{
    padding-bottom: 70px;
    margin-top: 60px;
}
.faqs p{
    padding-top: 20px;
    font-size: 16px;
    font-family: var(--font-family-secondary), sans-serif;
    text-align: center;
}
.faqs h1{
    font-size: 36px;
    font-family: var(--font-family-primary), sans-serif;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-top: 70px;
}
.faqs h1 b{
    color: #f64747;
}
.faq-wrapper{
    display: flex;
    flex-direction: column;
    margin-top: 50px;
}
.faq-item{
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 3px solid var(--primary-color);
}
.faq-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-header h3{
    font-size: 24px;
    font-family: var(--font-family-primary), sans-serif;
}
.faq-header img{
    width: 20px;
}
.faq-header .faq-icon{
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f64747;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}
details[open] .faq-icon {
    transform: rotate(180deg);
}
.faq-body p, .faq-body ul li{
    font-size: 16px;
    font-family: var(--font-family-primary), sans-serif;
    line-height: 1.45;
    text-align: left;
}
/* Remove default marker */
.faq-header {
    list-style: none;
    cursor: pointer;
}

.faq-header::-webkit-details-marker {
    display: none;
}

/* Content animation */
.faq-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
    padding-top: 20px;
}

/* When open */
details[open] .faq-body {
    max-height: 500px; /* large enough for content */
    opacity: 1;
    transform: translateY(0);
}

/* Arrow rotation */
.faq-icon {
    transition: transform 0.3s ease;
}
.small-banner-faq{
    background-image: url("../images/faq-banner.webp");
    background-position: center top;
}
.faq-body ul{
    display: flex;
    flex-direction: column;
    list-style-type: disc;
    padding-left: 30px;
    margin-top: 20px;
}
.residential-banner{
    background-image: url("../images/residential-banner.jpg");
    background-position: center top;
}
.professional-parenting-banner{
    background-image: url("../images/professional-parenting-banner.jpeg");
    background-position: center top;
}
.success-stories{
    padding: 70px 0;
}
.success-stories h2{

}
.single-story{
    padding: 35px;
    border-radius: 25px;
    box-shadow: -1px 2px 10px rgba(0, 0, 0, .15);
    display: flex;
    align-items: center;
    gap: 50px;
    justify-content: space-between;
    margin-top: 50px;
}
.story-image{
    width: 100% !important;
    height: 290px !important;
    border-radius: 5px;
}
.story-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-details{
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}
.story-details h3{
    font-size: 26px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    font-family: var(--font-family-primary), sans-serif;
}
.story-details p{
    text-align: left;
}
.single-story .banner-slider-container, .careers-slider{
    max-width: 50%;
    width: 100%;
    flex: 50%;
}
.single-story .banner-slider-container .banner-slide{
    height: 800px;
}
.banner .slick-dots{
    display: none !important;
}
.clinical-banner{
    background-image: url("../images/clinical-services-banner.jpg");
    background-position: center top;
}
.behaviour-banner{
    background-image: url("../images/behaviour-banner.jpg");
}
.daycare-banner{
    background-image: url("../images/daycare-banner.jpg");
}
.after-school-banner{
    background-image: url("../images/after-school.jpg");
}
.careers-banner{
    background-image: url("../images/careers.webp");
}
.careers-slider .banner-slide{
    height: 500px;
}
.open-position{
    padding: 70px 0;
}
.open-position-block{
    background-color: #f64747;
    padding: 70px 70px 70px 250px;
    position: relative;
}
.open-position img{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -50px;
    width: 250px;
    height: 80%;
    object-fit: cover;
}
.open-position span{
    background-color: #fff;
    padding: 10px;
    border-radius: 30px;
    color: #333;
    display: inline-block;
    font-family: var(--font-family-secondary), sans-serif;
    font-size: 14px;
}
.open-position p{
    font-size: 16px;
    color: #fff;
    margin: 30px 0;
    font-family: var(--font-family-primary), sans-serif;
}
.open-position a{
    padding: 10px 20px;
    border-radius: 30px;
    background-color: #fff;
    color: #f64747;
    font-family: var(--font-family-secondary), sans-serif;
}