/******** TOP DESCRIPTION BLOCK *****/
.top-description-card{
    background-color: #0050B5;
}

.top-description-card h1{
    color: #e6e7ea;
}

.card-title-top{
    font-family: 'Cormorant Garamond",sans-serif'; /* Elegant cursive font */
    /* font-weight: 400; */
    margin-bottom: 16px;
    text-transform: uppercase;
    font-size: 2.5rem;    
}

.text-container {
    max-width: 945px; /* Set the maximum width of the text block */
    text-align: justify; /* Justify the text alignment */
    margin: 0 auto; /* Center the block horizontally */
}

.text-container h3,
.text-container p{
    color: #e6e7ea;
    text-align: left;
    
}

.text-container h3{
    font-family: 'Cormorant Garamond",sans-serif'; /* Elegant cursive font */
    text-transform: uppercase;
    font-size: 1.5rem;
    
}

.text-container p {
    font-size: 1.25rem;    
}

.text-container .instruction{
    font-size: 1rem ;
}

/******** MIDDLE-CARDS DESCRIPTION BLOCK *****/
#accordion .card {
    position: relative;
    overflow: hidden;
    background-color: transparent;
    border: none;
    border-radius: 0%;
}

#accordion img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative; /* Ensures the image stays in place */
    z-index: 1; /* Below the overlays */
    opacity: 1;
}


.regular-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0.6), 
    rgba(20, 20, 20, 0.9)
);
    color: white;
    opacity: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
    z-index: 2; /* Ensure overlay is above the image */
}

/* Hover overlay styling */
.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    opacity: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items:flex-start;
    text-align: left;
    color: white;
    transition: opacity 0.3s ease;
    z-index: 3; /* Ensure hover overlay is above the regular overlay */
    padding: 20px 0; /* Adds spacing around the text */
}

/* On hover, show hover overlay and hide regular overlay */
.card:hover .hover-overlay {
    opacity: 1;
}

#accordion .card:hover .hover-overlay h4{
    font-family: 'Cormorant Garamond",sans-serif'; /* Elegant cursive font */
    text-transform: uppercase;
    /* margin-left: 10px; */
    background-color: #0050B5;
    font-size: 1.25rem;
    padding: 0 5px;
}

.card:hover .hover-overlay ul{
    list-style: none;    
    margin: 0; /* Removes default margin */
    padding: 0;
}

.card:hover .hover-overlay ul li{
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    /* opacity: 0.7; */
    transition: 0.5s;    
    line-height: 1; /* Improves spacing between list items */
    font-size: 1rem;
    /* background-color: red; */
    margin: 5px 10px;

}

.card:hover .regular-overlay {
    opacity: 0;
}

/* Titles and descriptions */
.card-title {
    font-family: 'Cormorant Garamond",sans-serif'; /* Elegant cursive font */
    text-transform: uppercase;
    font-size: 1.5rem;
    margin: 5px 0;
    z-index: 3;
}

.card-short-descp {
    /* font-size: 1rem;
    margin: 5px 10px; */
    z-index: 3;
}

.card-long-descp{
    /* background-color: red; */
    max-width: 945px; /* Set the maximum width of the text block */
    text-align: justify; /* Justify the text alignment */
    margin: 0 auto; /* Center the block horizontally */
    font-size: 1.25rem;
    list-style: none;
    line-height: 1.5;
}

.card-long-descp li{
    margin-bottom: 18px;
}

#fulldescription {    
    padding: 15px;
    background: #0050B5;
    border-radius: 0;
    font-size: 1rem;
    color: white;
}

#fulldescription h4{
    font-family: 'Cormorant Garamond",sans-serif'; /* Elegant cursive font */
    text-transform: uppercase;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/******** BOTTOM DESCRIPTION BLOCK *****/

.card-title-bottom{
    font-family: 'Cormorant Garamond",sans-serif'; /* Elegant cursive font */
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 2.5rem;
}

.bottom-description-card p{
    font-size: 1.25rem;
}

.bottom-description-card a{
    display: inline-block; /* Makes the <a> behave like a button */
    color: #e6e7ea;
    text-decoration: none;
    border-radius: 0;
    /* opacity: 1;     */
    font-size: 1.25rem;
    padding: 5px 10px; /* Adds spacing inside the button */
    text-align: center; /* Centers the text within the button */
    background-color: #0050B5; /* Blue color consistent with footer */

}

.bottom-description-card a:hover {
    background-color: #0050B5; /* Darker blue on hover */
    color: white; /* Maintain white text */
    transition: opacity 0.5s, background-color 0.5s, border-color 0.3s ease-in-out; /* Smooth transitions */  
    transform: scale(1.05); /* Scale up by 5% on hover */
}

/*****************ADD RESPONSIVE ADJUSTMENTS FOR 320********************************/
@media (max-width:320px){
    .card-title-top{
        margin-bottom: 10px;
        text-transform: uppercase;
        font-size: 2rem;    
    }

    .text-container {
        max-width: 95%; /* Set the maximum width of the text block */
    }

    .text-container h3 {
        font-size: 1rem;    
    }

    .text-container p {
        font-size: 0.85rem;    
    }

    .text-container .instruction{
        font-size: 0.75rem ;
    }

    #accordion .card{
        margin: 0;
    } 

    .card-title-bottom{
        font-size: 1.5rem;
    }

    .bottom-description-card p{
        font-size: 0.85rem;
    }
    
    .bottom-description-card a{
        font-size: 0.85rem;
    }
}

/*****************ADD RESPONSIVE ADJUSTMENTS FOR 620********************************/
@media (max-width:620px){
    .card-group {
        display: flex; /* Ensure Flexbox is still applied */
        flex-direction: column; /* Stack items vertically */
    }

    .regular-overlay h4{
        font-size: 2rem;
        padding: 0 5px;
    }

    
    #fulldescription h4{
        font-family: 'Cormorant Garamond",sans-serif'; /* Elegant cursive font */
        text-transform: uppercase;
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .card-long-descp{
        /* background-color: red; */
        max-width: 90%; /* Set the maximum width of the text block */
        font-size: 1rem;
        line-height: 1.5;
    }

    .text-container {
        max-width:90%; /* Set the maximum width of the text block */
    }

    .text-container p{
        font-size: 1rem;
    }
}

/*****************ADD RESPONSIVE ADJUSTMENTS FOR 1600********************************/
@media (max-width:1600px){
    .card-title{
        font-size: 1.15rem;
    }

    #accordion .card:hover .hover-overlay h4{
        font-size: 1rem;
        padding: 0 5px;  
    
    }
}



