/* CSS Document */

/* Ensure the slider container takes up full height */
.main-1-slider {
    position: relative;
    width: 100%;
    height: 700px; /* Full viewport height */
	max-height:700px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Each slide also takes full height */
.main-1-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 700px; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.main-1-item .container {
	margin: auto;
	width:100%;
	max-width:1320px;
	top: 50%;
	transform: translateY(-50%);
	position: absolute;
	text-align: center; /* Center all text content */
}

@media (max-width: 767px) {
	.main-1-item .container {
	margin: auto;
	width:100%;
	max-width:1320px;
	top: 20%;
		padding-left:20px;
		padding-right:20px;
	transform: translateY(-20%);
	position: absolute;
	text-align: center; /* Center all text content on mobile */
}
}

.main-1-item.active {
    opacity: 1;
    z-index: 2;
}

/* Background image handling */
.parallax {
    position: absolute; /* Ensure the parallax element is positioned relative to its container */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    will-change: transform; /* Optimise performance for transform changes */
    z-index: -1; /* Ensure the parallax element is behind content */
    background-position: center;
    background-size: cover;
	background-image: var(--desktop-bg);
	opacity: 1;
	border-radius: 0px 0px 150px 150px; /* Add bottom border radius */
}

/* Add transparent black overlay */
.parallax::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Darker overlay for better text readability */
    z-index: 1;
    border-radius: 0px 0px 150px 150px; /* Match the background image border radius */
}

/* Switch to mobile background on smaller screens */
@media (max-width: 767px) {
    .parallax {
        background-image: var(--mobile-bg)!important;
        border-radius: 0px 0px 100px 100px; /* Smaller radius for mobile */
    }
    
    /* Add border radius to overlay on mobile */
    .parallax::after {
        border-radius: 0px 0px 100px 100px; /* Match mobile background image border radius */
    }
}

/* .slidebtn {
    display: inline-block;
    text-decoration: none;
    margin: 0 30px 0px 0px;
    transition: background 0.3s ease;
    text-transform: uppercase;
	font-weight: 600;
    text-align: center;
    padding: 6px 35px;
    margin: 0 auto 20px;
    border-radius: 32px;
    color: var(--contrast);
    background-color: var(--accent);
}

.slidebtn:hover {
    background: #ffffff;
} */

/* hero nav */

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.hero-nav-prev {
    left: 20px;
}

.hero-nav-next {
    right: 20px;
}

.hero-nav-prev svg, .hero-nav-next svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.main-1-slider:hover .hero-nav {
    background: rgba(255, 255, 255, 0.2);
}

/* Timeline moved to top */
.slider-timeline {
    position: absolute;
    top: 0; /* Changed from bottom: 0 to top: 0 */
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 0, 0, 0);
    z-index: 10;
}

/* Timeline progress bar */
.timeline-progress {
    height: 100%;
    width: 0%;
    background: #cccccc;
    transition: width linear;
}

/* text colours - changed to white */
h2.title-part-1 {
    font-size: 52px;
    color: #ffffff; /* Changed to white */
	margin-bottom: 0px;
	line-height: 52px;
	text-align: center; /* Center text */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Text shadow for better readability */
}
h2.title-part-2 {
    color: #ffffff; /* Changed to white */
    font-size: 52px;
	line-height: 52px;
	text-align: center; /* Center text */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Text shadow for better readability */
}
h2.title-part-2 .highlight {
    color: #ffffff; /* Changed to white */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Text shadow for better readability */
}

p.subtitle {
    margin-bottom: 0px;
    color: #ffffff; /* Changed to white */
	font-size: 28px; /* Reduced from 42px */
	line-height: 28px; /* Reduced from 42px */
	text-align: center; /* Center text */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Text shadow for better readability */
}
p.subtitle-2 {
    margin-bottom: 0px;
    color: #ffffff; /* Changed to white */
	font-size: 28px; /* Reduced from 42px */
	line-height: 28px; /* Reduced from 42px */
	text-align: center; /* Center text */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Text shadow for better readability */
}

/* Slider Buttons */
.slider-buttons {
    text-align: center;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInButtons 0.8s ease-out 0.6s forwards;
}

@keyframes slideInButtons {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    animation: buttonPopIn 0.6s ease-out 0.8s forwards;
}

@keyframes buttonPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideOutButtons {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

@keyframes buttonPopOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

.slider-btn-primary {
    background-color: var(--accent);
    color: var(--base-3);
}

.slider-btn-primary:hover {
    background-color: var(--accent);
    color: var(--base-3);
    opacity: 0.9;
    transform: translateY(-2px) scale(1.05);
}

.slider-btn-secondary {
    background-color: var(--global-color-8);
    color: var(--base-3);
}

.slider-btn-secondary:hover {
    background-color: var(--global-color-8);
    color: var(--base-3);
    opacity: 0.9;
    transform: translateY(-2px) scale(1.05);
}

@media (max-width: 780px) {
h2.title-part-1 {
    font-size: 34px;
	margin-bottom: 0px;
	line-height: 34px;
	text-align: center; /* Center text on mobile */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Text shadow for better readability */
}
h2.title-part-2 {
    font-size: 34px;
	line-height: 34px;
	text-align: center; /* Center text on mobile */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Text shadow for better readability */
}

p.subtitle {
    display:inline;
	text-align: center; /* Center text on mobile */
	font-size: 20px; /* Reduced for mobile */
	line-height: 20px; /* Reduced for mobile */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Text shadow for better readability */
}
p.subtitle-2 {
    display:inline;
	margin-bottom:20px;
	text-align: center; /* Center text on mobile */
	font-size: 20px; /* Reduced for mobile */
	line-height: 20px; /* Reduced for mobile */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Text shadow for better readability */
}	
	
.slidebtn {
    padding: 10px 20px;
	margin: 20px 10px 0px 0px;
}

/* Mobile button adjustments */
.slider-buttons {
    margin-top: 20px;
}

.slider-btn {
    padding: 10px 20px;
    margin: 5px;
    font-size: 14px;
}
	
}



/* General animation styles */
.fade-in-down {
    animation: fadeInDown 1s forwards;
}

.fade-out-up {
    animation: fadeOutUp 1s forwards;
}

.fade-in-left {
    animation: fadeInLeft 1s forwards;
}

.fade-out-left {
    animation: fadeOutLeft 1s forwards;
}

.fade-in-right {
    animation: fadeInRight 1s forwards;
}

.fade-out-right {
    animation: fadeOutRight 1s forwards;
}

/* Keyframes for animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100px);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100px);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Parrlax before */

.parallax-before:before {
    transition: transform 0.1s linear; /* Smooth animation */
    transform: translateY(var(--before-translate, 0)); /* Use custom property for transform */
}