/*
Theme Name: IRA Drug Rehabilitation Center
Description: A professional WordPress theme for IRA Drug Rehabilitation Center with dynamic content management and multilingual support.
Version: 1.0
Author: WordPress Developer
Text Domain: ira-center
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Overpass:wght@300;400;600;700;800&family=Dosis:wght@300;400;500;600;700&display=swap');

/* General Body */
body {
    font-family: 'Dosis', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Overpass', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-weight: 700;
}

h2 {
    font-weight: 600;
    color: #e1306c;
}
h3 {
   
    color: #e1306c;
}

/* Navigation and Logo */
.navbar-brand, .logo-text {
    font-family: 'Overpass', sans-serif;
    font-weight: 700;
}

.container-fluid {
	padding: 0 25px 0 25px;
}

/* Buttons */
.btn {
    font-family: 'Overpass', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Section Text */
.hero-text h1, .hero-text h2, .hero-text .display-4 {
    font-family: 'Overpass', sans-serif;
    font-weight: 700;
}

/* Section Titles */
.section-title, .text-center h2, .text-center h3 {
    font-family: 'Overpass', sans-serif;
    font-weight: 600;
}

/* Card Titles */
.card-title {
    font-family: 'Overpass', sans-serif;
    font-weight: 600;
}

/* Testimonial Names */
.testimonial-name {
    font-family: 'Overpass', sans-serif;
    font-weight: 600;
}

/* Header & Navigation */
.navbar {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, background-color, padding;
}

.navbar.scrolled {
    position: fixed !important;
    background: #ffffff !important;
    padding: 5px 0 !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 2px solid #ff6b35 !important;
    transform: translateY(0) !important;
}

/* Ensure navbar is always visible */
.navbar {
    transform: translateY(0);
}

.navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px; /* Ensure consistent height */
}

/* Logo Styling */
.navbar-brand {
    color: white !important;
    font-family: 'Overpass', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: color 0.3s ease;
    height: 100%; /* Take full height of container */
}

.navbar-brand:hover {
    color: #f8f9fa !important;
}

.navbar.scrolled .navbar-brand {
    color: black !important;
}

.navbar.scrolled .navbar-brand:hover {
    color: #333 !important;
}

.navbar.scrolled .logo-text {
    color: black !important;
}

.logo {
    height: 40px;
    margin-bottom: 5px;
}

.logo-text {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 1px;
    margin-top: 5px;
    line-height: 1.2;
}

/* Custom Hamburger Menu Button */
.navbar-toggler {
    border: 2px solid white;
    border-radius: 0;
    padding: 8px 15px;
    background: transparent;
    position: relative;
    transition: border-color 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    width: 20px;
    height: 2px;
    background-color: white;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -6px;
}

.navbar-toggler-icon::after {
    top: 6px;
}

/* Menu text */
.navbar-toggler::after {
    content: 'MENU';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-family: 'Overpass', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* Scrolled state for hamburger menu */
.navbar.scrolled .navbar-toggler {
    border-color: black;
}

.navbar.scrolled .navbar-toggler-icon,
.navbar.scrolled .navbar-toggler-icon::before,
.navbar.scrolled .navbar-toggler-icon::after {
    background-color: black;
}

.navbar.scrolled .navbar-toggler::after {
    color: black;
}

/* Navigation Menu Styling */
.navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex !important;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 9999;
}

.navbar-collapse.show {
    transform: translateX(0);
}

.navbar-nav {
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: white !important;
    font-family: 'Overpass', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0 !important;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ff6b35 !important;
}

.nav-link.active {
    color: #ff6b35 !important;
}

/* Close button for mobile menu */
.navbar-collapse::before {
    content: '×';
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
}

/* Donate button styling */
.nav-link.btn {
    background: #ff6b35;
    color: white !important;
    padding: 12px 25px !important;
    border-radius: 0;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.nav-link.btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

/* Language dropdown styling */
.dropdown-menu {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
}

.dropdown-item {
    color: white;
    font-family: 'Overpass', sans-serif;
    padding: 10px 20px;
}

.dropdown-item:hover {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

/* Fixes for non-home pages */
body:not(.home) .navbar {
    background: white !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body:not(.home) .navbar-brand {
    color: black !important;
}

body:not(.home) .navbar-brand:hover {
    color: #333 !important;
}

body:not(.home) .navbar-toggler {
    border-color: black;
}

body:not(.home) .navbar-toggler-icon,
body:not(.home) .navbar-toggler-icon::before,
body:not(.home) .navbar-toggler-icon::after {
    background-color: black;
}

body:not(.home) .navbar-toggler::after {
    color: black;
}

body:not(.home) .nav-link {
    color: black !important;
}

body:not(.home) .nav-link:hover {
    color: #ff6b35 !important;
}

body:not(.home) .navbar-collapse {
    background: white;
}

body:not(.home) main {
    padding-top: 80px;
}

/* Responsive adjustments */
@media (min-width: 992px) {
    .navbar-collapse {
        position: static;
        height: auto;
        background: transparent;
        transform: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .navbar-nav {
        flex-direction: row;
        align-items: center;
        gap: 30px;
        height: 100%; /* Ensure nav items take full height */
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 5px 0 !important;
        display: flex;
        align-items: center;
        height: 100%;
    }
    
    /* Desktop donate button alignment */
    .nav-link.btn {
        margin-top: 0 !important;
        padding: 8px 20px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        min-height: 40px;
    }
    
    .navbar-toggler::after {
        display: none;
    }
    
    .navbar-collapse::before {
        display: none;
    }
    
    .logo-text {
        display: block;
        font-size: 0.75rem;
        font-weight: 400;
        text-transform: none;
        letter-spacing: 1px;
        margin-top: 5px;
        line-height: 1.2;
    }
    
    /* Desktop navigation links when scrolled */
    .navbar.scrolled .nav-link {
        color: black !important;
    }
    
    .navbar.scrolled .nav-link:hover {
        color: #ff6b35 !important;
    }
    
    .navbar.scrolled .nav-link.btn {
        background: #ff6b35;
        color: white !important;
        margin-top: 0 !important;
    }
    
    .navbar.scrolled .nav-link.btn:hover {
        background: #e55a2b;
        color: white !important;
    }
    
    .navbar.scrolled .dropdown-toggle {
        color: black !important;
    }
}

@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
}

/* Hero Section */
#hero {
    position: relative; /* Crucial for positioning children */
    color: white;
    height: 100vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    overflow: hidden; /* To contain the wave */
}

#hero .carousel, #hero .carousel-inner, #hero .carousel-item, #hero .carousel-item img {
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-100%, 50%);
    z-index: 10;
}

.hero-text img {
    max-width: 80%;
}
@media only screen and (max-width: 991px) {
.hero-text img {
    max-width: 500px;
}
.hero-text {
     transform: translate(-50%, 50%);
   
}
}

/* Services */
.service-icon {
    width: 80px;
    height: 80px;
    margin: 20px auto;
    object-fit: contain;
}

img.service-icon {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain;
}



#services .card {
    height: 100%;
    min-height: 400px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#services .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

#services .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#services .card-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

#services .card-text {
    flex-grow: 1;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
    text-align: justify !important;
}

/* Owl Carousel Navigation */
.services-carousel .owl-nav {
    margin-top: 20px;
    text-align: center;
}

.services-carousel .owl-nav button {
    background: #ff6b35 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 10px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
}

.services-carousel .owl-nav button:hover {
    background: #e55a2b !important;
    transform: scale(1.1) !important;
}

.services-carousel .owl-dots {
    text-align: center;
    margin-top: 15px;
}

.services-carousel .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.services-carousel .owl-dot span {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
}

.services-carousel .owl-dot.active span,
.services-carousel .owl-dot:hover span {
    background: #ff6b35;
}

/* Events */
.event-image {
    max-height: 300px;
    object-fit: cover;
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0;
}

.gallery-item-wrapper {
    position: relative;
    display: block;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item {
    display: block;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.gallery-item-wrapper:hover img {
    transform: scale(1.1);
}

.gallery-item-wrapper .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.gallery-item-wrapper:hover .icon {
    opacity: 1;
}

/* Magnific Popup */
.mfp-container {
    padding: 0 15px;
}

.mfp-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

.mfp-close {
    color: #fff;
    font-size: 30px;
    line-height: 1;
    opacity: 1;
    text-shadow: none;
}

.mfp-arrow {
    opacity: 1;
    text-shadow: none;
}

.mfp-arrow-left {
    left: 15px;
}

.mfp-arrow-right {
    right: 15px;
}

.mfp-counter {
    display: none;
}

/* Our Teame */
#team img.card-img-top.wp-post-image {
    height: 25vh !important;
    border-radius: 50% !important;
    margin: 10px auto !important;
    width: 50% !important;
	border:1px solid #2a2a2a !important;
}
#team .row{
    justify-content: center !important;
}
#team .col-md-4 {
    width: 25% !important;
}
#team .card {
    border: 0px !important;
}

@media (max-width: 767px) {
   #team .row{
    flex-direction: column !important;
    justify-content: center !important;
}
#team .col-md-4 {
    width: 100% !important;
    margin-top: 20px !important;
}
#team img.card-img-top.wp-post-image {
    height: 50vh !important;
  
}
}

/* Testimonials */
#testimonials .d-flex {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.testimonial-img {
    width: 127px;
    height: auto;
    border-radius: 50%;
    margin-right: 15px;
}

#testimonials p {
    text-align: left;
    flex: 1;
}


/* Contact Section */
#contact.img {
    position: relative;
    background-image: url('assets/img/bg_3.jpg'); /* Assuming this is the correct path */
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    color: white;
}

#contact .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(163 78 57 / 86%);
    z-index: 1;
}

#contact .container {
    position: relative;
    z-index: 2;
}

/* Footer */
.footer-logo {
    max-height: 60px;
    margin-bottom: 15px;
}

footer h5 {
    margin-bottom: 20px;
}

footer .list-unstyled li {
    margin-bottom: 10px;
}

footer a {
    text-decoration: none;
}
footer .block-23.mb-3 li{
 list-style: none;
}
footer .block-23.mb-3 li span{
 margin-right: 50px;
    margin-left: -35px;
}


footer .social-facebook:hover { color: #3b5998; }
/* Widget Styles */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    color: #e1306c;
    font-size: 1.25rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #e1306c;
    padding-bottom: 10px;
}

.widget p {
    line-height: 1.6;
    color: #666;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    margin-bottom: 10px;
}

.widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #e1306c;
}
footer .social-twitter:hover { color: #1da1f2; }
footer .social-instagram:hover { color: #e1306c; }
footer .social-linkedin:hover { color: #0077b5; }


/*  */
.d-flex.justify-content-start {
    flex-direction: column !important;
/* Home Sidebar Widgets */
#home-sidebar .widget {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#home-sidebar .widget-title {
    color: #e1306c;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #e1306c;
    padding-bottom: 8px;
}

#home-sidebar .widget p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

#home-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#home-sidebar .widget li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

#home-sidebar .widget li:last-child {
    border-bottom: none;
}

#home-sidebar .widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

#home-sidebar .widget a:hover {
    color: #e1306c;
}

/* Inactive sidebar message */
#home-sidebar .widget[style*="dashed"] {
    background: #fff3cd;
    border: 2px dashed #ffc107;
    color: #856404;
}

#home-sidebar .widget[style*="dashed"] h5 {
    color: #856404;
    margin-bottom: 10px;
}

#home-sidebar .widget[style*="dashed"] p {
    color: #856404;
    margin-bottom: 0;
}
}

main.container.mt-5.pt-5 {
    margin-top: 130px !important;
}
#iracontent img.attachment-medium.size-medium.wp-post-image {
    width: 100% !important;
}

a.text-white.me-2 {
    font-size: 32px !important;
    padding-right: 10px !important;
}

@media only screen and (max-width: 991px) {
ul#menu-primary-menu {
    margin-left: 40px !important;
}

}

