/*
Theme Name: Ciputra World Jakarta
Theme URI: http://www.ciputraworldjakarta.com/
Description: A custom theme based on the Ciputra World Jakarta design.
Version: 1.0
Author: Erick Wellem
Author URI: http://www.ewwdevs.com/
*/

/* Fonts */
@font-face {
    font-family: 'Floreal';
    src: url('assets/fonts/Floreal.ttf') format('truetype'),
         url('assets/fonts/Floreal.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Floreal';
    src: url('assets/fonts/Floreal-Italic.ttf') format('truetype'),
         url('assets/fonts/Floreal-Italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}


/* General styles */
body {
    font-family: 'Instrument Sans', sans-serif;
    background-color: #141414;
    color: #EAEAEA;
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'EB Garamond', serif;
    color: #B78F37;
    text-transform: uppercase;
    text-shadow: 2px 2px #000;
}

/* Header */
header {
    background-color: transparent;
    padding: 20px 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(20, 20, 20, 0.75) !important;
    margin-top: 0;
}

.bg-dark {
    background-color: transparent !important;
    margin-top: 40px;
}

.navbar {
    padding: 0;
}

.navbar-nav .nav-link {
    font-family: "EB Garamond", serif;
    color: #B78F37;
    padding: 10px 15px;
    font-weight: bold;
    text-transform: uppercase;
}

.navbar-nav .nav-link:hover,
.navbar-nav .current-menu-item .nav-link,
.navbar-nav .current_page_item .nav-link {
    color: #B78F37;
}

.logo-link {
    display: inline-block;
}

.nav-item-20 a {
    margin-right: 200px;
    display: block;
}

header a img {
    max-height: 80px;
    margin-top: -130px;
}

#main-navbar,
#menu-main-menu {
    font-family: "EB Garamond", serif;
}

#menu-main-menu li {
    margin: 0 40px;
    display: block;
}

/* Navbar Styles */
.navbar {
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: #B78F37;
    font-family: "EB Garamond", serif;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    text-shadow: 2px 2px #000;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #EAEAEA;
}

.navbar-dark .navbar-nav .active > .nav-link,
.navbar-dark .navbar-nav .nav-link.active {
    color: #EAEAEA;
    text-shadow: 2px 2px #000;
}

/* Dropdown Styles */
.dropdown-menu {
    background-color: #141414;
    margin-top: 0;
    transition: all 0.3s ease;
    position: absolute; /* Ensure dropdown is positioned correctly */
    display: none; /* Hide dropdown by default */
}

.dropdown-menu.show {
    display: block; /* Show dropdown when the show class is added */
}

.dropdown-item {
    color: #B78F37;
    font-family: "EB Garamond", serif;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #EAEAEA;
    background-color: #B78F37;
}

/* Nested Dropdown Styles */
.dropdown-menu .dropdown-menu {
    margin-top: 0;
    margin-left: 100%;
    transition: margin-left 0.3s ease;
    top: 0;
    left: 100%; /* Ensure nested dropdowns appear to the right */
    position: absolute;
}

.dropdown-menu .dropdown-toggle::after {
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
    vertical-align: 0;
    margin-left: 0.5rem;
}

/* Control Dropdown Menu Width */
.dropdown-menu {
    max-width: 250px; /* Adjust as needed */
    min-width: 200px; /* Ensures a consistent minimum width */
    padding: 10px 0; /* Adjust the padding as necessary */
    margin: 0; /* Remove any unnecessary margins */
}

/* Sub-Menu Specific Adjustments */
.dropdown-menu .dropdown-menu {
    margin-left: 0; /* Remove default margin */
    padding: 10px; /* Add padding for spacing */
    min-width: 200px; /* Consistent width for sub-menus */
    max-width: 300px; /* Prevent sub-menu from becoming too wide */
}

/* Adjust Sub-Menu Alignment */
.dropdown-menu-end {
    right: 0; /* Align sub-menu to the right of the parent */
    left: auto; /* Ensure it's aligned correctly on the right */
}

.sub-menu {
    margin-top: 0; /* Remove any top margin */
    padding-left: 15px; /* Add some padding for visual alignment */
}

/* Make Sure Nested Sub-Menus Don’t Overflow the Parent */
.dropdown-menu .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: -1px; /* Prevent a gap between the parent and sub-menu */
    border-top-left-radius: 0; /* Adjust border radius if needed */
    border-bottom-left-radius: 0; /* Adjust border radius if needed */
}

.dropdown-item.active, .dropdown-item:active {
    background-color: transparent;
}

.depth_0 .menu-item, .depth_1 .menu-item, .depth_2 .menu-item {
    margin: 0px !important;
}

.dropdown-toggle-icon::after {
    content: "\f078"; /* FontAwesome down arrow icon */
    font-family: 'FontAwesome';
    padding-left: 5px;
}


/* Carousel */
.carousel-item {
    height: 100vh;
    position: relative;
    overflow: hidden;
    width: 100%;
    background-color: #000;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    animation: zoom-in-zoom-out 60s linear infinite;
}

.carousel-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    background-size: cover;
    background-position: center;
}

.carousel-indicators button {
    background-color: #EAEAEA;
    border-radius: 50%;
    width: 12px !important;
    height: 12px !important;
    margin: 0 10px !important;
}

.carousel-indicators .active {
    background-color: #B78F37 !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(100%);
    width: 60px;
    height: 60px;
    opacity: 0.35;
    border-radius: 45px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item .overlay {
    position: absolute;
    top: 30%;
    left: 10%;
    width: 50%;
    height: fit-content;
    background-color: rgba(0, 0, 0, 0.5);
    color: #EAEAEA;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 40px;
    box-sizing: border-box;
    border-radius: 10px;
}

.carousel-item .overlay h2 {
    margin: 0;
    font-size: 2em;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 2px 2px #000;
}

.carousel-item .overlay p {
    margin: 10px 0 0;
    font-size: 0.8em;
}

/* Sections */
section {
    padding: 60px 0;
    text-align: center;
}

section.about,
section.inquiry {
    background-color: #171717;
}

section.news {
    background-color: #1A1A1A;
}

.site-main {
    min-height: 500px;
}

.site-main a, .cwj-text-item > h4 > a:hover {
    color: #fff;
    text-decoration: none;
}

.cwj-text-item > h4 > a {
    color: #B78F37;
}

.news-row {
    min-height: 800px;
}

/* Forms */
form {
    /*max-width: 600px;*/
    margin: 0 auto;
}

.form-control,
.form-select {
    background-color: #EAEAEA;
    color: #1A1A1A;
    border: 1px solid #B78F37;
    text-transform: uppercase;
}

.form-control::placeholder {
    color: #B78F37;
}

.btn-primary {
    background-color: #B78F37;
    border-color: #B78F37;
}

.btn-primary:hover {
    background-color: #EAEAEA;
    color: #171717;
    border-color: #EAEAEA;
}

.form-select {
    color: #B78F37;
    width: fit-content;
    width: 198px;
}

/* Footer */
footer {
    background-color: #171717;
    padding: 20px 0;
}

footer p {
    margin: 0;
    color: #EAEAEA;
    text-transform: uppercase;
}

/* Utility classes */
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }

.border-end { border-right: 1px solid #B78F37 !important; }
.border-start { border-left: 1px solid #B78F37 !important; }

#qlwapp .qlwapp-previous, #qlwapp .qlwapp-close, #qlwapp .qlwapp-toggle, #qlwapp .qlwapp-box .qlwapp-header, #qlwapp .qlwapp-box .qlwapp-contact, #qlwapp .qlwapp-box .qlwapp-user {
    color: #B78F37 !important;
}

#qlwapp .qlwapp-toggle, #qlwapp .qlwapp-box .qlwapp-header, #qlwapp .qlwapp-box .qlwapp-user, #qlwapp .qlwapp-box .qlwapp-user:before {
    background-color: #fff !important;
}

/* Cards */
.card, .card-news {
    color: #fff !important;
    background-color: #171717 !important;
    border-radius: 10px;
    flex: 1 1 300px; 
    display: flex;
    flex-direction: column;
    padding: 20px;
    margin: 10px; 
    min-height: 600px;   
}
.card-news{
    height: 580px;
}
.card > * {
    flex-shrink: 1; /* Prevent content from overflowing */    
}

.card-container {
    display: flex; /* Enable flex layout */
    flex-wrap: wrap; /* Allow wrapping if needed */
    align-items: stretch; /* Make all child cards stretch to the height of the tallest card */
    gap: 10px; /* Optional: add spacing between cards */
}

.card-title a {
    color: #B78F37;
    text-decoration: none;
}

.card-body p {
    text-align: justify;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wp-post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.btn-outline-primary {
    color: #fff;
    border-color: #d6bd69;
    background-color: #434343;
    text-transform: uppercase;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active,
.open > .dropdown-toggle.btn-outline-primary {
    color: #fff;
    background-color: #B78F37 !important;
    border-color: #B78F37 !important;
}

.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: #96732C;
    border-color: #96732C;
}

.card-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: fit-content;
    background: rgba(26, 26, 26, 0.9);
    color: white;
    padding: 1rem;
    margin-top: 320px;
    border-radius: 0;
}

.card-img-overlay p {
    text-align: justify;
}

.card-image-container {
    position: relative;
}

.card-image-container img {
    display: block;
    width: 100%;
    height: auto;
}

article {
    margin-top: 6rem;
}

#breadcrumbs a {
    color:#B78F37;
}
.search-container {
    max-width: 100%;
    padding: 20px 10px;
}
.search-container form {
    display: flex;
    align-items: center;
}
.search-container input {
    flex: 1;
    border-radius: 4px 0 0 4px;
}
.search-container button {
    border-radius: 0 4px 4px 0;
}
.news-index-link-row {
    margin-top: 80px;
}

/* Post Title */
.post-title {
    margin-top: 80px;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #B78F37;
    text-align: center;
}

.post-header {
    margin-top: 5rem;
}

/* Post Meta */
.post-meta {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.post-meta .post-date,
.post-meta .post-category {
    color: #fff;
    font-weight: 400;
}

.post-meta .post-category a {
    color: #B78F37;
    text-decoration: none;
}

.post-meta .post-category a:hover {
    text-decoration: underline;
}

.nav-title, .nav-subtitle, .nav-links a {
    color: #B78F37;
    text-decoration: none;
} 

/* Post Image */
.post-image .wp-post-image {
    max-height: 100%;
    margin-bottom: 2rem;
}

.post-image img {
    border-radius: 0.25rem;
}

/* Post Content */
.post-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #fff;
    text-align: justify;
}


/* Page Title */
.page-title, .entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #B78F37;
    text-align: center;
}

.page-header {
    margin-top: 180px;
}

.entry-footer {background-color: transparent;}

.swiper-slide {
    border-radius: 20px;
}
h2.wp-block-post-title{font-size: 4rem; color: #fff; margin-bottom: 20px; font-family: 'Floreal', serif; font-style: italic; text-transform: capitalize; letter-spacing: 5px; font-weight: bold; max-width: 490px;}
.wp-block-evb-slider, .wp-block-gutsliders-photo-carousel, .superblockslider {
    position: relative;    
    padding: 50px;    
    z-index: 2;
    margin-top: 0px;
}
.wp-block-image{position: relative;z-index: 2;}
.wp-block-superblockslider-slide, .superblockslider__slide, .superblockslider__slide__bg > img {border-radius: 5px !important;}
.black-background{background-color: #000; width: 100%; height: 400px; position: absolute;top: 39vw;left: 0;z-index: 1;}
.yoast-breadcrumbs > span > span > a {color: #B78F37;}
.yoast-breadcrumbs > span > span > a:hover {text-decoration: underline;}
.entry-content-area {
    color: #fff !important;
    background-color: #171717 !important;
    border-radius: 15px;        
    display: flex;
    flex-direction: column;
    padding: 30px;
    margin: 10px;
}
.entry-content {
    margin-top: 180px;
}
.wp-image-276, .wp-image-277 {
    border-radius: 15px;
    max-height: 400px;
}
.contact-info {
    background-color: #B78F37;
    padding: 20px;
    border-radius: 15px;
    font-size: 0.9rem;
    text-shadow: 1px 1px black;
    min-height: 192px;
}
.wp-block-gutsliders-photo-carousel .gutslider-next, .wp-block-gutsliders-photo-carousel .gutslider-prev {
    height: clamp(30px,6vw,60px);
    width: clamp(30px,6vw,60px);
    border: 1px solid #5c5c5c;
    color: #b1b1b1;
}
.wp-block-gutsliders-photo-carousel .gutslider-next:hover, .wp-block-gutsliders-photo-carousel .gutslider-prev:hover {
    background-color: #b1b1b1;
}
.swiper{margin-top: 2rem;}
.swiper-slide{width: auto !important;}
/* Custom styles */
.cwj-cover-image {
    background-size: cover;
    background-position: center;
    padding: 50px 0;
    text-align: center;
    color: #fff;
    height: 500px;
}

.cwj-text-block {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 0;
}

.cwj-text-item {
    margin-bottom: 30px;
}
.category-news {
    margin-top: 200px;
    background-color: #000;
    opacity: 0.8;
    padding: 20px 40px;
    border-radius: 15px;
}

.wpc7f-spinner,
.wpc7f-spinner:before {
    display: block !important;
    margin-top: 24px;
    background-color: #d6bd69 !important;
}

#footer-widget-area,
#footer-widget-area p {
    color: #000;
    background-color: #fff;
    padding: 1rem;
    font-size: 0.7rem;
    text-align: justify;
}

#footer-widget-area {
    margin-top: 2rem;
}

.footer-widget-title {
    padding-left: 1rem;
}
.wp-block-gutsliders-photo-carousel .gutslider-next svg, .wp-block-gutsliders-photo-carousel .gutslider-prev svg {
    height: 4rem;
    width: 4rem;
}
  
/* Animations */
@keyframes panBackground {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-10%); }
}

@keyframes zoom-in-zoom-out {
    0%, 100% { transform: scale(1, 1); }
    50% { transform: scale(1.2, 1.2); }
}

/* Media Queries */
@media (max-width: 1920px) {
    .black-background {
        background-color: #473838; 
        width: 100%; 
        height: 420px; 
        position: absolute;
        top: 44vw;
        left: 0;
        z-index: 1;
    } 
    .wp-block-evb-slider, .wp-block-gutsliders-photo-carousel, .superblockslider {
        margin-top: 0px;
    }
}

@media (max-width: 1440px) {
    .black-background {
        background-color: #000; 
        width: 100%; 
        height: 400px; 
        position: absolute;
        top: 55vw;
        left: 0;
        z-index: 1;
    }    
    .wp-block-evb-slider, .wp-block-gutsliders-photo-carousel, .superblockslider {
        margin-top: 0px;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        background-color: rgba(20, 20, 20, 0.9);
        border-radius: 10px;
        padding: 1rem;
        width: 100%;
    }

    .dropdown-menu {
        background-color: rgba(20, 20, 20, 0.9);
        border: none;
        position: static;
        float: none;
        width: 100%;
    }

    .dropdown-item {
        color: #B78F37;
        display: block;
        width: 100%;
        text-align: left;
    }

    .dropdown-menu .dropdown-menu {
        margin-left: 0.5rem;
        position: static;
        width: 100%;
    }

    .dropdown-menu .dropdown-toggle::after {
        transform: rotate(90deg);
    }

    .navbar-nav .show > .dropdown-menu {
        display: block;
    }

    #main-navbar {
        margin-top: 20px;
    }

    #menu-main-menu li {
        margin: 10px 20px;
    }

    .carousel-item {
        height: 300px;
    }

    form {
        padding: 0 15px;
    }

    .cwj-text-block .row > div {
        margin-bottom: 20px;
    }

    header a img {
        margin-top: 0px;
        max-height: 50px;
    }

    h1, h2, h3, h4, h5, h6 {
        font-size: 1.5em;
    }

    .carousel-item .overlay h2 {
        font-size: 1em;
    }

    .carousel-item .overlay p {
        font-size: 0.6em;
    }

    header .navbar-nav .nav-link {
        padding: 10px;
    }

    .container > div {
        flex: 1;
    }

    .form-select {
        width: -webkit-fill-available;
    }

    .card {
        flex: 1 1 calc(100% - 20px);
    }

    .post-title {
        font-size: 2rem;        
    }

    .post-content p {
        font-size: 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .post-title {
        font-size: 1.75rem;
    }

    .entry-content {
        font-size: 1rem;
    }
    
}

/* Custom JavaScript for nested dropdowns on hover */
@media (min-width: 769px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
    }
    .dropdown-menu .dropdown-menu {
        display: none;
    }
    .dropdown-menu .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

@media (max-width: 430px) {
    .black-background {
        background-color: #000; 
        width: 100%; 
        height: 400px; 
        position: absolute;
        top: 300vw;
        left: 0;
        z-index: 1;
    }  
    .form-select {
        width: 335px !important;
    }
    .wp-block-evb-slider, .wp-block-gutsliders-photo-carousel, .superblockslider {
        margin-top: 0px;
    }
    .entry-content {
        margin-top: 150px;
    }
    .card-img-overlay {
        margin-top: 0;
    }
    .card, .card-news {
        margin: 10px 10px 40px 10px;
    }
    h2.wp-block-post-title {
        font-size: 3rem;
    }
}