/*FOOTER */

/* General Footer Styling */
.footer-container-fluid {
    border-top: 0.2rem solid var(--yellowcolor);
	background-color:var(--darkbluecolor);
	padding: 0rem 1rem;

	width: 100%;
    box-sizing: border-box;
    position: relative;

}

.footer-header {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center-align the text and button */
    text-align: center;
    margin-bottom: 0rem;
	border-bottom: 0.15rem solid var(--whitecolor); 
}

.footer-button{
	margin:auto;
	width: 100%;
    max-width: 20rem; /* Makes it responsive */
	font-size:1.2rem;
	height:2.2rem;
	background-color: var(--whitecolor);
	color:var(--darkbluecolor);
}

.footer-button:hover {
	border: 0.2rem solid var(--yellowcolor);
}	


/* .................... Footer Content .............................*/

.footer-content {
    display: flex;
    flex-wrap: wrap; /* Enable wrapping for footer sections */
    justify-content: space-between; /* Add space between sections */
    gap: 1rem; /* Spacing between items */
	margin: 0 1.5rem 0 1.5rem;
	padding: 1.0rem 0;

box-sizing: border-box;
}

.footer-section {
    flex: 1 1 calc(50% - 1rem); /* Take up 50% of the width, allow wrapping */
    text-align: left;
	margin-bottom: 1rem; /* Add spacing between sections on smaller screens */
}

.footer-section:nth-child(2) {
    text-align: right; /* This keeps the right-side alignment */
}

.footer-link,
.footer-link a{
	text-decoration: none; /* Remove underline */
    opacity:1;
	color: var(--whitecolor); 
}	

/* Hover state */
.footer-link:hover,
.footer-link a:hover {
    color: var(--yellowcolor); 			/* Change color on hover */
    transition: color 0.3s ease-in-out; /* Smooth color transition */
}

.footer-font{
	color: var(--whitecolor);
}


/* ....................Footer Footer Content .............................*/

.container-search{
	display: flex;
	flex-direction: column;  /* stacks h5 above the search container */
	align-items: center;
	justify-content: center;
	padding: 2.0rem 0 2.0rem 0;
	border-top: 0.15rem solid var(--whitecolor); 

box-sizing: border-box;
    width: 100%;
}	

.footer-search-toggle {
    text-decoration: underline;
    color: inherit; /* keeps it consistent with surrounding text */
    transition: color 0.2s ease;
	cursor: pointer;
}

.footer-search-toggle:hover {
    color: yellow;
}

.footer-search-container {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0.5rem auto;
	height: auto;
	width: 20.0rem;
}

/* Icon containers */
.footer-search-icon,
.footer-close-icon {
	width: 1.2rem;
	height: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	cursor: pointer;
}

.footer-search-icon svg,
.footer-close-icon svg {
	width: 1.2rem;
	height: 1.2rem;
}

.footer-search-icon:hover svg,
.footer-close-icon:hover svg {
	stroke: var(--yellowcolor);
	fill: var(--yellowcolor);
}

.footer-search {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0.5rem auto;
	gap: 1rem; /* Ensures spacing between icons and input */
	padding: 0 0.5rem;
	box-sizing: border-box;
	height: 2.0rem;
	width: 100%;
}

/* Input field */
.footer-search input {
	border: none;
	border-radius: 0.3rem;
	background-color: var(--darkbluecolor);
	color: var(--whitecolor);
	font-size: 1.2rem;
	font-family: Rubik-Light, sans-serif;
	box-sizing: border-box;
	padding: 0 0.5rem;
	width: 100%;
	text-align: center;
}

/* Placeholder style */
.footer-search input::placeholder {
	color: var(--whitecolor);
	opacity: 0.6;
}

.footer-copyright {
	display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center-align the text and button */
    text-align: center;
	border-top: 0.15rem solid var(--whitecolor); 
	width: 100%;
	padding-top: 1rem;

box-sizing: border-box;
}	


/*............................................ MEDIA QUERIES................................... */


@media (max-width: 50rem) {
    .footer-content {
        flex-direction: column; /* Stack sections vertically on smaller screens */
		align-items: center; /* Centers content */
        text-align: center; /* Ensures text is centered */
	}

    .footer-section {
        flex: 1 1 100%; /* Take full width for each section */
	}

    .footer-section:nth-child(1),
	.footer-section:nth-child(2){
        text-align: center; /* Center-align the left-hand section */
    }

    .footer-button-container {
        margin-top: 1.5rem;
    }

		
}

