@media (max-width: 600px) {
    section {
        flex-direction: column;
        align-items: center;
    }
	  section.news-home[style] {
        justify-content: flex-start !important;
    }
}

/* Smooth fade-in animations for homepage elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes softPulse {
    0%, 100% {
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0px 0px 20px rgba(198, 42, 61, 0.15);
    }
}

/* Classes for scroll-triggered animations */
.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-up-delay-1 {
    animation: fadeInUp 0.8s ease-out 0.15s forwards;
}

.animate-fade-in-up-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.home-top {
    background-image: linear-gradient(-2deg, #ffffff00 20vh, #c1c0d5 0vh, #ff000000), var(--bg-image);
    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;
    padding-top: 60px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 75px;
    margin-top: -90px;
    opacity: 0;
    /* Background image animation is defined in index.php style tag */
}

.home-top.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards, changeBackground var(--animation-duration, 15s) infinite 0.8s;
}

.home-top>div {
    margin-top: 50px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 20px;
    opacity: 0;
}

.home-top>div.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.pr-link {
    border: 2px solid #b7333e;
    border-radius: 9px;
    margin: 10px;
    font-size: 11pt;
    display: block;
    color: #222b5f;
    padding: 10px 20px;
    background-color: white;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: 5px;
    opacity: 0;
}

.pr-link.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.pr-link:hover {
    background-color: #b7333e;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(182, 51, 62, 0.2);
}

.resp {
    width: 540px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 92%, 0% 100%);
    transform-origin: bottom;
    transition: transform 0.3s ease;
    opacity: 0;
}

.resp.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out 0.3s forwards;
}

@media only screen and (max-width: 900px) {
    .home-top {
        min-height: 1330px;
        padding-bottom: 170px;
    }

    .home-top>div {
        max-width: 100%;
        margin: 10px;
        font-size: 14px;
    }

    .resp {
        width: 80%;
        clip-path: none;
        transform-origin: initial;
        margin: 0 auto;
        margin-top: 40px;
        margin-bottom: -20px;
    }
}

@media screen and (min-width: 1501px) {
    .home-top {
        background-size: cover;
        background-position: center 90%;
    }
}

/* for filter.php */

.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.combo-group {
    display: flex;
    flex-wrap: wrap;
    gap: 55px;
    justify-content: center;
    width: 100%;
    /* opacity: 0; */
}

.combo-group.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.combo-container {
    position: relative;
    display: flex;
    /* Ensure consistency for all containers */
    flex-direction: column;
    /* opacity: 0;*/
	position: relative;
}

.combo-container.animate-scale-in {
    animation: scaleIn 0.6s ease-out 0.55s forwards;
}

.combo-container:last-child {
    justify-content: center;
    /* Align the "Visitez" button */
    align-items: center;
}

.combo-input {
    all: unset;
    width: 65%;
    padding: 8px;
    border-radius: 5px;
    font-style: italic;
}

.dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dropdown-item {
    padding: 8px;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

.arrow-button {
    background: #222B5F;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: white;
    width: 15%;
}

.arrow-button:focus {
    outline: none;
}

.clear-button {
    cursor: pointer;
    padding: 2px 6px;
    border: none;
    background: transparent;
    border-radius: 50%;
    font-size: 25px;
    width: 13%;
    color: #222B5F;
    display: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #222B5F;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #151b42;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 43, 95, 0.3);
}

.page-link.disabled {
    background-color: #aaaaaa;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .combo-container {
        width: 90%;
    }
}

.single-box {
    position: relative;
    border: 2px solid #222B5F;
    border-radius: 4px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
}

/* for info.php */

.contact svg {
    width: 33px;
    fill: #142d6b;
}

.contact>div {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    font-family: Helvetica, sans-serif;
    font-size: clamp(14px, 2vw, 20px);
    text-decoration: none;
    color: var(--blue);
	flex-wrap: wrap;
}

.contact a {
    text-decoration: none;
    color: inherit;
}

.contact a:hover {
    text-decoration: underline;
}

@media only screen and (max-width: 430px) {
	.contact>div {
		flex-direction: column;
		gap: 10px;
    	margin-top: 20px;
	}
	
	section:has(.contact) {
		display: block;
		
		iframe {
			margin-top: 35px !important;
		}
	}

}

/* for parole.php */

.parole {
    background: url(/wp-content/uploads/2025/04/parole.jpg);
     aspect-ratio: 215 / 15;
    background-size: cover;
    color: white;
    background-repeat: no-repeat;
    /* Remove or increase max-height */
    /* max-height: 390px; */
    width: 100%;
    opacity: 0;
    transition: transform 0.3s ease;
	background-position: center;
}

.parole.animate-scale-in {
    animation: scaleIn 0.8s ease-out 0.6s forwards;
}

.parole:hover {
    transform: scale(1.01);
}

.parole h1 {
    color: white;
    font-size: 5vw;
    padding-left: 5%;
    padding-top: 5vw;
    font-family: 'Dancing Script', cursive;
	margin-top: 0;
}

.parole .quote {
    padding: 20px 50px;
    direction: rtl;
    font-size: 2.5vw;
    text-align: left;
    margin-top: 60px;
    padding-bottom: 40px;
    max-width: 56%;
    text-align: right;
}

.parole .attribution {
    display: block;
    font-style: italic;
    margin-top: 15px;
}

@media only screen and (max-width: 550px) {
	.parole h1 {
    font-size: 10vw;
	}
	
	.parole .quote {
		margin-top: 0;
        padding: 20px 5px;
        font-size: 4.5vw;
	}
	
}