/* Custom styles for Al Khuzama Environmental Association */

/* General styles */
body {
    color: #333;
}

.btn-2 {
    background-color: #7030a0 !important;
    border-color: #7030a0 !important;
}

.btn-2:hover {
    background-color: #5a2580 !important;
    border-color: #5a2580 !important;
}

/* Slider adjustments */
.carousel-item .carousel-gradient:after {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.carousel-caption {
    top: 50%;
}

.home-content-container {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.home-description p {
    font-size: 1.2rem;
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.8;
}

/* Section styles */
section {
    overflow: hidden;
}

.section-title {
    font-weight: bold;
    font-size: 2.2rem;
}

.vision-box,
.mission-box {
    border-top: 4px solid #7030a0;
    background-color: rgba(112, 48, 160, 0.05);
}

.values-box .value-item {
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.values-box .value-item:hover {
    background-color: rgba(112, 48, 160, 0.05);
}

.goal-card {
    padding: 30px 20px;
    border-bottom: 4px solid #7030a0;
}

.initiative-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    padding-top: 40px;
}

.initiative-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: #7030a0;
}

.partner-item {
    background-color: white;
    border: 2px solid rgba(112, 48, 160, 0.1);
}

.partner-item h4 {
    font-weight: 600;
    color: #7030a0;
}

.media-card {
    position: relative;
    padding-right: 20px;
}

.media-card:before {
    content: "";
    position: absolute;
    right: 0;
    top: 25px;
    bottom: 25px;
    width: 4px;
    background-color: #7030a0;
}

.gallery-item {
    background-color: rgba(112, 48, 160, 0.05);
    cursor: pointer;
    text-align: center;
    padding: 15px;
}

.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
}

/* Header Styles */
.navbar {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.nav-link {
    color: #333 !important;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 1.5rem 1rem !important;
    position: relative;
    white-space: nowrap;
}

.navbar-nav {
    flex-wrap: nowrap;
}

.nav-item,
.dropdown {
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
    color: #7030a0 !important;
}

.nav-link:after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 10px;
    left: 50%;
    background-color: #7030a0;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 40%;
}

.custom-dropdown {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.dropdown-item {
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(112, 48, 160, 0.1);
    color: #7030a0;
}

.btn-join {
    background-color: #7030a0;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #7030a0;
}

.btn-join:hover {
    background-color: transparent;
    color: #7030a0;
}

.btn-join i {
    margin-left: 5px;
}

/* Footer Styles */
.footer {
    background-color: #252525;
    background-image: url("../imgs/footer-background.png"),
        linear-gradient(rgba(37, 37, 37, 0.95), rgba(37, 37, 37, 0.95)),
        url("../imgs/lavender/lavender_field1.jpg");
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.footer-heading {
    color: #fff;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading:after {
    content: "";
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #7030a0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: 0 auto;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact {
    color: rgba(255, 255, 255, 0.7);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    padding: 6px 0;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #fff;
    transform: translateX(-5px);
}

.footer-menu {
    text-align: right;
}

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

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #7030a0;
    color: #fff;
    transform: translateY(-3px);
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 10px 15px;
    height: 45px;
    border-radius: 5px 0 0 5px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .btn {
    background-color: #7030a0;
    border-color: #7030a0;
    color: #fff;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive styles */
@media (max-width: 768px) {
    .home-description p {
        font-size: 1rem;
    }

    .carousel-caption {
        top: 45%;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .vision-box,
    .mission-box {
        margin-bottom: 20px;
    }

    .quote {
        font-size: 1rem;
    }

    .navbar {
        padding: 0.5rem;
    }

    .navbar-brand img {
        width: 100px;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .nav-link:after {
        display: none;
    }

    .footer-menu,
    .footer-about,
    .footer-newsletter {
        text-align: center;
    }

    .footer-heading:after {
        right: 0;
        left: 0;
        margin: 0 auto;
    }
}

@media (min-width: 992px) {
    .footer-heading:after {
        right: auto;
        left: 0;
        margin: 0;
    }

    .footer-about,
    .footer-menu {
        text-align: right;
    }

    .footer-newsletter {
        text-align: right;
    }
}

/* Lavender-themed sections */
.lavender-bg-section {
    background: linear-gradient(
            rgba(255, 255, 255, 0.85),
            rgba(255, 255, 255, 0.85)
        ),
        url("../imgs/lavender/lavender_field1.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.initiatives-bg-section {
    position: relative;
}

.initiatives-bg-section:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: url("../imgs/lavender/lavender_closeup.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
}

/* Carousel Enhancements */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(112, 48, 160, 0.6);
    border-radius: 50%;
    top: 50%;
    opacity: 0.8;
    transform: translateY(-50%);
}

.carousel-control-prev {
    inset-inline-start: 20px;
}

.carousel-control-next {
    inset-inline-end: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(112, 48, 160, 0.9);
    opacity: 1;
}

.carousel-indicators [data-bs-target] {
    background-color: #7030a0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}
