/* COLORS

#a3793c
#ebdd8e
#ba9a56
#cfb76f
#c6ac64
#ac8c4c
#d4c474
#ac8c44
#c4ac6c
___________________________

#9a6d31
#b79653
#d9c57a
#fbf4a1


*/

/* RULETKA START

@media screen and (max-width: 850px) {
	#modalContainer {
		padding-top: 125px;
	}
	#closeModalBtn2 {
		padding: 30px;
	}
}


 Ruletka End */


header .contact-details .wgt-1 *{
	cursor: default;
	outline: none;
}


a:onlick {
	outline: none!important;
}


a, a:hover, a:active, button:focus, a:focus {
	outline: none!important;
}

/* Popup Consultation */

.popmake label {
	font-weight: 500;
}

.popmake input {
	margin-bottom: 15px;
}

.popmake input[type='submit'] {
	margin: auto;
	display: block;
	margin-top: 25px;
}

/* ------ */

.hp-service-border {
	border: 2px solid grey;
	border-radius: 10px;
}

.hp-service-border:hover {
	background: lightgrey;
	transition: 0.5s;
}

.tgold {
	color: 	#d9c57a;
}

.twhite {
	color: white;
}


.my-flexbox {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
}


.my-flex-item img {
	height: auto;
	width: 200px;
	margin: 8px;
}

@media screen and (max-width: 900px) {
		.my-flex-item img {
		height: auto;
		width: 30vw;
	}
}

@media screen and (max-width: 700px) {
		.my-flex-item img {
		height: auto;
		width: 50vw;
	}
	.hp-utr .vc_cta3-container.vc_cta3-size-md{
		width: 100%;
	}
}

header .logo a:before {
	background: #242424;
}

.sticky-menu .theme-menu {
    justify-content: center;
}

.bdp-post-short-content {
	display: none;
}

.hp-service-block div {
	border-radius: 10px;
}



@media screen and (min-width:900px) {

#hp-call-to-action-en .vc_general.vc_cta3.vc_cta3-actions-right .vc_cta3-content,

#hp-call-to-action-en .vc_general.vc_cta3.vc_cta3-actions-right .vc_cta3-actions {
	width: 40%;
	text-align: center;
}

	
}


figure.tpstyle-20 h3 {
	font-size: 1.4em;
}


.contactus_box_header_logo {
	display: none;
}

@media screen and (min-width: 900px){
.hp-service-block {
	height: 425px;
	overflow: hidden;
	padding: 0!important;
	margin: 20px 0;
	background: #242424;
	border-radius: 10px;
}
}

/* BREADCRUMPS */

.breadcrumb-list {
display: none;
}


/* BLOG PAGE */

#blog-section .post-image {
	display: none;
}

.header-widget ul {
	cursor: default;
}

.post-content .post-title {
	font-weight: bold;
	font-size: 30px;
}

/* OUR TEAM PHOTOS */

.tpstyle-20-image {
	height: 250px;
	width: 268px;
}

@media screen and (max-width: 650px) {
#n2-ss-4 {
	height: 70vh;
}
}

/* Developer Footer */


#developer-footer a {
	color: rgba(174, 137, 73, 0.4);
}

.brtpmj_reviews_container .brtpmj_businessheader,
.brtpmj_reviews_container .carousel-container {
	display: none!important;
	margin: auto!important;
	text-align: center!important;
}

.brtpmj_reviews_container {	
	padding-top: 20px!important;
}

@media screen and (max-width: 750px) { 
.brtpmj_reviews_container  .brtpmj_business_ratings {
margin: auto!important;
	max-width: 60%;
	left: 15%;
}
}

@media screen and (max-width: 650px) {
.brtpmj_reviews_container  .brtpmj_business_ratings {
		max-width: 100%;
		left: 10%;
	}
	
	.brtpmj_reviews_container {	
	padding-top: 0!important;
	}
}


/* Christmas SOCIAL TOP LINKS */

.header-above-info {
	background: url(https://capital-empire.co.uk/wp-content/uploads/2025/12/mx.jpg);
	background-position: bottom;
	 background-size: cover;
}
.header-widget {
	background: rgba(0,0,0,0.7);
} 
.widget_social_widget li a {
	color: white;
	text-shadow: 1px 1px 5px black;
}
.widget_social_widget li a:before {
	background: url(https://capital-empire.co.uk/wp-content/uploads/2025/12/bblue.png);
	background-position: center;
	background-size: cover;
	height: 50px;
	margin-top: -18px;
}
.footer-dark {
	background: url(https://capital-empire.co.uk/wp-content/uploads/2024/12/christmas-5740350_1920.png)!important;
    background-size: contain;
    background-position: top;
	background-repeat: no-repeat;
}
@media screen and (max-width: 500px) {
	.footer-dark {
		background: url(https://capital-empire.co.uk/wp-content/uploads/2025/11/christmas-download-2.png)!important;
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
	}
}
/* Christmas END */


/* Mobile language START */
/* Styling for the current language flag image */
.wpglobus-current-lang-container img,
.wpglobus-dropdown-list-wrapper img {
    width: auto; /* Adjust this value to your desired flag width */
    height: 18px; /* Adjust this value to your desired flag height */
	padding-top: 3px;
}


/* This is your new current language container from the PHP code */
.wpglobus-current-lang-container {
    display: inline-block;
    cursor: pointer;
}

/* The dropdown container, completely separate from the header's flow. */
/* Using 'position: absolute' relative to a fixed-height parent in the header is best. */
/* Or, if the header is always in the same place, you can use 'position: fixed' to position it relative to the viewport. */
.wpglobus-dropdown-list-wrapper {
    display: none; /* Hidden by default */
    position: absolute; /* Takes it out of the normal layout flow */
    top: 60px; /* Adjust this value to set the distance from the top of the header */
    right: 50px; /* Adjust this value to position it correctly on the right side */
    z-index: 9999; /* Ensure it's on top of everything else */
    background: #ffffff; /* White background for the dropdown */
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    padding: 10px;
}

/* The inner list styling */
.wpglobus-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wpglobus-dropdown-list li {
    padding: 10px 0!important;
}

.wpglobus-dropdown-list li a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
}

.wpglobus-dropdown-list img {
    width: 20px;
    height: 15px;
    margin-right: 10px;
}


/*HIDE MAIN WPGLOBUS navigation languages */

.theme-mobile-menu #menu-main  li:last-child {
	display: none;
}
/* Mobile language END */

/* CIS Calculator styles START */
/* CIS Form Container */
.CIS-form-section {
    display: none;
   	background-color: #333; /* Dark gray for form background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
}

.CIS-form-section.active {
    display: block;
}

/* CIS Input and Label Styling */
.CIS-calc-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #FFD700;
    border-radius: 5px;
    background-color: #222;
    color: black;
}

.CIS-calc-input:focus {
    color: darkgray;
}

.CIS-calc-error {
    color: #FF4500; /* Red-Orange for error message */
    font-size: 0.85em;
    margin-top: 5px;
    display: none; /* Hidden by default */
}

.CIS-calc-form-twhite {
    color: white;
}

/* CIS Button Styling */
.CIS-calc-button,
.CIS-form-section input[type="submit"] {
    background-color: #FFD700;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.CIS-calc-button:hover {
    background-color: #FFCC00;
}

/* Labels and inputs styles */ 

#CISstep1 label,
#CISstep3 label {
	margin-bottom: 8px;
    color: #FFD700;
    font-weight: bold;
} 

  .CIS-form-section input[type="number"],
  .CIS-form-section input[type="text"],
  .CIS-form-section input[type="email"],
  .CIS-form-section input[type="tel"] {
        width: 100%;
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid #FFD700;
        border-radius: 5px;
        background-color: #222;
        color: #FFD700;
    }

  .CIS-form-section  input:focus {
        color: darkgray;
    }


/* CIS Result Text */
#CISresultDisplay, #resultDisplay  {
    font-size: 1.5em;
    font-weight: bold;
}

/* CIS Calculator styles END */

/* Calculator styles START */
    /* Form Container */
    .form-section {
        display: none;
        background-color:#ad905d; /* Dark gray for form background */
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        max-width: 400px;
        width: 100%;
        box-sizing: border-box;
    }

    .form-section.active {
        display: block;
    }

.form-section label {
	margin-bottom: 8px;
    color: black;
    font-weight: bold;
}

    /* Notification Area */
    #notification {
        font-weight: bold;
        margin-bottom: 15px;
        display: none; /* Hidden by default */
    }

    /* Error Styling */
    #incomeError,
    #expensesError {
        color: #FF4500; /* Red-Orange for error message */
        font-size: 0.85em;
        margin-left: 10px;
        display: none;
    }

.calc-error {
    color: #FF4500; /* Red-Orange for error message */
    font-size: 0.85em;
    margin-top: 5px;
    display: none; /* Hidden by default */
}

#step1 .calc-error {
	color: #cd0000;
	text-shadow: 0;
}

    /* Result Text */
    #result {
        font-size: 1.5em;
        font-weight: bold;
    }

    /* White Text */
	
	.calc-form-twhite {
		color: white;
	}


/* CIS CALCULATOR */

    /* Form Container */
    .CIS-form-section {
        display: none;
        background-color: #333; /* Dark gray for form background */
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        max-width: 400px;
        width: 100%;
        box-sizing: border-box;
    }

    .CIS-form-section.active {
        display: block;
    }
    

    /* Notification Area */
    #CISnotification {
        font-weight: bold;
        margin-bottom: 15px;
        display: none; /* Hidden by default */
    }

    /* Error Styling */
    #CISincomeError,
    #CISexpensesError {
        color: #FF4500; /* Red-Orange for error message */
        font-size: 0.85em;
        margin-left: 10px;
        display: none;
    }

/* Result Text */
    #CISresult {
        font-size: 1.5em;
        font-weight: bold;
    }


/* HEADINGS Styles */

.wpcf7 h5, .wpcf7 h3 {
	color: white;
	text-align: center;
}

.wpcf7 h3 {
    font-size: 26px;
}

.wpcf7 h5 {
	margin-bottom: 20px;
	font-size: 16px;
}


/****/


  .form-section  input[type="number"],
   .form-section input[type="text"],
  .form-section  input[type="email"],
  .form-section  input[type="tel"] {
        width: 100%;
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid #FFD700;
        border-radius: 5px;
        background-color: #222;
        color: #FFD700;
    }

  .form-section  input:focus {
        color: darkgray;
    }

    /* Button Styling */

.form-section button,
.form-section input[type="submit"]{
        background-color: #FFD700;
        color: #000;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-weight: bold;
        width: 100%;
        margin-top: 10px;
        transition: background-color 0.3s;
    }

  .form-section  button:hover {
        background-color: #FFCC00;
    }

#step1 .calc-button,
#step2 .calc-button,
#step3 .calc-button {
	background: #333;
	color: #ffd700;
	border: 1px solid lightgray;
}

.consultation-button {
	background: red!important; 
	color: white!important;
}
/* Calculator styles END */

/* HALLOWEEN SOCIAL TOP LINKS 

 .header-above-info {
	background: url(https://capital-empire.co.uk/wp-content/uploads/2024/10/halloween-8990159_1280.jpg);
	background-position: bottom ;
}

.header-widget {
background: rgba(0,0,0,0.7);
} 

.widget_social_widget li a {
	color: white;
	text-shadow: 1px 1px 5px black;
}



.widget_social_widget li a:before {
	background: url(https://capital-empire.co.uk/wp-content/uploads/2024/10/halloween-5635930_640.png);
background-position: center;
	background-size: cover;
}


.footer-dark {
	background: url("https://capital-empire.co.uk/wp-content/uploads/2024/10/halloween-8990159_1280.jpg");
    background-size: cover;
    background-position: center;
}

HALLOWEEN END */


/* Addittional START */
:root {
	--sp-primary: #ae8949;
	--sp-gradient-focus: linear-gradient(35deg,#b79653,#d9c57a,#d9c57a);
}


@media screen and (min-width: 900px) {
	.hideonweb {
		display: none!important;
	}
}

@media screen and (max-width: 900px) {
	.hideonmob {
		display: none!important;
	}

}

.av-py-default {
    padding: 0;
}



.av-btn, button {
	background: linear-gradient(35deg,#b79653,#d9c57a,#d9c57a);
    border-color: #d9c57a;
}

button:hover {
	transform: scale(1.05);
	transition: 0.5s;
}


mark {
	background: linear-gradient(35deg, #9a6d31, #ac8c4c,#ac8c44 );
	color: white;
	font-weight: 500;
	padding: 0 5px;
}

.overfvis {
	overflow: visible!important;	
}




/* HEADER STYLES */

.header-above-info {
 	background: var(--sp-secondary-dark); 
}


.header-above-info .widget-left, .header-above-info .widget-right {
	min-height: 99px;
    margin: 0;
    padding: 0;
    margin-top: -15px;
}


.logo img {
    max-width: 245px;
    width: 220px;
	margin-top: -20px;
}




/* MENU STYLES */

#menu-main a.nav-link {
	font-size: 16px;
	font-weight: bold;
	font-family: poppins,sans-serif';'
}



.theme-mobile-menu {
	padding-bottom: 5px;
}

.theme-mobile-menu .mobile-logo {
	margin-top: 10px;
}


.headtop-mobi {
	display: none;
}


/* FOOTER STYLES */

.footer-section {
    padding-top: 0;
}

.footer-dark {
    background: url(https://capital-empire.co.uk/wp-content/uploads/2022/03/pexels-dalia-nava-9998420-scaled.jpg);
    background-size: cover;
    background-position: center;
}

.footer-main {
	padding-top: 50px;
}

.footer-main {
    background: rgba(36, 36, 36, 0.9);
}

.footer-copyright {
    background: rgba(36, 36, 36, 0.8);
}

.footer .widget .widget-title::first-letter {
	color: #b79653;
}

.footer li a:before {
	display: none;
}


.footer li:hover {
	padding-left: 5px;
	transition: 0.5s;
}



footer .menu-item i._mi {
	padding: 10px;
	border: 1px solid #b79653;
	color: #b79653;
	border-radius: 3px;
	margin-right: 10px;
}

footer .menu li a:hover i._mi {
	color: white;
	border-color: white;
}


.footer-ask {
    display: block;
    margin-top: 15px;
	line-height: 45px;
	padding-top: 5px;
	border-radius: 3px;
}


.footer-ask .fa {
	margin-left: 5px;
}

/* SIDEBAR STYLES */

@media screen and (max-width: 900px){
#sidebar-spacer {
		display: none;
	}
	
	#footer-worktime {
		display: block;
		text-align: center;
	}
}


/* ONLINE CHAT */

#contactus .contactus_btn {
	margin-bottom: 40px;
	background: linear-gradient(45deg, #25D366, #25D366);
}

/* HIDE BLOG POST META */

.post-meta.down {
	display: none;
}
/* Addittional END */

/* Home Page START */
/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ 

/* HOME PAGE STYLES */

#hp-slider-block .vc_column-inner {
	padding-top: 0!important;
}


#hp-more-btn {
	color: black;
	margin-left: 10px;
}

.hp-company-text {
	font-size: 17px;
}

.vc_custom_1647972137340  .mega_count_content .main-counter:before,
.vc_custom_1649519611199 .mega_count_content .main-counter:before,
.vc_custom_1650359831597 .mega_count_content .main-counter:before
{
	content: "£ "; 
}

.hp-service-block {
	box-shadow: 0 1px 15px rgb(0 0 0 / 11%), 0 0 4px #d9c57a inset;
}

.hp-service-block:hover {
	box-shadow: 0 -4px 1px 1px #d9c57a inset, 0 0 4px #d9c57a inset;
	transition: all 300ms linear 0ms;
	-webkit-transform: translateY(-20px);
    -khtml-transform: translateY(-20px);
    -moz-transform: translateY(-20px);
    -ms-transform: translateY(-20px);
    -o-transform: translateY(-20px);
    transform: translateY(-20px);
}

.hp-service-block  .wpb_single_image figure {
	background: linear-gradient(35deg,#b79653,#d9c57a,#fbf4a1,#d9c57a);
	border-radius: 50%;
	box-shadow: 0 0 4px gray;
	position: relative;
	top: -40px;
	padding: 10px;
}


.hp-service-block:hover .hp-service-img figure {
	background: linear-gradient(-35deg,#d9c57a,#fbf4a1,#d9c57a);
	transform: scale(1.15);
	transition: 1s;
}


.hp-service-block  .wpb_single_image {
	margin-bottom: 0;
}


.hp-call-to-action {
	border: 2px solid #d9c57a!important;
	border-radius: 7px!important;
}

.hp-call-to-action h2 {
	color: #9a6d31!important;
	text-shadow: 0 0 52px white!important;
}

@media screen and (max-width: 710px) {
	.hp-call-to-action h2 {
		font-size: 1.4em!important;
		color: red!important;
	}

	.hp-call-to-action button, #hp-call-to-action p {
		margin-top: 15px!important;
	}
}

/* Home Page END */

/* About us START */
/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ 


.certificate {
	border: 1px solid lightgray;
}

.certificate:hover {
	box-shadow: 0 0 2px gray;
	cursor: zoom-in;
}

figure.tpstyle-20-blue h3, figure.tpstyle-20-blue:before, figure.tpstyle-20-blue:after {
	background: rgba(0,0,0,0.8);
}
/* About us END */

/* Services Page START */
/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ 


#menu-services {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #e9e9ea;
}

#menu-services li a:before {
		content: "\f105";
    font-family: FontAwesome;
	left: 28px;

}


#menu-services li {
background: #f2f2f2;
	margin-bottom: 3px;
}	
	
#menu-services li a {
	word-break: break-word;
	padding: 15px 15px 15px 45px;
		width: 100%;
}

#menu-services li a:hover {
	color: white;
    background-color: var(--sp-primary);
}

#menu-services li a:hover:before {
	-webkit-animation: iconRightCaret 600ms ease;
    animation: iconRightCaret 600ms ease;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
}
/* Services Page END */

/* Contacts page START */
/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ 

	
#ct-page-contacts {
	color: white;
}

#ct-page-contacts h5 {
	padding-bottom: 10px;
}

#ct-page-contacts label {
	color: black;
}


#ct-page-contacts .wpcf7-submit {
background: linear-gradient(35deg,#b79653,#d9c57a,#d9c57a);
    border-color: #d9c57a;
    text-shadow: 0 0 3px black;
}


#ct-page-contacts .wpcf7-submit:hover {
	color: black;
	text-shadow: none;
	box-shadow: 0 0 3px gray;
}

#ct-page-map {
	margin-bottom: 0;
}


#ct-page-contacts p .fas, #ct-page-contacts p .far {
	padding-right: 5px;
}


.wpcf7 form.sent .wpcf7-response-output, .wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
	color: black;
}
/* Contacts page END */

/* Calendar START */

    /* 1. TRIGGER BUTTON STYLE */
    #ce-advent-trigger {
        position: fixed;
        bottom: 20px;
        left: 20px;
        background-image: url('https://media.giphy.com/media/v1.Y2lkPWVjZjA1ZTQ3NjVtdmwwdGlobWEzNzhnanZhMDV0dzQzeTk2b3VmM3Z6bDNxaGg4YSZlcD12MV9naWZzX3JlbGF0ZWQmY3Q9Zw/eNkdonLCqGy3ynW5EG/giphy.gif') ; /* Your Primary Red 8C001A */
        color: white;
        padding: 15px 25px;
        border-radius: 50px;
        font-family: 'Inter', sans-serif;
        font-weight: bold;
        font-size: 1.2rem;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        z-index: 9999999999;
        transition: transform 0.3s;
        border: 2px solid #AE8949; /* Gold */
    }
    #ce-advent-trigger:hover {
        transform: scale(1.1);
    }

    /* 2. POPUP OVERLAY WRAPPER */
    #ce-advent-popup-overlay {
        position: fixed;
        /* * ORIGINAL: display: none;
        * NEW: Use opacity and visibility for smooth transitions
        */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease-out, visibility 0s 0.5s; /* Hide after 0.5s fade out */
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 100000; /* Super high to sit on top of WP menu */
        background: rgba(0,0,0,0.8);
        background-position: center;
        background-size: cover;
        overflow-y: auto; /* Allow scrolling if calendar is tall */
        
        /* Flexbox to center the calendar like your original body */
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 1rem;
    }

    /* NEW: Visible state for smooth fade-in */
    #ce-advent-popup-overlay.visible {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.5s ease-out, visibility 0s 0s; /* Show instantly */
    }

    /* Close Button for the main popup */
    .ce-popup-close-btn {
        position: absolute;
        top: 20px;
        right: 30px;
        font-size: 3rem;
        color: white;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 100002;
        border-radius: 50%;
        line-height: 0.6;
        padding: 15px;
    }

    /* --- YOUR ORIGINAL CSS (Scoped slightly) --- */
    
    :root {
        --color-primary: #8C001A; 
        --color-secondary: #004D25; 
        --color-gold: #AE8949; 
        --color-light-gold: #F0D7A7; 
        --color-white: #ffffff;
        --color-light-bg: #f5f5f5; 
        --color-dark: #1a1a1a;
        --door-transition-time: 0.4s;
    }

    /* Original Font Import */
    @import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Inter:wght@400;600;700&display=swap');

    .header-title {
        font-family: 'Great Vibes', cursive;
        text-shadow: 2px 2px 4px var(--color-dark), 0 0 10px var(--color-gold);
        font-weight: normal; 
        text-align: center;
        color: white;
        line-height: 1.2;
    }


    .calendar-container {
        max-width: 90rem;
        width: 70%;
        height: 90vh;
        margin: 2rem auto;
        padding-bottom: 200px;
        background-image: url('https://capital-empire.co.uk/wp-content/uploads/2025/12/pexels-george-dolgikh-551816-1303085-scaled.jpg');
        background-size: cover;
        background-position: center;
        padding: 2.5rem;
        border: 2px solid white;
        border-radius: 1rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
        color: var(--color-white);
        z-index: 50; 
        position: relative;
        box-sizing: border-box; 
        overflow-y: scroll;
        scrollbar-width: none;
        
        /* NEW: Start position for animation */
        transform: scale(0.95);
        opacity: 0;
        transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease-out; /* Smooth springy entrance */
    }
    
    /* NEW: End position for animation */
    #ce-advent-popup-overlay.visible .calendar-container {
        transform: scale(1);
        opacity: 1;
    }
@media (max-width: 600px) { 
    .calendar-container {
        width: 85%;
    }
    
}   

    .calendar-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 0.8rem;
    }
    
    .door-container {
        box-shadow: 0 0 15px black;
    }

    .door-container { position: relative; aspect-ratio: 1 / 1; cursor: pointer; border-radius: 0.6rem; overflow: hidden; }
    .door-front, .door-back { 
        position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
        display: flex; align-items: center; justify-content: center; 
        box-sizing: border-box; border-radius: 0.6rem; 
        transition: opacity var(--door-transition-time) ease-in-out, z-index 0s, background-color var(--door-transition-time), transform 0.3s, box-shadow 0.3s; 
    }

    .door-back { 
        background-color: var(--color-light-bg); color: var(--color-dark); z-index: 1; opacity: 0; padding: 0.5rem; 
        text-align: center; font-size: 0.875rem; border: 3px solid var(--color-primary); 
        flex-direction: column; justify-content: center; align-items: center; line-height: 1.3; 
    }

    .door-front { 
        background-color: var(--color-gold); color: var(--color-dark); z-index: 2; opacity: 1; 
        border: 3px solid var(--color-light-gold); font-size: 2rem; font-weight: 700; 
        user-select: none; box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3), 0 8px 15px rgba(0, 0, 0, 0.4); 
        background-image: repeating-linear-gradient( 45deg, rgba(140, 0, 26, 0.15) 0, rgba(140, 0, 26, 0.15) 1px, transparent 1px, transparent 5px ); 
        flex-direction: column; 
    }
    
    /* REMOVED: NEW CSS for Custom Image Background on Locked Doors */

    
    .day-icon { position: absolute; font-size: 4rem; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; transition: all 0.3s; line-height: 1; }
    .door-front .day-number { z-index: 2; position: relative; text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); transition: all 0.3s; }
    
    .locked { cursor: not-allowed; opacity: 1; }
    .locked .day-icon { opacity: 0.3; filter: grayscale(100%); } /* RESTORED: Faded icon for locked doors */
    .locked .day-number { opacity: 0.7; color: var(--color-dark); }

    .today { cursor: pointer; }
    .today .door-front { 
        box-shadow: 0 0 35px var(--color-light-gold), 0 0 10px rgba(0, 0, 0, 0.7), inset 0 0 10px rgba(0, 0, 0, 0.7);
        border-color: var(--color-primary); transform: scale(1.03);
    }
    .today .day-icon { opacity: 1; font-size: 4.5rem; text-shadow: 0 0 8px var(--color-primary); filter: none; }
    .today .door-front .day-number { opacity: 1; color: var(--color-primary); font-size: 2.4rem; font-weight: 900; text-shadow: 0 0 10px rgba(255, 255, 255, 1); }
    .today:hover .door-front { transform: scale(1.05); box-shadow: 0 0 45px var(--color-light-gold), 0 0 15px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(0, 0, 0, 0.9); }
    
    .door-container.open .door-front { opacity: 0; z-index: 1; transform: none; animation: none; }
    .door-container.open .door-back {
        opacity: 1; z-index: 2; animation: expandAndFlash 0.5s ease-out; border: 3px solid var(--color-primary); cursor: pointer;
        background-color: var(--color-dark); 
        background-image: url('https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExb3R1N3B6bXgyNzY0MHhzbG9sZnI0MjNpZ2o2cWx5MGJic3NjeWt6ZyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/3ov9jQqeeHygU7zXrO/giphy.gif');
        background-size: cover; background-position: center; color: var(--color-white); text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    }
    
    .door-container.past-open .door-front { opacity: 0; z-index: 1; transform: none; animation: none; transition: none; }
    .door-container.past-open .door-back {
        opacity: 1; z-index: 2; animation: none; border: 3px solid var(--color-secondary);
        background-color: var(--color-dark); 
        background-image: url('https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExODdzeTh3MWMxa2xqOWU5ZzgyNWt6MXBubXVyOWw4MzI2N2VnZW02YiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/CkBzt6qXCCXw4/giphy.gif'); 
        background-size: cover; background-position: center; color: var(--color-white); text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
        display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1rem; cursor: default;
    }
    .past-offer-text { font-size: 0.9rem; line-height: 1.4; margin-top: 0.5rem; font-weight: 600; }
    .expired-stamp { font-size: 0.75rem; font-weight: 700; color: var(--color-light-gold); padding: 3px; border-radius: 4px; background-color: var(--color-primary); border: 1px solid var(--color-light-gold); }

    @keyframes shakeAndShrink { 0% { transform: scale(1) rotate(0deg); opacity: 1; } 25% { transform: scale(1.05) rotate(1deg); } 50% { transform: scale(0.9) rotate(-1deg); } 75% { transform: scale(1.05) rotate(1deg); } 100% { transform: scale(0.8); opacity: 1; } }
    .door-container.revealing .door-front { animation: shakeAndShrink 0.6s ease-in-out forwards; }
    @keyframes expandAndFlash { 0% { transform: scale(0.8); opacity: 0; filter: brightness(2); } 100% { transform: scale(1); opacity: 1; filter: brightness(1); } }

    /* Modal Styles */
    .modal-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.8); display: flex; justify-content: center; align-items: center;
        z-index: 100100; /* Must be higher than popup overlay */
        opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    }
    .modal-overlay.visible { opacity: 1; pointer-events: auto; }
    .modal-content {
        background-image: url('https://capital-empire.co.uk/wp-content/uploads/2025/12/presents-white.jpg'); 
        background-size: cover;
        background-position: left;
        color: var(--color-dark); padding: 2rem; border-radius: 1rem;
        max-width: 90%; width: 400px; text-align: center; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        transform: scale(0.8); transition: transform 0.3s ease; position: relative;
    }
    .modal-overlay.visible .modal-content { transform: scale(1); }
    .close-button { position: absolute; top: 10px; right: 15px; font-size: 1.5rem; font-weight: bold; color: var(--color-primary); cursor: pointer; line-height: 1; }

    .content-emoji { font-size: 2rem; margin-bottom: 0.5rem; line-height: 1; }
    .modal-day-title { font-size: 1.5rem; font-weight: 700; color: var(--color-secondary); margin-bottom: 0.75rem;}
    .door-small-description { font-size: 0.875rem; line-height: 1.2; margin-bottom: 0.4rem; font-weight: 600; }
    
    .discount-code, .link-button-door { 
        font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 700; padding: 0.4rem 0.8rem; 
        background-color: var(--color-primary); color: var(--color-white); border-radius: 0.3rem; 
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: background-color 0.2s, transform 0.2s; 
        display: inline-block; cursor: pointer; text-decoration: none; text-transform: uppercase; 
    }
    .discount-code:hover, .link-button-door:hover { background-color: #6d0014; transform: translateY(-1px); }
    .copy-message { font-size: 0.75rem; margin-top: 0.25rem; color: var(--color-secondary); opacity: 0; transition: opacity 0.3s; }
	
	#modal-content-body {background: rgba(255,255,255,0.5); border-radius: 1rem;}
    #modal-content-body .content-emoji { font-size: 3rem; margin-bottom: 0.75rem;  }
    #modal-content-body .door-small-description { font-size: 1rem; margin-bottom: 1rem; }
    #modal-content-body .discount-code, #modal-content-body .link-button-door { font-size: 1.1rem; padding: 0.6rem 1.2rem; margin-top: 10px; }

    /* --- NEW CSS FOR GIFT MODAL IMAGE --- */
    .gift-modal-image {
        max-width: 80%;
        height: auto;
        border-radius: 0.5rem;
		margin: auto;
        margin-bottom: 1rem;
        border: 2px solid var(--color-gold);
    }
    /* --- END NEW CSS --- */
    
    /* --- NEW CSS FOR LONG DESCRIPTION AND LARGE RED CODE (REQUESTED) --- */
    .gift-long-description {
        font-size: 1rem;
        font-weight: 400;
        margin-bottom: 1rem;
        line-height: 1.3;
        color: var(--color-dark); /* Ensure it's dark text on a light background */
    }
    
    .large-red-code {
        font-size: 1.5rem; /* Big */
        font-weight: 900; /* Bold */
        color: var(--color-primary); /* Red */
        margin: 10px 0 20px; /* Spacing */
        text-transform: uppercase;
        user-select: all; /* Allows easy text selection for manual copy */
    }
    /* --- END NEW CSS --- */

@media (max-width: 400px) { 
    /* General mobile adjustments for the calendar layout */
    .door-front { font-size: 1.5rem; } 
    .today .door-front .day-number { font-size: 1.8rem; } 
    .header-title { font-size: 2.1rem; text-shadow: 2px 2px 4px var(--color-gold), 0 0 10px var(--color-gold ) } 
    .calendar-container { padding: 1rem; padding-bottom: 100px!important; } 
    
    /* Small Door Back adjustments */
    .door-back { 
        font-size: 0.70rem; padding: 0.3rem; 
        display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; 
    }
    .door-small-description { 
        font-size: 0.7rem; word-wrap: break-word; overflow-wrap: break-word; 
        width: 100%; margin: 0; font-weight: 600; 
    }
    .past-offer-text { 
        font-size: 0.72rem; word-wrap: break-word; overflow-wrap: break-word; 
        width: 100%; margin: 0; 
    }
    
    /* 1. HIDE: Hide the buttons and emojis in the small open door preview (Door Back) */
    .content-emoji, 
    .discount-code, /* Hidden in small door preview */
    .link-button-door, /* Hidden in small door preview */
    .expired-stamp { 
        display: none !important; 
    }

    /* 2. SHOW: OVERRIDE: Show the button/code/emoji when they appear inside the full MODAL popup */
    #modal-content-body .content-emoji, 
    #modal-content-body .discount-code,
    #modal-content-body .link-button-door,
    #modal-content-body .large-red-code { /* Added large-red-code here too */
        display: block !important; /* Force visibility in the modal */
        font-size: 1.1rem !important; /* Reset size for the modal */
        padding: 0.6rem 1.2rem !important;
    }
    
    #modal-content-body .large-red-code {
        /* Override specific sizing for the large red code in mobile modal */
        font-size: 1.2rem !important;
        padding: 0 !important;
    }
}

    @media (min-width: 640px) { .calendar-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } .header-title { font-size: 3.5rem; } .door-front { font-size: 2.5rem; } .door-back { padding: 1rem; font-size: 0.875rem; } .door-small-description { font-size: 0.875rem; } }
    @media (min-width: 1024px) { .calendar-grid { grid-template-columns: repeat(6, 1fr); gap: 1.5rem; } .header-title { font-size: 4rem; } }

/* Calendar END */

