.pre-header-bar {
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	background-color: #D1373F;
	padding: 15px 20px;
	display: flex;
	justify-content: center; /* Center horizontally */
	align-items: center; /* Center vertically */
	font-family: 'Open Sans', Arial, sans-serif;
	z-index: 9999;
	flex-wrap: wrap; /* Wrap items on smaller screens */
}

.pre-header-item {
    display: flex;
    flex-direction: row; /* Align text and button in a row */
    align-items: center;
    margin: 0 10px;
    gap: 10px; /* Space between text and button */
}

.pre-header-text {
    font-size: 16px;
    color: #fff;
}

.pre-header-button {
	background-color: #FFDD47;
	color: #000;
	padding: 5px 15px;
	text-decoration: none;
	border-radius: 2px;
	font-size: 14px;
	font-weight: 700;
    transition: background-color 0.3s ease;
}

a.pre-header-button:hover {
	background-color: #fce062;
	color: #000;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .pre-header-bar {
        padding: 10px;
        gap: 15px;
    }

    .pre-header-item {
        flex-direction: row; /* Keep row layout on medium screens */
        gap: 8px; /* Reduce spacing between items */
    }

    .pre-header-text {
        font-size: 14px;
    }

    .pre-header-button {
        font-size: 12px;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .pre-header-bar {
        flex-direction: column; /* Stack all items vertically */
        padding: 8px;
    }

    .pre-header-item {
        flex-direction: column; /* Stack text and button vertically for each item */
        align-items: center;
        gap: 5px;
    }

    .pre-header-text {
        text-align: center;
    }
}
