/* 
    Theme: The Relax - Mental Health Platform
    Author: AI Assistant
    Version: 1.0
*/

/* ====== GENERAL STYLES ====== */
:root {
    --primary-color: #5D7EB1;
    --secondary-color: #A5D6A7;
    --accent-color: #4DB6AC;
    --dark-color: #263238;
    --light-color: #ECEFF1;
    --text-color: #37474F;
    --white-color: #FFFFFF;
    --gray-color: #90A4AE;
    --hover-color: #7E57C2;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--dark-color);
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--hover-color);
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    transition: var(--transition);
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.btn-app {
    background-color: var(--dark-color);
    color: var(--white-color);
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    padding: 8px 15px;
    border-radius: 20px;
}

.btn-app i {
    margin-right: 5px;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    color: var(--dark-color);
}

.section-divider {
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto 20px;
}

.bg-light {
    background-color: var(--light-color) !important;
}

/* ====== NAVBAR ====== */
.navbar {
    padding: 15px 0;
    background-color: #ffffff78;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--white-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color);
}

.brand-text {
    color: var(--primary-color);
    font-weight: 800;
}

.navbar-nav .nav-link {
    font-weight: 600;
    padding: 8px 15px !important;
    color: var(--dark-color);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

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

/* ====== HERO CAROUSEL ====== */
#hero-carousel {
    margin-top: -90px;
    position: relative;
}

.carousel-item {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-item img {
    height: 100vh;
    min-height: 600px;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white-color);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.carousel-caption p {
    font-size: 1.2rem;
    color: var(--white-color);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.carousel-caption .btn {
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

/* ====== ABOUT SECTION ====== */
.about-img {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ====== VISION, MISSION & GOALS ====== */
.vision-card, .mission-card, .goals-card {
    padding: 20px;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.vision-card:hover, .mission-card:hover, .goals-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--primary-color);
    font-size: 35px;
    transition: var(--transition);
}

.vision-card:hover .icon-box,
.mission-card:hover .icon-box,
.goals-card:hover .icon-box {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.vision-card .card-title,
.mission-card .card-title,
.goals-card .card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ====== SERVICES SECTION ====== */
.service-card {
    padding: 30px;
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: var(--primary-color);
    color: var(--white-color);
}

.service-card:hover h3 {
    color: var(--white-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    color: var(--primary-color);
    font-size: 30px;
    border-radius: 50%;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

/* ====== TEAM SECTION ====== */
.team-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-img {
    overflow: hidden;
    position: relative;
}

.team-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-img img {
    transform: scale(1.1);
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.team-info span {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.team-info p {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-links a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* ====== DISORDERS SECTION ====== */
.disorders-slider {
    position: relative;
    padding: 10px;
}

.disorder-card {
    padding: 30px;
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
    margin: 10px;
    height: 100%;
}

.disorder-card:hover {
    transform: translateY(-10px);
    background-color: var(--primary-color);
    color: var(--white-color);
}

.disorder-card:hover h3 {
    color: var(--white-color);
}

.disorder-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    color: var(--primary-color);
    font-size: 30px;
    border-radius: 50%;
    transition: var(--transition);
}

.disorder-card:hover .disorder-icon {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.disorder-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

/* Fallback grid layout for disorders section */
.disorders-grid .disorder-card {
    margin: 0;
    margin-bottom: 15px;
    transition: var(--transition);
}



/* ====== CONTACT SECTION ====== */
.contact-info {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    margin-right: 15px;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-form {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-control {
    height: 50px;
    border-radius: 25px;
    padding: 10px 20px;
    border: 1px solid var(--gray-color);
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    height: auto;
}

/* ====== FOOTER ====== */
.footer {
    background-color: var(--dark-color);
    padding: 70px 0 0;
    color: var(--light-color);
}

.footer h3 {
    color: var(--white-color);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
}

.footer h3::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-about p {
    margin-bottom: 25px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-color);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    margin-right: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
}

.footer-contact i {
    margin-left: 10px;
    color: var(--primary-color);
}

.app-download {
    margin-top: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 50px;
}

.footer-bottom p {
    margin-bottom: 0;
}

/* ====== RESPONSIVE STYLES ====== */
@media (max-width: 991px) {
    .section-padding {
        padding: 70px 0;
    }
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    .navbar-collapse {
        background-color: var(--white-color);
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        border-radius: var(--border-radius);
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 50px 0;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .carousel-caption h1 {
        font-size: 2rem;
    }
    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    .carousel-caption .btn {
        padding: 8px 15px;
        font-size: 12px;
    }
}

/* ====== PAGE BANNER ====== */
.page-banner {
    padding: 150px 0 80px;
    background-color: var(--primary-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1552152974-19b9caf99137?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.page-banner-content {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    color: var(--white-color);
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.page-banner .breadcrumb {
    justify-content: center;
    background: transparent;
    margin-bottom: 0;
}

.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a {
    color: var(--white-color);
    font-weight: 500;
}

.page-banner .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.8);
}

/* ====== ABOUT US PAGE ====== */
.about-us-content .about-image {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.approach-card {
    padding: 30px;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.approach-card:hover {
    transform: translateY(-10px);
}

.approach-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    color: var(--primary-color);
    font-size: 30px;
    border-radius: 50%;
    transition: var(--transition);
}

.approach-card:hover .approach-icon {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.approach-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.value-card {
    padding: 25px;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.value-card h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.achievement-card {
    padding: 30px;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-10px);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    color: var(--primary-color);
    font-size: 35px;
    border-radius: 50%;
    transition: var(--transition);
}

.achievement-card:hover .achievement-icon {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.achievement-card h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 800;
}

.cta-section {
    background: linear-gradient(to right, var(--primary-color), var(--hover-color));
    padding: 80px 0;
    text-align: center;
    color: var(--white-color);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--white-color);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-content .btn {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    transition: var(--transition);
}

.cta-content .btn:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
}

/* ====== CONTACT PAGE ====== */
.contact-info-card {
    padding: 30px;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-10px);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    color: var(--primary-color);
    font-size: 35px;
    border-radius: 50%;
    transition: var(--transition);
}

.contact-info-card:hover .contact-icon {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.contact-info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-form-wrapper {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.map-container {
    height: 450px;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.accordion-item {
    margin-bottom: 15px;
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.accordion-button {
    font-weight: 600;
    padding: 15px 20px;
    background-color: var(--white-color);
    border: none;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: var(--light-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.1);
}

.accordion-button::after {
    background-size: 1.2rem;
    transition: var(--transition);
}

.accordion-body {
    padding: 20px;
    background-color: var(--white-color);
}

/* ====== POLICY PAGES ====== */
.policy-container {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
}

.policy-section {
    margin-bottom: 30px;
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

.policy-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.policy-section h3 {
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.policy-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.policy-section ul {
    margin-bottom: 20px;
    padding-right: 20px;
}

.policy-section ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.contact-info-policy {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 15px;
}

.policy-update {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-color);
    font-style: italic;
    color: var(--gray-color);
}

/* ====== SCROLL TARGET OFFSET ====== */
html {
    scroll-padding-top: 80px; /* Adjust based on navbar height */
}

:target {
    scroll-margin-top: 80px; /* For browsers that support it */
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeIn {
    animation-name: fadeIn;
}

.slideUp {
    animation-name: slideUp;
}

/* Animation Delays */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* Hover effects */
.hover-zoom {
    transition: transform 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== OWL CAROUSEL CUSTOM STYLES ====== */
.owl-carousel {
    position: relative;
    direction: ltr; /* Fix for RTL layout */
}

.owl-carousel .item {
    direction: rtl; /* Reset direction for carousel items */
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.owl-carousel .owl-nav button.owl-prev {
    left: -20px;
}

.owl-carousel .owl-nav button.owl-next {
    right: -20px;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    background-color: var(--hover-color);
}

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

.owl-carousel .owl-dots button.owl-dot {
    width: 10px;
    height: 10px;
    background-color: var(--gray-color);
    border-radius: 50%;
    margin: 0 5px;
    transition: var(--transition);
}

.owl-carousel .owl-dots button.owl-dot.active {
    background-color: var(--primary-color);
    width: 15px;
    border-radius: 5px;
}