/*--------------------------------------------------------------
# HEADER
--------------------------------------------------------------*/

/* Fonts */
:root {
    --main-font: "EB Garamond", serif;
    --sub-font: "Lato", serif;
    --home-font: "Gentium Plus";
    --korean-font: "Gowun Dodum", sans-serif;
}



/* Color */
:root { 
    --background-color: #ffffff; /* Background color for the entire website, including individual sections */
    --default-color: #666666; /* Default color used for the majority of the text content across the entire website */
    --heading-color: #333333; /* Color for headings, subheadings and title throughout the website */
    --accent-color: #102C57; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
    --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
    --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
    --secondary-background-color: #f4f4f4;
    --dark-gold: #795125;
    --semidark-gold: #b88c59;
    --gold-color: #D9C0A2;
    --semilight-gold:#EADBC8;
    --light-gold-color: #FEFBF6;
  }

.eb-garamond-Regular {
    font-family: "EB Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
  }

.lato-light {
    font-family: "Lato", serif;
    font-weight: 300;
    font-style: normal;
  }

.montserrat-light {
    font-family: "Montserrat", serif;
    font-weight: 200;
    font-style: normal;
  }

.nanum-gothic-coding-regular {
    font-family: "Nanum Gothic Coding", monospace;
    font-weight: 400;
    font-style: normal;
  }

.nanum-pen-script-regular {
    font-family: "Nanum Pen Script", cursive;
    font-weight: 400;
    font-style: normal;
  }

.gowun-dodum-regular {
    font-family: "Gowun Dodum", sans-serif;
    font-weight: 400;
    font-style: normal;
  }

.ibm-plex-sans-kr-thin {
    font-family: "IBM Plex Sans KR", sans-serif;
    font-weight: 100;
    font-style: normal;
  }


html, body {
    width: 100%;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
}


.main-page {
    font-family: var(--main-font);
}
  
.container {
    word-wrap: break-word; /* Ensures long words break properly */
    overflow-wrap: break-word;
    white-space: normal; /* Allows text to wrap */
    width: 100%; /* Ensures it stays inside */
    max-width: 100%; /* Prevents overflow */
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensures it stays above other content */
    background-color: white;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.header {
    height: 110px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Distribute space evenly */
    flex-wrap:nowrap;
}

html[lang="ko"] .header {
    font-family: var(--korean-font);
}

/* Left Logo Section */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    background-image: url('/static/images/logo_bronze_hor.png'); /* Fixed spaces */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: block;
    width: 250px; /* Ensure visibility */
    height: 90px;
    margin-left: 5px;
}


/* Center Navigation */

.col-8 {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align menu at the bottom */
    align-items: center; /* Center the menu horizontally */
    flex-wrap:wrap;
    margin-top: 50px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 0;
    font-family: var(--main-font);
}

html[lang="ko"] .nav {
    font-family: var(--korean-font);
}

.nav-link {
    font-size: 18px;
    color: var(--semidark-gold);
    margin-top: 51px;
}

.nav-link.dropdown-toggle::after {
    display: none !important;  /* Remove the Bootstrap Dropdown Arrow */
}

.nav-link:hover {
    color: var(--dark-gold);
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-menu {
    min-width: 200px; /* Set minimum width */
    border-radius: 0px; /* Adjust for more or less roundness */
    border: none !important;
}

.dropdown-item {
    width: 100%; /* Makes the item span the full width */
    display: block; /* Ensures the background covers the whole item */
    padding: 12px 15px; /* Adds proper spacing */
    color:var(--dark-gold)
}

html[lang="ko"] .dropdown-item {
    font-family: var(--korean-font);
}

.dropdown-item:hover {
    background-color: var(--gold-color);
    color: var(--contrast-color);
}

/* Right Section (Language & Hamburger Menu) */
.right-section {
    display: flex;
    align-items: center; /* Centers the button vertically */
    justify-content: flex-end;
    height: 100%; /* Ensures it takes full height of the parent */
}


.language-buttons-desktop {
    display: flex;
    gap: 8px;
    margin-top: 5px;
    margin-right: 17px;
}

html[lang="ko"] .language-buttons-desktop {
    font-family: var(--korean-font);
}

.lan-desktop {
    background-color: rgb(172, 170, 170);
    border-color:  rgb(172, 170, 170);
    color: var(--contrast-color);
}

.lan-desktop:hover {
    background-color: var(--gold-color);
    border-color: var(--gold-color);
    color: var(--contrast-color);
}

/* Mobile Language Buttons */
.language-buttons-mobile {
    display: flex;
    gap: 6px;
    align-items: center;
}

.lan-mobile {
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    max-width: 60px; /* Prevents excessive width */
    font-size: 12px !important;
    padding: 5px 6px !important;
    background-color: var(--gold-color);
    border: 1px solid var(--semidark-gold);
    color: var(--dark-gold);
    border-radius: 5px;
    text-align: center;
}

.lan-mobile:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--contrast-color);
}

/* Offcanvas Styling */
.offcanvas-body .nav-link.dropdown-toggle {
    margin: 0 !important; /* Removes extra space */
    padding: 10px 15px; /* Ensures consistent padding */
    display: block;
    width: 100%;
}

.offcanvas {
    background-color: var(--semilight-gold) !important;
    height: 100vh; /* Ensures it takes full screen height */
    overflow-y: auto; /* Allows scrolling */
}

.offcanvas-mobile{
    visibility: hidden;
    margin-top: -350px !important;
}

.offcanvas-title {
    color: var(--semilight-gold);
    font-size: 40px;
}

/* Fixing Menu Spacing */
.offcanvas-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offcanvas-body li {
    align-items: center;
    justify-content: flex-start;
    padding: 10px 0 !important;
    margin: 0 !important;
    width: 100%;
}

#buyer-dropdown-menu, 
#seller-dropdown-menu,
#commercial-dropdown-menu,
#rent-dropdown-menu {
    background: var(--secondary-background-color);
}

/* Ensure full-width clickable menu items */
.offcanvas-body a {
    display: block;
    width: 100%;
    padding: 12px 15px;
    text-decoration: none;
    font-size: 18px;
    font-family: var(--main-font);
    color: var(--dark-gold);
    line-height: 1.6;
}

html[lang="ko"] .offcanvas-body a {
    font-family: var(--korean-font);
}

.offcanvas-body a:hover {
    background-color: var(--gold-color);
    color: var(--contrast-color);
    transition: 0.3s ease-in-out;
}


/* Hamburger Button */
.offcanvas-btn {
    color: var(--semidark-gold);
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    width: 50px;
    height: 40px;
    margin-right: 16px;

}

.bi-list {
    font-size: 50px;
    line-height: 1;
    margin-top: -8px;
}

.offcanvas-btn:hover {
    color: var(--semilight-gold);
}



/*--------------------------------------------------------------
# HERO SECTION
--------------------------------------------------------------*/

.container-fluid {
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

.hero {
    position: relative; /* Ensures overlay stays on top */
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    background: url('/static/images/hero.jpeg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column; /* Ensures content is stacked */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensures no unwanted spacing */
    text-align: center; /* Ensures text is center-aligned */
    font-family: var(--main-font);
}

html[lang="ko"] .hero {
    font-family: var(--main-font);
}

/* Ensure text is readable */
.hero h1 {
    font-size: 70px;
    padding:10px;
    margin-bottom: 10px;
    color: var(--contrast-color);
    font-family: var(--home-font);
}

html[lang="ko"] .hero h1 {
    font-family: var(--main-font);
}

.hero p {
    font-size: 30px;
    max-width: 800px; /* Restrict width for better readability */
    color: var(--contrast-color);

}

html[lang="ko"] .hero p {
    font-family: var(--main-font);
}

.hero h1, .hero p, .search-box {
    position: relative;
    z-index: 2;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(97, 94, 80, 0.432); /* Adjust darkness (0.5 = 50% opacity) */
    z-index: 1; /* Ensure it sits on top */
}

.search-box {
    position: absolute;  /* Positions it relative to the hero section */
    bottom: 10%;  /* Adjust this value to move it up/down */
    left: 50%;  /* Centers it horizontally */
    transform: translateX(-50%);  /* Ensures perfect centering */
    display: flex;
    width: 50%;  /* Adjust width to fit well */
    max-width: 700px;  /* Prevents excessive stretching */
    gap: 5px;
    padding: 5px;
    font-family: var(--main-font);
}


.search-box input {
    flex: 1;
    padding: 10px;
    border-radius: 0; /* Removes rounded corners */
    font-size: 16px;
    outline: none;
    font-family: var(--main-font);
}

.search-box input:focus {
    border-color: var(--accent-color);  
    box-shadow: 0 0 5px rgba(16, 44, 87, 0.5); /* Subtle glow effect */
}

.search-box button {
    white-space: nowrap; /* Prevents text wrapping */
    border-radius: 0; /* Removes rounded corners */
    padding: 10px 30px;
    background-color: var(--semilight-gold);
    color: var(--accent-color);
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.search-box button:hover {
    background-color: var(--accent-color); /* Change to desired hover color */
    color: var(--contrast-color); /* Text color on hover */
}

/* Ensure search box is enabled */
#searchInput {
    background-color: white !important;
    color: black !important;
    border: 1px solid #ccc !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

/* Ensure button is clickable */
.button_blog {
    background-color: #ddd;
    color: black;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.button_blog:hover {
    background-color: #bbb;
}

/* Fix positioning for suggestions */
.suggestions-box {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}
.messenger-box{
    position: fixed;
    bottom: 20px; /* Keeps it visible at the bottom */
    right: 20px;
    overflow: visible;
    z-index:1000;
}

.messenger-button {
    background-color: var(--contrast-color);
    color: var(--accent-color);
    border: none;
    width: 70px; /* Ensures circular shape */
    height: 70px; /* Ensures circular shape */
    font-size: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(29, 29, 29, 0.2); /* Adds a shadow */
    transition: background-color 0.3s ease-in-out;

}

.messenger-button:hover{
    background-color:var(--accent-color);
    color:var(--contrast-color);
}


/*--------------------------------------------------------------
# ABOUT US 
--------------------------------------------------------------*/
.about-section {
    background-color: var(--background-color); /* Light beige background */
    padding: 60px 10px;
    align-items: center;
    justify-content: center;
}


.about-content {
    max-width: 80%;
    margin: 0 auto; /* Center it */
    padding: 30px 10px;
}



.about-title {
    font-size: 50px;
    color: #DAC0A3; /* Dark brown */
    text-transform: uppercase;
    margin-bottom: 15px;
    text-align: justify;
    font-family: var(--main-font);
}

.about-text {
    font-size: 20px;
    text-align: justify;
    color: #333;
    text-indent: 0; /* Ensure no indentation */
    font-family: var(--main-font);
    line-height: 1.7;
}

html[lang="ko"] .about-text {
    font-family: var(--korean-font);
}

.about-img-container {
    position: relative;
    display: inline-block;
}

p {
    display: block;
    width: 100%;
}

.about-img {
    width: 100%;
    max-width: 480px;
    border-radius: 0px;
}


.about-border {
    position: absolute;
    top: -30px;
    left:30px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--gold-color);
    z-index: 0; /* Bring it in front if needed */
}


.about-btn {
    background-color: var(--gold-color);
    padding: 11px 50px;
    border-radius: 0px;
    color:var(--contrast-color);
    font-size: 20px;

}

html[lang="ko"] .about-btn {
    font-family: var(--korean-font);
}

.about-btn:hover {
    background-color: var(--accent-color);
    color:white;
}


/*--------------------------------------------------------------
# BLOG IN MAIN PAGE
--------------------------------------------------------------*/
.home-blog-section {
    padding: 60px 10px;
    align-items: center;
    justify-content: center;
    background-color:var(--light-gold-color);
    font-family: var(--main-font);
}


.home-blog-content {
    max-width: 70%;
    margin: 0 auto; /* Center it */
    padding: 60px 10px;
}

/* Ensure row is properly centered */

.home-blog-title {
    font-size: 50px;
    color: var(--gold-color) !important;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-align: center;
    text-decoration: none;
    font-family: var(--main-font);
}


.home-bolg-card {
    width: 100%; /* Ensures card takes full column space */
    max-width: 350px; /* Limits max width for a clean layout */
    border:none;
    background-color: var(--contrast-color);
   
}

/* Fixed image size for uniformity */
.home-fixed-image {
    height: 350px; /* Adjust as needed */
    object-fit: cover;
    width: 100%;
   
}

.home-bolg-card-body {
    padding:20px 20px;

}

.home-card-title a {
    text-decoration: none;
    color: var(--dark-gold);
}

html[lang="ko"] .home-card-title {
    font-family: var(--korean-font);
}

html[lang="ko"] .home-card-text {
    font-family: var(--korean-font);
}




/*--------------------------------------------------------------
# TESTIMONIALS
--------------------------------------------------------------*/

.testimonials-section {
    padding: 60px 10px;
    align-items: center;
    justify-content: center;
}


.testimonials-content {
    max-width: 70%;
    margin: 0 auto; /* Center it */
    padding: 60px 10px;
}

.testimonials-title {
    font-size: 50px;
    height: 100px;
    color: var(--gold-color) !important;
    text-transform: uppercase;
    text-align: center;
}

.carousel-inner{
    height: 350px;
    display: flex;
    background-color:#fdfaf5;
    align-items: center;
    font-size: 25px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon,
.carousel-indicators {
    filter: invert(87%) sepia(18%) saturate(324%) hue-rotate(330deg) brightness(90%) contrast(80%);
}

.testimonial-text{
    width:80%;
    margin-left: 10%;
    justify-content: center;     /* Horizontal center */
    align-items: center;         /* Vertical center */
    text-align: center;  
}

html[lang="ko"] .testimonial-text {
    font-family: var(--korean-font);
}

/*--------------------------------------------------------------
# KEEP UP TO DATE
--------------------------------------------------------------*/
.keepToDate {
    background: url('/static/images/keepTODate.jpg') no-repeat center center;
    position: relative;
    width: 100vw;
    height: 80vh;
    background-size: cover;
    display: flex;
    justify-content: center; /* Centers everything */
    align-items: center; /* Centers everything */
    overflow: hidden;
    text-align: center;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.5); /* Optional glowing effect */
}

/* Dark overlay effect */
.keepToDate::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 19, 1, 0.25); /* Dark overlay */
    z-index: 1;
}

/* White border around the entire section */
.keepToDate-border {
    display: flex;
    flex-direction: column;    justify-content: center; /* Centers content inside */
    align-items: center; /* Centers content inside */
    width: 68%;
    height: 80%;
    border: 3px solid var(--contrast-color); /* White outline */
    z-index: 3;
    position: relative;
    padding: 20px 20px;
}

/* Title Styling */
.keepToDate-title {
    font-size: 50px;
    color: var(--contrast-color);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px; /* Space between text and form */
}

/* Centering content inside the bordered area */
.content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    color: var(--contrast-color);
    font-size: 20px;
}

html[lang="ko"] .keepToDate-border p {
    font-family: var(--korean-font);
}

/* Email form container */
.email-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Space between input and button */
    width: 100%;
    max-width: 650px;
    margin-top: 20px; /* Added margin for spacing */
}

/* Input field styling */
.email-box input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 0px;
    font-size: 16px;
    width: 70%;
}

/* Submit button styling */
.email-box button {
    padding: 12px 30px;
    border-radius: 0px;
    border: none;
    background-color: var(--gold-color); 
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

html[lang="ko"] .email-box button {
    font-family: var(--korean-font);
}

.email-box button:hover {
    background-color: var(--semidark-gold); /* Slightly darker on hover */
}


/*--------------------------------------------------------------
# FOOTER
--------------------------------------------------------------*/

/* Footer */
.footer {
    background-color: var(--accent-color);
    width: 100%;
    position: relative;
    margin: 0 auto;
    font-family: var(--main-font);
}


.footer-context {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

html[lang="ko"] .footer-list {
    font-family: var(--korean-font);
}

/* Remove extra spacing */
.footer-row {
    row-gap: 0px;
    column-gap: 0px;
    margin: 0;
    padding: 0;
}

/* Logo */
.footer-logo {
    max-width: 150px;
}

/* Social Icons */
.footer-icon {
    display: flex;
    gap: 20px;
    padding: 10px;
}

.footer-icon i {
    font-size: 20px;
    transition: color 0.3s ease-in-out;
}

.footer-icon .bi-facebook,
.footer-icon .bi-instagram,
.footer-icon .bi-youtube {
    color: white;
}

.footer-icon i:hover {
    color: #DAC0A3;
}

/* Text & Links */
.footer-site h3 {
    font-size: 30px;
    padding: 10px 0;
    margin-left: 66px;
}

.footer-contact a {
    text-decoration: none;
    color: inherit; /* Makes it use the default text color */
}

html[lang="ko"] .footer-contact {
    font-family: var(--korean-font);
}

.footer-contact a:hover {
    color: #DAC0A3;
}

.footer ul {
    padding-left: 0;
    margin-left: 60px;
}

.footer ul li {
    list-style: none;
    margin-bottom: 5px;
    padding: 5px;
    font-size: 17px;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-link:hover {
    color: #DAC0A3;
}

.footer-contact h3{
    font-size: 30px;
    padding: 11px 0;
}

html[lang="ko"] .footer-contact h3 {
    font-family: var(--main-font);
}


.contact-contact i {
    margin-right: 10px;  /* Add space between icon and text */
    font-size: 18px;     /* Optional: adjust icon size */
}


/* Footer Line */
.footer-line {
    width: 100%;
    height: 1px;
    background-color:var(--contrast-color);
    margin-bottom: 15px;
}

/* MLS Content */
.mls-content {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mls-content p {
    font-size: 11px;
    text-align: left;
    margin-left: 15px;
}

.msl-logo {
    max-width: 80px;
    margin-bottom: 10px;
}

/* Copyright */
.copy {
    text-align: left;
    font-size: 13px;
    padding: 10px 0;
    margin: 0 auto;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    /*-------- HEADER ----------*/
    .logo {
        background-image: url('/static/images/logo_beigh_ver.png');
    }

    .menu-middle {
        visibility: hidden;
    }

    .offcanvas-desktop {
        visibility: hidden;
    }

    .lan-desktop {
        visibility: hidden;
    }

    .offcanvas {
        width: 70% !important; 
        max-width: 400px; /* Prevent it from becoming too wide */
    }

    .lan-mobile {
        visibility: visible !important;
        display: flex;
    }

    .language-buttons-mobile {
        display: flex;
        visibility: visible !important;
    }

    .offcanvas-mobile {
        visibility: visible;
    }

    .offcanvas-mobile ul {
        list-style-type: none;
    }
    .offcanvas-body a {
        line-height: 1;
    }
    .offcanvas-btn {
        align-items: center;
        margin-top: -50px;
    }
    
    .messenger-button {
        width: 60px; /* Ensures circular shape */
        height: 70px; /* Ensures circular shape */
    }


    /*-------- HERO ----------*/
    
    .hero {
    height: 83vh; /* Full viewport height */
    
    }
    
    .hero p {
        margin-top:20%
    }

    .hero h1{
        font-size: 400%;
    }    



    /*-------- ABOUT US ----------*/
    .about-border {
        top: -20px;
        left:20px;
        width: 100%;
        height: 100%;
        border: 3px solid var(--gold-color);
        z-index: 0; /* Bring it in front if needed */
    }
    
    .about-text {
    line-height: 1.3;
    }

    .about-btn {
        padding: 6px 50px;
        margin-bottom: 50px; /* Adjust spacing for mobile */
    }

    .about-img-container {
        margin-top: 20%;
    }
    
    .about-border {
        width:100%;
        left:10px;
    }


    /*-------- HOME BLOG ----------*/
    .home-bolg-card {
        margin-bottom: 20px; 
    }
    


    /*-------- KEEP TO DATE ----------*/
    .keepToDate {
        width: auto;
        height: auto;
        padding: 10px 10px;
        margin-top: 10%;
        margin-bottom: 10%;
    }
    .keepToDate-border {
        padding: 40px 20px;
        margin-top: 30px; /* Adds gap above the border */
        margin-bottom: 30px; /* Adds gap below the border */
    }

    /* Email form container */
    .email-box {
        display:grid;
    }

    /* Input field styling */
    .email-box input {
        width:auto;
        padding: 9px 25px;

    }

    /* Submit button styling */
    .email-box button {
        padding: 9px 25px;
    } 

   
    /*--------Footer----------*/
    .footer-site {
        visibility: hidden;
    }

    .footer-contact {
        margin-top: -290px;
        display: flex;
        flex-direction: column; 
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .mls-content {
        display: flex;
        flex-direction: column; /* Stacks the image on top of the text */
        align-items: center; /* Centers both elements horizontally */
        text-align: center; /* Ensures text is centered */
    }         
}



/* Large Devices (≥ 992px) */
@media (max-width: 1200px) {  
    .menu-middle {
        visibility: hidden;
    }

    .offcanvas-desktop {
        visibility: hidden;
    }

    .lan-desktop {
        margin-bottom: 30px;
    }

    .offcanvas {
        width: 70% !important; /* Adjust the width (default is usually 50%) */
        max-width: 400px; /* Prevent it from becoming too wide */
    }

    .offcanvas-mobile {
        visibility: visible;
    }

    .offcanvas-mobile ul {
        list-style-type: none;
    }
    .offcanvas-body a {
        line-height: 1;
    }
    .offcanvas-btn {
        align-items: center;
        margin-top: -30px;
    }
    
    .lan-mobile{
        visibility: hidden ;
    }

}

/*--------------------------------------------------------------
# BLOG.HTML
--------------------------------------------------------------*/
.blogHero {
    background: url('/static/images/Blog-Header.jpg') no-repeat center center;
    background-size: cover; /* Ensures full coverage */
    background-position: center center; /* Centers image properly */
    
    display: flex; /* Enables centering */
    align-items: center; /* Vertically centers content */
    justify-content: center; /* Horizontally centers content */

    height: 500px; /* Ensures section height */
    width: 100%; /* Makes sure it takes full width */
    max-width: 1300px;
    margin: 0 auto;
    border-radius: 10px;
    font-family: var(--main-font);
}

html[lang="ko"] .blogHero {
    font-family: var(--korean-font);
}

.blog-section {
    margin-top: 0 !important; /* Remove unnecessary space */
    padding-top: 0 !important;
    font-family: var(--main-font);
}



.blogNav{
    color: black; 
    font-size: 20px;
    background-color: blue;
}

/* Pagination container */
.pagination-container {
    display: flex;
    justify-content: center; /* Centers the pagination */
    align-items: center; /* Aligns vertically */
    margin-top: 20px; /* Adds spacing above pagination */
}

/* Styling for the page links */
.pagination-container .page-link {
    color: #102C57;
    text-decoration: none;
    padding: 8px 12px;
    margin: 0 5px; /* Adds spacing between numbers */
    border-radius: 5px; /* Slightly rounded corners */
    font-weight: bold;
    transition: background-color 0.3s ease;
}

/* Add hover effect */
.pagination-container .page-link:hover {
    background-color: #102C57;
    color: white;
}

/* Active page style */
.pagination-container .page-link.active {
    background-color: #102C57;
    color: white;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pagination-container {
        flex-wrap: wrap; /* Wrap if needed */
    }

    .pagination-container .page-link {
        padding: 6px 10px;
        font-size: 14px; /* Adjust font size for small screens */
    }
}



/* Button in blog styling */
.button-container {
    display: flex;
    justify-content: center;  /* Center buttons */
    gap: 15px;  /* Space between buttons */
    margin-bottom: 20px;  /* Add space before blog cards */
}

/* Custom button styling */
.btn-custom {
    color: #102C57;
    border: 1px solid gray;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1;  /* Ensures all buttons take equal width */
    min-width: 140px;  /* Prevents buttons from shrinking too much */
    text-align: center; /* Keeps text centered */
    white-space: nowrap; /* Prevents text from wrapping */
}

html[lang="ko"] .btn-custom {
    font-family: var(--korean-font);
}


/* Hover effect */
.btn-custom:hover {
    background-color: #0a1e3d;
    color: white
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .button-container {
        flex-wrap: wrap;  /* Wrap buttons if screen is small */
        justify-content: center;
    }
    
    .btn-custom {
        flex: none;  /* Prevents buttons from stretching too much */
        width: 45%;  /* Ensures 2 buttons per row on small screens */
        max-width: none;
    }
}


.blog4 {
    max-width: 100%;  /* Ensures responsiveness */
    width: 80%; 
    height: auto; 
    max-height: 500px;
    display: block;
    margin: 0 auto; /* Centers the image */
    border-radius: 10px; /* Rounded corners */
}


/* Style for Section 1: Buttons + Blog Cards */
.blog-section-container {
    border: 1px solid #ddd; /* Light gray border */
    border-radius: 10px; /* Optional: Adds rounded corners */
    padding: 20px; /* Adds space inside the border */
    margin-bottom: 30px; /* Adds space between sections */
}

/* Style for Section 2: Other Content */
.other-content-section {
    border: 1px solid #ddd; /* Light gray border */
    border-radius: 10px; /* Optional */
    padding: 20px;
}



/*--------------------------------------------------------------
# BLOG CONTENT PAGE section
--------------------------------------------------------------*/
.blog-section {
    padding: 20px;
  }
  
  .blo_title {
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
  }
  
  .blog-image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    max-width: 1300px;
    margin: 0 auto;
  }
  
  
  .blog-content {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    font-family: Georgia, 'Times New Roman', Times, serif;
  }
  
  .blog-content p {
    margin-bottom: 1.5rem;
  }
  

html[lang="ko"] .blo_title, .blog-content  {
    font-family: var(--korean-font);
}

/*--------------------------------------------------------------
# Buyer, Seller, Renter, Commercial, Mortgage Calculator Hero Section, homeValuation
--------------------------------------------------------------*/
.buyer-hero {
    width: 100%;
    min-height: 75vh;
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

html[lang="ko"] 
#deskripsi {
    font-family: var(--korean-font);
}
  
.buyer-hero img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

  /* Dark overlay to make text readable */
  .buyer-hero:before {
    content: "";
    background: color-mix(in srgb, black, transparent 50%);
    position: absolute;
    inset: 0;
    z-index: 2;
  }
  
  .buyer-hero .container {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    padding: 0 20px;
  }
  
  .buyer-hero h1,
  .buyer-hero h2{
    font-family: var(--main-font);
    margin: 0;
    font-size: 55px;
    font-weight: 500;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    color: white;
  }




  .buyer-hero h4 {
    font-family: var(--main-font);
    margin: 0;
    font-size: 25px;
    font-weight: 500;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    color: white;
  }

  html[lang="ko"] .buyer-hero h4  {
    font-family: var(--korean-font);
  }
  
  .buyer-hero p {
    font-family: var(--main-font);
    margin: 10px 0 0 0;
    font-size: 24px;
    color: var(--heading-color);
    z-index: 3;
  }

  html[lang="ko"] .buyer-hero p  {
    font-family: var(--korean-font);
  }
  
  .buyer-hero .btn-get-started {
    color: var(--default-color);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 8px 40px;
    margin: 30px 0 0 0;
    border-radius: 4px;
    transition: 0.5s;
    border: 2px solid color-mix(in srgb, var(--default-color), transparent 50%);
  }
  
  .buyer-hero .btn-get-started:hover {
    color: var(--contrast-color);
    background: var(--accent-color);
    border-color: var(--accent-color);
  }
  
  @media (max-width: 768px) {
    .buyer-hero h2 {
      font-size: 32px;
    }
  
    .buyer-hero p {
      font-size: 18px;
    }
  }
  
  /*--------------------------------------------------------------
# Buyer Step By Step
--------------------------------------------------------------*/

#step-by-step h4{
    font-family: var(--home-font);
    color: var(--accent-color);
    font-size: 30px;
    text-align: center;
    margin-top: 30px;
    font-weight: 500;
  }

html[lang="ko"] #step-by-step h4  {
    font-family: var(--korean-font);
}
  
#step-by-step p {
    font-family: var(--main-font);
    font-size: 20px;  
    line-height: 1.8;
}

html[lang="ko"] #step-by-step p  {
    font-family: var(--korean-font);
}
  .color-pri{
    color: var(--accent-color);
  }
  
  #step-by-step .d-flex:last-child {
    margin-bottom: 40px; /* Or any value you prefer */
}

  /*--------------------------------------------------------------
  # Deskripsi Section
  --------------------------------------------------------------*/
  #deskripsi {
    background: var(--light-gold-color);
    line-height: 1.7;
  }

  #deskripsi p {
    font-family: var(--main-font);
    font-size: 20px;
    color: #333;
  }
 
  #deskripsi h2 {
    font-family: var(--main-font);
    font-weight: 600;
  }
   /*--------------------------------------------------------------
  # Mortgage Calculator
  --------------------------------------------------------------*/
  .calculate-section {
    background-color: var(--light-gold-color);
    padding-bottom: 50px;  
  }

  .result-section {
    background-color: var(--secondary-background-color);
    padding-bottom: 50px;
  }

  html[lang="ko"] .sub-title h1  {
    font-family: var(--korean-font) !important;
  }

  #calculate {
    font-family: var(--main-font);
    font-size: 18px;
    color: #333;
  }

  html[lang="ko"] 
  #calculate,
  #mortgage-title {
    font-family: var(--korean-font);
}

  #resultCalculate {
    font-family: var(--main-font);
    color: #0a1e3d;
  }
  
  /*--------------------------------------------------------------
  # Contact Us Section/ homeValuation
  --------------------------------------------------------------*/

#contact_us {
    background: var(--secondary-background-color);
    padding: 30px 0px;
    font-family: var(--main-font);
}

html[lang="ko"] 
#contact_us
   {
    font-family: var(--korean-font);
}

html[lang="ko"] 
.form-control
   {
    font-family: var(--korean-font);
}
  
#contact_us h4{
    font-size: 24px;
    padding-bottom: 25px;
    padding-top: 15px;
    font-weight: 500;
    color: var(--accent-color);
}

#contact_us p{
    font-size: 18px;
    color: var(--accent-color);
}

#contact-us .btn-contact{
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    font-size: 12px;
    border-radius: 0px;
  }

/* contact us page */
.ben-park {
    background-image: url('/static/images/ContactUs.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 90vh;
  }
  
  .socialMedia a {
    color: var(--accent-color); /* Icon color */
    font-size: 24px; /* Icon size */
    margin-right: 10px; /* Spacing between icons */
    transition: color 0.3s; /* Smooth transition for hover effect */
}

.socialMedia a:hover {
    color: #555; /* Icon color on hover */
}


/*--------------------------------------------------------------
# BLOG.HTML
--------------------------------------------------------------*/
.blogHero {
    background: url('/static/images/Blog-Header.jpg') no-repeat center center;
    background-size: cover; /* Ensures full coverage */
    background-position: center center; /* Centers image properly */
    
    display: flex; /* Enables centering */
    align-items: center; /* Vertically centers content */
    justify-content: center; /* Horizontally centers content */

    height: 500px; /* Ensures section height */
    width: 100%; /* Makes sure it takes full width */
    max-width: 1300px;
    margin: 0 auto;
    border-radius: 10px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.blog-section {
    margin-top: 0 !important; /* Remove unnecessary space */
    padding-top: 0 !important;
}



.blogNav{
    color: black; 
    font-size: 20px;
    background-color: blue;
}

/* Pagination container */
.pagination-container {
    display: flex;
    justify-content: center; /* Centers the pagination */
    align-items: center; /* Aligns vertically */
    margin-top: 20px; /* Adds spacing above pagination */
}

/* Styling for the page links */
.pagination-container .page-link {
    color: #102C57;
    text-decoration: none;
    padding: 8px 12px;
    margin: 0 5px; /* Adds spacing between numbers */
    border-radius: 5px; /* Slightly rounded corners */
    font-weight: bold;
    transition: background-color 0.3s ease;
}

/* Add hover effect */
.pagination-container .page-link:hover {
    background-color: #102C57;
    color: white;
}

/* Active page style */
.pagination-container .page-link.active {
    background-color: #102C57;
    color: white;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pagination-container {
        flex-wrap: wrap; /* Wrap if needed */
    }

    .pagination-container .page-link {
        padding: 6px 10px;
        font-size: 14px; /* Adjust font size for small screens */
    }
}



/* Button in blog styling */
.button-container {
    display: flex;
    justify-content: center;  /* Center buttons */
    gap: 15px;  /* Space between buttons */
    margin-bottom: 20px;  /* Add space before blog cards */
}

/* Custom button styling */
.btn-custom {
    color: #102C57;
    border: 1px solid gray;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1;  /* Ensures all buttons take equal width */
    min-width: 140px;  /* Prevents buttons from shrinking too much */
    text-align: center; /* Keeps text centered */
    white-space: nowrap; /* Prevents text from wrapping */
}

/* Hover effect */
.btn-custom:hover {
    background-color: #0a1e3d;
    color: white
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .button-container {
        flex-wrap: wrap;  /* Wrap buttons if screen is small */
        justify-content: center;
    }
    
    .btn-custom {
        flex: none;  /* Prevents buttons from stretching too much */
        width: 45%;  /* Ensures 2 buttons per row on small screens */
        max-width: none;
    }
}


.blog4 {
    max-width: 100%;  /* Ensures responsiveness */
    width: 80%; 
    height: auto; 
    max-height: 500px;
    display: block;
    margin: 0 auto; /* Centers the image */
    border-radius: 10px; /* Rounded corners */
}


/* Style for Section 1: Buttons + Blog Cards */
.blog-section-container {
    border: 1px solid #ddd; /* Light gray border */
    border-radius: 10px; /* Optional: Adds rounded corners */
    padding: 20px; /* Adds space inside the border */
    margin-bottom: 30px; /* Adds space between sections */
}

html[lang="ko"] 
.blog-section
   {
    font-family: var(--korean-font);
}

/* Style for Section 2: Other Content */
.other-content-section {
    border: 1px solid #ddd; /* Light gray border */
    border-radius: 10px; /* Optional */
    padding: 20px;
}

/*--------------------------------------------------------------
# BLOG CONTENT PAGE section
--------------------------------------------------------------*/
.blog-content {
    white-space: pre-line;
  }

.blo_title{
    padding: 40px;
    margin: auto;
}

html[lang="ko"] 
.home-bolg-card
   {
    font-family: var(--korean-font);
}

/*--------------------------------------------------------------
# Buyer, Seller, Renter, Commercial, Mortgage Calculator Hero Section, homeValuation
--------------------------------------------------------------*/
.buyer-hero {
    width: 100%;
    min-height: 75vh;
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .buyer-hero img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }

  /* Dark overlay to make text readable */
  .buyer-hero:before {
    content: "";
    background: color-mix(in srgb, black, transparent 50%);
    position: absolute;
    inset: 0;
    z-index: 2;
  }
  
  .buyer-hero .container {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    padding: 0 20px;
  }
  
  .buyer-hero h1,
  .buyer-hero h2{
    font-family: var(--main-font);
    margin: 0;
    font-size: 55px;
    font-weight: 500;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    color: white;
  }

  html[lang="ko"] 
  .buyer-hero h1,
  .buyer-hero h2,
  .buyer-hero h4
   {
    font-family: var(--korean-font);
}

  .buyer-hero h4 {
    font-family: var(--main-font);
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    color: white;
  }

  
  .buyer-hero p {
    font-family: var(--main-font);
    margin: 10px 0 0 0;
    font-size: 24px;
    color: var(--heading-color);
    z-index: 3;
  }

  html[lang="ko"] 
  #deskripsi p
   {
    font-family: var(--korean-font);
}

  
  .buyer-hero .btn-get-started {
    color: var(--default-color);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 8px 40px;
    margin: 30px 0 0 0;
    border-radius: 4px;
    transition: 0.5s;
    border: 2px solid color-mix(in srgb, var(--default-color), transparent 50%);
  }
  
  .buyer-hero .btn-get-started:hover {
    color: var(--contrast-color);
    background: var(--accent-color);
    border-color: var(--accent-color);
  }
  
  @media (max-width: 768px) {
    .buyer-hero h2 {
      font-size: 32px;
    }
  
    .buyer-hero p {
      font-size: 18px;
    }
  }
  
  /*--------------------------------------------------------------
# Buyer Step By Step
--------------------------------------------------------------*/

#step-by-step h4{
    font-family: var(--home-font);
    color: var(--accent-color);
    font-size: 30px;
    text-align: center;
    margin-top: 30px;
    font-weight: 500;
  }
  
#step-by-step p {
    font-family: var(--main-font);
    font-size: 20px;  
    line-height: 1.8;
}
  .color-pri{
    color: var(--accent-color);
  }
  
  #step-by-step .d-flex:last-child {
    margin-bottom: 40px; /* Or any value you prefer */
}

  /*--------------------------------------------------------------
  # Deskripsi Section
  --------------------------------------------------------------*/
  #deskripsi {
    background: var(--light-gold-color);
    line-height: 1.7;
  }

  #deskripsi p {
    font-family: var(--main-font);
    font-size: 20px;
    color: #333;
  }

   /*--------------------------------------------------------------
  # Mortgage Calculator
  --------------------------------------------------------------*/
  .calculate-section {
    background-color: var(--light-gold-color);
    padding-bottom: 50px;  
  }

  .result-section {
    background-color: var(--secondary-background-color);
    padding-bottom: 50px;
  }

  #calculate {
    font-family: var(--main-font);
    font-size: 18px;
    color: #333;
  }

  #resultCalculate {
    font-family: var(--main-font);
    color: #0a1e3d;
  }
  
  /*--------------------------------------------------------------
  # Contact Us Section
  --------------------------------------------------------------*/

#contact_us {
    background: var(--secondary-background-color);
    padding: 30px 0px;
    font-family: var(--main-font);
}
  
#contact_us h4{
    font-size: 24px;
    padding-bottom: 25px;
    padding-top: 15px;
    font-weight: 500;
    color: var(--accent-color);
}

#contact_us p{
    font-size: 18px;
    color: var(--accent-color);
}

#contact-us .btn-contact{
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    font-size: 12px;
    border-radius: 0px;
  }

/* contact us page */
.ben-park {
    background-image: url('/static/images/ContactUs.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 90vh;
  }
  
  .socialMedia a {
    color: var(--accent-color); /* Icon color */
    font-size: 24px; /* Icon size */
    margin-right: 10px; /* Spacing between icons */
    transition: color 0.3s; /* Smooth transition for hover effect */
}

.socialMedia a:hover {
    color: #555; /* Icon color on hover */
}


 
  /*--------------------------------------------------------------
# Home Evaluation map
--------------------------------------------------------------*/
#map {
    width: 100% !important;
    height: 350px !important;
}

  /*--------------------------------------------------------------
# Market Trend
--------------------------------------------------------------*/

.container, .content {
    overflow: hidden;
    position: relative;
    z-index: 1;
  }

.market-trend {
    margin-top:6%;
    width: 80%;
    height: 50%;
    font-family: var(--main-font);
}

html[lang="ko"] 
.market-trend {
    font-family: var(--korean-font);
}


.market-trend-title {
    font-size: 180%;
    font-weight: bold;
}

.province-button {
    border-radius: 50px;
    padding: 5px 60px;
    background-color: var(--gold-color);
    border-color:var(--gold-color);
}


.price {
    font-size: 2rem;
    font-weight: bold;
  }
  
.percent {
    font-size: 1rem;
}
  
.card-title a {
    font-family: var(--main-font) !important;
    font-weight: bold;
    font-size: 130%;
    text-decoration: none;
    color: var(--dark-gold);

}

html[lang="ko"] .card-title a {
    font-family: var(--korean-font);
}

.card-text {
    font-family: var(--main-font) !important;
}
  
html[lang="ko"] 
.market-card-text {
    font-family: var(--korean-font);
}
  
  
  #province-select {
    font-family: 'EB Garamond', serif;
  }
  
  .card h4 {
    font-weight: bold;
    font-size: 1.25rem;
  }
  
  #single-price,
  #townhouse-price,
  #condo-price
  {
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 250%;
    color: #4f487f;
  }
  
  .card .percent {
    font-size: 1rem;
    color: #6c757d;
  }
  
  .chart-wrapper {
      width: 100%;
      overflow-x: auto;
  }
  
  #line-chart {
    margin-top: 30px;
  }
  
  .market-trend-dropdown {
    min-width: 300px; 
    max-height: 300px;
    overflow-y: auto;
    border:#555 1px;
  }

.offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0);
  }
  
  /* Responsive Design */
@media (max-width: 768px) {

    .market-trend {
        width: 100% !important;
        height: 100%;
        font-family: var(--main-font);
        padding: 2% 5%;
    }

    .market-trend-title {
        margin-top:10%;
        align-items: center;
    }
    
    .province-button {
        align-items: center;
    }
    

    #line-chart {
        min-width: 800px; 
        margin-left:-10px;
        padding-right: 40px;
    }

}

  /* Responsive Design */
  @media (max-width: 1200px) {

    .market-trend {
        margin-top:8%;
        width: 80%;
        height: 80%;
        font-family: var(--main-font);
    }

}