/* Mental Health Awareness Website - Custom Styles */

:root {
    --primary: #3b9c9c;
    --primary-text: #2d7c7a;
    --accent: #f9c6aa;
    --background: #e6f2f0;
    --headings: #333;
    --text: #444;
}

/* Global Styles */
* {
    transition: all 0.3s ease;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
}

/* Sticky Footer Support */
.min-vh-100 {
    min-height: 100vh;
}

.min-vh-75 {
    min-height: 75vh;
}

.flex-grow-1 {
    flex-grow: 1;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 50px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--headings);
}

/* Components */
.text-primary {
    color: var(--primary-text);
}

.btn {
    border-radius: 25px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-primary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #333;
}

.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-link {
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-text);
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: url("../images/MentalHealthAwareness1.png?v=2") center/cover
        no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.hero-content {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(79, 189, 186, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-title {
    color: #000000;
}

.hero-text {
    color: #000000;
    font-size: 1.2rem;
}

.hero-quote {
    color: #000000;
    font-style: italic;
}

.btn-hero-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(79, 189, 186, 0.4);
}

.btn-hero-outline {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(79, 189, 186, 0.2);
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 189, 186, 0.3);
}

section {
    padding: 4rem 0;
}

/* Testimonial Carousel */
#testimonialCarousel {
    max-width: 800px;
}

#testimonialCarousel .carousel-item {
    height: 350px;
}

#testimonialCarousel .carousel-item > div {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    width: 15%;
}

#testimonialCarousel .carousel-control-prev {
    left: -60px;
}

#testimonialCarousel .carousel-control-next {
    right: -60px;
}

#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
    background-color: var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

#testimonialCarousel .carousel-indicators button {
    background-color: var(--primary);
}

/* Cards */
.card {
    border-radius: 15px;
}

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

.card:hover .display-4 {
    transform: scale(1.1);
}

.card-body {
    padding: 2rem;
}

/* Blockquote Footer Override */
.blockquote-footer {
    background: white;
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid var(--primary);
    border-right: 4px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Background sections */
.bg-light {
    background-color: #ffffff;
}

.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6 {
    color: var(--headings);
}

.bg-light p,
.bg-light .text-muted {
    color: var(--text);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 0;
    }

    .hero-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .card-body {
        padding: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    #testimonialCarousel .carousel-control-prev,
    #testimonialCarousel .carousel-control-next {
        width: 10%;
    }

    #testimonialCarousel .carousel-control-prev {
        left: -30px;
    }

    #testimonialCarousel .carousel-control-next {
        right: -30px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 1rem 0;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-content {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .lead {
        font-size: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    #testimonialCarousel .carousel-item {
        height: 300px;
        padding: 1rem;
    }

    #testimonialCarousel .carousel-control-prev,
    #testimonialCarousel .carousel-control-next {
        display: none;
    }

    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Extra small devices */
@media (max-width: 390px) {
    .hero-section {
        padding: 0.5rem 0;
    }

    .hero-content {
        padding: 1rem 0.75rem;
        margin: 0.25rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-text {
        font-size: 0.9rem;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    #testimonialCarousel .carousel-item {
        height: 280px;
        padding: 0.5rem;
    }

    #testimonialCarousel .carousel-item > div {
        padding: 1rem 0.5rem;
    }

    .blockquote p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .blockquote-footer {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .display-4 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

/* Footer */
.footer-custom {
    background: linear-gradient(135deg, var(--primary), #3a9d9a);
    color: white;
}

.footer-custom h5,
.footer-custom h6 {
    color: white;
}

.footer-custom .text-muted {
    color: rgba(255, 255, 255, 0.95) !important;
}

.footer-custom a {
    color: rgba(255, 255, 255, 0.98);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-custom a:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

.footer-custom .social-icons a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-custom .social-icons a:hover {
    transform: scale(1.1);
    color: var(--accent);
}

.footer-custom hr {
    border-color: rgba(255, 255, 255, 0.3);
}
