/* Styles for about the cause page */

body{
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: #EDEDF4;
}

.navbar{
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    background-color: #EDEDF4;
}

.navbar-brand{
    font-size: 24px;
    font-weight: 500;
}

.navbar ul{
    font-weight: 450;
    font-size: 20px;
}
.nav-item a {
    position: relative;
}

.nav-item a::after {
    content: ''; 
    width: 0; 
    height: 1px; 
    background-color: black;
    position: absolute;
    bottom: -4px;
    left: 10px; 
    transition: width 0.4s ease; /* Smooth transition for the line */
}

/* final width the line should be at */
.nav-item a:hover::after,
.nav-item a.active::after {
    width: 90%; 
}

.nav-item:hover {
    transform: scale(1.05); 
    transition: transform 0.3s ease;
}
.What-is-alzheimer {
    color: white;
    margin-top: 70px;
    position: relative;
    padding: 35px;
    text-align: center;
    height: 300px; /* Set a fixed height for the banner */
    overflow: hidden; /* Ensure content is clipped */
    box-shadow: 0 0 20px 0px rgb(89, 1, 92);
    display: flex; /* Use flexbox for better alignment */
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center items vertically */
} 

.background {
    position: absolute; /* Position it absolutely within .header */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(images/Banner.png);
    background-size: cover; /* Maintain cover size */
    filter: blur(2px); /* Apply blur effect */
    z-index: 0; /* Send it to the back */
}

.What-is-alzheimer h1,p {
    position: relative; /* Ensure text is above the blurred background */
    z-index: 1; /* Bring text above the background */
}

h1,p{
    font-size: 75px;
}

.img-fluid {
    max-width: 100%; /* Ensures image doesn't exceed its container */
    height: auto; /* Maintain aspect ratio */
}


.card{
    transition: ease 0.5s;
}

.card-link{
    text-decoration: none;
    color: black;
}

/* Section 2 Cards */
.card:hover{
    box-shadow: 0 0 20px 0px rgb(89, 1, 92);
    transform: scale(1.05)
}
.scroll-container {
    overflow-x: auto; /* Allows horizontal scrolling */
}

.symptoms{
    line-height: 1.5rem;
}

.accordion-item {
    flex: 1; /* Allow items to grow equally */
    overflow: hidden;
}

.accordion-button {
    display: flex; /* Use flexbox for alignment */
    justify-content: space-between; /* Align content evenly */
    width: 100%; /* Make button full width */
}
.accordion-button:not(.collapsed){
    background-color: rgb(89, 1, 92); /* Background color when expanded */
    color: #fff; /* Text color when expanded */
}

.accordion-header {
    flex: 1; /* Allow headers to grow equally */
}

.accordion-button {
    width: 100%; /* Ensure buttons take full width */
}


.accordion-body {
    padding: 15px; /* Adjust padding as needed */
}

.grid-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

article.about{
    grid-column: span 3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
    padding-bottom: 40px;
    padding-top: 40px;
}

article.about img {
    width: 100%;
    border-radius: 8px;
}

article p, article h3 {
    margin: 20px 15px;
    line-height: 1.8rem;
    font-size: 20px;
}


article.treatments {
    grid-column: span 3; /* Assuming it spans across 3 columns on a larger grid */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Create two equal-width columns */
    gap: 60px;
    align-items: start; /* Align items to the start to keep them neatly aligned */
    padding-bottom: 40px;
    padding-top: 40px;
}

  /* Ensure the image takes up the full width of its column */
article.treatments img {  
    max-width: 100%;
    border-radius: 8px;
    margin-top: 75px;
} 

/* Make the second text box span across both columns */
.second-box {
    grid-column: span 2; /* This makes the second box span across both columns */
    grid-row: 2; /* Place the second box in the second row */
    overflow-y: auto; /* Allow scrolling if content overflows */
}


@media (max-width: 2000px) {
    .navbar-nav {
        width: 70%;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .text-box {
        width: 95%;
    }

    .text-box h1 {
        font-size: 40px;
    }

    .text-box p {
        font-size: 14px;
    }
    article.about{
        grid-column: span 3;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
        align-items: center;
    }
    article.treatments{
        grid-column: span 3;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
        align-items: center;
    }

    .treatments img{
        max-width: 100%;
    }

    .accordion {
        flex-direction: column; /* Stack vertically */
    }

    .accordion-item {
        width: 100%; /* Ensure items take full width */
    }
}

@media (max-width: 768px) {
    .card {
      min-height: 300px; /* Adjust height for smaller screens */
    }
    article.about{
        display: block;
        margin: 0 20px;
    }
    article.treatments{
        display: block;
        margin: 0 20px;
        grid-template-columns: 1fr; /* Single column layout */
    }
    .treatments img{
        max-width: 100%;
    }
    .accordion {
        flex-direction: column; /* Stack vertically */
    }

    .accordion-item {
        width: 100%; /* Ensure items take full width */
    }

    .What-is-alzheimer {
        height: auto; /* Allow height to adjust for smaller screens */
        padding: 20px; /* Adjust padding for smaller screens */
    }

    .What-is-alzheimer h1 {
        font-size: 40px; /* Adjust font size for smaller screens */
    }

    .What-is-alzheimer p {
        font-size: 16px; /* Adjust font size for smaller screens */
    }
}