/* Caspia CSS */

@media screen and (max-width:980px) {
    #caspia-header>.et_pb_row {
        width: 100%;
        display: inline-flex;
        align-items: center;
        padding: 5px 15px;
        max-height: initial !important;
    }

    #caspia-header .mobile_menu_bar:before {
        color: #0009 !important;
    }

    #caspia-header .et_pb_column_1_4 {
        height: 100%;
        margin-bottom: 0 !important;
    }
 
    #caspia-footer .et_pb_column_1_3 {
        justify-content: center;
    }
}


#caspia-header {
    padding-top: 10px;
    padding-bottom: 15px !important;
}


/* NEW DESIGN CSS */
.page-id-3504 h1 {
    font-family: 'Libertinus Serif Display', serif !important;
    font-size: clamp(40px, 4vw, 57px) !important;
    line-height: 1.05;
}

@media screen and (max-width:1300px){
	.page-id-3504 h1 {
		font-size: clamp(30px, 3vw, 37px) !important;
	}
}

.page-id-3504 h2 {
    font-family: 'Libertinus Serif Display', serif !important;
    font-size: clamp(2.5rem, 4.5vw + 1rem, 4.8125rem) !important;
    line-height: 1.1;
}

.page-id-3504 h3 {
    font-family: 'Libertinus Serif Display', serif !important;
    font-size: clamp(2rem, 3.5vw + 0.8rem, 3.8125rem) !important;
    line-height: 1.2;
}

.page-id-3504 h4 {
    font-family: 'Libertinus Serif Display', serif !important;
    font-size: clamp(1.75rem, 2.5vw + 0.5rem, 3.0625rem) !important;
    line-height: 1.25;
}

.page-id-3504 h5 {
    font-family: 'Libertinus Serif Display', serif !important;
    font-size: clamp(1.5rem, 2vw + 0.3rem, 2.4375rem) !important;
    line-height: 1.3;
}

.page-id-3504 h6 {
    font-family: 'Libertinus Serif Display', serif !important;
    font-size: clamp(1.25rem, 1.5vw + 0.2rem, 1.9375rem) !important;
    line-height: 1.35;
}

.page-id-3504{
	font-weight:400;
}


#caspia-header nav ul li a {
    display: flex;
    align-items: center;
    padding-bottom: 0;
    padding-top: 0;
    color: #000;
    position: relative;
    transition: 0.3s ease all;
}

#caspia-header nav ul li:hover a::before {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 100%;
    height: 2px;
    background: #000;
}

#caspia-header nav ul li:last-child:hover a::before {
    display: none;
}

#caspia-header #menu-centrum-caspia-menu li:last-child a {
    background: #f5a800;
    padding: 15px !important;
}

#caspia-hero-slider {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
}

#caspia-herobanner img {
    margin-top: -5% !important;
}

@media screen and (min-width:992px) and (max-width:1300px){
	.page-id-3504 #banner-caspia .et_pb_row_1 .et_pb_column_1{
		width:75% !important;
	}
}

@media screen and (min-width:992px){
	#caspia-herobanner img {
    	margin-top: -50% !important;
		object-fit: contain;
		min-height: 1280px;
	}
}

@media screen and (min-width:1200px){
	#caspia-herobanner img{
		margin-top: -40% !important;
		object-fit: contain;
	}
	
	#banner-caspia .et_pb_divider_0{
		margin-bottom: 0 !important;
    	height: 20px;
	}
}

@media screen and (min-width:1300px){
	#caspia-herobanner img{
		margin-top: -40% !important;
	}
}

@media screen and (min-width:1425px){
	#caspia-herobanner img{
		margin-top: -35% !important;
	}
}

@media screen and (min-width:1600px){
	#caspia-herobanner img{
		margin-top: -28% !important;
	}
}

@media screen and (min-width:2000px){
	#caspia-herobanner img{
		margin-top: -25% !important;
	}
}

/* ── Outer section becomes the Swiper host ── */
#caspia-hero-slider {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    margin-top: -500px !important;
    height: clamp(320px, 56vw, 800px);
    width: 100%;
}

/* ── Swiper core overrides ── */
#caspia-hero-slider .swiper {
    width: 100%;
    height: 100%;
}

#caspia-hero-slider .swiper-wrapper {
    width: 100%;
    height: 100%;
}

#caspia-hero-slider .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ── Bottom black gradient overlay ── */
#caspia-hero-slider .swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: #000000;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(255, 255, 255, 0) 41%);
    z-index: 1;
}

/* ── Images: cover the slide + top-transparent mask ── */
#caspia-hero-slider .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
}

/* ── Swiper Pagination Dots ── */
#caspia-hero-slider .swiper-pagination {
    bottom: 20px;
}

#caspia-hero-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.8);
    opacity: 1;
    transition: transform 0.3s ease, background 0.3s ease;
}

#caspia-hero-slider .swiper-pagination-bullet-active {
    background: #ffffff;
    transform: scale(1.35);
}

#caspia-form .ff_submit_btn_wrapper {
	background-image: unset !important;
    border-radius: 50px !important;
    padding: 5px 6px !important;
}

/* Container Spacing */
#caspia-form .ff-el-group {
    margin-bottom: 20px !important;
}

/* Red Input Fields Design */
#caspia-form .ff-el-form-control {
    background-color: #d82b11 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0px !important;
    height: 58px !important;
    padding: 10px 20px !important;
    font-size: 22px !important;
    font-family: 'Google Sans', Helvetica, Arial, Lucida, sans-serif !important;
    text-align: center !important;
    box-shadow: none !important;
    outline: none !important;
    width: 100% !important;
}

/* Input Placeholder Text Styling */
#caspia-form .ff-el-form-control::placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
    font-size: 22px !important;
    font-family: 'Google Sans', Helvetica, Arial, Lucida, sans-serif !important;
    text-align: center !important;
}

/* Focus State */
#caspia-form .ff-el-form-control:focus {
    background-color: #b8230c !important;
    color: #ffffff !important;
}

/* Checkbox Section Layout & Styling */
#caspia-form .ff-el-form-check {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 25px !important;
    margin-bottom: 25px !important;
}

#caspia-form .ff-el-form-check-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 15px !important;
    color: #333333 !important;
    cursor: pointer !important;
    font-family: 'Google Sans', Helvetica, Arial, Lucida, sans-serif !important;
}

/* Custom Checkbox Design */
#caspia-form input[type="checkbox"].ff-el-form-check-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border: 1.5px solid #555555 !important;
    border-radius: 0px !important;
    background-color: transparent !important;
    cursor: pointer !important;
    position: relative !important;
    margin: 0 !important;
}

#caspia-form input[type="checkbox"].ff-el-form-check-input:checked {
    background-color: #d82b11 !important;
    border-color: #d82b11 !important;
}

#caspia-form input[type="checkbox"].ff-el-form-check-input:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 6px !important;
    top: 2px !important;
    width: 5px !important;
    height: 10px !important;
    border: solid white !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

/* Submit Button Design */
#caspia-form .ff_submit_btn_wrapper {
    text-align: center !important;
    display: flex;
    justify-content: center;
}

#caspia-form .btn-submit {
    background-color: #d82b11 !important;
    color: #ffffff !important;
    font-family: 'Google Sans', Helvetica, Arial, Lucida, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 12px 45px !important;
    border: none !important;
    border-radius: 0px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

#caspia-form .btn-submit:hover {
    background-color: #b8230c !important;
}

div#caspia-form {
    width: 60%;
    margin: 0 auto;
}


div#caspia-header {
    display: flex;
    justify-content: space-between;
}

div#caspia-header::after {
    display: none;
}

#caspia-header .et_pb_column:first-child {
    width: auto;
    margin: 0;
}

div#caspia-header>div:last-child {
    display: flex;
    align-items: center;
    width: auto;
}

/* Slide needs relative positioning for the label overlay */
#caspia-hero-slider .swiper-slide {
    position: relative;
}

#caspia-hero-slider .slide-label {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

/* Mobile Responsiveness */
@media(max-width: 960px) {
    #caspia-hero-slider {
        margin-top: -200px !important
    }
}

@media (max-width: 768px) {

    #caspia-header>div:first-child {
        display: none;
    }

    #caspia-hero-slider {
        margin-top: 0 !important;
    }

    div#caspia-form {
        width: 100%;
        margin: 0 auto;
    }

    div#caspia-header>div:last-child {
        width: 100% !important;
    }

}


.page-id-3504  .et_pb_scroll_top.et-pb-icon {
    /* Position — sits below the floating stack */
    position: fixed !important;
    right: 0 !important;
    bottom: 30px !important;
    z-index: 99999 !important;
    /* Circle */
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    border-top-left-radius: 50% !important;
    border-bottom-left-radius: 50% !important;
    -webkit-border-top-left-radius: 50% !important;
    -webkit-border-bottom-left-radius: 50% !important;
    /* Colour — matches the call button purple */
    background: #7b2d8b !important;
    color: #ffffff !important;
    /* Icon size */
    font-size: 22px;
    padding: 0 !important;
    /* Layout */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* Shadow to match */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
    /* Transition */
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
/* Hover — same slide-left as floating buttons */
.page-id-3504 .et_pb_scroll_top.et-pb-icon:hover {
    transform: translateX(-6px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}
/* Keep Divi's fade-in animation intact */
.page-id-3504 .et_pb_scroll_top.et-visible {
    opacity: 1 !important;
}

.page-id-3504 .et-pb-icon.et-visible.et-hidden,
.page-id-3504 .et-pb-icon.et-hidden{
	display:none !important;
	animation:none !important;
}

.page-id-3504 .et_pb_text_3_tb_footer{
	width:100% !important;
}

@media screen and (max-width:767px){
	.page-id-3504 .et-pb-icon{
		display:none !important;
	}
}

.page-id-3504 .icon-row-hero img{
	max-width:50px !important;
}

@media screen and (min-width: 992px){
	.page-id-3504 .icon-row-hero .et_pb_column{
		width:16% !important;
	}
}

@media screen and (max-width:767px){
	.page-id-3504 .icon-row-hero {
		display: grid !important;
		grid-template-columns: repeat(3, 1fr);
		gap: 0px;
		column-gap:5px;
	}

	.page-id-3504 .icon-row-hero .et_pb_column {
		width: auto !important;
		margin: 0 !important;
		float: none !important;
	}
	
	.page-id-3504 .icon-row-hero img{
		max-width:30px;
	}
	
	.page-id-3504 .icon-row-hero .et_pb_column .et_pb_module{
		margin-bottom:5px;
	}
	
	.page-id-3504 .icon-row-hero .et_pb_text_inner{
		font-size:14px;
	}
	
	.page-id-3504 .apply-text p{
		font-size:14px !important;
	}
	
	#banner-caspia{
		padding-bottom:0 !important;
	}
	
	#banner-caspia .et_pb_row_0{
		padding-top:20px;
	}
	
	#banner-caspia .et_pb_row_1{
		padding-bottom:12px !important;
	}
	
	#banner-caspia .et_pb_row.et_pb_row_1 p{
		font-size:16px;
	}
	
	#banner-caspia .et_pb_column{
		margin-bottom:0;
	}
	
	#banner-caspia .et_pb_divider_0{
		width:50%;
		margin-bottom:0 !important;
		height:10px;
	}
	
	#banner-caspia h1{
		font-size:25px !important;
	}
	
	#banner-caspia .et_pb_row_0.et_pb_row{
		padding-bottom:0 !important;
	}
	
	.page-id-3504 #banner-caspia .icon-row-hero{
		margin-bottom:10px !important;
	}
	
	#caspia-herobanner img{
		margin-top:-5% !important;
	}
	
	#floor-plan{
		padding-bottom:0;
	}
}

@media screen and (max-width:480px){
	#caspia-herobanner img{
		object-fit: none;
		object-position: 100% 0% !important;
		min-height: 230px;
	}
	
	#banner-caspia .et_pb_row.et_pb_row_1 p{
		font-size:10px !important;
		line-height: 13px !important;
	}
	
	.page-id-3504 .icon-row-hero p,
	.page-id-3504 .icon-row-hero .et_pb_text_inner{
		font-size: 7px !important;
        line-height: 8px;
	}
}